iswblank: Ensure declaration on glibc systems.
[pspp] / ChangeLog
1 2011-02-06  Bruno Haible  <bruno@clisp.org>
2
3         iswblank: Ensure declaration on glibc systems.
4         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
5         * modules/iswblank (Dependencies): Add 'extensions'.
6         * doc/posix-functions/iswblank.texi: Document the glibc problem.
7
8 2011-02-06  Bruno Haible  <bruno@clisp.org>
9
10         New module 'iswblank'.
11         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
12         * modules/iswblank: New file.
13         * modules/wctype-h (Files): Remove lib/iswblank.c.
14         (Makefile.am): Substitute GNULIB_ISWBLANK.
15         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
16         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
17         (gl_WCTYPE_H_DEFAULTS): New macro.
18         (gl_WCTYPE_H): Require it. Remove iswblank related code.
19         * modules/iswblank-tests: New file.
20         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
21         * tests/test-wctype-h.c (main): Remove iswblank tests.
22         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
23         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
24         of 'wctype-h'.
25         * NEWS: Mention the change.
26         * modules/mbchar (Depends-on): Add iswblank.
27
28 2011-02-08  Bruno Haible  <bruno@clisp.org>
29
30         di-set tests: Refactor.
31         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
32         unnecessary includes.
33         (ASSERT): Remove macro.
34         (main): Make C90 compliant by avoiding variable declaration after
35         statement.
36         * modules/di-set-tests (Files): Add tests/macros.h.
37
38 2011-02-08  Bruno Haible  <bruno@clisp.org>
39
40         ino-map tests: Refactor.
41         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
42         unnecessary includes.
43         (ASSERT): Remove macro.
44         (main): Make C90 compliant by avoiding variable declaration after
45         statement.
46         * modules/ino-map-tests (Files): Add tests/macros.h.
47
48 2011-02-08  Jim Meyering  <meyering@redhat.com>
49
50         di-set: add "const" to a cast
51         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
52         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
53
54 2011-02-06  Bruno Haible  <bruno@clisp.org>
55
56         Rename module 'wctype' to 'wctype-h'.
57         * modules/wctype-h: Renamed from modules/wctype.
58         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
59         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
60         (Files, Depends-on, Makefile.am): Update.
61         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
62         (Files, Makefile.am): Update.
63         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
64         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
65         * doc/posix-headers/wctype.texi: Update.
66         * doc/posix-functions/iswalnum.texi: Update.
67         * doc/posix-functions/iswalpha.texi: Update.
68         * doc/posix-functions/iswblank.texi: Update.
69         * doc/posix-functions/iswcntrl.texi: Update.
70         * doc/posix-functions/iswdigit.texi: Update.
71         * doc/posix-functions/iswgraph.texi: Update.
72         * doc/posix-functions/iswlower.texi: Update.
73         * doc/posix-functions/iswprint.texi: Update.
74         * doc/posix-functions/iswpunct.texi: Update.
75         * doc/posix-functions/iswspace.texi: Update.
76         * doc/posix-functions/iswupper.texi: Update.
77         * doc/posix-functions/iswxdigit.texi: Update.
78         * doc/posix-functions/towlower.texi: Update.
79         * doc/posix-functions/towupper.texi: Update.
80         * NEWS: Mention the change.
81         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
82         * modules/mbchar (Dependencies): Likewise.
83         * modules/mbswidth (Dependencies): Likewise.
84         * modules/quotearg (Dependencies): Likewise.
85         * modules/regex (Dependencies): Likewise.
86         * modules/wcscasecmp (Dependencies): Likewise.
87         * modules/wcsncasecmp (Dependencies): Likewise.
88         * modules/wcwidth (Dependencies): Likewise.
89
90 2011-02-06  Bruno Haible  <bruno@clisp.org>
91
92         New module 'wcswidth'.
93         * modules/wcswidth: New file.
94         * lib/wchar.in.h (wcswidth): New declaration.
95         * lib/wcswidth.c: New file.
96         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
97         * m4/wcswidth.m4: New file.
98         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
99         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
100         REPLACE_WCSWIDTH.
101         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
102         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
103         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
104         * doc/posix-functions/wcswidth.texi: Mention the new module.
105
106 2011-02-06  Bruno Haible  <bruno@clisp.org>
107
108         New module 'wcstok'.
109         * modules/wcstok: New file.
110         * lib/wchar.in.h (wcstok): New declaration.
111         * lib/wcstok.c: New file.
112         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
113         * m4/wcstok.m4: New file.
114         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
115         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
116         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
117         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
118         * doc/posix-functions/wcstok.texi: Mention the new module.
119
120 2011-02-06  Bruno Haible  <bruno@clisp.org>
121
122         New module 'wcsstr'.
123         * modules/wcsstr: New file.
124         * lib/wchar.in.h (wcsstr): New declaration.
125         * lib/wcsstr.c: New file.
126         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
127         * m4/wcsstr.m4: New file.
128         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
129         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
130         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
131         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
132         * doc/posix-functions/wcsstr.texi: Mention the new module.
133
134 2011-02-06  Bruno Haible  <bruno@clisp.org>
135
136         New module 'wcspbrk'.
137         * modules/wcspbrk: New file.
138         * lib/wchar.in.h (wcspbrk): New declaration.
139         * lib/wcspbrk.c: New file.
140         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
141         * m4/wcspbrk.m4: New file.
142         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
143         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
144         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
145         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
146         * doc/posix-functions/wcspbrk.texi: Mention the new module.
147
148 2011-02-06  Bruno Haible  <bruno@clisp.org>
149
150         New module 'wcsspn'.
151         * modules/wcsspn: New file.
152         * lib/wchar.in.h (wcsspn): New declaration.
153         * lib/wcsspn.c: New file.
154         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
155         * m4/wcsspn.m4: New file.
156         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
157         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
158         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
159         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
160         * doc/posix-functions/wcsspn.texi: Mention the new module.
161
162 2011-02-06  Bruno Haible  <bruno@clisp.org>
163
164         New module 'wcscspn'.
165         * modules/wcscspn: New file.
166         * lib/wchar.in.h (wcscspn): New declaration.
167         * lib/wcscspn.c: New file.
168         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
169         * m4/wcscspn.m4: New file.
170         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
171         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
172         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
173         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
174         * doc/posix-functions/wcscspn.texi: Mention the new module.
175
176 2011-02-06  Bruno Haible  <bruno@clisp.org>
177
178         New module 'wcsrchr'.
179         * modules/wcsrchr: New file.
180         * lib/wchar.in.h (wcsrchr): New declaration.
181         * lib/wcsrchr.c: New file.
182         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
183         * m4/wcsrchr.m4: New file.
184         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
185         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
186         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
187         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
188         * doc/posix-functions/wcsrchr.texi: Mention the new module.
189
190 2011-02-06  Bruno Haible  <bruno@clisp.org>
191
192         New module 'wcschr'.
193         * modules/wcschr: New file.
194         * lib/wchar.in.h (wcschr): New declaration.
195         * lib/wcschr.c: New file.
196         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
197         * m4/wcschr.m4: New file.
198         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
199         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
200         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
201         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
202         * doc/posix-functions/wcschr.texi: Mention the new module.
203
204 2011-02-06  Bruno Haible  <bruno@clisp.org>
205
206         New module 'wcsdup'.
207         * modules/wcsdup: New file.
208         * lib/wchar.in.h (wcsdup): New declaration.
209         * lib/wcsdup.c: New file.
210         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
211         * m4/wcsdup.m4: New file.
212         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
213         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
214         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
215         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
216         * doc/posix-functions/wcsdup.texi: Mention the new module.
217
218 2011-02-06  Bruno Haible  <bruno@clisp.org>
219
220         New module 'wcsxfrm'.
221         * modules/wcsxfrm: New file.
222         * lib/wchar.in.h (wcsxfrm): New declaration.
223         * lib/wcsxfrm.c: New file.
224         * lib/wcsxfrm-impl.h: New file.
225         * m4/wcsxfrm.m4: New file.
226         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
227         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
228         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
229         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
230         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
231
232 2011-02-06  Bruno Haible  <bruno@clisp.org>
233
234         New module 'wcscoll'.
235         * modules/wcscoll: New file.
236         * lib/wchar.in.h (wcscoll): New declaration.
237         * lib/wcscoll.c: New file.
238         * lib/wcscoll-impl.h: New file.
239         * m4/wcscoll.m4: New file.
240         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
241         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
242         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
243         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
244         * doc/posix-functions/wcscoll.texi: Mention the new module.
245
246 2011-02-06  Bruno Haible  <bruno@clisp.org>
247
248         New module 'wcsncasecmp'.
249         * modules/wcsncasecmp: New file.
250         * lib/wchar.in.h (wcsncasecmp): New declaration.
251         * lib/wcsncasecmp.c: New file.
252         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
253         * m4/wcsncasecmp.m4: New file.
254         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
255         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
256         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
257         HAVE_WCSNCASECMP.
258         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
259         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
260
261 2011-02-06  Bruno Haible  <bruno@clisp.org>
262
263         New module 'wcscasecmp'.
264         * modules/wcscasecmp: New file.
265         * lib/wchar.in.h (wcscasecmp): New declaration.
266         * lib/wcscasecmp.c: New file.
267         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
268         * m4/wcscasecmp.m4: New file.
269         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
270         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
271         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
272         HAVE_WCSCASECMP.
273         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
274         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
275
276 2011-02-05  Bruno Haible  <bruno@clisp.org>
277
278         New module 'wcsncmp'.
279         * modules/wcsncmp: New file.
280         * lib/wchar.in.h (wcsncmp): New declaration.
281         * lib/wcsncmp.c: New file.
282         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
283         * m4/wcsncmp.m4: New file.
284         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
285         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
286         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
287         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
288         * doc/posix-functions/wcsncmp.texi: Mention the new module.
289
290 2011-02-05  Bruno Haible  <bruno@clisp.org>
291
292         New module 'wcscmp'.
293         * modules/wcscmp: New file.
294         * lib/wchar.in.h (wcscmp): New declaration.
295         * lib/wcscmp.c: New file.
296         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
297         * m4/wcscmp.m4: New file.
298         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
299         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
300         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
301         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
302         * doc/posix-functions/wcscmp.texi: Mention the new module.
303
304 2011-02-05  Bruno Haible  <bruno@clisp.org>
305
306         New module 'wcsncat'.
307         * modules/wcsncat: New file.
308         * lib/wchar.in.h (wcsncat): New declaration.
309         * lib/wcsncat.c: New file.
310         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
311         * m4/wcsncat.m4: New file.
312         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
313         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
314         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
315         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
316         * doc/posix-functions/wcsncat.texi: Mention the new module.
317
318 2011-02-05  Bruno Haible  <bruno@clisp.org>
319
320         New module 'wcscat'.
321         * modules/wcscat: New file.
322         * lib/wchar.in.h (wcscat): New declaration.
323         * lib/wcscat.c: New file.
324         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
325         * m4/wcscat.m4: New file.
326         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
327         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
328         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
329         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
330         * doc/posix-functions/wcscat.texi: Mention the new module.
331
332 2011-02-05  Bruno Haible  <bruno@clisp.org>
333
334         New module 'wcpncpy'.
335         * modules/wcpncpy: New file.
336         * lib/wchar.in.h (wcpncpy): New declaration.
337         * lib/wcpncpy.c: New file.
338         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
339         * m4/wcpncpy.m4: New file.
340         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
341         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
342         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
343         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
344         * doc/posix-functions/wcpncpy.texi: Mention the new module.
345
346 2011-02-05  Bruno Haible  <bruno@clisp.org>
347
348         New module 'wcsncpy'.
349         * modules/wcsncpy: New file.
350         * lib/wchar.in.h (wcsncpy): New declaration.
351         * lib/wcsncpy.c: New file.
352         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
353         * m4/wcsncpy.m4: New file.
354         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
355         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
356         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
357         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
358         * doc/posix-functions/wcsncpy.texi: Mention the new module.
359
360 2011-02-05  Bruno Haible  <bruno@clisp.org>
361
362         New module 'wcpcpy'.
363         * modules/wcpcpy: New file.
364         * lib/wchar.in.h (wcpcpy): New declaration.
365         * lib/wcpcpy.c: New file.
366         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
367         * m4/wcpcpy.m4: New file.
368         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
369         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
370         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
371         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
372         * doc/posix-functions/wcpcpy.texi: Mention the new module.
373
374 2011-02-05  Bruno Haible  <bruno@clisp.org>
375
376         New module 'wcscpy'.
377         * modules/wcscpy: New file.
378         * lib/wchar.in.h (wcscpy): New declaration.
379         * lib/wcscpy.c: New file.
380         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
381         * m4/wcscpy.m4: New file.
382         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
383         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
384         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
385         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
386         * doc/posix-functions/wcscpy.texi: Mention the new module.
387
388 2011-02-05  Bruno Haible  <bruno@clisp.org>
389
390         New module 'wcsnlen'.
391         * modules/wcsnlen: New file.
392         * lib/wchar.in.h (wcsnlen): New declaration.
393         * lib/wcsnlen.c: New file.
394         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
395         * m4/wcsnlen.m4: New file.
396         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
397         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
398         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
399         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
400         * doc/posix-functions/wcsnlen.texi: Mention the new module.
401
402 2011-02-05  Bruno Haible  <bruno@clisp.org>
403
404         New module 'wcslen'.
405         * modules/wcslen: New file.
406         * lib/wchar.in.h (wcslen): New declaration.
407         * lib/wcslen.c: New file.
408         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
409         * m4/wcslen.m4: New file.
410         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
411         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
412         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
413         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
414         * doc/posix-functions/wcslen.texi: Mention the new module.
415
416 2011-02-05  Bruno Haible  <bruno@clisp.org>
417
418         New module 'wmemset'.
419         * modules/wmemset: New file.
420         * lib/wchar.in.h (wmemset): New declaration.
421         * lib/wmemset.c: New file.
422         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
423         * m4/wmemset.m4: New file.
424         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
425         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
426         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
427         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
428         * doc/posix-functions/wmemset.texi: Mention the new module.
429
430 2011-02-05  Bruno Haible  <bruno@clisp.org>
431
432         New module 'wmemmove'.
433         * modules/wmemmove: New file.
434         * lib/wchar.in.h (wmemmove): New declaration.
435         * lib/wmemmove.c: New file.
436         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
437         * m4/wmemmove.m4: New file.
438         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
439         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
440         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
441         HAVE_WMEMMOVE.
442         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
443         * doc/posix-functions/wmemmove.texi: Mention the new module.
444
445 2011-02-05  Bruno Haible  <bruno@clisp.org>
446
447         New module 'wmemcpy'.
448         * modules/wmemcpy: New file.
449         * lib/wchar.in.h (wmemcpy): New declaration.
450         * lib/wmemcpy.c: New file.
451         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
452         * m4/wmemcpy.m4: New file.
453         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
454         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
455         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
456         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
457         * doc/posix-functions/wmemcpy.texi: Mention the new module.
458
459 2011-02-05  Bruno Haible  <bruno@clisp.org>
460
461         New module 'wmemcmp'.
462         * modules/wmemcmp: New file.
463         * lib/wchar.in.h (wmemcmp): New declaration.
464         * lib/wmemcmp.c: New file.
465         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
466         * m4/wmemcmp.m4: New file.
467         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
468         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
469         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
470         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
471         * doc/posix-functions/wmemcmp.texi: Mention the new module.
472
473 2011-02-07  Jim Meyering  <meyering@redhat.com>
474
475         di-set, ino-map: new modules, from coreutils
476         * lib/di-set.c: New file.
477         * lib/di-set.h: Likewise.
478         * lib/ino-map.c: Likewise.
479         * lib/ino-map.h: Likewise.
480         * modules/di-set: Likewise.
481         * modules/di-set-tests: Likewise.
482         * modules/ino-map: Likewise.
483         * modules/ino-map-tests: Likewise.
484         * tests/test-di-set.c: Likewise.
485         * tests/test-ino-map.c: Likewise.
486
487 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
488
489         getloadavg: merge minor changes from Emacs
490
491         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
492         (getloadavg): Use memset, not bzero.
493
494         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
495         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
496         clash (bug#86).
497
498 2010-11-14  Bruno Haible  <bruno@clisp.org>
499
500         Allow multiple gnulib generated replacements to coexist.
501         * lib/getopt.in.h (struct option): Avoid identical redefinition.
502         * lib/inttypes.in.h (imaxdiv_t): Likewise.
503         * lib/langinfo.in.h (nl_item): Likewise.
504         * lib/math.in.h (_NaN, NAN): Likewise.
505         * lib/netdb.in.h (struct addrinfo): Likewise.
506         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
507         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
508         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
509         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
510         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
511         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
512         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
513         pthread_mutexattr_init, pthread_mutexattr_settype,
514         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
515         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
516         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
517         pthread_spin_trylock, pthread_spin_unlock): Likewise.
518         * lib/sched.in.h (struct sched_param): Likewise.
519         * lib/se-selinux.in.h (security_class_t, security_context_t,
520         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
521         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
522         lsetfilecon, fsetfilecon, security_check_context,
523         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
524         Likewise.
525         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
526         Likewise.
527         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
528         _gl_function_taking_int_returning_void_t, union sigval,
529         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
530         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
531         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
532         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
533         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
534         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
535         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
536         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
537         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
538         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
539         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
540         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
541         socklen_t, rpl_fd_isset): Likewise.
542         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
543         * lib/sys_time.in.h (struct timeval): Likewise.
544         * lib/sys_times.in.h (struct tms): Likewise.
545         * lib/sys_utsname.in.h (struct utsname):
546         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
547         * lib/unistd.in.h (getpagesize): Likewise.
548         * lib/wchar.in.h (mbstate_t): Likewise.
549         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
550         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
551         towlower, towupper): Likewise.
552         Reported by Sam Steingold <sds@gnu.org>.
553
554 2011-02-05  Eric Blake  <eblake@redhat.com>
555
556         unsetenv: work around Haiku issues
557         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
558         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
559
560 2010-12-30  Bruce Korb  <bkorb@gnu.org>
561
562         libposix: avoid calling error() within libposix
563         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
564         is defined.
565
566 2011-02-05  Eric Blake  <eblake@redhat.com>
567
568         strerror_r-posix: port to cygwin
569         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
570         implementation.
571         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
572         * tests/test-strerror_r.c (main): Fix test.
573         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
574         issue.
575
576 2011-02-05  Bruno Haible  <bruno@clisp.org>
577
578         New module 'wmemchr'.
579         * modules/wmemchr: New file.
580         * lib/wchar.in.h (wmemchr): New declaration.
581         * lib/wmemchr.c: New file.
582         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
583         * m4/wmemchr.m4: New file.
584         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
585         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
586         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
587         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
588         * doc/posix-functions/wmemchr.texi: Mention the new module.
589
590 2011-02-04  Eric Blake  <eblake@redhat.com>
591
592         fdopendir: detect FreeBSD bug
593         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
594         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
595
596 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
597
598         stdbool: do not define HAVE_STDBOOL_H
599         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
600         AC_HEADER_STDBOOL.  All uses changed.  Do not define
601         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
602         imported from the latest Autoconf git.  It was motivated by Emacs,
603         which uses gnulib but does not need HAVE_STDBOOL_H.
604
605 2011-02-04  Bruno Haible  <bruno@clisp.org>
606
607         wcsnrtombs: Prepare for new module wwcsnrtombs.
608         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
609         * lib/wcsnrtombs.c: Include it.
610         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
611
612         wcsrtombs: Prepare for new module wwcsrtombs.
613         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
614         * lib/wcsrtombs.c: Include it.
615         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
616
617         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
618         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
619         * lib/mbsnrtowcs.c: Include it.
620         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
621
622         mbsrtowcs: Prepare for new module mbsrtowwcs.
623         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
624         * lib/mbsrtowcs.c: Include it.
625         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
626
627 2011-02-04  Bruno Haible  <bruno@clisp.org>
628
629         vasnprintf: Reduce use of malloc for small format strings.
630         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
631         (arguments): Add room for the first 7 arguments.
632         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
633         (char_directives, u8_directives, u16_directives, u32_directives): Add
634         room for the first 7 directives.
635         * lib/printf-parse.c: Include <string.h>.
636         (PRINTF_PARSE): Change memory handling code so that it uses the first
637         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
638         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
639         Reported by Pádraig Brady <P@draigbrady.com>.
640
641 2011-01-31  Eric Blake  <eblake@redhat.com>
642
643         dup2: work around Haiku bug
644         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
645         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
646         * doc/posix-functions/dup2.texi (dup2): Document the bug.
647         * tests/test-dup2.c (main): Enhance test.
648
649 2011-01-31  Simon Josefsson  <simon@josefsson.org>
650
651         doc: off_t is not available in eglibc 2.11.2 stdio.h.
652         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
653         declared by eglibc 2.11.2.
654         * lib/stdio.in.h: Likewise.
655
656 2011-01-31  Eric Blake  <eblake@redhat.com>
657
658         ignore-value: add missing test dependency
659         * tests/test-ignore-value.c: Revert previous change; stdio.h
660         provides off_t.
661         * modules/ignore-value-tests (Depends-on): Add missing dependency.
662
663 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
664
665         mktime: clarify long_int width checking
666         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
667         the top level, to make it clearer that the assumption about
668         long_int width is being checked.  See
669         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
670
671 2011-01-30  Simon Josefsson  <simon@josefsson.org>
672
673         ignore-value: Fix self-test.
674         * tests/test-ignore-value.c: Include sys/types.h for off_t.
675
676 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
677
678         TYPE_MAXIMUM: avoid theoretically undefined behavior
679         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
680         negative number, which the C Standard says has undefined behavior.
681         In practice this is not a problem, but might as well do it by the book.
682         Reported by Rich Felker and Eric Blake; see
683         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
684         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
685         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
686         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
687         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
688         * m4/stdint.m4 (gl_STDINT_H): Likewise.
689         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
690
691         mktime: #undef mktime before #defining it
692         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
693
694         mktime: systematically normalize tm_isdst comparisons
695         * lib/mktime.c (isdst_differ): New function.
696         (__mktime_internal): Use it systematically for all isdst comparisons.
697         This completes the fix for libc BZ #6723, and removes the need for
698         normalizing tm_isdst.  See
699         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
700         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
701
702         mktime: fix some integer overflow issues and sidestep the rest
703
704         This was prompted by a bug report by Benjamin Lindner for MinGW
705         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
706         His bug is due to signed integer overflow (0 - INT_MIN), and I
707         I scanned through mktime.c looking for other integer overflow
708         problems, fixing all the bugs I found.
709
710         Although the C Standard says the resulting code is still not safe
711         in the presence of integer overflow, in practice it should be good
712         enough for all real-world two's-complement implementations, except
713         for debugging environments that deliberately trap on integer
714         overflow (e.g., gcc -ftrapv).
715
716         * lib/mktime.c (WRAPV): New macro.
717         (SHR): Also check that long_int and time_t shift right in the
718         usual way, before using the fast-but-unportable method.
719         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
720         used.  The code already assumed two's complement, so there's
721         no need to test for alternatives.  All uses removed.
722         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
723         the C standard.  Problem reported by Rich Felker in
724         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
725         (twos_complement_arithmetic): Also check long_int and time_t.
726         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
727         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
728         (__mktime_internal): Avoid integer overflow with unary subtraction
729         in two instances where -1 - X is an adequate replacement for -X,
730         since the calculations are approximate.
731
732 2011-01-29  Eric Blake  <eblake@redhat.com>
733
734         mktime: avoid infinite loop
735         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
736         type; behavior is still undefined but portable to all known targets.
737         Reported by Rich Felker.
738
739 2011-01-29  Simon Josefsson  <simon@josefsson.org>
740
741         rename, unlink, same-inode: Relicense.
742         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
743         * modules/unlink (License): Likewise.
744         * modules/same-inode (License): Likewise.
745
746 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
747
748         mktime: avoid problems on NetBSD 5 / i386
749         * lib/mktime.c (long_int): New type.  This works around a problem
750         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
751         but time_t is 64 bits, and where I expect the existing code is
752         wrong in some cases.
753         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
754         (ydhms_diff): Bring back the compile-time check for wide-enough
755         year and yday.
756
757         mktime: fix misspelling in comment
758         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
759         This merges all recent glibc changes of importance.
760
761 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
762
763         move-if-change: cope with concurrent mv of identical file.
764         * build-aux/move-if-change (CMPPROG): Accept environment
765         variable as an override for `cmp'.
766         (usage): Document CMPPROG.
767         Adjust comparison to drop stdout.  Cope with failure of mv if
768         the target file exists and is identical to the source, for
769         parallel builds.
770         Report from H.J. Lu against binutils in PR binutils/12283.
771
772 2011-01-28  Bruce Korb  <bkorb@gnu.org>
773
774         * users.txt: Mention sharutils.
775
776 2011-01-28  Simon Josefsson  <simon@josefsson.org>
777
778         * users.txt: Mention OATH Toolkit.
779
780 2011-01-27  Bruno Haible  <bruno@clisp.org>
781
782         Prepare for supporting FreeBSD 10.
783         * build-aux/config.libpath: Remove handling of freebsd1*.
784
785 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
786
787         Prepare for supporting FreeBSD 10.
788         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
789         match FreeBSD 10.0.
790
791 2011-01-27  Bruno Haible  <bruno@clisp.org>
792
793         vma-iter, get-rusage-as: Add OpenBSD support.
794         * modules/vma-iter (configure.ac): Test for mquery.
795         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
796         * lib/vma-iter.c: Include <sys/mman.h>.
797         (vma_iterate): Add an implementation based on mquery().
798         * lib/resource-ext.h (get_rusage_as): Update comments.
799         * lib/get-rusage-as.c: Likewise.
800         * lib/get-rusage-data.c: Likewise.
801
802 2011-01-26  Karl Berry  <karl@gnu.org>
803
804         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
805         variables to make it easier to override the makeinfo program used.
806
807 2011-01-26  Eric Blake  <eblake@redhat.com>
808
809         fcntl: work around Haiku F_DUPFD bugs
810         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
811         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
812         cloexec bit on duplication.
813         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
814
815 2011-01-26  Bruno Haible  <bruno@clisp.org>
816
817         Enable memory leak tests on AIX.
818         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
819         * tests/test-fprintf-posix3.c (main): Likewise.
820
821 2011-01-26  Bruno Haible  <bruno@clisp.org>
822
823         Tests for module 'get-rusage-data'.
824         * modules/get-rusage-data-tests: New file.
825         * tests/test-get-rusage-data.c: New file.
826
827         New module 'get-rusage-data'.
828         * lib/resource-ext.h (get_rusage_data): New declaration.
829         * lib/get-rusage-data.c: New file.
830         * modules/get-rusage-data: New file.
831
832 2011-01-25  Bruno Haible  <bruno@clisp.org>
833
834         get-rusage-as: Allow for easier testing.
835         * lib/resource-ext.h (get_rusage_as): Add comment.
836         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
837         (main): New function for interactive testing.
838
839 2011-01-25  Bruno Haible  <bruno@clisp.org>
840
841         vma-iter: Treat Haiku like BeOS.
842         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
843         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
844
845 2011-01-25  Eric Blake  <eblake@redhat.com>
846
847         c-stack: fix regression on cygwin when libsigsegv is present
848         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
849
850 2011-01-24  Bruno Haible  <bruno@clisp.org>
851
852         vma-iter: Avoid empty intervals.
853         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
854         on an empty interval.
855
856 2011-01-24  Jim Meyering  <meyering@redhat.com>
857
858         u64: remove unnecessary #include
859         * lib/u64.h: Don't include <stddef.h>.  It was not used.
860
861 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
862
863         Allow the user to avoid the GNULIB_TEST_* macros.
864         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
865
866 2011-01-23  Bruno Haible  <bruno@clisp.org>
867
868         New module 'vma-iter'.
869         * lib/vma-iter.h: New file.
870         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
871         * modules/vma-iter: New file.
872         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
873         for get_rusage_as_via_iterator.
874         (vma_iterate_callback): New function.
875         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
876         * modules/get-rusage-as (Depends-on): Add vma-iter.
877
878 2011-01-23  Bruno Haible  <bruno@clisp.org>
879
880         uninorm: Tweak includes.
881         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
882         Reported by Jim Meyering.
883
884 2011-01-23  Bruno Haible  <bruno@clisp.org>
885
886         get-rusage-as: Improve on NetBSD.
887         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
888         /proc, like on FreeBSD.
889
890 2011-01-23  Jim Meyering  <meyering@redhat.com>
891
892         xreadlink.h: remove unnecessary #include
893         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
894
895         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
896         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
897
898 2011-01-23  Bruno Haible  <bruno@clisp.org>
899
900         get-rusage-as: Fix bug.
901         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
902         original limit when aborting the first loop.
903
904 2011-01-23  Bruno Haible  <bruno@clisp.org>
905
906         wctype: Ensure valid C syntax.
907         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
908         unconditionally, instead of gl_NEXT_HEADERS conditionally.
909
910 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
911
912         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
913         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
914         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
915         as they are needed only for configure's test case.
916         This removes two unnecessary symbols from config.h.
917
918         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
919         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
920         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
921         AC_CHECK_HEADERS_ONCE on a header that we also invoke
922         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
923         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
924         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
925         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
926         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
927         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
928         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
929         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
930         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
931         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
932         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
933         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
934         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
935         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
936
937 2011-01-21  Eric Blake  <eblake@redhat.com>
938
939         maintainer-makefile: work with older git for submodule check
940         * top/maint.mk (public-submodule-commit): Rewrite to avoid
941         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
942         Reported by Matthias Bolte.
943
944         bootstrap: minor portability fixes
945         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
946         (usage): Omit leading capital and trailing . on help phrases, per
947         GNU Coding Standards.
948         (check_versions, top level): Prefix messages with script name.
949
950 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
951
952         bootstrap: support --no-git option
953         * build-aux/bootstrap: Add --no-git option, to be used when
954         --gnulib-srcdir points to the exact desired checkout.
955
956 2011-01-21  Eric Blake  <eblake@redhat.com>
957
958         strerror_r-posix: work with glibc 2.13
959         * lib/strerror_r.c (strerror_r): Fix return type.
960
961 2011-01-21  Pádraig Brady  <P@draigBrady.com>
962             Bruno Haible  <bruno@clisp.org>
963
964         uN_strstr: New unit tests.
965         * modules/unistr/u8-strstr-tests: New file.
966         * modules/unistr/u16-strstr-tests: New file.
967         * modules/unistr/u32-strstr-tests: New file.
968         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
969         * tests/unistr/test-u8-strstr.c: New file.
970         * tests/unistr/test-u16-strstr.c: New file.
971         * tests/unistr/test-u32-strstr.c: New file.
972
973 2011-01-21  Pádraig Brady  <P@draigBrady.com>
974             Bruno Haible  <bruno@clisp.org>
975
976         Make uN_strstr functions O(n) worst-case.
977         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
978         16-bit and 32-bit unit cases, use the unibyte algorithm from
979         lib/mbsstr.c.
980         * lib/unistr/u8-strstr.c: Include <string.h>.
981         (UNIT_IS_UINT8_T): New macro.
982         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
983         (U_STRLEN, U_STRNLEN): New macros.
984         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
985         (U_STRLEN, U_STRNLEN): New macros.
986         * modules/unistr/u8-strstr (Depends-on): Add strstr.
987         (configure.ac): Update required libunistring version.
988         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
989         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
990         malloca.
991         (configure.ac): Update required libunistring version.
992         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
993         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
994         malloca.
995         (configure.ac): Update required libunistring version.
996
997 2011-01-21  Pádraig Brady  <P@draigBrady.com>
998             Bruno Haible  <bruno@clisp.org>
999
1000         Prepare for faster uN_strstr functions.
1001         * lib/str-kmp.h: Support definable UNITs.
1002         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
1003         needle_len argument.
1004         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
1005         * lib/mbscasestr.c (mbscasestr): Likewise.
1006
1007 2011-01-21  Pádraig Brady <P@draigBrady.com>
1008
1009         malloca-tests: make faster by unsetting MALLOC_PERTURB_
1010         * tests/test-malloca.c (main): Unset the environment variable
1011         to greatly speed up the test.
1012         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
1013         * modules/malloca-tests: Depend on unsetenv.
1014
1015 2011-01-21  Pádraig Brady <P@draigBrady.com>
1016
1017         ignore-value: remove stdint dependency
1018         * lib/ignore-value.h: Remove <stdint.h>
1019         * modules/ignore-value: Remove stdint dependency.
1020
1021 2011-01-21  Jim Meyering  <meyering@redhat.com>
1022
1023         maint.mk: adjust variable name to be consistent with other gl_ vars
1024         * top/maint.mk (gl_public_submodule_commit): Rename the variable
1025         to be lower case.
1026
1027 2011-01-20  Jim Meyering  <meyering@redhat.com>
1028
1029         maint.mk: make "check" depend on public-submodule-commit by default
1030         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
1031
1032 2011-01-20  Bruno Haible  <bruno@clisp.org>
1033
1034         mbfile, mbiter: Complete change from 2008-12-21.
1035         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
1036         * m4/mbiter.m4 (gl_MBITER): Likewise.
1037
1038 2011-01-20  Jim Meyering  <meyering@redhat.com>
1039
1040         init.sh: insert space between each function name and "()"
1041         * tests/init.sh: Make it a little easier to see that a function's
1042         name is "warn_", and not "warn" when looking at the first part of
1043         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
1044
1045 2011-01-20  Jim Meyering  <meyering@redhat.com>
1046
1047         mountlist: clean up code formatting
1048         * lib/mountlist.c (read_file_system_list): Split a long line,
1049         correct bracing style, use NULL in place of "(struct statfs *)0",
1050         don't parenthesize return value, add spaces around "=" and after
1051         ";-in-for-stmt".
1052
1053 2011-01-14  Markus Duft <mduft@gentoo.org>
1054
1055         mountlist: add support for Interix
1056         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
1057         Apply statvfs to all entries of /dev/fs.
1058         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
1059         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
1060
1061 2011-01-20  Jim Meyering  <meyering@redhat.com>
1062
1063         maint.mk: improve the public-submodule-commit rule
1064         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
1065         to suppress printing of its commands... unless V=1.
1066         Add git submodule's --quiet option to suppress printing of e.g.,
1067         "Entering gnulib" output.
1068         "cd" into $(srcdir) before running git submodule.
1069
1070 2011-01-20  Bruno Haible  <bruno@clisp.org>
1071
1072         include_next: Fix bug introduced on 2011-01-18.
1073         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
1074         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
1075         ac_cv_header_... variable if the second argument is not 'check'.
1076         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
1077         gl_NEXT_HEADERS_INTERNAL.
1078
1079 2011-01-20  Bruno Haible  <bruno@clisp.org>
1080
1081         Allow the user to avoid the GNULIB_TEST_* macros.
1082         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
1083         Suggested by Paul Eggert.
1084
1085 2011-01-14  Jim Meyering  <meyering@redhat.com>
1086
1087         bootstrap: avoid failure when there is no .gitmodules file
1088         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
1089         has been assigned to, even when its value is the empty string.
1090         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
1091         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
1092         Reported by John W. Eaton <jwe@gnu.org>.
1093
1094 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
1095
1096         assume <ctype.h>, ..., <time.h> exist
1097         For years gnulib has been assuming the existence of the headers
1098         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
1099         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
1100         them, since they don't appear to be needed.
1101         * README (Portability guidelines): Document this.
1102         * lib/flock.c: Assume <fcntl.h> exists.
1103         * lib/regex_internal.h: Assume <locale.h> exists.
1104         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
1105         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
1106         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
1107         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
1108         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
1109         * m4/regex.m4 (gl_REGEX): Likewise.
1110         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
1111         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
1112         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
1113         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
1114         * tests/test-argp.c: Likewise.
1115         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
1116
1117         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
1118         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
1119         AA_APPLE_UNIVERSAL_BUILD.  See
1120         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
1121         * NEWS: Document this.
1122
1123 2011-01-19  Eric Blake  <eblake@redhat.com>
1124
1125         c-stack: assume stack overflow if SA_SIGINFO unsupported
1126         * lib/c-stack.c (SIGACTION_WORKS): Rename...
1127         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
1128         sigaction will work.
1129         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
1130         behavior match Linux.
1131         * tests/test-c-stack.c (main): Prefer NULL for pointers.
1132
1133         stdbool-tests: accomodate Haiku
1134         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
1135
1136         binary-io: fix O_TEXT on Haiku
1137         * modules/binary-io (Depends-on): Add fcntl-h.
1138         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
1139         than blindly undefining O_TEXT.
1140         Reported by Scott McCreary.
1141
1142 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
1143
1144         include_next: do not check for standard headers like stddef.h
1145
1146         I found this problem when modifying Emacs to use gnulib.
1147         I noticed that it added HAVE_STDDEF_H to config.h, even though
1148         gnulib always assumes <stddef.h> exists as per README and this
1149         symbol is unnecessary.
1150         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
1151         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
1152         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
1153         faster for headers like stddef.h that are known to exist.
1154         (gl_CHECK_NEXT_HEADERS): Use it.
1155         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
1156         rather than gl_CHECK_NEXT_HEADERS.
1157         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
1158         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
1159
1160 2011-01-18  Eric Blake  <eblake@redhat.com>
1161
1162         ansi-c++-opt: skip C++ dependency style if C++ is unused
1163         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
1164         tests when we know C++ compilation is not desired.
1165         Reported by Scott McCreary.
1166
1167 2011-01-18  Bruno Haible  <bruno@clisp.org>
1168
1169         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
1170         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
1171         (main): Perform test also when getrlimit and setrlimit don't exist or
1172         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
1173         limiting the address space size using setrlimit, compare the address
1174         space size before and after the the test.
1175         * tests/test-dprintf-posix2.c: Likewise.
1176         * tests/test-fprintf-posix3.sh: Update skip messages.
1177         * tests/test-dprintf-posix2.sh: Likewise.
1178         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
1179         * modules/dprintf-posix-tests (Depends-on): Likewise.
1180         Reported by Bruce Korb <bkorb@gnu.org> and
1181         Gary V. Vaughan <gary@gnu.org>.
1182
1183 2011-01-18  Bruno Haible  <bruno@clisp.org>
1184
1185         get-rusage-as: Improvement for Cygwin.
1186         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
1187         areas that are merely reserved.
1188
1189 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
1190
1191         strftime: remove dependencies on multibyte modules
1192
1193         strftime depended on mbrlen, mbsinit, and wchar, but these modules
1194         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
1195         only if __osf__ is defined, and I suspect OSF doesn't need these
1196         other modules.  If my guess is wrong, we'll need to come up with a
1197         variant of strftime that doesn't need the multibyte modules.
1198
1199         I discovered this problem when attempting modify Emacs to use the
1200         strftime module.  With the previous gnulib, this caused Emacs to
1201         need 31 new files, ranging from lib/config.charset to
1202         m4/wint_t.m4.  This was overkill and I expect would be offputting
1203         to the Emacs maintainers.  After this change, only 6 new files are
1204         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
1205         stdbool.m4, and tm_gmtoff.m4.
1206
1207         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
1208         Suggested by Bruno Haible in
1209         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
1210         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
1211         and do not check for wchar.h.
1212         * modules/strftime (Files): Remove m4/mbstate_t.m4.
1213         (Depends-on): Remove mbrlen, mbsinit, wchar.
1214
1215 2011-01-18  Bruno Haible  <bruno@clisp.org>
1216
1217         Tests for module 'get-rusage-as'.
1218         * modules/get-rusage-as-tests: New file.
1219         * tests/test-get-rusage-as.c: New file.
1220
1221         New module 'get-rusage-as'.
1222         * modules/get-rusage-as: New file.
1223         * lib/resource-ext.h: New file.
1224         * lib/get-rusage-as.c: New file.
1225
1226 2011-01-17  Eric Blake  <eblake@redhat.com>
1227
1228         sigaction: relax license from LGPLv3+ to LGPLv2+
1229         * modules/sigaction (License): Relax to LGPLv2+.
1230
1231 2011-01-14  Bruno Haible  <bruno@clisp.org>
1232
1233         filemode: Make function declarations usable in C++ mode.
1234         * lib/filemode.h: Enclose function declarations in extern "C" block.
1235         Reported by John W. Eaton <jwe@gnu.org>.
1236
1237 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
1238
1239         save-cwd: no longer include "xgetcwd.h"
1240         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
1241         This avoids a compilation failure in projects that use save-cwd
1242         without also using the xgetcwd module.
1243
1244 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
1245
1246         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
1247         This is so that a program like Emacs, which needs only dtoastr,
1248         does not have to bother with distributing and compiling ftoastr
1249         and ldtoastr.
1250         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
1251         * modules/dtoastr, modules/ldtoastr: New files.
1252         * modules/ftoastr: Now works just for 'float'.
1253         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
1254         (Makefile.am): Remove ftoastr.h (not needed and no effect),
1255         dtoastr.c, ldtoastr.c.
1256
1257 2011-01-11  Jim Meyering  <meyering@redhat.com>
1258
1259         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
1260         There is no need to work around the lack of the fchdir function,
1261         since gnulib can now provide a replacement when required.
1262         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
1263         * modules/save-cwd (Depends-on): Add fchdir.
1264
1265 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
1266
1267         openat, save-cwd: avoid xmalloc
1268
1269         This removes a direct (but undocumented) dependency of openat on
1270         xalloc, along with an indirect dependency via save-cwd.  It also
1271         removes a dependency of save-cwd on xgetcwd, and thereby
1272         indirectly on xalloc.  This change causes the openat substitute
1273         to fall back on save_cwd when memory is tight, and for save_cwd to
1274         fail instead of dying when memory is tight, but that's good enough.
1275         Problem and initial idea for fix reported by Bastien Roucaries in
1276         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
1277
1278         * lib/openat-proc.c: Include stdlib.h (for malloc), not
1279         xalloc.h (for xmalloc).
1280         (openat_proc_name): Use malloc, not xmalloc.
1281         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
1282         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
1283
1284         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
1285         This avoids heap allocation for file names whose lengths are in
1286         the range 512..1023, with the upper bound increasing to at most
1287         4031 depending on the platform's PATH_MAX.  (We do not want
1288         pathmax.h here as it might supply a non-constant PATH_MAX.)
1289         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
1290         Perhaps they should be moved to malloca.h?
1291         (OPENAT_BUFFER_SIZE): Use them.
1292
1293 2011-01-10  Bruno Haible  <bruno@clisp.org>
1294
1295         doc: Update users.txt.
1296         * users.txt: Add recutils.
1297
1298 2011-01-09  Karl Berry  <karl@gnu.org>
1299
1300         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
1301
1302         * doc/configmake.texi: New file.
1303         * doc/gnulib.texi: Include it.
1304         * modules/configmake: Move documentation from here.
1305
1306 2011-01-09  Bruno Haible  <bruno@clisp.org>
1307
1308         Update to Unicode 6.0.0.
1309         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
1310         (get_lbp): Update for Unicode 6.0.0.
1311         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
1312         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
1313         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
1314         U+11001, U+11038..U+11046. Remove U+06DE.
1315         (uc_width): Fix bounds of planes.
1316         * tests/uniwidth/test-uc_width2.sh: Same updates as in
1317         lib/uniwidth/width.c.
1318         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
1319         trailing whitespace removed.
1320         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
1321         without comments, but with the original copyright notice.
1322         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
1323         * lib/unicase/ignorable.h: Likewise.
1324         * lib/unicase/tocasefold.h: Likewise.
1325         * lib/unicase/tolower.h: Likewise.
1326         * lib/unicase/totitle.h: Likewise.
1327         * lib/unicase/toupper.h: Likewise.
1328         * lib/unictype/bidi_of.h: Likewise.
1329         * lib/unictype/blocks.h: Likewise.
1330         * lib/unictype/categ_C.h: Likewise.
1331         * lib/unictype/categ_Cn.h: Likewise.
1332         * lib/unictype/categ_L.h: Likewise.
1333         * lib/unictype/categ_Ll.h: Likewise.
1334         * lib/unictype/categ_Lm.h: Likewise.
1335         * lib/unictype/categ_Lo.h: Likewise.
1336         * lib/unictype/categ_Lu.h: Likewise.
1337         * lib/unictype/categ_M.h: Likewise.
1338         * lib/unictype/categ_Mc.h: Likewise.
1339         * lib/unictype/categ_Me.h: Likewise.
1340         * lib/unictype/categ_Mn.h: Likewise.
1341         * lib/unictype/categ_N.h: Likewise.
1342         * lib/unictype/categ_Nd.h: Likewise.
1343         * lib/unictype/categ_No.h: Likewise.
1344         * lib/unictype/categ_P.h: Likewise.
1345         * lib/unictype/categ_Po.h: Likewise.
1346         * lib/unictype/categ_S.h: Likewise.
1347         * lib/unictype/categ_Sc.h: Likewise.
1348         * lib/unictype/categ_Sk.h: Likewise.
1349         * lib/unictype/categ_Sm.h: Likewise.
1350         * lib/unictype/categ_So.h: Likewise.
1351         * lib/unictype/categ_of.h: Likewise.
1352         * lib/unictype/combining.h: Likewise.
1353         * lib/unictype/ctype_alnum.h: Likewise.
1354         * lib/unictype/ctype_alpha.h: Likewise.
1355         * lib/unictype/ctype_graph.h: Likewise.
1356         * lib/unictype/ctype_lower.h: Likewise.
1357         * lib/unictype/ctype_print.h: Likewise.
1358         * lib/unictype/ctype_punct.h: Likewise.
1359         * lib/unictype/ctype_upper.h: Likewise.
1360         * lib/unictype/decdigit.h: Likewise.
1361         * lib/unictype/digit.h: Likewise.
1362         * lib/unictype/numeric.h: Likewise.
1363         * lib/unictype/pr_alphabetic.h: Likewise.
1364         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
1365         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
1366         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
1367         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
1368         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
1369         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
1370         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
1371         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
1372         * lib/unictype/pr_case_ignorable.h: Likewise.
1373         * lib/unictype/pr_cased.h: Likewise.
1374         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
1375         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
1376         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
1377         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
1378         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
1379         * lib/unictype/pr_combining.h: Likewise.
1380         * lib/unictype/pr_composite.h: Likewise.
1381         * lib/unictype/pr_currency_symbol.h: Likewise.
1382         * lib/unictype/pr_decimal_digit.h: Likewise.
1383         * lib/unictype/pr_deprecated.h: Likewise.
1384         * lib/unictype/pr_format_control.h: Likewise.
1385         * lib/unictype/pr_grapheme_base.h: Likewise.
1386         * lib/unictype/pr_grapheme_extend.h: Likewise.
1387         * lib/unictype/pr_grapheme_link.h: Likewise.
1388         * lib/unictype/pr_id_continue.h: Likewise.
1389         * lib/unictype/pr_id_start.h: Likewise.
1390         * lib/unictype/pr_ideographic.h: Likewise.
1391         * lib/unictype/pr_lowercase.h: Likewise.
1392         * lib/unictype/pr_math.h: Likewise.
1393         * lib/unictype/pr_numeric.h: Likewise.
1394         * lib/unictype/pr_other_alphabetic.h: Likewise.
1395         * lib/unictype/pr_other_id_continue.h: Likewise.
1396         * lib/unictype/pr_other_math.h: Likewise.
1397         * lib/unictype/pr_punctuation.h: Likewise.
1398         * lib/unictype/pr_sentence_terminal.h: Likewise.
1399         * lib/unictype/pr_terminal_punctuation.h: Likewise.
1400         * lib/unictype/pr_unassigned_code_value.h: Likewise.
1401         * lib/unictype/pr_unified_ideograph.h: Likewise.
1402         * lib/unictype/pr_uppercase.h: Likewise.
1403         * lib/unictype/pr_xid_continue.h: Likewise.
1404         * lib/unictype/pr_xid_start.h: Likewise.
1405         * lib/unictype/scripts.h: Likewise.
1406         * lib/unictype/scripts_byname.gperf: Likewise.
1407         * lib/unictype/sy_java_ident.h: Likewise.
1408         * lib/unigbrk/gbrkprop.h: Likewise.
1409         * lib/unilbrk/lbrkprop1.h: Likewise.
1410         * lib/unilbrk/lbrkprop2.h: Likewise.
1411         * lib/uninorm/decomposition-table2.h: Likewise.
1412         * lib/uniwbrk/wbrkprop.h: Likewise.
1413         * tests/unicase/test-cased.c: Likewise.
1414         * tests/unicase/test-ignorable.c: Likewise.
1415         * tests/unicase/test-uc_tolower.c: Likewise.
1416         * tests/unicase/test-uc_totitle.c: Likewise.
1417         * tests/unicase/test-uc_toupper.c: Likewise.
1418         * tests/unictype/test-categ_C.c: Likewise.
1419         * tests/unictype/test-categ_Cn.c: Likewise.
1420         * tests/unictype/test-categ_L.c: Likewise.
1421         * tests/unictype/test-categ_Ll.c: Likewise.
1422         * tests/unictype/test-categ_Lm.c: Likewise.
1423         * tests/unictype/test-categ_Lo.c: Likewise.
1424         * tests/unictype/test-categ_Lu.c: Likewise.
1425         * tests/unictype/test-categ_M.c: Likewise.
1426         * tests/unictype/test-categ_Mc.c: Likewise.
1427         * tests/unictype/test-categ_Me.c: Likewise.
1428         * tests/unictype/test-categ_Mn.c: Likewise.
1429         * tests/unictype/test-categ_N.c: Likewise.
1430         * tests/unictype/test-categ_Nd.c: Likewise.
1431         * tests/unictype/test-categ_No.c: Likewise.
1432         * tests/unictype/test-categ_P.c: Likewise.
1433         * tests/unictype/test-categ_Po.c: Likewise.
1434         * tests/unictype/test-categ_S.c: Likewise.
1435         * tests/unictype/test-categ_Sc.c: Likewise.
1436         * tests/unictype/test-categ_Sk.c: Likewise.
1437         * tests/unictype/test-categ_Sm.c: Likewise.
1438         * tests/unictype/test-categ_So.c: Likewise.
1439         * tests/unictype/test-ctype_alnum.c: Likewise.
1440         * tests/unictype/test-ctype_alpha.c: Likewise.
1441         * tests/unictype/test-ctype_graph.c: Likewise.
1442         * tests/unictype/test-ctype_lower.c: Likewise.
1443         * tests/unictype/test-ctype_print.c: Likewise.
1444         * tests/unictype/test-ctype_punct.c: Likewise.
1445         * tests/unictype/test-ctype_upper.c: Likewise.
1446         * tests/unictype/test-decdigit.h: Likewise.
1447         * tests/unictype/test-digit.h: Likewise.
1448         * tests/unictype/test-numeric.h: Likewise.
1449         * tests/unictype/test-pr_alphabetic.c: Likewise.
1450         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
1451         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
1452         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
1453         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
1454         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
1455         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
1456         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
1457         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
1458         * tests/unictype/test-pr_case_ignorable.c: Likewise.
1459         * tests/unictype/test-pr_cased.c: Likewise.
1460         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
1461         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
1462         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
1463         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
1464         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
1465         * tests/unictype/test-pr_combining.c: Likewise.
1466         * tests/unictype/test-pr_composite.c: Likewise.
1467         * tests/unictype/test-pr_currency_symbol.c: Likewise.
1468         * tests/unictype/test-pr_decimal_digit.c: Likewise.
1469         * tests/unictype/test-pr_deprecated.c: Likewise.
1470         * tests/unictype/test-pr_format_control.c: Likewise.
1471         * tests/unictype/test-pr_grapheme_base.c: Likewise.
1472         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
1473         * tests/unictype/test-pr_grapheme_link.c: Likewise.
1474         * tests/unictype/test-pr_id_continue.c: Likewise.
1475         * tests/unictype/test-pr_id_start.c: Likewise.
1476         * tests/unictype/test-pr_ideographic.c: Likewise.
1477         * tests/unictype/test-pr_lowercase.c: Likewise.
1478         * tests/unictype/test-pr_math.c: Likewise.
1479         * tests/unictype/test-pr_numeric.c: Likewise.
1480         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
1481         * tests/unictype/test-pr_other_id_continue.c: Likewise.
1482         * tests/unictype/test-pr_other_math.c: Likewise.
1483         * tests/unictype/test-pr_punctuation.c: Likewise.
1484         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
1485         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
1486         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
1487         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
1488         * tests/unictype/test-pr_uppercase.c: Likewise.
1489         * tests/unictype/test-pr_xid_continue.c: Likewise.
1490         * tests/unictype/test-pr_xid_start.c: Likewise.
1491         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
1492         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
1493         changes.
1494         * lib/unictype/categ_Cc.h: Likewise.
1495         * lib/unictype/categ_Cf.h: Likewise.
1496         * lib/unictype/categ_Co.h: Likewise.
1497         * lib/unictype/categ_Cs.h: Likewise.
1498         * lib/unictype/categ_Lt.h: Likewise.
1499         * lib/unictype/categ_Nl.h: Likewise.
1500         * lib/unictype/categ_Pc.h: Likewise.
1501         * lib/unictype/categ_Pd.h: Likewise.
1502         * lib/unictype/categ_Pe.h: Likewise.
1503         * lib/unictype/categ_Pf.h: Likewise.
1504         * lib/unictype/categ_Pi.h: Likewise.
1505         * lib/unictype/categ_Ps.h: Likewise.
1506         * lib/unictype/categ_Z.h: Likewise.
1507         * lib/unictype/categ_Zl.h: Likewise.
1508         * lib/unictype/categ_Zp.h: Likewise.
1509         * lib/unictype/categ_Zs.h: Likewise.
1510         * lib/unictype/ctype_blank.h: Likewise.
1511         * lib/unictype/ctype_cntrl.h: Likewise.
1512         * lib/unictype/ctype_digit.h: Likewise.
1513         * lib/unictype/ctype_space.h: Likewise.
1514         * lib/unictype/ctype_xdigit.h: Likewise.
1515         * lib/unictype/mirror.h: Likewise.
1516         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
1517         * lib/unictype/pr_bidi_block_separator.h: Likewise.
1518         * lib/unictype/pr_bidi_common_separator.h: Likewise.
1519         * lib/unictype/pr_bidi_control.h: Likewise.
1520         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
1521         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
1522         * lib/unictype/pr_bidi_european_digit.h: Likewise.
1523         * lib/unictype/pr_bidi_pdf.h: Likewise.
1524         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
1525         * lib/unictype/pr_bidi_whitespace.h: Likewise.
1526         * lib/unictype/pr_dash.h: Likewise.
1527         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
1528         * lib/unictype/pr_diacritic.h: Likewise.
1529         * lib/unictype/pr_extender.h: Likewise.
1530         * lib/unictype/pr_hex_digit.h: Likewise.
1531         * lib/unictype/pr_hyphen.h: Likewise.
1532         * lib/unictype/pr_ids_binary_operator.h: Likewise.
1533         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
1534         * lib/unictype/pr_ignorable_control.h: Likewise.
1535         * lib/unictype/pr_iso_control.h: Likewise.
1536         * lib/unictype/pr_join_control.h: Likewise.
1537         * lib/unictype/pr_left_of_pair.h: Likewise.
1538         * lib/unictype/pr_line_separator.h: Likewise.
1539         * lib/unictype/pr_logical_order_exception.h: Likewise.
1540         * lib/unictype/pr_non_break.h: Likewise.
1541         * lib/unictype/pr_not_a_character.h: Likewise.
1542         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
1543         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
1544         * lib/unictype/pr_other_id_start.h: Likewise.
1545         * lib/unictype/pr_other_lowercase.h: Likewise.
1546         * lib/unictype/pr_other_uppercase.h: Likewise.
1547         * lib/unictype/pr_paired_punctuation.h: Likewise.
1548         * lib/unictype/pr_paragraph_separator.h: Likewise.
1549         * lib/unictype/pr_pattern_syntax.h: Likewise.
1550         * lib/unictype/pr_pattern_white_space.h: Likewise.
1551         * lib/unictype/pr_private_use.h: Likewise.
1552         * lib/unictype/pr_quotation_mark.h: Likewise.
1553         * lib/unictype/pr_radical.h: Likewise.
1554         * lib/unictype/pr_soft_dotted.h: Likewise.
1555         * lib/unictype/pr_space.h: Likewise.
1556         * lib/unictype/pr_titlecase.h: Likewise.
1557         * lib/unictype/pr_variation_selector.h: Likewise.
1558         * lib/unictype/pr_white_space.h: Likewise.
1559         * lib/unictype/pr_zero_width.h: Likewise.
1560         * lib/unictype/sy_c_ident.h: Likewise.
1561         * lib/unictype/sy_c_whitespace.h: Likewise.
1562         * lib/unictype/sy_java_whitespace.h: Likewise.
1563         * lib/uninorm/composition-table.gperf: Likewise.
1564         * lib/uninorm/decomposition-table1.h: Likewise.
1565         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
1566         LB8.
1567         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
1568         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
1569         * modules/unictype/*: Bump version number of expected libunistring
1570         version.
1571
1572 2011-01-09  Bruno Haible  <bruno@clisp.org>
1573
1574         Update to Unicode 5.2.0.
1575         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
1576         trailing whitespace removed.
1577
1578 2011-01-09  Bruno Haible  <bruno@clisp.org>
1579
1580         New Unicode character properties, from Unicode 5.2.0.
1581         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
1582         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
1583         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
1584         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
1585         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
1586         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
1587         uc_is_property_cased, uc_is_property_case_ignorable,
1588         uc_is_property_changes_when_lowercased,
1589         uc_is_property_changes_when_uppercased,
1590         uc_is_property_changes_when_titlecased,
1591         uc_is_property_changes_when_casefolded,
1592         uc_is_property_changes_when_casemapped): New declarations.
1593         * lib/unictype/pr_byname.gperf: Add the new properties.
1594         * modules/unictype/property-byname (Depends-on): Depend on the new
1595         properties modules.
1596         * modules/unictype/property-all (Depends-on): Likewise.
1597         * MODULES.html.sh (Unicode string functions): Add
1598         unictype/property-case-ignorable, unictype/property-cased,
1599         unictype/property-changes-when-casefolded,
1600         unictype/property-changes-when-casemapped,
1601         unictype/property-changes-when-lowercased,
1602         unictype/property-changes-when-titlecased,
1603         unictype/property-changes-when-uppercased.
1604
1605         New module 'unictype/property-changes-when-casemapped'.
1606         * modules/unictype/property-changes-when-casemapped: New file.
1607         * lib/unictype/pr_changes_when_casemapped.c: New file.
1608         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
1609         generated by gen-uni-tables.
1610         * modules/unictype/property-changes-when-casemapped-tests: New file.
1611         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
1612         automatically generated by gen-uni-tables.
1613
1614         New module 'unictype/property-changes-when-casefolded'.
1615         * modules/unictype/property-changes-when-casefolded: New file.
1616         * lib/unictype/pr_changes_when_casefolded.c: New file.
1617         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
1618         generated by gen-uni-tables.
1619         * modules/unictype/property-changes-when-casefolded-tests: New file.
1620         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
1621         automatically generated by gen-uni-tables.
1622
1623         New module 'unictype/property-changes-when-titlecased'.
1624         * modules/unictype/property-changes-when-titlecased: New file.
1625         * lib/unictype/pr_changes_when_titlecased.c: New file.
1626         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
1627         generated by gen-uni-tables.
1628         * modules/unictype/property-changes-when-titlecased-tests: New file.
1629         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
1630         automatically generated by gen-uni-tables.
1631
1632         New module 'unictype/property-changes-when-uppercased'.
1633         * modules/unictype/property-changes-when-uppercased: New file.
1634         * lib/unictype/pr_changes_when_uppercased.c: New file.
1635         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
1636         generated by gen-uni-tables.
1637         * modules/unictype/property-changes-when-uppercased-tests: New file.
1638         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
1639         automatically generated by gen-uni-tables.
1640
1641         New module 'unictype/property-changes-when-lowercased'.
1642         * modules/unictype/property-changes-when-lowercased: New file.
1643         * lib/unictype/pr_changes_when_lowercased.c: New file.
1644         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
1645         generated by gen-uni-tables.
1646         * modules/unictype/property-changes-when-lowercased-tests: New file.
1647         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
1648         automatically generated by gen-uni-tables.
1649
1650         New module 'unictype/property-case-ignorable'.
1651         * modules/unictype/property-case-ignorable: New file.
1652         * lib/unictype/pr_case_ignorable.c: New file.
1653         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
1654         by gen-uni-tables.
1655         * modules/unictype/property-case-ignorable-tests: New file.
1656         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
1657         generated by gen-uni-tables.
1658
1659         New module 'unictype/property-cased'.
1660         * modules/unictype/property-cased: New file.
1661         * lib/unictype/pr_cased.c: New file.
1662         * lib/unictype/pr_cased.h: New file, automatically generated by
1663         gen-uni-tables.
1664         * modules/unictype/property-cased-tests: New file.
1665         * tests/unictype/test-pr_cased.c: New file, automatically generated by
1666         gen-uni-tables.
1667
1668 2011-01-09  Bruno Haible  <bruno@clisp.org>
1669
1670         Update to Unicode 5.2.0.
1671         * lib/gen-uni-tables.c (output_predicate, output_category,
1672         output_combclass, output_bidi_category, output_decimal_digit_test,
1673         output_decimal_digit, output_digit_test, output_digit,
1674         output_numeric_test, output_numeric, output_mirror, output_scripts,
1675         output_scripts_byname, output_blocks, output_ident_category): Fix
1676         comment header.
1677         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
1678         get_wbp.
1679         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
1680         items.
1681         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
1682         Changes_When_Lowercased, Changes_When_Uppercased,
1683         Changes_When_Titlecased, Changes_When_Casefolded,
1684         Changes_When_Casemapped.
1685         (is_property_alphabetic, is_property_default_ignorable_code_point):
1686         Update for Unicode 5.2.0.
1687         (is_property_cased, is_property_case_ignorable,
1688         is_property_changes_when_lowercased,
1689         is_property_changes_when_uppercased,
1690         is_property_changes_when_titlecased,
1691         is_property_changes_when_casefolded,
1692         is_property_changes_when_casemapped): New functions.
1693         (output_properties): Output also the properties cased, case_ignorable,
1694         changes_when_lowercased, changes_when_uppercased,
1695         changes_when_titlecased, changes_when_casefolded,
1696         changes_when_casemapped.
1697         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
1698         Unicode TR#11 revision 17 -> 19.
1699         (LBP_CP): New enumeration value.
1700         (LBP_*): Adjust values accordingly.
1701         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
1702         TR#14 revision 22 -> 24.
1703         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
1704         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
1705         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
1706         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
1707         is_WBP_MIDLETTER.
1708         (output_composition_tables): Allow for 24 bits instead of 16 bits in
1709         the code1 and code2 of each composition rule.
1710         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
1711         * lib/unicase/ignorable.h: Likewise.
1712         * lib/unicase/tocasefold.h: Likewise.
1713         * lib/unicase/tolower.h: Likewise.
1714         * lib/unicase/totitle.h: Likewise.
1715         * lib/unicase/toupper.h: Likewise.
1716         * lib/unictype/bidi_of.h: Likewise.
1717         * lib/unictype/blocks.h: Likewise.
1718         * lib/unictype/categ_C.h: Likewise.
1719         * lib/unictype/categ_Cf.h: Likewise.
1720         * lib/unictype/categ_Cn.h: Likewise.
1721         * lib/unictype/categ_L.h: Likewise.
1722         * lib/unictype/categ_Ll.h: Likewise.
1723         * lib/unictype/categ_Lm.h: Likewise.
1724         * lib/unictype/categ_Lo.h: Likewise.
1725         * lib/unictype/categ_Lu.h: Likewise.
1726         * lib/unictype/categ_M.h: Likewise.
1727         * lib/unictype/categ_Mc.h: Likewise.
1728         * lib/unictype/categ_Mn.h: Likewise.
1729         * lib/unictype/categ_N.h: Likewise.
1730         * lib/unictype/categ_Nd.h: Likewise.
1731         * lib/unictype/categ_Nl.h: Likewise.
1732         * lib/unictype/categ_No.h: Likewise.
1733         * lib/unictype/categ_P.h: Likewise.
1734         * lib/unictype/categ_Pd.h: Likewise.
1735         * lib/unictype/categ_Po.h: Likewise.
1736         * lib/unictype/categ_S.h: Likewise.
1737         * lib/unictype/categ_Sc.h: Likewise.
1738         * lib/unictype/categ_So.h: Likewise.
1739         * lib/unictype/categ_of.h: Likewise.
1740         * lib/unictype/combining.h: Likewise.
1741         * lib/unictype/ctype_alnum.h: Likewise.
1742         * lib/unictype/ctype_alpha.h: Likewise.
1743         * lib/unictype/ctype_graph.h: Likewise.
1744         * lib/unictype/ctype_lower.h: Likewise.
1745         * lib/unictype/ctype_print.h: Likewise.
1746         * lib/unictype/ctype_punct.h: Likewise.
1747         * lib/unictype/ctype_upper.h: Likewise.
1748         * lib/unictype/decdigit.h: Likewise.
1749         * lib/unictype/digit.h: Likewise.
1750         * lib/unictype/numeric.h: Likewise.
1751         * lib/unictype/pr_alphabetic.h: Likewise.
1752         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
1753         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
1754         * lib/unictype/pr_bidi_european_digit.h: Likewise.
1755         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
1756         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
1757         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
1758         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
1759         * lib/unictype/pr_combining.h: Likewise.
1760         * lib/unictype/pr_composite.h: Likewise.
1761         * lib/unictype/pr_currency_symbol.h: Likewise.
1762         * lib/unictype/pr_dash.h: Likewise.
1763         * lib/unictype/pr_decimal_digit.h: Likewise.
1764         * lib/unictype/pr_deprecated.h: Likewise.
1765         * lib/unictype/pr_diacritic.h: Likewise.
1766         * lib/unictype/pr_extender.h: Likewise.
1767         * lib/unictype/pr_grapheme_base.h: Likewise.
1768         * lib/unictype/pr_grapheme_extend.h: Likewise.
1769         * lib/unictype/pr_grapheme_link.h: Likewise.
1770         * lib/unictype/pr_id_continue.h: Likewise.
1771         * lib/unictype/pr_id_start.h: Likewise.
1772         * lib/unictype/pr_ideographic.h: Likewise.
1773         * lib/unictype/pr_ignorable_control.h: Likewise.
1774         * lib/unictype/pr_logical_order_exception.h: Likewise.
1775         * lib/unictype/pr_lowercase.h: Likewise.
1776         * lib/unictype/pr_numeric.h: Likewise.
1777         * lib/unictype/pr_other_alphabetic.h: Likewise.
1778         * lib/unictype/pr_punctuation.h: Likewise.
1779         * lib/unictype/pr_sentence_terminal.h: Likewise.
1780         * lib/unictype/pr_terminal_punctuation.h: Likewise.
1781         * lib/unictype/pr_unassigned_code_value.h: Likewise.
1782         * lib/unictype/pr_unified_ideograph.h: Likewise.
1783         * lib/unictype/pr_uppercase.h: Likewise.
1784         * lib/unictype/pr_xid_continue.h: Likewise.
1785         * lib/unictype/pr_xid_start.h: Likewise.
1786         * lib/unictype/pr_zero_width.h: Likewise.
1787         * lib/unictype/scripts.h: Likewise.
1788         * lib/unictype/scripts_byname.gperf: Likewise.
1789         * lib/unictype/sy_java_ident.h: Likewise.
1790         * lib/unigbrk/gbrkprop.h: Likewise.
1791         * lib/unilbrk/lbrkprop1.h: Likewise.
1792         * lib/unilbrk/lbrkprop2.h: Likewise.
1793         * lib/unilbrk/lbrktables.h: Likewise.
1794         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
1795         LBP_CP. Implement rule LB30.
1796         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
1797         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
1798         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
1799         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
1800         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
1801         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
1802         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
1803         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
1804         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
1805         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
1806         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
1807         bits instead of 16 bits in the code1 and code2 of each composition
1808         rule.
1809         (uc_composition): Update for Unicode 5.2.0.
1810         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
1811         * lib/uninorm/decomposition-table2.h: Likewise.
1812         * lib/uniwbrk/wbrkprop.h: Likewise.
1813         * tests/unicase/test-cased.c: Likewise.
1814         * tests/unicase/test-ignorable.c: Likewise.
1815         * tests/unicase/test-uc_tolower.c: Likewise.
1816         * tests/unicase/test-uc_totitle.c: Likewise.
1817         * tests/unicase/test-uc_toupper.c: Likewise.
1818         * tests/unictype/test-categ_C.c: Likewise.
1819         * tests/unictype/test-categ_Cf.c: Likewise.
1820         * tests/unictype/test-categ_Cn.c: Likewise.
1821         * tests/unictype/test-categ_L.c: Likewise.
1822         * tests/unictype/test-categ_Ll.c: Likewise.
1823         * tests/unictype/test-categ_Lm.c: Likewise.
1824         * tests/unictype/test-categ_Lo.c: Likewise.
1825         * tests/unictype/test-categ_Lu.c: Likewise.
1826         * tests/unictype/test-categ_M.c: Likewise.
1827         * tests/unictype/test-categ_Mc.c: Likewise.
1828         * tests/unictype/test-categ_Mn.c: Likewise.
1829         * tests/unictype/test-categ_N.c: Likewise.
1830         * tests/unictype/test-categ_Nd.c: Likewise.
1831         * tests/unictype/test-categ_Nl.c: Likewise.
1832         * tests/unictype/test-categ_No.c: Likewise.
1833         * tests/unictype/test-categ_P.c: Likewise.
1834         * tests/unictype/test-categ_Pd.c: Likewise.
1835         * tests/unictype/test-categ_Po.c: Likewise.
1836         * tests/unictype/test-categ_S.c: Likewise.
1837         * tests/unictype/test-categ_Sc.c: Likewise.
1838         * tests/unictype/test-categ_So.c: Likewise.
1839         * tests/unictype/test-ctype_alnum.c: Likewise.
1840         * tests/unictype/test-ctype_alpha.c: Likewise.
1841         * tests/unictype/test-ctype_graph.c: Likewise.
1842         * tests/unictype/test-ctype_lower.c: Likewise.
1843         * tests/unictype/test-ctype_print.c: Likewise.
1844         * tests/unictype/test-ctype_punct.c: Likewise.
1845         * tests/unictype/test-ctype_upper.c: Likewise.
1846         * tests/unictype/test-decdigit.h: Likewise.
1847         * tests/unictype/test-digit.h: Likewise.
1848         * tests/unictype/test-numeric.h: Likewise.
1849         * tests/unictype/test-pr_alphabetic.c: Likewise.
1850         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
1851         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
1852         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
1853         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
1854         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
1855         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
1856         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
1857         * tests/unictype/test-pr_combining.c: Likewise.
1858         * tests/unictype/test-pr_composite.c: Likewise.
1859         * tests/unictype/test-pr_currency_symbol.c: Likewise.
1860         * tests/unictype/test-pr_dash.c: Likewise.
1861         * tests/unictype/test-pr_decimal_digit.c: Likewise.
1862         * tests/unictype/test-pr_deprecated.c: Likewise.
1863         * tests/unictype/test-pr_diacritic.c: Likewise.
1864         * tests/unictype/test-pr_extender.c: Likewise.
1865         * tests/unictype/test-pr_grapheme_base.c: Likewise.
1866         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
1867         * tests/unictype/test-pr_grapheme_link.c: Likewise.
1868         * tests/unictype/test-pr_id_continue.c: Likewise.
1869         * tests/unictype/test-pr_id_start.c: Likewise.
1870         * tests/unictype/test-pr_ideographic.c: Likewise.
1871         * tests/unictype/test-pr_ignorable_control.c: Likewise.
1872         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
1873         * tests/unictype/test-pr_lowercase.c: Likewise.
1874         * tests/unictype/test-pr_numeric.c: Likewise.
1875         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
1876         * tests/unictype/test-pr_punctuation.c: Likewise.
1877         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
1878         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
1879         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
1880         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
1881         * tests/unictype/test-pr_uppercase.c: Likewise.
1882         * tests/unictype/test-pr_xid_continue.c: Likewise.
1883         * tests/unictype/test-pr_xid_start.c: Likewise.
1884         * tests/unictype/test-pr_zero_width.c: Likewise.
1885         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
1886         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
1887         changed behaviour: line breaking is now disallowed between a letter
1888         or '=' and '('.
1889         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
1890         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
1891         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
1892         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
1893         * tests/uniwidth/test-uc_width2.sh: Same updates as in
1894         lib/uniwidth/width.c.
1895         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
1896         without comments, but with the original copyright notice.
1897         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
1898         changes.
1899         * lib/unictype/categ_Cc.h: Likewise.
1900         * lib/unictype/categ_Co.h: Likewise.
1901         * lib/unictype/categ_Cs.h: Likewise.
1902         * lib/unictype/categ_Lt.h: Likewise.
1903         * lib/unictype/categ_Me.h: Likewise.
1904         * lib/unictype/categ_Pc.h: Likewise.
1905         * lib/unictype/categ_Pe.h: Likewise.
1906         * lib/unictype/categ_Pf.h: Likewise.
1907         * lib/unictype/categ_Pi.h: Likewise.
1908         * lib/unictype/categ_Ps.h: Likewise.
1909         * lib/unictype/categ_Sk.h: Likewise.
1910         * lib/unictype/categ_Sm.h: Likewise.
1911         * lib/unictype/categ_Z.h: Likewise.
1912         * lib/unictype/categ_Zl.h: Likewise.
1913         * lib/unictype/categ_Zp.h: Likewise.
1914         * lib/unictype/categ_Zs.h: Likewise.
1915         * lib/unictype/ctype_blank.h: Likewise.
1916         * lib/unictype/ctype_cntrl.h: Likewise.
1917         * lib/unictype/ctype_digit.h: Likewise.
1918         * lib/unictype/ctype_space.h: Likewise.
1919         * lib/unictype/ctype_xdigit.h: Likewise.
1920         * lib/unictype/mirror.h: Likewise.
1921         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
1922         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
1923         * lib/unictype/pr_bidi_block_separator.h: Likewise.
1924         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
1925         * lib/unictype/pr_bidi_common_separator.h: Likewise.
1926         * lib/unictype/pr_bidi_control.h: Likewise.
1927         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
1928         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
1929         * lib/unictype/pr_bidi_pdf.h: Likewise.
1930         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
1931         * lib/unictype/pr_bidi_whitespace.h: Likewise.
1932         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
1933         * lib/unictype/pr_format_control.h: Likewise.
1934         * lib/unictype/pr_hex_digit.h: Likewise.
1935         * lib/unictype/pr_hyphen.h: Likewise.
1936         * lib/unictype/pr_ids_binary_operator.h: Likewise.
1937         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
1938         * lib/unictype/pr_iso_control.h: Likewise.
1939         * lib/unictype/pr_join_control.h: Likewise.
1940         * lib/unictype/pr_left_of_pair.h: Likewise.
1941         * lib/unictype/pr_line_separator.h: Likewise.
1942         * lib/unictype/pr_math.h: Likewise.
1943         * lib/unictype/pr_non_break.h: Likewise.
1944         * lib/unictype/pr_not_a_character.h: Likewise.
1945         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
1946         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
1947         * lib/unictype/pr_other_id_continue.h: Likewise.
1948         * lib/unictype/pr_other_id_start.h: Likewise.
1949         * lib/unictype/pr_other_lowercase.h: Likewise.
1950         * lib/unictype/pr_other_math.h: Likewise.
1951         * lib/unictype/pr_other_uppercase.h: Likewise.
1952         * lib/unictype/pr_paired_punctuation.h: Likewise.
1953         * lib/unictype/pr_paragraph_separator.h: Likewise.
1954         * lib/unictype/pr_pattern_syntax.h: Likewise.
1955         * lib/unictype/pr_pattern_white_space.h: Likewise.
1956         * lib/unictype/pr_private_use.h: Likewise.
1957         * lib/unictype/pr_quotation_mark.h: Likewise.
1958         * lib/unictype/pr_radical.h: Likewise.
1959         * lib/unictype/pr_soft_dotted.h: Likewise.
1960         * lib/unictype/pr_space.h: Likewise.
1961         * lib/unictype/pr_titlecase.h: Likewise.
1962         * lib/unictype/pr_variation_selector.h: Likewise.
1963         * lib/unictype/pr_white_space.h: Likewise.
1964         * lib/unictype/sy_c_ident.h: Likewise.
1965         * lib/unictype/sy_c_whitespace.h: Likewise.
1966         * lib/unictype/sy_java_whitespace.h: Likewise.
1967         * modules/uni*/*: Bump version number of expected libunistring version.
1968         Reported by Simon Josefsson.
1969
1970 2011-01-09  Karl Heuer  <kwzh@gnu.org>
1971
1972         useless-if-before-free: fix typo in --help and make the internal,
1973         automatic version date update process work once again.
1974         --help output contained a NUL character instead of the
1975         backslash-zero that was intended.  Also, the "must lie within
1976         the first 8 lines" line is on line 9, and hence not getting
1977         automatically updated.
1978         * build-aux/useless-if-before-free: Fix the former by adding a
1979         backslash, and the latter by condensing the three lines of what-it-does
1980         to a single line, leaving one line of slack for the future.
1981
1982 2011-01-09  Bruno Haible  <bruno@clisp.org>
1983
1984         uniwidth/width: Fix width of U+1D173..U+1D17A.
1985         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
1986         symbolic_width, output_width_property_test): New functions.
1987         (main): Invoke output_nonspacing_property, output_width_property_test.
1988         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
1989         U+1D173..U+1D17A.
1990         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
1991         1.
1992         * modules/uniwidth/*: Bump version number of expected libunistring
1993         version.
1994         * modules/unilbrk/*: Likewise.
1995
1996 2011-01-08  Bruno Haible  <bruno@clisp.org>
1997
1998         uninorm tests: Preserve copyright of Unicode data file.
1999         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
2000         Mention modifications.
2001
2002 2011-01-08  Bruno Haible  <bruno@clisp.org>
2003
2004         gen-uni-tables: Prepare for Unicode 5.2.0.
2005         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
2006         (debug_output_lbp, output_lbp): Update.
2007
2008 2011-01-08  Bruno Haible  <bruno@clisp.org>
2009
2010         unilbrk: Clarify gen-uni-tables.c code.
2011         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
2012         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
2013         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
2014
2015 2011-01-07  Bruno Haible  <bruno@clisp.org>
2016
2017         strtod: Restore errno when successfully parsing Infinity or NaN.
2018         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
2019         restore the original errno.
2020
2021 2011-01-07  Bruno Haible  <bruno@clisp.org>
2022
2023         remove test: Avoid failure on HP-UX 11.
2024         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
2025
2026 2011-01-07  Bruno Haible  <bruno@clisp.org>
2027
2028         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
2029         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
2030         error code.
2031
2032 2011-01-07  Pádraig Brady <P@draigBrady.com>
2033
2034         ignore-value: fixup comments, and add Eric Blake
2035         as an author since he rewrote the macros.
2036         * lib/ignore-value.h (ignore_value):  State that
2037         we now support aggregates.  Also specify exactly
2038         when the GCC warn_unused_result feature was added.
2039
2040 2011-01-06  Eric Blake  <eblake@redhat.com>
2041
2042         ignore-value: support aggregate types
2043         * lib/ignore-value.h (ignore_value): Provide separate gcc
2044         definition.
2045         * modules/ignore-value-tests: New test module.
2046         * tests/test-ignore-value.c: New test.
2047
2048         maint.mk: improve sc_prohibit_strcmp regex
2049         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
2050         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
2051         definition of STRNEQ.
2052
2053         signal: work around Haiku issue with SIGBUS
2054         * lib/siglist.h: Add comment.
2055         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
2056         strsignal's favoring of SIGSEGV.
2057         * tests/test-signal.c (main): Avoid test failure.
2058         * doc/posix-headers/signal.texi (signal.h): Document the issue.
2059         Reported by Scott McCreary.
2060
2061         maint.mk: add pre-release check to ensure submodule commits are public
2062         * top/maint.mk (public-submodule-commit): New rule.
2063         (submodule-checks): New variable.
2064         (alpha beta stable): Depend on the variable.
2065
2066 2011-01-05  Pádraig Brady <P@draigBrady.com>
2067         and Jim Meyering  <meyering@redhat.com>
2068
2069         ignore-value: make ignore_value more generic; deprecate ignore_ptr
2070         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
2071         (ATTRIBUTE_DEPRECATED): Define.
2072         (_ignore_case): New function.
2073         (ignore_value): New macro, to replace the old function.
2074         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
2075         * modules/ignore-value (Depends-on): Add stdint.
2076
2077 2011-01-04  Eric Blake  <eblake@redhat.com>
2078
2079         doc: regenerate INSTALL
2080         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
2081         @firstparagraphindent support, now that autoconf dropped it.
2082         (INSTALL_PRELUDE): Reinstate old macro.
2083         * doc/install.texi: Resync from autoconf.
2084         * doc/INSTALL: Reflect recent autoconf update.
2085         * doc/INSTALL.ISO: Likewise.
2086         * doc/INSTALL.UTF-8: Likewise.
2087         Reported by Karl Berry.
2088
2089 2011-01-04  Bruce Korb  <address@hidden>
2090
2091         git-version-gen: avoid a sub-shell
2092         * build-aux/git-version-gen: Redirect stderr in `...` via
2093         "exec 2>...", rather than via an added sub-shell.
2094
2095 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
2096
2097         git-version-gen: use (...) rather than sh -c '...'
2098         * build-aux/git-version-gen: Rather than hard-coding a shell's name
2099         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
2100
2101 2011-01-03  Jim Meyering  <meyering@redhat.com>
2102
2103         git-version-gen: convert leading TABs to spaces
2104         * build-aux/git-version-gen: Expand leading TABs.
2105
2106         git-version-gen: handle failed "git rev-list"
2107         * build-aux/git-version-gen: Rather than leaking a "fatal" error
2108         from git and proceeding as if it had succeeded but printed no SHA1
2109         checksums, suppress the diagnostic and handle the failure.
2110         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
2111
2112         git-version-gen: include command name in one more diagnostic
2113         * build-aux/git-version-gen: When the required .tarball-version file
2114         was missing or unreadable, you might see the diagnostic from "cat",
2115         but no trace of the name of the invoking script.  Now, you still see
2116         the diagnostic from cat, but also get one from "git-version-gen: ".
2117         Inspired by a patch from Bruce Korb.
2118
2119         update-copyright: adjust test to match changed code
2120         * tests/test-update-copyright.sh: Change test's expected output
2121         to match new actual output.
2122
2123 2011-01-02  Bruno Haible  <bruno@clisp.org>
2124
2125         getlogin_r: Avoid test failure on HP-UX 11.
2126         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
2127         ERANGE when the second argument is zero.
2128         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
2129         portability problem.
2130
2131 2011-01-02  Bruce Korb  <bkorb@gnu.org>
2132
2133         * build-aux/update-copyright: doc Simon's changes
2134
2135 2011-01-02  Simon Josefsson  <simon@josefsson.org>
2136
2137         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
2138         environment variable.
2139
2140 2011-01-02  Bruno Haible  <bruno@clisp.org>
2141
2142         unigbrk: Avoid gcc warnings.
2143         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
2144         unused variable.
2145         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
2146         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
2147         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
2148         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
2149         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
2150         Change type of first argument to 'const char *'.
2151         (main): Remove unused variable.
2152         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
2153         type of first argument to 'const char *'.
2154         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
2155         Likewise.
2156         (main): Change type of variable 's'.
2157         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
2158         to 'int'.
2159
2160 2011-01-02  Bruno Haible  <bruno@clisp.org>
2161
2162         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
2163         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
2164         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
2165         bug.
2166         * lib/pwrite.c: Undo 2010-12-31 patch.
2167         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
2168
2169 2011-01-02  Bruno Haible  <bruno@clisp.org>
2170
2171         pread: Fix test whether it works.
2172         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
2173
2174 2011-01-02  Bruno Haible  <bruno@clisp.org>
2175
2176         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
2177         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
2178         ends in "6". Don't require a specific month name. Try also the locale
2179         names found on HP-UX 11 and Solaris 7.
2180
2181 2011-01-02  Bruno Haible  <bruno@clisp.org>
2182
2183         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
2184         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
2185         C linkage.
2186         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
2187
2188 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
2189
2190         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
2191         for consistency, since the "cluster" term is not used elsewhere.
2192         * lib/unigbrk.in.h: Update name.
2193         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
2194         * lib/unigbrk/u16-grapheme-next.c: Update name.
2195         * lib/unigbrk/u16-grapheme-prev.c: Update name.
2196         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
2197         * lib/unigbrk/u32-grapheme-next.c: Update name.
2198         * lib/unigbrk/u32-grapheme-prev.c: Update name.
2199         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
2200         * lib/unigbrk/u8-grapheme-next.c: Update name.
2201         * lib/unigbrk/u8-grapheme-prev.c: Update name.
2202         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
2203         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
2204         Suggested by Bruno Haible.
2205
2206 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
2207
2208         Remove module 'u8-grapheme-len' as too redundant with
2209         'u8-grapheme-next'.
2210         * modules/unigbrk/u8-grapheme-len: Delete file.
2211         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
2212         * lib/unigbrk.in.h: Remove prototype for deleted function.
2213         * lib/unigbrk/u8-grapheme-len.c: Delete file.
2214         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
2215
2216         Remove module 'u16-grapheme-len' as too redundant with
2217         'u16-grapheme-next'.
2218         * modules/unigbrk/u16-grapheme-len: Delete file.
2219         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
2220         * lib/unigbrk.in.h: Remove prototype for deleted function.
2221         * lib/unigbrk/u16-grapheme-len.c: Delete file.
2222         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
2223
2224         Remove module 'u32-grapheme-len' as too redundant with
2225         'u32-grapheme-next'.
2226         * modules/unigbrk/u32-grapheme-len: Delete file.
2227         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
2228         * lib/unigbrk.in.h: Remove prototype for deleted function.
2229         * lib/unigbrk/u32-grapheme-len.c: Delete file.
2230         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
2231
2232         Suggested by Bruno Haible.
2233
2234 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
2235
2236         * unigbrk.in.h: Fix typo: "ben" => "been".
2237         Reported by Bruno Haible.
2238
2239 2011-01-01  Jim Meyering  <meyering@redhat.com>
2240
2241         maint: update almost all copyright ranges to include 2011
2242         Run the new "make update-copyright" rule.
2243
2244 2011-01-01  Jim Meyering  <meyering@redhat.com>
2245
2246         maint: update-copyright: exempt doc/INSTALL*
2247         * Makefile (update-copyright): Also exclude doc/INSTALL*,
2248         since they are generated.  Suggested by Bruno Haible.
2249
2250 2011-01-01  Jim Meyering  <meyering@redhat.com>
2251
2252         maint: refine the update-copyright rule
2253         * Makefile (update-copyright): Also exclude any file that includes
2254         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
2255         code that merely generates the comment.
2256
2257 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
2258
2259         New module 'u8-grapheme-len'.
2260         * modules/unigbrk/u8-grapheme-len: New file.
2261         * modules/unigbrk/u8-grapheme-len-tests: New file.
2262         * lib/unigbrk.in.h: Add prototype for new function.
2263         * lib/unigbrk/u8-grapheme-len.c: New file.
2264         * tests/unigbrk/test-u8-grapheme-len.c: New file.
2265
2266         New module 'u16-grapheme-len'.
2267         * modules/unigbrk/u16-grapheme-len: New file.
2268         * modules/unigbrk/u16-grapheme-len-tests: New file.
2269         * lib/unigbrk.in.h: Add prototype for new function.
2270         * lib/unigbrk/u16-grapheme-len.c: New file.
2271         * tests/unigbrk/test-u16-grapheme-len.c: New file.
2272
2273         New module 'u32-grapheme-len'.
2274         * modules/unigbrk/u32-grapheme-len: New file.
2275         * modules/unigbrk/u32-grapheme-len-tests: New file.
2276         * lib/unigbrk.in.h: Add prototype for new function.
2277         * lib/unigbrk/u32-grapheme-len.c: New file.
2278         * tests/unigbrk/test-u32-grapheme-len.c: New file.
2279
2280         New module 'u8-grapheme-next'.
2281         * modules/unigbrk/u8-grapheme-next: New file.
2282         * modules/unigbrk/u8-grapheme-next-tests: New file.
2283         * lib/unigbrk.in.h: Add prototype for new function.
2284         * lib/unigbrk/u8-grapheme-next.c: New file.
2285         * tests/unigbrk/test-u8-grapheme-next.c: New file.
2286
2287         New module 'u16-grapheme-next'.
2288         * modules/unigbrk/u16-grapheme-next: New file.
2289         * modules/unigbrk/u16-grapheme-next-tests: New file.
2290         * lib/unigbrk.in.h: Add prototype for new function.
2291         * lib/unigbrk/u16-grapheme-next.c: New file.
2292         * tests/unigbrk/test-u16-grapheme-next.c: New file.
2293
2294         New module 'u32-grapheme-next'.
2295         * modules/unigbrk/u32-grapheme-next: New file.
2296         * modules/unigbrk/u32-grapheme-next-tests: New file.
2297         * lib/unigbrk.in.h: Add prototype for new function.
2298         * lib/unigbrk/u32-grapheme-next.c: New file.
2299         * tests/unigbrk/test-u32-grapheme-next.c: New file.
2300
2301         New module 'u8-grapheme-prev'.
2302         * modules/unigbrk/u8-grapheme-prev: New file.
2303         * modules/unigbrk/u8-grapheme-prev-tests: New file.
2304         * lib/unigbrk.in.h: Add prototype for new function.
2305         * lib/unigbrk/u8-grapheme-prev.c: New file.
2306         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
2307
2308         New module 'u16-grapheme-prev'.
2309         * modules/unigbrk/u16-grapheme-prev: New file.
2310         * modules/unigbrk/u16-grapheme-prev-tests: New file.
2311         * lib/unigbrk.in.h: Add prototype for new function.
2312         * lib/unigbrk/u16-grapheme-prev.c: New file.
2313         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
2314
2315         New module 'u32-grapheme-prev'.
2316         * modules/unigbrk/u32-grapheme-prev: New file.
2317         * modules/unigbrk/u32-grapheme-prev-tests: New file.
2318         * lib/unigbrk.in.h: Add prototype for new function.
2319         * lib/unigbrk/u32-grapheme-prev.c: New file.
2320         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
2321
2322         New module 'u8-grapheme-breaks'.
2323         * modules/unigbrk/u8-grapheme-breaks: New file.
2324         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
2325         * lib/unigbrk.in.h: Add prototype for new function.
2326         * lib/unigbrk/u8-grapheme-breaks.c: New file.
2327         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
2328
2329         New module 'u16-grapheme-breaks'.
2330         * modules/unigbrk/u16-grapheme-breaks: New file.
2331         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
2332         * lib/unigbrk.in.h: Add prototype for new function.
2333         * lib/unigbrk/u16-grapheme-breaks.c: New file.
2334         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
2335
2336         New module 'u32-grapheme-breaks'.
2337         * modules/unigbrk/u32-grapheme-breaks: New file.
2338         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
2339         * lib/unigbrk.in.h: Add prototype for new function.
2340         * lib/unigbrk/u32-grapheme-breaks.c: New file.
2341         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
2342
2343         New module 'ulc-grapheme-breaks'.
2344         * modules/unigbrk/ulc-grapheme-breaks: New file.
2345         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
2346         * m4/locale-ar.m4: New file.
2347         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
2348         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
2349         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
2350
2351 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
2352
2353         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
2354         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
2355         modified how this file was generated before I initially submitted
2356         the module, but failed to regenerate it.  This meant that several
2357         of the level2 entries were wrong.
2358         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
2359         Remove the division-by-2 that is folded into the table now that
2360         gbrkprop.h has been regenerated properly.  Now -1 entries are
2361         handled correctly.
2362
2363         New module 'unigbrk/uc-gbrk-prop-tests'.
2364         * modules/unigbrk/uc-gbrk-prop-tests: New file.
2365         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
2366         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
2367         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
2368
2369 2011-01-01  Bruno Haible  <bruno@clisp.org>
2370
2371         Avoid use of hexadecimal escapes.
2372         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
2373         instead of hexadecimal escapes.
2374
2375 2011-01-01  Jim Meyering  <meyering@redhat.com>
2376
2377         maint: new rule to update copyright year ranges
2378         * Makefile (update-copyright): New rule.
2379
2380         maint: indent with TABs in Makefile
2381         * Makefile: Expand leading sequences of spaces to TABs
2382
2383         version-etc: update the copyright year it reports
2384         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
2385
2386 2010-12-31  Bruno Haible  <bruno@clisp.org>
2387
2388         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
2389         * lib/isfinite.c (zerof, zerod, zerol): New variables.
2390         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
2391         zero.
2392
2393 2010-12-31  Bruno Haible  <bruno@clisp.org>
2394
2395         pwrite: Work around HP-UX 11.11 bug.
2396         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
2397         works and set REPLACE_PWRITE if not.
2398         * lib/pwrite.c (pwrite): Add an implementation that uses the system
2399         function.
2400         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
2401
2402 2010-12-31  Bruno Haible  <bruno@clisp.org>
2403
2404         pread: Work around HP-UX 11 bugs.
2405         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
2406         and set REPLACE_PREAD if not.
2407         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
2408
2409 2010-12-31  Eric Blake  <eblake@redhat.com>
2410
2411         nl_langinfo: fix YESEXPR on Irix 6.5
2412         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
2413         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
2414         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
2415         it.
2416
2417 2010-12-31  Bruno Haible  <bruno@clisp.org>
2418
2419         iconv: Document HP-UX 11 bug.
2420         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
2421
2422 2010-12-31  Bruno Haible  <bruno@clisp.org>
2423
2424         ldexpl: Fix link error on HP-UX 11.
2425         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
2426         LDEXPL_LIBM, using $ISNANL_LIBM.
2427
2428 2010-12-31  Eric Blake  <eblake@redhat.com>
2429
2430         ftello: avoid compilation failure with SunStudio c89
2431         * lib/ftello.c (ftello): Use lseek, not llseek.
2432
2433         tests: avoid failing coreutils tests on cygwin
2434         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
2435         (create_exe_shims_): Return 0 when skipping.
2436
2437 2010-12-31  Bruno Haible  <bruno@clisp.org>
2438
2439         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
2440         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
2441
2442 2010-12-31  Bruno Haible  <bruno@clisp.org>
2443
2444         waitpid: Fix link error in C++ mode.
2445         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
2446
2447 2010-12-31  Bruno Haible  <bruno@clisp.org>
2448
2449         isnan: Use GCC built-ins when possible.
2450         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
2451         __builtin_isnan.
2452         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
2453         (isnan): Define using GCC built-ins for GCC >= 4.0.
2454
2455 2010-12-31  Bruno Haible  <bruno@clisp.org>
2456
2457         isnand: Fix mistake.
2458         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
2459         __builtin_isnand.
2460
2461 2010-12-31  Bruno Haible  <bruno@clisp.org>
2462
2463         open: Avoid C++ error on HP-UX 11.
2464         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
2465
2466 2010-12-31  Bruno Haible  <bruno@clisp.org>
2467
2468         time_r: Add missing declarations on HP-UX 11.
2469         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
2470         instead of HAVE_LOCALTIME_R.
2471         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
2472         HAVE_LOCALTIME_R always.
2473         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
2474         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
2475         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
2476         HAVE_LOCALTIME_R.
2477         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
2478         * doc/posix-functions/localtime_r.texi: Likewise.
2479
2480 2010-12-29  Eric Blake  <eblake@redhat.com>
2481
2482         mountlist: tweak previous commit
2483         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
2484         Reported by Paul Eggert.
2485
2486         mountlist: fix local drive detection on cygwin
2487         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
2488         that works for cygwin.
2489
2490 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
2491
2492         ftoastr, snprintf: ftoastr + snprintf module
2493         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
2494         since the snprintf module now should be good enough here.
2495         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
2496         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
2497         and gl_MODULE_INDICATOR([snprintf]), but the former enables
2498         GNULIB_SNPRINTF only for the test directory, and the latter
2499         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
2500         seems to suffice by itself.
2501
2502 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
2503
2504         alloca: one step towards thread-safety
2505         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
2506         need for a static variable.  All callers changed.  This does not
2507         make the alloca replacement thread-safe, but it's one step.
2508
2509         tests: minor indenting change
2510         * tests/init.sh: Sync from coreutils housekeeping patch
2511         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
2512         to keep lines within 80 columns.
2513
2514 2010-12-28  Jim Meyering  <meyering@redhat.com>
2515
2516         regex: don't infloop on persistent failing calloc
2517         * lib/regexec.c (build_trtable): Return failure indication upon
2518         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
2519         In glibc, this was fixed for version 2.13:
2520         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
2521
2522 2010-12-28  Bruno Haible  <bruno@clisp.org>
2523             Paul Eggert <eggert@cs.ucla.edu>
2524
2525         linkat: Make implementation robust against system behaviour variations.
2526         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
2527         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
2528         way, and to -2 if it needs a generic runtime test.
2529         * lib/linkat.c (solaris_optimized_link_immediate,
2530         solaris_optimized_link_follow): New functions.
2531         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
2532         (check_same_link): Use it.
2533
2534 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
2535
2536         New module 'unigbrk/base'.
2537         * modules/unigbrk/base: New file.
2538         * lib/unigbrk.in.h: New file.
2539
2540         New module 'unigbrk/uc-gbrk-prop'.
2541         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
2542         * modules/unigbrk/uc-gbrk-prop: New file.
2543         * lib/unigbrk/gbrkprop.h: New file.
2544         * lib/unigbrk/uc-gbrk-prop.c: New file.
2545
2546         New module 'unigbrk/uc-is-grapheme-break'.
2547         * modules/unigbrk/uc-is-grapheme-break: New file.
2548         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
2549         * lib/unigbrk/uc-is-grapheme-break.c: New file.
2550         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
2551         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
2552         * tests/unigbrk/GraphemeBreakTest.txt: New file.
2553
2554         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
2555
2556 2010-12-27  Bruno Haible  <bruno@clisp.org>
2557
2558         linkat test: Avoid failure on Solaris 11 2010-11.
2559         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
2560
2561 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
2562
2563         utimens: work around glibc rounding bug on more platforms
2564         * lib/utimens.c (fdutimens): Work around rounding bug even if
2565         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
2566         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
2567
2568 2010-12-27  Bruno Haible  <bruno@clisp.org>
2569
2570         select tests: Improve comments.
2571         * tests/test-select.c (do_select): Add comments.
2572
2573 2010-12-27  Bruno Haible  <bruno@clisp.org>
2574
2575         select tests: Safer way of handling timeout.
2576         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
2577         at every invocation.
2578
2579 2010-12-27  Bruno Haible  <bruno@clisp.org>
2580
2581         select tests: Use 'bool' where appropriate.
2582         * tests/test-select.c (connect_to_socket): Change argument type to
2583         'bool'.
2584
2585 2010-12-27  Bruno Haible  <bruno@clisp.org>
2586
2587         select tests: Use existing modules.
2588         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
2589         (configure.ac): Don't test for unistd.h.
2590         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
2591         declared in <unistd.h>.
2592
2593 2010-12-27  Bruno Haible  <bruno@clisp.org>
2594
2595         mbrtowc: Work around a Solaris 7 bug.
2596         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
2597         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
2598         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
2599         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
2600         MBRTOWC_NULL_ARG1_BUG.
2601         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
2602         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
2603         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
2604         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
2605
2606 2010-12-27  Jim Meyering  <meyering@redhat.com>
2607
2608         read-file.c: tweak syntax
2609         * lib/read-file.c (fread_file): Remove space after "*" in function
2610         definitions.
2611
2612 2010-12-27  Bruno Haible  <bruno@clisp.org>
2613
2614         times test: Avoid gcc warnings on OSF/1.
2615         * tests/test-times.c (main): Cast printf arguments from clock_t to
2616         'long int'.
2617
2618 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
2619
2620         utimens: work around glibc rounding bug on older Linux kernels
2621         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
2622         on Linux with a glibc whose utimes might not work, then work
2623         around a longstanding glibc bug involving rounding rather than
2624         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
2625         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
2626
2627 2010-12-26  Bruno Haible  <bruno@clisp.org>
2628
2629         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
2630         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
2631         _GL_CXXALIAS_SYS.
2632         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2633
2634 2010-12-26  Bruno Haible  <bruno@clisp.org>
2635
2636         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
2637         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
2638         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
2639         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
2640         looking for the declaration.
2641         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
2642         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
2643         problem.
2644         * doc/posix-functions/inet_pton.texi: Likewise.
2645
2646 2010-12-26  Bruno Haible  <bruno@clisp.org>
2647
2648         arpa_inet: Use the common idioms with C++ support.
2649         * lib/arpa_inet.in.h: Include c++defs.h.
2650         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
2651         support.
2652         * modules/arpa_inet (Depends-on): Add c++defs.
2653         (Makefile.am): Substitute the contents of c++defs.h.
2654         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
2655         * modules/arpa_inet-c++-tests: New file.
2656         * tests/test-arpa_inet-c++.cc: New file.
2657
2658 2010-12-25  Bruno Haible  <bruno@clisp.org>
2659
2660         Fix more C++ link errors on Solaris 8.
2661         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
2662         $(LIB_EACCESS).
2663         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
2664         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
2665         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
2666         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
2667         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
2668
2669 2010-12-25  Bruno Haible  <bruno@clisp.org>
2670
2671         printf-posix: Fix link error when a non-GCC compiler is used.
2672         * lib/stdio.in.h (printf): When not using GCC, override printf
2673         correctly.
2674         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2675
2676 2010-12-25  Bruno Haible  <bruno@clisp.org>
2677
2678         strerror_r-posix: Update doc.
2679         * doc/posix-functions/strerror_r.texi: Update doc about the return
2680         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
2681
2682 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
2683
2684         utimens: simplify the logic of the previous change
2685         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
2686         This should not affect whether the test succeeds or fails.
2687
2688         utimens: configure better on hosts with NFS clock skew
2689         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
2690         uses the clock of the local host.  It might use the clock of the
2691         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
2692         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
2693
2694 2010-12-25  Bruno Haible  <bruno@clisp.org>
2695
2696         ptsname test: Avoid failure on Solaris.
2697         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
2698         open a pseudo-terminal; don't use BSD-style ptys.
2699         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
2700
2701 2010-12-25  Bruno Haible  <bruno@clisp.org>
2702
2703         ptsname: Avoid ERANGE failure on some systems.
2704         * lib/ptsname.c (buffer): Increase size.
2705
2706 2010-12-25  Bruno Haible  <bruno@clisp.org>
2707
2708         rename, renameat: Avoid test failures at NFS mounted locations.
2709         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
2710         so that subsequent mkdir calls succeed.
2711
2712 2010-12-25  Bruno Haible  <bruno@clisp.org>
2713
2714         iswblank: Fix C++ link error on Solaris 8.
2715         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
2716         _GL_FUNCDECL_SYS.
2717
2718 2010-12-25  Bruno Haible  <bruno@clisp.org>
2719
2720         unistd: Fix C++ link error on Solaris 8.
2721         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
2722
2723 2010-12-25  Bruno Haible  <bruno@clisp.org>
2724
2725         readlink doc: Mention an old glibc bug.
2726         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
2727
2728 2010-12-25  Bruno Haible  <bruno@clisp.org>
2729
2730         fcntl-h: Fix for use of C++ on glibc systems.
2731         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
2732         also on glibc systems in C++ mode.
2733         Reported by Gary V. Vaughan <gary@gnu.org>.
2734
2735 2010-12-25  Bruno Haible  <bruno@clisp.org>
2736
2737         roundl-ieee: Make it work on OSF/1 5.1 with cc.
2738         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
2739
2740 2010-12-25  Bruno Haible  <bruno@clisp.org>
2741
2742         truncl-ieee: Make it work on OSF/1 5.1 with cc.
2743         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
2744         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
2745         test whether truncl works according to ISO C 99 with IEC 60559.
2746         * m4/truncl-ieee.m4: New file.
2747         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
2748         m4/signbit.m4.
2749         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
2750
2751 2010-12-25  Bruno Haible  <bruno@clisp.org>
2752
2753         ceill-ieee: Make it work on OSF/1 5.1 with cc.
2754         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
2755         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
2756         test whether ceill works according to ISO C 99 with IEC 60559.
2757         * m4/ceill-ieee.m4: New file.
2758         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
2759         m4/signbit.m4.
2760         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
2761
2762 2010-12-25  Bruno Haible  <bruno@clisp.org>
2763
2764         Ensure all prerequisites of <wchar.h> are included.
2765         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
2766         before <wchar.h>.
2767         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
2768         gl_MBRLEN_NUL_RETVAL): Likewise.
2769         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
2770         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
2771         AC_FUNC_MBRTOWC): Likewise.
2772         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
2773         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
2774         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
2775         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
2776         Likewise.
2777         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2778         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
2779         (gl_WCHAR_H): Improve comments.
2780         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
2781
2782 2010-12-25  Bruno Haible  <bruno@clisp.org>
2783
2784         strtok_r: Fix C syntax error in autoconf macro.
2785         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
2786         characters in test program.
2787
2788 2010-12-24  Bruno Haible  <bruno@clisp.org>
2789
2790         ceil, trunc, round: Fix gcc warnings.
2791         * lib/ceil.c (MIN): Undefine before redefining.
2792         * lib/trunc.c (MIN): Likewise.
2793         * lib/round.c (MIN): Likewise.
2794         Include <math.h> first.
2795
2796 2010-12-24  Bruno Haible  <bruno@clisp.org>
2797
2798         select tests: Avoid failures on OSF/1 5.1.
2799         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
2800         failure of closing the last socket; it may fail with ECONNRESET.
2801
2802 2010-12-24  Eric Blake  <eblake@redhat.com>
2803
2804         stdint: avoid HP-UX 10.20 preprocessor bug
2805         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
2806         than #if.
2807         * tests/test-floor2.c (main): Likewise.
2808         Reported by Peter O'Gorman.
2809
2810         pipe: make obsoletion transition easier
2811         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
2812         * modules/pipe (Files): Include revived file.
2813         (Include): Drop reference, to mirror getdate's behavior.
2814
2815 2010-12-24  Bruno Haible  <bruno@clisp.org>
2816
2817         sys_socket: Hide mismatch of declarations on NonStop Kernel.
2818         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
2819         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
2820         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2821
2822 2010-12-24  Bruno Haible  <bruno@clisp.org>
2823
2824         gethostname: Ensure declaration on NonStop Kernel.
2825         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
2826         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2827
2828 2010-12-24  Bruno Haible  <bruno@clisp.org>
2829
2830         sys_select: Ensure all necessary types on NonStop Kernel.
2831         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
2832         include <sys/time.h>.
2833         * doc/posix-headers/sys_select.texi: Mention that it's missing on
2834         NonStop Kernel.
2835         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2836
2837 2010-12-24  Bruno Haible  <bruno@clisp.org>
2838
2839         sys_select: Remove unneeded include.
2840         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
2841         have <sys/select.h>.
2842
2843 2010-12-24  Bruno Haible  <bruno@clisp.org>
2844
2845         gethostname: Provide a fallback for HOST_NAME_MAX.
2846         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
2847         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
2848         instead.
2849         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2850
2851 2010-12-24  Bruno Haible  <bruno@clisp.org>
2852
2853         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
2854         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
2855         (SA_RESTART): Likewise.
2856         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2857
2858 2010-12-24  Bruno Haible  <bruno@clisp.org>
2859
2860         signal: Define NSIG.
2861         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
2862         * tests/test-signal.c (nsig): New variable.
2863         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2864
2865 2010-12-24  Bruno Haible  <bruno@clisp.org>
2866
2867         rename, renameat: Avoid test failures on OSF/1 5.1.
2868         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
2869         alternative error codes.
2870         * tests/test-renameat.c (main): Likewise.
2871
2872 2010-12-24  Bruno Haible  <bruno@clisp.org>
2873
2874         *printf: Detect large precisions bug on Solaris 10/SPARC.
2875         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
2876         by Paul Eggert.
2877         * tests/test-snprintf-posix.h (test_function): Add this test code here
2878         too.
2879         * tests/test-sprintf-posix.h (test_function): Likewise.
2880         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2881         * tests/test-vasprintf-posix.c (test_function): Likewise.
2882         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
2883         around by gnulib.
2884         * doc/posix-functions/printf.texi: Likewise.
2885         * doc/posix-functions/snprintf.texi: Likewise.
2886         * doc/posix-functions/sprintf.texi: Likewise.
2887         * doc/posix-functions/vfprintf.texi: Likewise.
2888         * doc/posix-functions/vprintf.texi: Likewise.
2889         * doc/posix-functions/vsnprintf.texi: Likewise.
2890         * doc/posix-functions/vsprintf.texi: Likewise.
2891         * doc/posix-functions/dprintf.texi: Undo last commit.
2892         * doc/posix-functions/vdprintf.texi: Likewise.
2893
2894 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
2895
2896         tests: port test-fdutimensat.c to Solaris 8
2897         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
2898         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
2899         On Solaris 8, it fails with errno == ENOSYS, because there is no
2900         futimens (so it can't use the fd), and there is no lutimens (so it
2901         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
2902
2903         vsnprintf: make more consistent with snprintf; doc fixes
2904
2905         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
2906         the byte count return problem was promoted from the snprintf-posix
2907         to the snprintf module.
2908         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2909         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
2910         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
2911         * tests/test-snprintf.c (main): Check the byte count returned.
2912         * tests/test-vsnprintf.c (main): Likewise.
2913
2914 2010-12-23  Eric Blake  <eblake@redhat.com>
2915
2916         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
2917         * modules/sigpipe (License): Relax license.
2918
2919 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2920
2921         doc: document Solaris printf bug with large float precisions
2922         * doc/posix-functions/dprintf.texi (dprintf):
2923         * doc/posix-functions/fprintf.texi (fprintf):
2924         * doc/posix-functions/printf.texi (printf):
2925         * doc/posix-functions/snprintf.texi (snprintf):
2926         * doc/posix-functions/sprintf.texi (sprintf):
2927         * doc/posix-functions/vdprintf.texi (vdprintf):
2928         * doc/posix-functions/vfprintf.texi (vfprintf):
2929         * doc/posix-functions/vprintf.texi (vprintf):
2930         * doc/posix-functions/vsnprintf.texi (vsnprintf):
2931         * doc/posix-functions/vsprintf.texi (vsprintf):
2932         Mention that these functions mishandle large floating point
2933         precisions on Solaris 10.  The same bug is also present in Solaris
2934         8, and I assume earlier.  This causes "cd gnulib-tests; make
2935         check" to fail on Solaris 8 (and I assume, later) when building
2936         the latest coreutils, in test-vasprintf-posix's call to
2937         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
2938         the wide flavors (e.g., wprintf) so this patch just updates the
2939         documentation for the narrow ones.
2940
2941         test-posixtm.c: add two tests
2942         * tests/test-posixtm.c: Add two tests, to highlight the
2943         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
2944         around this bug; this is merely to document it.
2945
2946 2010-12-22  Bruno Haible  <bruno@clisp.org>
2947
2948         getlogin_r: Work around portability problem on OSF/1.
2949         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
2950         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
2951         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
2952         test for a truncated result.
2953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
2954         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
2955         * modules/getlogin_r (Depends-on): Add memchr.
2956         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
2957
2958 2010-12-22  Bruno Haible  <bruno@clisp.org>
2959
2960         ptsname: Avoid test failure on OSF/1 5.1.
2961         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
2962         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
2963         (same_slave): New function.
2964         (main): Use it to compare ptsname's result with the expected file name.
2965
2966 2010-12-22  Bruno Haible  <bruno@clisp.org>
2967
2968         Port extended stdio modules to HP NonStop Kernel.
2969         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
2970         macros.
2971         * lib/fbufmode.c: Update comments.
2972         * lib/fflush.c: Likewise.
2973         * lib/fpurge.c: Likewise.
2974         * lib/freadable.c: Likewise.
2975         * lib/freadahead.c: Likewise.
2976         * lib/freading.c: Likewise.
2977         * lib/freadptr.c: Likewise.
2978         * lib/freadseek.c: Likewise.
2979         * lib/fseeko.c: Likewise.
2980         * lib/fseterr.c: Likewise.
2981         * lib/fwritable.c: Likewise.
2982         * lib/fwriting.c: Likewise.
2983         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2984
2985 2010-12-22  Bruno Haible  <bruno@clisp.org>
2986
2987         ttyname_r: Work around bug on OSF/1 5.1.
2988         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
2989         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
2990         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
2991         present.
2992         * lib/ttyname_r.c (ttyname_r): Update comments.
2993
2994 2010-12-22  Bruno Haible  <bruno@clisp.org>
2995
2996         round: Implement result sign according to IEEE 754.
2997         * lib/round.c (MIN, MINUS_ZERO): New macros.
2998         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
2999         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
3000         * tests/test-round-ieee.c (main): Likewise.
3001         * tests/test-roundl-ieee.c (main): Likewise.
3002
3003         trunc: Implement result sign according to IEEE 754.
3004         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
3005         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
3006         * tests/test-trunc2.c: Include minus-zero.h.
3007         (MINUS_ZERO): New macro.
3008         (trunc_reference): Keep in sync with lib/trunc.c.
3009         * tests/test-truncf2.c: Include minus-zero.h.
3010         (MINUS_ZERO): New macro.
3011         (truncf_reference): Keep in sync with lib/trunc.c.
3012         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
3013         * tests/test-trunc-ieee.c (main): Likewise.
3014         * tests/test-truncl-ieee.c (main): Likewise.
3015
3016         ceil: Implement result sign according to IEEE 754.
3017         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
3018         (FUNC): Return -0.0 for -1 < x < 0.
3019         * tests/test-ceil2.c: Include minus-zero.h.
3020         (MINUS_ZERO): New macro.
3021         (ceil_reference): Keep in sync with lib/ceil.c.
3022         * tests/test-ceilf2.c: Include minus-zero.h.
3023         (MINUS_ZERO): New macro.
3024         (ceilf_reference): Keep in sync with lib/ceil.c.
3025         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
3026         * tests/test-ceil-ieee.c (main): Likewise.
3027         * tests/test-ceill-ieee.c (main): Likewise.
3028
3029         floor: Implement result sign according to IEEE 754.
3030         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
3031         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
3032         * tests/test-floorf2.c (floorf_reference): Likewise.
3033         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
3034         * tests/test-floor-ieee.c (main): Likewise.
3035         * tests/test-floorl-ieee.c (main): Likewise.
3036
3037 2010-12-22  Bruno Haible  <bruno@clisp.org>
3038
3039         getaddrinfo: Update doc.
3040         * doc/posix-functions/gai_strerror.texi: Return type is also different
3041         on AIX and HP-UX.
3042
3043 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
3044
3045         getaddrinfo, inet_ntop: Update doc for Solaris.
3046         * doc/posix-functions/gai_strerror.texi: Return type is also an
3047         issue on Solaris 9 and earlier.
3048         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
3049         on Solaris 10 and earlier.
3050
3051 2010-12-21  Bruno Haible  <bruno@clisp.org>
3052
3053         New module 'roundl-ieee'.
3054         * modules/roundl-ieee: New file.
3055         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
3056         test whether roundl works according to ISO C 99 with IEC 60559.
3057         * m4/roundl-ieee.m4: New file.
3058         * modules/roundl-ieee-tests: New file.
3059         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
3060         * tests/test-roundl.c (main): Remove signbit tests.
3061         * modules/roundl-tests (Depends-on): Remove signbit.
3062         * doc/posix-functions/roundl.texi: Mention the new module.
3063
3064 2010-12-21  Bruno Haible  <bruno@clisp.org>
3065
3066         New module 'truncl-ieee'.
3067         * modules/truncl-ieee: New file.
3068         * modules/truncl-ieee-tests: New file.
3069         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
3070         * tests/test-truncl.c (main): Remove signbit tests.
3071         * modules/truncl-tests (Depends-on): Remove signbit.
3072         * doc/posix-functions/truncl.texi: Mention the new module.
3073
3074 2010-12-21  Bruno Haible  <bruno@clisp.org>
3075
3076         New module 'ceill-ieee'.
3077         * modules/ceill-ieee: New file.
3078         * modules/ceill-ieee-tests: New file.
3079         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
3080         * tests/test-ceill.c (main): Remove signbit tests.
3081         * modules/ceill-tests (Depends-on): Remove signbit.
3082         * doc/posix-functions/ceill.texi: Mention the new module.
3083
3084 2010-12-21  Bruno Haible  <bruno@clisp.org>
3085
3086         New module 'floorl-ieee'.
3087         * modules/floorl-ieee: New file.
3088         * modules/floorl-ieee-tests: New file.
3089         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
3090         * tests/test-floorl.c (main): Remove signbit tests.
3091         * modules/floorl-tests (Depends-on): Remove signbit.
3092         * doc/posix-functions/floorl.texi: Mention the new module.
3093
3094 2010-12-21  Bruno Haible  <bruno@clisp.org>
3095
3096         New module 'round-ieee'.
3097         * modules/round-ieee: New file.
3098         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
3099         whether round works according to ISO C 99 with IEC 60559.
3100         * m4/round-ieee.m4: New file.
3101         * modules/round-ieee-tests: New file.
3102         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
3103         * tests/test-round1.c (main): Remove signbit tests.
3104         * modules/round-tests (Depends-on): Remove 'signbit'.
3105         * doc/posix-functions/round.texi: Mention the new module.
3106
3107 2010-12-21  Bruno Haible  <bruno@clisp.org>
3108
3109         New module 'trunc-ieee'.
3110         * modules/trunc-ieee: New file.
3111         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
3112         whether trunc works according to ISO C 99 with IEC 60559.
3113         * m4/trunc-ieee.m4: New file.
3114         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
3115         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
3116         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
3117         * modules/trunc-ieee-tests: New file.
3118         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
3119         * tests/test-trunc1.c (main): Remove signbit tests.
3120         * modules/trunc-tests (Depends-on): Remove 'signbit'.
3121         * doc/posix-functions/trunc.texi: Mention the new module.
3122
3123 2010-12-21  Bruno Haible  <bruno@clisp.org>
3124
3125         New module 'ceil-ieee'.
3126         * modules/ceil-ieee: New file.
3127         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
3128         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
3129         ISO C 99 with IEC 60559.
3130         * m4/ceil-ieee.m4: New file.
3131         * modules/ceil (Files): Add lib/ceil.c.
3132         (Depends-on): Add 'float'.
3133         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
3134         * lib/math.in.h (ceil): New declaration.
3135         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
3136         REPLACE_CEIL.
3137         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
3138         * modules/ceil-ieee-tests: New file.
3139         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
3140         * tests/test-math-c++.cc: Check the signature of 'ceil'.
3141         * doc/posix-functions/ceil.texi: Mention the new module.
3142
3143 2010-12-21  Bruno Haible  <bruno@clisp.org>
3144
3145         New module 'floor-ieee'.
3146         * modules/floor-ieee: New file.
3147         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
3148         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
3149         ISO C 99 with IEC 60559.
3150         * m4/floor-ieee.m4: New file.
3151         * modules/floor (Files): Add lib/floor.c.
3152         (Depends-on): Add 'float'.
3153         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
3154         * lib/math.in.h (floor): New declaration.
3155         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
3156         REPLACE_FLOOR.
3157         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
3158         * modules/floor-ieee-tests: New file.
3159         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
3160         * tests/test-math-c++.cc: Check the signature of 'floor'.
3161         * doc/posix-functions/floor.texi: Mention the new module.
3162
3163 2010-12-21  Bruno Haible  <bruno@clisp.org>
3164
3165         New module 'roundf-ieee'.
3166         * modules/roundf-ieee: New file.
3167         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
3168         test whether roundf works according to ISO C 99 with IEC 60559.
3169         * m4/roundf-ieee.m4: New file.
3170         * modules/roundf-ieee-tests: New file.
3171         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
3172         * tests/test-roundf1.c (main): Remove signbit tests.
3173         * modules/roundf-tests (Depends-on): Remove 'signbit'.
3174         * doc/posix-functions/roundf.texi: Mention the new module.
3175
3176 2010-12-21  Bruno Haible  <bruno@clisp.org>
3177
3178         New module 'truncf-ieee'.
3179         * modules/truncf-ieee: New file.
3180         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
3181         test whether truncf works according to ISO C 99 with IEC 60559.
3182         * m4/truncf-ieee.m4: New file.
3183         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
3184         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
3185         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
3186         * modules/truncf-ieee-tests: New file.
3187         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
3188         * tests/test-truncf1.c (main): Remove signbit tests.
3189         * modules/truncf-tests (Depends-on): Remove 'signbit'.
3190         * doc/posix-functions/truncf.texi: Mention the new module.
3191
3192 2010-12-21  Bruno Haible  <bruno@clisp.org>
3193
3194         New module 'ceilf-ieee'.
3195         * modules/ceilf-ieee: New file.
3196         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
3197         test whether ceilf works according to ISO C 99 with IEC 60559.
3198         * m4/ceilf-ieee.m4: New file.
3199         * modules/ceilf-ieee-tests: New file.
3200         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
3201         * tests/test-ceilf1.c (main): Remove signbit tests.
3202         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
3203         * doc/posix-functions/ceilf.texi: Mention the new module.
3204
3205 2010-12-21  Bruno Haible  <bruno@clisp.org>
3206
3207         New module 'floorf-ieee'.
3208         * modules/floorf-ieee: New file.
3209         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
3210         test whether floorf works according to ISO C 99 with IEC 60559.
3211         * m4/floorf-ieee.m4: New file.
3212         * modules/floorf-ieee-tests: New file.
3213         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
3214         * tests/test-floorf1.c (main): Remove signbit tests.
3215         * modules/floorf-tests (Depends-on): Remove 'signbit'.
3216         * doc/posix-functions/floorf.texi: Mention the new module.
3217
3218 2010-12-21  Bruno Haible  <bruno@clisp.org>
3219
3220         Support for minus zero in autoconf macros.
3221         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
3222         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
3223         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
3224         * tests/minus-zero.h: Update comments.
3225
3226 2010-12-21  Bruno Haible  <bruno@clisp.org>
3227
3228         Tests for module 'ceil'.
3229         * modules/ceil-tests: New file.
3230         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
3231         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
3232
3233 2010-12-21  Bruno Haible  <bruno@clisp.org>
3234
3235         Tests for module 'floor'.
3236         * modules/floor-tests: New file.
3237         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
3238         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
3239
3240 2010-12-21  Bruno Haible  <bruno@clisp.org>
3241
3242         math: Fix indentation.
3243         * lib/math.in.h (floorf): Fix indentation.
3244
3245 2010-12-21  Bruno Haible  <bruno@clisp.org>
3246
3247         Fix cross-compilation guesses on Solaris.
3248         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
3249         not match "solaris2.10".
3250         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
3251         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
3252         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
3253
3254 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
3255
3256         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
3257         This fixes a problem observed with the latest coreutils snapshot
3258         that caused a test to fail on Solaris 8.  src/csplit.c's call
3259         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
3260         earlier, instead of returning the number of bytes that would have
3261         been generated; this causes csplit to incorrectly report memory
3262         exhaustion.
3263         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
3264         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
3265         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
3266         comments to match.
3267         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
3268         Fix typo in matching older versions of Solaris: "solaris2.10"
3269         is matched by the shell pattern "solaris2.[0-9]*".  This matters
3270         only for guessing while cross-compiling.
3271         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
3272
3273 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
3274
3275         ftoastr: fix comment again
3276         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
3277         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
3278         Also, simplify example a bit by using flags = 0.
3279
3280 2010-12-20  Bruno Haible  <bruno@clisp.org>
3281
3282         round*, trunc*: Update documentation regarding glibc.
3283         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
3284         * doc/posix-functions/round.texi: Likewise.
3285         * doc/posix-functions/roundl.texi: Likewise.
3286         * doc/posix-functions/truncf.texi: Likewise.
3287         * doc/posix-functions/trunc.texi: Likewise.
3288         * doc/posix-functions/truncl.texi: Likewise.
3289
3290 2010-12-20  Bruno Haible  <bruno@clisp.org>
3291
3292         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
3293         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
3294         * doc/posix-functions/round.texi: Likewise.
3295         * doc/posix-functions/roundl.texi: Likewise.
3296
3297 2010-12-20  Bruno Haible  <bruno@clisp.org>
3298
3299         ttyname_r: Add missing declaration on HP-UX 11.
3300         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
3301         HAVE_TTYNAME_R.
3302         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
3303         declared. Set HAVE_TTYNAME_R always.
3304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3305         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
3306         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
3307         HAVE_TTYNAME_R.
3308         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
3309
3310 2010-12-20  Bruno Haible  <bruno@clisp.org>
3311
3312         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
3313         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
3314         * doc/posix-functions/getlogin_r.texi: Likewise.
3315         * tests/test-getlogin.c: Include <errno.h>.
3316         (main): Avoid test failure on HP-UX 11.11.
3317         * tests/test-getlogin_r.c (main): Likewise.
3318
3319 2010-12-20  Bruno Haible  <bruno@clisp.org>
3320
3321         getlogin_r: Add missing declaration on HP-UX 11.
3322         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
3323         declared also when it exists as a function.
3324         * doc/posix-functions/getlogin_r.texi: Document this workaround.
3325
3326 2010-12-20  Bruno Haible  <bruno@clisp.org>
3327
3328         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
3329         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
3330         through wcrtomb.
3331
3332 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
3333
3334         ftoastr: fix comment
3335         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
3336         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
3337
3338 2010-12-19  Bruno Haible  <bruno@clisp.org>
3339
3340         isnan: Ensure it is a macro.
3341         * lib/math.in.h (isnan): Define as a macro if not already a macro.
3342         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
3343         Solaris.
3344
3345 2010-12-19  Bruno Haible  <bruno@clisp.org>
3346
3347         ldexpl test: Fix link error on OSF/1 5.1.
3348         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
3349
3350 2010-12-19  Bruno Haible  <bruno@clisp.org>
3351
3352         wctype: Make it work in C++ mode on OSF/1 5.1.
3353         * lib/wctype.in.h (iswblank): Declare but not define here.
3354         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
3355         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
3356         * modules/wctype (Files): Add lib/iswblank.c.
3357
3358 2010-12-19  Bruno Haible  <bruno@clisp.org>
3359
3360         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
3361         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
3362         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
3363
3364 2010-12-19  Bruno Haible  <bruno@clisp.org>
3365
3366         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
3367         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
3368         _POSIX_PII_SOCKET.
3369         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
3370         * doc/posix-functions/recvfrom.texi: Likewise.
3371         * doc/posix-functions/send.texi: Likewise.
3372         * doc/posix-functions/sendto.texi: Likewise.
3373
3374 2010-12-19  Bruno Haible  <bruno@clisp.org>
3375
3376         tcgetsid: Add missing declaration on OSF/1 5.1.
3377         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
3378         HAVE_TCGETSID.
3379         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
3380         Don't set HAVE_TCGETSID.
3381         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
3382         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
3383         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
3384         HAVE_TCGETSID.
3385         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
3386
3387 2010-12-19  Bruno Haible  <bruno@clisp.org>
3388
3389         stdio: Fix problem with popen() declaration on OSF/1 5.1.
3390         * lib/stdio.in.h: During the include_next statement, let recursive
3391         includes of this file include only the system header file.
3392
3393 2010-12-19  Bruno Haible  <bruno@clisp.org>
3394
3395         iconv_open: Fix regression from 2010-12-04.
3396         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
3397         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
3398
3399 2010-12-19  Bruno Haible  <bruno@clisp.org>
3400
3401         stdbool test: Avoid a gcc warning.
3402         * tests/test-stdbool.c (main): Fail if e1 is false.
3403         Reported by Jim Meyering.
3404
3405 2010-12-19  Jim Meyering  <meyering@redhat.com>
3406
3407         setenv: restore to working order
3408         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
3409         mistakenly removed.
3410         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
3411         HAVE_SETENV.
3412         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
3413         HAVE_SETENV.
3414
3415 2010-12-19  Bruno Haible  <bruno@clisp.org>
3416
3417         Document some different function declarations on OSF/1 5.1.
3418         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
3419         * doc/posix-functions/inet_ntop.texi: Likewise.
3420         * doc/posix-functions/gethostname.texi: Likewise.
3421         * lib/unistd.in.h (gethostname): Update comment.
3422
3423 2010-12-19  Bruno Haible  <bruno@clisp.org>
3424
3425         doc: Mention vasprintf-posix module.
3426         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
3427         the 'vasprintf-posix' module.
3428         * doc/glibc-functions/vasprintf.texi: Likewise.
3429
3430 2010-12-19  Bruno Haible  <bruno@clisp.org>
3431
3432         unsetenv: Add missing declaration on OSF/1 5.1.
3433         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
3434         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
3435         Don't set HAVE_UNSETENV. In the test program, set _BSD.
3436         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
3437         not HAVE_UNSETENV.
3438         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
3439         HAVE_UNSETENV.
3440         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
3441
3442 2010-12-19  Bruno Haible  <bruno@clisp.org>
3443
3444         setenv: Add missing declaration on OSF/1 5.1.
3445         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
3446         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
3447         declared. Don't set HAVE_SETENV.
3448         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
3449         not HAVE_SETENV.
3450         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
3451         HAVE_SETENV.
3452         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
3453
3454 2010-12-19  Bruno Haible  <bruno@clisp.org>
3455
3456         nl_langinfo tests: Avoid gcc warning.
3457         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
3458
3459 2010-12-19  Bruno Haible  <bruno@clisp.org>
3460
3461         mknod: Avoid error in C++ mode on OSF/1 with GCC.
3462         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
3463         _GL_CXXALIAS_SYS.
3464
3465 2010-12-19  Bruno Haible  <bruno@clisp.org>
3466
3467         stdbool: Relax test.
3468         * tests/test-stdbool.c (e): Don't require that casts from a variable's
3469         address to 'bool' work in static initializer, for compilers other than
3470         GCC.
3471
3472 2010-12-19  Bruno Haible  <bruno@clisp.org>
3473
3474         ftello: Add missing declaration on OSF/1 5.1.
3475         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
3476         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
3477         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
3478         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
3479         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
3480
3481 2010-12-19  Bruno Haible  <bruno@clisp.org>
3482
3483         fseeko: Add missing declaration on OSF/1 5.1.
3484         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
3485         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
3486         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
3487         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
3488         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
3489
3490 2010-12-19  Bruno Haible  <bruno@clisp.org>
3491
3492         fchdir: Add missing declaration on OSF/1 5.1.
3493         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
3494         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
3495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
3496         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
3497         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
3498
3499 2010-12-19  Bruno Haible  <bruno@clisp.org>
3500
3501         relocatable-prog-wrapper: Separate from relocatable-prog.
3502         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
3503         uninstall-relocwrapper rule here.
3504         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
3505         Reported by Ian Beckwith <ianb@erislabs.net>.
3506
3507 2010-12-19  Bruno Haible  <bruno@clisp.org>
3508
3509         unistr/u8-mbsnlen: Add missing dependency.
3510         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
3511         Reported by Ian Beckwith <ianb@erislabs.net>.
3512
3513 2010-12-19  Bruno Haible  <bruno@clisp.org>
3514
3515         iconv: Make it possible again to use this module without 'iconv-h'.
3516         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
3517         if it is not defined.
3518         Reported by Ian Beckwith <ianb@erislabs.net>.
3519
3520 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
3521
3522         acl: port to Solaris 8 when copying from tmpfs to ufs
3523         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
3524         error number.  Problem observed on Solaris 8 with latest
3525         coreutils, with "mv A B", where A is on a tmpfs file system and B
3526         is on a ufs file system.  This caused coreutils' mv/part-symlink
3527         test to fail.
3528
3529         tests: set fail=0 at start
3530         * tests/init.sh (setup_): Move fail=0 initialization here ...
3531         (mktempd_): ... from here, so that tests can rely on fail being
3532         set to 0 initially.  This fixes a problem in coreutils; see:
3533         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
3534
3535 2010-12-18  Bruno Haible  <bruno@clisp.org>
3536
3537         memmem-simple: Stylistic changes.
3538         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
3539         Fix preprocessor directive indentation.
3540
3541 2010-12-15  Pádraig Brady <P@draigBrady.com>
3542
3543         memmem, memmem-simple: reorganize and expand empty needle check
3544         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
3545         functional checks to memmem-simple so that one has a fully functional
3546         memmem by using just this module.
3547         Restrict the performance only check to the memmem module.
3548         Also expand the empty needle check to ensure the correct
3549         pointer is returned, not just a non NULL pointer.
3550         * doc/glibc-functions/memmem.texi: Rearrange the portability
3551         documentation to correlate with the rearranged checks.
3552         Clarify exactly how the memmem and memmem-simple modules
3553         relate to each other.
3554
3555 2010-12-15  Pádraig Brady <P@draigBrady.com>
3556             Bruno Haible  <bruno@clisp.org>
3557
3558         Improve cross-compilation guesses for uClibc.
3559         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
3560         that uClibc does not have the glibc bug.
3561         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
3562         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
3563
3564 2010-12-14  Eric Blake  <eblake@redhat.com>
3565
3566         configmake: provide fallbacks for oldest supported autotools
3567         * m4/configmake.m4: New file.
3568         * modules/configmake (Files): Ship it.
3569         (configure.ac): Use it to guarantee fallbacks.
3570
3571 2010-12-13  Pádraig Brady <P@draigBrady.com>
3572
3573         read-file: Improve handling of large files
3574         * lib/read-file.c (fread_file): Minimize realloc()s
3575         for regular files, and better manage sizes around SIZE_MAX.
3576
3577 2010-12-13  Eric Blake  <eblake@redhat.com>
3578
3579         cloexec, fcntl: relax license
3580         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
3581         consent from all contributors.
3582         * modules/fcntl (License): Likewise.
3583
3584 2010-12-10  Bruno Haible  <bruno@clisp.org>
3585
3586         Tests for module 'pipe-posix'.
3587         * modules/pipe-posix-tests: New file.
3588         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
3589
3590 2010-12-10  Bruno Haible  <bruno@clisp.org>
3591
3592         pipe-posix: Make it work in C++ mode.
3593         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
3594         (pipe): Use common idiom, not a macro definition.
3595         * lib/pipe.c: New file.
3596         * m4/pipe.m4: New file.
3597         * modules/pipe-posix (Description): Enhance.
3598         (Files): Add lib/pipe.c, m4/pipe.m4.
3599         (configure.ac): Invoke gl_FUNC_PIPE.
3600         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
3601         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
3602         * tests/test-unistd-c++.cc: Check the signature of pipe.
3603
3604 2010-12-10  Bruno Haible  <bruno@clisp.org>
3605
3606         Rename module 'pipe' to 'spawn-pipe'.
3607         * modules/spawn-pipe: New file, renamed from modules/pipe.
3608         (Files, configure.ac, Makefile.am): Update.
3609         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
3610         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
3611         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
3612         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
3613         "spawn-pipe.h" instead of "pipe.h".
3614         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
3615         to gl_SPAWN_PIPE.
3616         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
3617         (Files, Makefile.am): Update.
3618         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
3619         Update.
3620         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
3621         Include "spawn-pipe.h" instead of "pipe.h".
3622         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
3623         * lib/javacomp.c: Likewise.
3624         * lib/javaversion.c: Likewise.
3625         * lib/pipe-filter-gi.c: Likewise.
3626         * lib/pipe-filter-ii.c: Likewise.
3627         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
3628         * modules/javacomp (Depends-on): Likewise.
3629         * modules/javaversion (Depends-on): Likewise.
3630         * modules/pipe-filter-gi (Depends-on): Likewise.
3631         * modules/pipe-filter-ii (Depends-on): Likewise.
3632         * MODULES.html.sh (Executing programs): Update.
3633         * NEWS: Mention the change.
3634
3635 2010-12-10  Eric Blake  <eblake@redhat.com>
3636
3637         pipe-posix: new module
3638         * modules/pipe-posix: New file.
3639         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
3640         (gl_UNISTD_H): Check for declaration.
3641         * modules/unistd (Makefile.am): Substitute it.
3642         * lib/unistd.in.h (pipe): Provide it for mingw.
3643         * doc/posix-functions/pipe.texi (pipe): Update documentation.
3644         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
3645
3646 2010-12-07  Bruno Haible  <bruno@clisp.org>
3647
3648         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
3649         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
3650         u8_strcmp_gnu.
3651         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
3652
3653 2010-12-06  Bruno Haible  <bruno@clisp.org>
3654
3655         Update internal documentation.
3656         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
3657
3658 2010-12-04  Bruno Haible  <bruno@clisp.org>
3659
3660         Put more information about failed tests into the test return codes.
3661         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
3662         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
3663         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
3664         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3665         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
3666         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
3667         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
3668         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
3669         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
3670         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
3671         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
3672         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
3673         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3674         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3675         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
3676         returns a bit mask.
3677         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
3678         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
3679         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
3680         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
3681         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3682         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
3683         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
3684         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
3685         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
3686         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
3687         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
3688         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
3689         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
3690         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
3691         * m4/link.m4 (gl_FUNC_LINK): Likewise.
3692         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3693         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
3694         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
3695         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
3696         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
3697         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3698         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
3699         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
3700         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
3701         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
3702         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
3703         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
3704         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
3705         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
3706         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
3707         gl_PRINTF_PRECISION): Likewise.
3708         * m4/regex.m4 (gl_REGEX): Likewise.
3709         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
3710         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3711         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
3712         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3713         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
3714         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3715         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
3716         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
3717         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3718         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
3719         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
3720         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
3721         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
3722         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
3723         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3724         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3725         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
3726         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
3727         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3728         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
3729         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
3730         enumerated value.
3731         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
3732
3733 2010-12-04  Bruno Haible  <bruno@clisp.org>
3734
3735         Update for Solaris 11 2010-11.
3736         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
3737         Express, released in November 2010.
3738
3739 2010-12-04  Bruno Haible  <bruno@clisp.org>
3740
3741         nproc: Relax license.
3742         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
3743         and Paul Eggert.
3744         Requested by Ludovic Courtès <ludo@gnu.org>.
3745
3746 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
3747
3748         utimecmp: fine-grained src to nearby coarse-grained dest
3749
3750         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
3751         and the source is on a file system with higher-resolution time
3752         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
3753         not work, and the time stamps are close together, the algorithm to
3754         determine the exact resolution from the read-back mtime was buggy:
3755         it had a "!=" where it should have had an "==".  This bug has been
3756         in the code ever since it was introduced to gnulib.
3757         Problem reported by Dan Jacobson in
3758         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
3759
3760 2010-11-30  Bruno Haible  <bruno@clisp.org>
3761
3762         strerror_r-posix: Fix autoconf test.
3763         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
3764
3765 2010-11-28  Bruno Haible  <bruno@clisp.org>
3766             Paul Eggert  <eggert@cs.ucla.edu>
3767
3768         Tests for module 'getdomainname'.
3769         * modules/getdomainname-tests: New file.
3770         * tests/test-getdomainname.c: New file, based on
3771         tests/test-gethostname.c.
3772
3773 2010-11-28  Bruno Haible  <bruno@clisp.org>
3774             Paul Eggert  <eggert@cs.ucla.edu>
3775
3776         getdomainname: Use the system function when possible.
3777         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
3778         (getdomainname): Replace if needed. Provide the declaration if it is
3779         missing. Don't use _GL_CXXALIAS_SYS_CAST.
3780         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
3781         (getdomainname): When the system has getdomainname, call the system
3782         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
3783         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
3784         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
3785         found in libnsl. Look for the declaration also in <netdb.h>. Replace
3786         the function if its second argument is of type 'int' or if it is found
3787         in libnsl.
3788         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
3789         <sys/systeminfo.h> and sysinfo().
3790         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
3791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3792         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
3793         HAVE_GETDOMAINNAME.
3794         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
3795         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
3796         * doc/glibc-functions/getdomainname.texi: Document the problems with
3797         the getdomainname declaration.
3798
3799 2010-11-28  Bruno Haible  <bruno@clisp.org>
3800
3801         sys_socket: Ensure ss_family field on AIX.
3802         * lib/sys_socket.in.h (ss_family): New macro definition.
3803         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
3804         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
3805         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
3806         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
3807         * modules/sys_socket (Makefile.am): Substitute
3808         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
3809         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
3810
3811 2010-11-27  Bruno Haible  <bruno@clisp.org>
3812
3813         readline: Improve configure output.
3814         * m4/readline.m4 (gl_FUNC_READLINE): Make the
3815         "checking for readline..." result understandable.
3816
3817 2010-11-27  Bruno Haible  <bruno@clisp.org>
3818
3819         *printf-posix: Detect a bug on Solaris 10/x86.
3820         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
3821         for floating-point output.
3822         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
3823         directive.
3824         * tests/test-snprintf-posix.h (test_function): Likewise.
3825         * tests/test-sprintf-posix.h (test_function): Likewise.
3826         * tests/test-vasprintf-posix.c (test_function): Likewise.
3827         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
3828         * doc/posix-functions/printf.texi: Likewise.
3829         * doc/posix-functions/snprintf.texi: Likewise.
3830         * doc/posix-functions/sprintf.texi: Likewise.
3831         * doc/posix-functions/vfprintf.texi: Likewise.
3832         * doc/posix-functions/vprintf.texi: Likewise.
3833         * doc/posix-functions/vsnprintf.texi: Likewise.
3834         * doc/posix-functions/vsprintf.texi: Likewise.
3835         * doc/glibc-functions/obstack_printf.texi: Likewise.
3836         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
3837
3838 2010-11-27  Bruno Haible  <bruno@clisp.org>
3839
3840         Fix link error when module libunistring-optional is in use.
3841         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
3842         * modules/striconveha-tests (Makefile.am): Likewise.
3843
3844 2010-11-27  Bruno Haible  <bruno@clisp.org>
3845
3846         regex: Mention link dependencies.
3847         * modules/regex (Link): New section.
3848         * modules/rpmatch (Link): Likewise.
3849         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
3850
3851 2010-11-27  Bruno Haible  <bruno@clisp.org>
3852
3853         ftoastr: Fix compilation error on Solaris.
3854         * lib/ftoastr.c: Include <config.h>.
3855
3856 2010-11-27  Bruno Haible  <bruno@clisp.org>
3857
3858         getloadavg: Update documentation.
3859         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
3860
3861 2010-11-27  Bruno Haible  <bruno@clisp.org>
3862
3863         sys_socket: Fix test whether the functions are declared.
3864         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
3865         not <sys/select.h>.
3866
3867 2010-11-27  Bruno Haible  <bruno@clisp.org>
3868
3869         getpass: Make sure to get system declaration on some platforms.
3870         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
3871         gl_USE_SYSTEM_EXTENSIONS.
3872         * modules/getpass (Depends-on): Add extensions.
3873
3874 2010-11-26  Bruno Haible  <bruno@clisp.org>
3875
3876         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
3877         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
3878         'iconv' module is present.
3879         (ICONV_CONST): New macro.
3880         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
3881         ICONV_CONST.
3882         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
3883         set ICONV_CONST.
3884         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
3885         here.
3886         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
3887         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
3888         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
3889         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
3890         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
3891         present.
3892
3893 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
3894
3895         ftoastr: comment fix
3896         * lib/ftoastr.c: "little" -> "little or no" in comment
3897
3898 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
3899
3900         stdint: port to GCC 4.3 + OSX + Octave
3901         On this platform, stdint.h is buggy and defines int64_t to long
3902         long int.  The replacement defined it to long int, causing
3903         problems with C++ style name mangling.  Instead, trust the system
3904         definition if INT64_MAX is defined, and likewise for the unsigned
3905         variant.   Problem reported by Jarno Rajahalme in
3906         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
3907         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
3908         and don't mess with int64_t and INT64_MAX in this case.
3909         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
3910
3911 2010-11-24  Bruno Haible  <bruno@clisp.org>
3912
3913         doc: Corrections regarding MacOS X 10.4 and 10.5.
3914         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
3915         MacOS X.
3916         Reported by Simon Josefsson.
3917
3918 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
3919
3920         Uninstall ".bin" files installed by relocwrapper.
3921         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
3922         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
3923         unless it is already there.
3924
3925 2010-11-21  Bruno Haible  <bruno@clisp.org>
3926
3927         Update for NetBSD 5.0.
3928         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
3929         NetBSD; the test fails on NetBSD 5.0.
3930         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
3931         about NetBSD.
3932
3933 2010-11-21  Bruno Haible  <bruno@clisp.org>
3934
3935         Update for HP-UX 11.23 and HP-UX 11.31.
3936         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
3937         HP-UX.
3938
3939 2010-11-21  Bruno Haible  <bruno@clisp.org>
3940
3941         Update for MacOS X 10.5.
3942         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
3943         MacOS X; the test fails on MacOS X 10.5.8.
3944         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
3945         about MacOS X.
3946
3947 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
3948
3949         bootstrap: add bootstrap_sync option.
3950         See discussion at
3951         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
3952         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
3953         * build-aux/bootstrap: Accept --bootstrap-sync to update
3954         bootstrap if it is not identical to the local gnulib's
3955         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
3956         enable this by default.  Accept --no-bootstrap-sync to disable
3957         it.
3958
3959 2010-11-20  Bruno Haible  <bruno@clisp.org>
3960
3961         Ensure that <features.h> is included before __GLIBC__ is tested.
3962         * lib/printf-parse.h: Include <features.h>.
3963         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
3964         Reported by Mike Frysinger <vapier@gentoo.org>.
3965
3966         Ensure that <features.h> is included before __GLIBC__ is tested.
3967         * lib/wchar.in.h: Include <features.h>.
3968         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
3969         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
3970         Reported by Mike Frysinger <vapier@gentoo.org>.
3971
3972         Ensure that <features.h> is included before __GLIBC__ is tested.
3973         * lib/arpa_inet.in.h: Include <features.h>.
3974         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
3975         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
3976         Reported by Mike Frysinger <vapier@gentoo.org>.
3977
3978         Ensure that <features.h> is included before __GLIBC__ is tested.
3979         * build-aux/link-warning.h: Include <features.h>.
3980         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
3981         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
3982         Reported by Mike Frysinger <vapier@gentoo.org>.
3983
3984         Ensure that <features.h> is included before __GLIBC__ is tested.
3985         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
3986         Reported by Mike Frysinger <vapier@gentoo.org>.
3987
3988 2010-11-20  Bruno Haible  <bruno@clisp.org>
3989
3990         memmem: Fix autoconf test.
3991         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
3992
3993 2010-11-20  Bruno Haible  <bruno@clisp.org>
3994
3995         Port to uClibc.
3996         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
3997         * lib/fcntl.in.h: Likewise.
3998         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
3999         * lib/mbrtowc.c (mbrtowc): Likewise.
4000         * lib/relocatable.c (find_shared_library_fullname): Likewise.
4001         * lib/strerror_r.c: Likewise.
4002         * lib/unistr/u8-strnlen.c: Likewise.
4003         * lib/vasnprintf.c (decimal_point_char): Likewise.
4004         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
4005         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
4006         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
4007         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
4008         * tests/test-sigaction.c (handler, main): Likewise.
4009         * lib/freading.h: Treat uClibc like a non-glibc platform.
4010         * lib/freading.c: Likewise.
4011         * lib/gettext.h: Likewise.
4012         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
4013         Likewise.
4014         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
4015         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
4016         * lib/propername.c (proper_name_utf8): Likewise.
4017         * lib/spawn.in.h: Likewise.
4018         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
4019         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
4020         mem_cd_iconveh_internal): Likewise.
4021         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
4022         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
4023         strstr, strcasestr): Likewise.
4024         * lib/unicodeio.c (unicode_to_mb): Likewise.
4025         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
4026         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
4027         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
4028         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
4029         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
4030         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
4031         * lib/unistr/u8-stpncpy.c: Likewise.
4032         * lib/vasnprintf.c (VASNPRINTF): Likewise.
4033         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
4034         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
4035         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
4036         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
4037         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
4038         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
4039         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
4040         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
4041         Likewise.
4042         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
4043         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
4044         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
4045         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4046         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
4047         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4048         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4049         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
4050         * tests/test-getopt.h (OPTIND_MIN): Likewise.
4051         * tests/test-striconveha.c (main): Likewise.
4052         * tests/test-vasnprintf-posix.c (test_function): Likewise.
4053         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
4054         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
4055         * doc/posix-functions/getline.texi: Likewise.
4056         Reported by Mike Frysinger <vapier@gentoo.org>.
4057
4058 2010-11-20  Bruno Haible  <bruno@clisp.org>
4059
4060         nproc: Fix condition.
4061         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
4062         HAVE_PTHREAD_AFFINITY_NP.
4063
4064 2010-11-20  Bruno Haible  <bruno@clisp.org>
4065
4066         Fix a comment.
4067         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
4068
4069 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
4070
4071         ftoastr: don't assume snprintf
4072         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
4073         Implement a subset of snprintf here, by using sprintf safely.
4074         * modules/ftoastr (Depends-on): Remove snprintf.
4075
4076 2010-11-19  Jim Meyering  <meyering@redhat.com>
4077
4078         test-rename.h: fix compilation failure
4079         * tests/test-rename.h (test_rename): Add omitted "}".
4080
4081 2010-11-17  Jim Meyering  <meyering@redhat.com>
4082
4083         maint.mk: add a URL discussing the no-@acronym policy
4084         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
4085
4086 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
4087
4088         ftoastr: depend on snprintf, improve comments
4089         * lib/ftoastr.c: Also mention Loitsch's draft.
4090         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
4091         needed in the current implementation, but it might simplify
4092         speeding up the code later.
4093         * modules/ftoastr: Depend on snprintf; this improves portability.
4094         Suggested by Bruno Haible in the same email.
4095
4096         ftoastr: port to hosts lacking strtof and strtold
4097         Problem reported by Bruno Haible in
4098         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
4099         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
4100         environment and strtold (and presumably strtof) are not available.
4101         * modules/ftoastr (Files): Add m4/c-strtod.m4.
4102         (configure.ac): Require gl_C99_STRTOLD.
4103
4104 2010-11-18  Bruno Haible  <bruno@clisp.org>
4105
4106         c-strtold: Avoid link error on AIX 7.
4107         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
4108         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
4109         (gl_C_STRTOLD): Test whether strtold_l exists.
4110         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4111
4112 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
4113
4114         intprops: new macro INT_BITS_STRLEN_BOUND
4115         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
4116         ftoastr.h.  This exposes an internal of intprops.h that was formerly
4117         not exposed.  Also, it uses a slightly tighter bound than before;
4118         though this makes no practical difference, we might as well be as
4119         tight as we easily can.
4120
4121         ftoastr: new module, for lossless conversion of floats to short strings
4122         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
4123         * modules/ftoastr: New files.
4124
4125 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
4126
4127         bootstrap: port to Solaris sed
4128         * build-aux/bootstrap (get_version): Port to Solaris sed.
4129         See Ralf Wildenhues's note in
4130         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
4131
4132 2010-11-14  Jim Meyering  <meyering@redhat.com>
4133
4134         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
4135         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
4136         and move definition closer to sole use.
4137
4138 2010-11-13  Jim Meyering  <meyering@redhat.com>
4139
4140         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
4141         Now we require at least autoconf-2.59, which means the work-around
4142         is no longer needed.
4143         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
4144         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4145         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
4146         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
4147         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
4148
4149 2010-11-13  Bruno Haible  <bruno@clisp.org>
4150
4151         rename, renameat: Avoid test failures at NFS mounted locations.
4152         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
4153         functions.
4154         (test_rename): Use assert_nonexistent.
4155         * tests/test-rename.c: Include <dirent.h>.
4156         * tests/test-renameat.c: Likewise.
4157         Reported by Gary V. Vaughan <gary@gnu.org>.
4158
4159         rename, renameat: Document Linux bug with NFS
4160         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
4161         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
4162         * doc/posix-functions/renameat.texi: Likewise.
4163         Suggested by Eric Blake.
4164
4165 2010-11-13  Bruno Haible  <bruno@clisp.org>
4166
4167         rename test: Add comments.
4168         * tests/test-rename.h (test_rename): Add structure and comments.
4169
4170 2010-11-13  Eric Blake  <eblake@redhat.com>
4171
4172         maintainer-makefile: cover a few more files
4173         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
4174         scripts generated within C files, for libvirt.
4175
4176 2010-11-13  Bruno Haible  <bruno@clisp.org>
4177
4178         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
4179         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
4180         character, return the number of bytes that belong together, not always
4181         1.
4182         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
4183         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
4184         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
4185         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
4186         number of bytes of an invalid character.
4187         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
4188         (main): Invoke it.
4189         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
4190         results.
4191         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
4192         malformed byte sequences.
4193         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
4194         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
4195         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
4196         Reported by Ben Pfaff and Paolo Bonzini.
4197
4198 2010-11-13  Bruno Haible  <bruno@clisp.org>
4199
4200         openat: Work around glibc bug with fchownat() and empty file names.
4201         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
4202         (gl_FUNC_FCHOWNAT): Invoke it.
4203         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
4204         * doc/posix-functions/fchownat.texi: Document the glibc bug.
4205         Reported by Gary V. Vaughan <gary@gnu.org>.
4206
4207 2010-11-13  Bruno Haible  <bruno@clisp.org>
4208
4209         openat: Ensure autoconf macro ordering.
4210         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
4211         gl_USE_SYSTEM_EXTENSIONS.
4212         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
4213
4214 2010-11-13  Bruno Haible  <bruno@clisp.org>
4215
4216         Update comments.
4217         * lib/unistr/u8-check.c: Update file name in comments.
4218         * lib/unistr/u8-mblen.c: Likewise.
4219         * lib/unistr/u8-prev.c: Likewise.
4220         * lib/unistr/u8-strmblen.c: Likewise.
4221         * lib/unistr/u8-strmbtouc.c: Likewise.
4222
4223 2010-11-13  Jim Meyering  <meyering@redhat.com>
4224
4225         tests: avoid test failure on Solaris 10 due to lack of PATH export
4226         * tests/test-update-copyright.sh: Don't forget to export PATH.
4227
4228         init.sh: ensure that IFS is defined, just in case...
4229         * tests/init.sh (setup_): Ensure that IFS is defined,
4230         so that saving and restoring it works as expected.  This
4231         appears to be useful at least for an old version of dash
4232         from a long time ago (RH 6).  See here for details:
4233         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
4234
4235         maint.mk: tighten "test a == b" check
4236         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
4237         test to files that contain something like #!/bin/sh.
4238         Without this, coreutils would get two false positives in
4239         the comments of C source files.
4240
4241 2010-11-12  Eric Blake  <eblake@redhat.com>
4242
4243         bootstrap: fix typo in previous attempt
4244         * build-aux/bootstrap (buildreq): Correct the grouping.
4245         Reported by Paul Eggert.
4246
4247         maintainer-makefile: prohibit test x == x
4248         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
4249         Based on a report by Matthias Bolte.
4250
4251         bootstrap: allow FreeBSD gzip
4252         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
4253         which has no '.' and goes to stderr.
4254         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
4255         Reported by Matthias Bolte.
4256
4257         maintainer-makefile: check for i18n setup
4258         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
4259         will likely work.
4260
4261 2010-11-12  Bruno Haible  <bruno@clisp.org>
4262
4263         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
4264         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
4265         * lib/nanosleep.c (nanosleep): Likewise.
4266
4267 2010-11-11  Bruno Haible  <bruno@clisp.org>
4268
4269         fcntl-h: Fix for use of C++ on glibc systems.
4270         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
4271         also on glibc systems in C++ mode.
4272         Reported by Gary V. Vaughan <gary@gnu.org>.
4273
4274 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
4275
4276         mknod: avoid false failure with dash
4277         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
4278
4279 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
4280
4281         unlink: Fix "is it should" typo in diagnostic.
4282         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
4283         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
4284
4285 2010-11-11  Bruno Haible  <bruno@clisp.org>
4286
4287         Tests for module 'strerror_r-posix'.
4288         * modules/strerror_r-posix-tests: New file.
4289         * tests/test-strerror_r.c: New file.
4290         * tests/test-string-c++.cc: Check the signature of strerror_r.
4291
4292         New module 'strerror_r-posix'.
4293         * lib/string.in.h (strerror_r): New declaration.
4294         * lib/strerror_r.c: New file.
4295         * m4/strerror_r.m4: New file.
4296         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
4297         of strerror_r.
4298         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
4299         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
4300         * modules/strerror_r-posix: New file.
4301         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
4302         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
4303         * doc/posix-functions/strerror_r.texi: Mention the new module and the
4304         portability problems.
4305
4306 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
4307
4308         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
4309         line is also considered for output. Quoted function name in shell
4310         command, so temporary files for functions like MyClass::operator()
4311         are removed correctly without errors.
4312
4313 2010-11-09  Bruno Haible  <bruno@clisp.org>
4314
4315         * doc/posix-functions/strerror.texi: List more failing platforms.
4316
4317         * doc/posix-functions/strerror.texi: Add a comment.
4318
4319 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
4320
4321         fdopendir: fix bug on MacOS X when low on file descriptors
4322
4323         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
4324         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
4325         All callers changed.
4326         (fdopendir): Invoke save_cwd at the top level, not after using
4327         multiple dup() calls to use up file descriptors.  Then retry
4328         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
4329         less than the maximum number of open file descriptors, because
4330         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
4331         on Mac OS X 10.6.4 for tar 1.24
4332         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
4333         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
4334         and for tar 1.25
4335         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
4336
4337 2010-11-07  Bruno Haible  <bruno@clisp.org>
4338
4339         vasnprintf: Support I flag on glibc systems.
4340         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
4341         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
4342         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
4343         snprintf function.
4344         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
4345         glibc systems.
4346         * tests/test-vasnprintf-posix3.c: New file.
4347         * modules/vasnprintf-posix-tests (Files): Add it.
4348         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
4349
4350 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
4351
4352         [html] Fix copy/paste bug: Use unique name for compiler warnings.
4353         * MODULES.html.sh: For compiler warnings, use name
4354         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
4355
4356 2010-11-05  Eric Blake  <eblake@redhat.com>
4357
4358         ceil, floor: avoid spurious failure with icc
4359         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
4360         [denormals-as-zero] when optimizing without -mieee-fp option.
4361         * tests/test-floorf2.c (floorf_reference): Likewise.
4362         * tests/test-ceilf1.c (dummy): New function.
4363         (main): Use it to outsmart icc's optimization.
4364         * tests/test-floorf1.c (dummy, main): Likewise.
4365
4366         tests: require working signbit
4367         * modules/ceilf-tests (Depends-on): Add signbit.
4368         * modules/ceill-tests (Depends-on): Likewise.
4369         * modules/floorf-tests (Depends-on): Likewise.
4370         * modules/floorl-tests (Depends-on): Likewise.
4371         * modules/round-tests (Depends-on): Likewise.
4372         * modules/roundf-tests (Depends-on): Likewise.
4373         * modules/roundl-tests (Depends-on): Likewise.
4374         * modules/trunc-tests (Depends-on): Likewise.
4375         * modules/truncf-tests (Depends-on): Likewise.
4376         * modules/truncl-tests (Depends-on): Likewise.
4377
4378         strtod: work around icc bug
4379         * lib/strtod.c (minus_zero): Define to working value.
4380         (strtod): Use it to avoid icc bug.
4381
4382         copysign: enhance tests
4383         * modules/copysign-tests (Files): Add minus-zero.h.
4384         * tests/test-copysign.c (main): Also test zeros.
4385
4386 2010-11-04  Eric Blake  <eblake@redhat.com>
4387
4388         ceil, floor, round, trunc: enhance tests of -0
4389         * tests/test-ceilf1.c (main): Ensure correct sign of result.
4390         * tests/test-ceill.c (main): Likewise.
4391         * tests/test-floorf1.c (main): Likewise.
4392         * tests/test-floorl.c (main): Likewise.
4393         * tests/test-round1.c (main): Likewise.
4394         * tests/test-roundf1.c (main): Likewise.
4395         * tests/test-roundl.c (main): Likewise.
4396         * tests/test-trunc1.c (main): Likewise.
4397         * tests/test-truncf1.c (main): Likewise.
4398         * tests/test-truncl.c (main): Likewise.
4399
4400 2010-11-04  Eric Blake  <eblake@redhat.com>
4401
4402         frexp, tests: work around ICC bug with -zero
4403         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
4404         works with more compilers.
4405         * tests/minus-zero.h: New file.
4406         * modules/ceilf-tests (Files): Include it.
4407         * modules/ceill-tests (Files): Likewise.
4408         * modules/floorf-tests (Files): Likewise.
4409         * modules/floorl-tests (Files): Likewise.
4410         * modules/frexp-nolibm-tests (Files): Likewise.
4411         * modules/frexp-tests (Files): Likewise.
4412         * modules/frexpl-nolibm-tests (Files): Likewise.
4413         * modules/frexpl-tests (Files): Likewise.
4414         * modules/isnan-tests (Files): Likewise.
4415         * modules/isnand-nolibm-tests (Files): Likewise.
4416         * modules/isnand-tests (Files): Likewise.
4417         * modules/isnanf-nolibm-tests (Files): Likewise.
4418         * modules/isnanf-tests (Files): Likewise.
4419         * modules/isnanl-nolibm-tests (Files): Likewise.
4420         * modules/isnanl-tests (Files): Likewise.
4421         * modules/round-tests (Files): Likewise.
4422         * modules/roundf-tests (Files): Likewise.
4423         * modules/roundl-tests (Files): Likewise.
4424         * modules/ldexpl-tests (Files): Likewise.
4425         * modules/signbit-tests (Files): Likewise.
4426         * modules/snprintf-posix-tests (Files): Likewise.
4427         * modules/sprintf-posix-tests (Files): Likewise.
4428         * modules/strtod-tests (Files): Likewise.
4429         * modules/trunc-tests (Files): Likewise.
4430         * modules/truncf-tests (Files): Likewise.
4431         * modules/truncl-tests (Files): Likewise.
4432         * modules/vsnprintf-posix-tests (Files): Likewise.
4433         * modules/vsprintf-posix-tests (Files): Likewise.
4434         * modules/vasnprintf-posix-tests (Files): Likewise.
4435         * modules/vasprintf-posix-tests (Files): Likewise.
4436         * tests/test-ceilf1.c (main): Use it.
4437         * tests/test-ceill.c (main): Likewise.
4438         * tests/test-floorf1.c (main): Likewise.
4439         * tests/test-floorl.c (main): Likewise.
4440         * tests/test-frexp.c (main): Likewise.
4441         * tests/test-frexpl.c (main): Likewise.
4442         * tests/test-isnan.c (main): Likewise.
4443         * tests/test-isnand.h (main): Likewise.
4444         * tests/test-isnanf.h (main): Likewise.
4445         * tests/test-isnanl.h (main): Likewise.
4446         * tests/test-ldexpl.c (main): Likewise.
4447         * tests/test-round.c (main): Likewise.
4448         * tests/test-roundf.c (main): Likewise.
4449         * tests/test-roundl.c (main): Likewise.
4450         * tests/test-signbit.c (test_signbitf, test_signbitd)
4451         (test_signbitl): Likewise.
4452         * tests/test-snprintf-posix.h (test_function): Likewise.
4453         * tests/test-sprintf-posix.h (test_function): Likewise.
4454         * tests/test-strtod.c (main): Likewise.
4455         * tests/test-trunc1.c (main): Likewise.
4456         * tests/test-truncf1.c (main): Likewise.
4457         * tests/test-truncl.c (main): Likewise.
4458
4459         isnanl: work around icc bug
4460         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
4461
4462 2010-11-03  Eric Blake  <eblake@redhat.com>
4463
4464         tests: fix compiler warnings
4465         * tests/test-getopt.h (test_getopt): Fix condition.
4466         * tests/test-getopt_long.h (test_getopt_long): Likewise.
4467         * tests/test-pipe2.c (main): Likewise.
4468         * tests/test-quotearg-simple.c (main): Avoid icc warning.
4469
4470         utimens: fix broken m4 test
4471         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
4472
4473 2010-10-28  Bruno Haible  <bruno@clisp.org>
4474
4475         posix_spawn*, getdtablesize: Relax license.
4476         * modules/posix_spawn (License): Change to LGPLv2+.
4477         * modules/posix_spawnp (License): Likewise.
4478         * modules/posix_spawn-internal (License): Likewise.
4479         * modules/posix_spawnattr_init (License): Likewise.
4480         * modules/posix_spawnattr_getflags (License): Likewise.
4481         * modules/posix_spawnattr_setflags (License): Likewise.
4482         * modules/posix_spawnattr_getpgroup (License): Likewise.
4483         * modules/posix_spawnattr_setpgroup (License): Likewise.
4484         * modules/posix_spawnattr_getschedparam (License): Likewise.
4485         * modules/posix_spawnattr_setschedparam (License): Likewise.
4486         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
4487         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
4488         * modules/posix_spawnattr_getsigdefault (License): Likewise.
4489         * modules/posix_spawnattr_setsigdefault (License): Likewise.
4490         * modules/posix_spawnattr_getsigmask (License): Likewise.
4491         * modules/posix_spawnattr_setsigmask (License): Likewise.
4492         * modules/posix_spawnattr_destroy (License): Likewise.
4493         * modules/posix_spawn_file_actions_init (License): Likewise.
4494         * modules/posix_spawn_file_actions_addclose (License): Likewise.
4495         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
4496         * modules/posix_spawn_file_actions_addopen (License): Likewise.
4497         * modules/posix_spawn_file_actions_destroy (License): Likewise.
4498         * modules/getdtablesize (License): Likewise.
4499         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
4500
4501 2010-10-26  Bruno Haible  <bruno@clisp.org>
4502
4503         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
4504         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
4505         Cygwin and mingw.
4506         Suggested by Eric Blake.
4507
4508 2010-10-26  Bruno Haible  <bruno@clisp.org>
4509
4510         stdio: Work around compilation error due to renameat() on Solaris 10.
4511         * lib/stdio.in.h: Include <unistd.h> on Solaris.
4512         * lib/renameat.c: Don't include <unistd.h> here.
4513         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
4514         Reported by Paul Eggert and Eric Blake.
4515
4516 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
4517
4518         renameat: port to Solaris 10, which declares renameat in unistd.h
4519
4520         * lib/renameat.c: Include unistd.h before stdio.h, because
4521         Solaris 10 declares renameat in unistd.h.  Problem encountered
4522         when building GNU tar 1.24 on Solaris 10.
4523
4524 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
4525
4526         fdopendir: fix C89 compilation
4527         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
4528         compilers.
4529
4530 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
4531
4532         inttostr: simplify by removing unnecessary redundancy
4533         * lib/anytostr.c: Don't include verify.h.
4534         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
4535         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
4536         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
4537         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
4538         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
4539         Likewise.
4540         * modules/inttostr (Depends-on): Remove 'verify'.
4541
4542 2010-10-23  Bruno Haible  <bruno@clisp.org>
4543
4544         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
4545         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
4546         Reported by Eric Blake.
4547
4548 2010-10-23  Bruno Haible  <bruno@clisp.org>
4549
4550         Tests: Fix LOCALE_JA on MirBSD 10.
4551         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
4552         to an UTF-8 locale.
4553         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
4554         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4555         Reported by Eric Blake.
4556
4557 2010-10-21  Bruno Haible  <bruno@clisp.org>
4558
4559         nl_langinfo test: Avoid test failure on NetBSD 5.
4560         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
4561         Reported by Eric Blake.
4562
4563 2010-10-21  Eric Blake  <eblake@redhat.com>
4564
4565         c-stack: work around libsigsegv 2.8 bug
4566         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
4567         overflow on at least PowerPC64.
4568
4569 2010-10-17  Bruno Haible  <bruno@clisp.org>
4570
4571         userspec: Drop redundant file.
4572         * modules/userspec (Files): Remove lib/inttostr.h.
4573
4574 2010-10-17  Bruno Haible  <bruno@clisp.org>
4575
4576         nl_langinfo tests: Silence some warnings.
4577         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
4578         Reported by Jim Meyering.
4579
4580 2010-10-17  Bruno Haible  <bruno@clisp.org>
4581
4582         Make use of GCC's attribute __alloc_size__.
4583         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
4584         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
4585         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
4586         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
4587         __alloc_size__.
4588         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
4589         Suggested by Jim Meyering.
4590
4591 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
4592
4593         bootstrap: anchor .gitignore entries.
4594         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
4595         with...
4596         (insert_vc_ignore): ... this new function, which prepends `/' to
4597         all .gitignore entries before passing them to
4598         insert_sorted_if_absent.
4599
4600 2010-10-16  Bruno Haible  <bruno@clisp.org>
4601
4602         nextafter: Fix configure check.
4603         * modules/nextafter (configure.ac): Correct expected prototype.
4604
4605 2010-10-16  Bruno Haible  <bruno@clisp.org>
4606
4607         termios: Update documentation.
4608         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
4609
4610 2010-10-16  Bruno Haible  <bruno@clisp.org>
4611
4612         tests: Make them compile with TinyCC.
4613         * tests/test-strstr.c (main): Remove parentheses around array
4614         initializer.
4615
4616 2010-10-15  Eric Blake  <eblake@redhat.com>
4617
4618         ignore-value: make header idempotent
4619         * lib/ignore-value.h: Add double-inclusion guards.
4620         Reported by Stefan Berger.
4621
4622 2010-10-15  Jim Meyering  <meyering@redhat.com>
4623
4624         GNUmakefile: handle "stable" target, not "major"
4625         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
4626         lists in maint.mk and announce-gen.  Without this, "make stable"
4627         would fail to ensure that $(VERSION) is up to date.
4628
4629 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
4630
4631         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
4632         & co.
4633
4634 2010-10-14  Bruno Haible  <bruno@clisp.org>
4635
4636         vasnprintf: Don't set errno to 0.
4637         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
4638         block that sets it to 0.
4639         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
4640
4641 2010-10-14  Bruno Haible  <bruno@clisp.org>
4642
4643         socketlib: Fix.
4644         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
4645         gl_PREREQ_SYS_H_WINSOCK2.
4646         Reported by Ian Beckwith <ianb@erislabs.net>.
4647
4648 2010-10-13  Jim Meyering  <meyering@redhat.com>
4649
4650         test-select-stdin.c: avoid warn_unused_result warnings
4651         * tests/test-select-stdin.c: Include "macros.h".
4652         ASSERT that read and fflush succeed.
4653
4654 2010-10-13  Jim Meyering  <meyering@redhat.com>
4655
4656         git-version-gen: do require git-VC'd files in cwd
4657         * build-aux/git-version-gen: Reject a git version string
4658         if there are no commits associated with the current directory.
4659         This avoids an unlikely false-positive (unrelated dir whose parent
4660         repository also contains a tag matching v*), as pointed out
4661         by Giuseppe Scrivano in
4662         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
4663
4664 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
4665
4666         argv-iter: omit nonconforming declaration
4667         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
4668         enum arg_iter_err declaration, which doesn't conform to C99.
4669         Solaris 10 cc warns about this.
4670
4671 2010-10-13  Eric Blake  <eblake@redhat.com>
4672
4673         termios: fix compilation on mingw
4674         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
4675         (gl_TERMIOS_H): Adjust it on mingw.
4676         * modules/termios (Makefile.am): Substitute new key.
4677         * lib/termios.in.h (includes): Make include_next conditional.
4678         * doc/posix-headers/termios.texi (termios.h): Update
4679         documentation.
4680         Reported by Daniel P. Berrange.
4681
4682 2010-10-13  Jim Meyering  <meyering@redhat.com>
4683
4684         git-version-gen: don't require that .git/ be in the current dir
4685         * build-aux/git-version-gen: Adjust this script so that it works
4686         when run from any working directory beneath the top-level .git/-
4687         containing directory.  Inspired by a patch from Giuseppe Scrivano,
4688         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
4689
4690         test-select: avoid warn_unused_result warnings
4691         * tests/test-select.c: Include "macros.h".
4692         ASSERT that each call to read, write, and pipe succeeds.
4693         While not technically required, also check each "close".
4694         * modules/select-tests (Files): Add tests/macros.h.
4695
4696         test-symlinkat: remove declaration of unused local
4697         * tests/test-symlinkat.c (main): Remove unused local, "buf".
4698
4699         test-inttostr: avoid shadowing warnings
4700         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
4701         and use malloc rather than the stack for the same reason as
4702         mentioned in the comment justifying the other allocation.
4703
4704 2010-10-11  Bruno Haible  <bruno@clisp.org>
4705
4706         stdlib: Allow multiple gnulib generated replacements to coexist.
4707         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
4708         Reported by Sam Steingold <sds@gnu.org>.
4709
4710 2010-10-11  Jim Meyering  <meyering@redhat.com>
4711
4712         fix a documentation typo
4713         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
4714
4715 2010-10-11  Eric Blake  <eblake@redhat.com>
4716
4717         futimens: work around Solaris 11 bug
4718         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
4719         * tests/test-futimens.h (test_futimens): Enhance, rather than
4720         weaken test.
4721         * doc/posix-functions/futimens.texi (futimens): Document the bug.
4722
4723 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
4724
4725         Indentation.
4726         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
4727         higher-level operators more to the left.
4728
4729 2010-10-11  Jim Meyering  <meyering@redhat.com>
4730
4731         test-futimens: avoid unwarranted test failure on Solaris 5.11
4732         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
4733         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
4734         because it tries to dereference the NULL name argument.
4735
4736 2010-10-11  Bruno Haible  <bruno@clisp.org>
4737
4738         Indentation.
4739         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
4740         indentation.
4741
4742 2010-10-11  Jim Meyering  <meyering@redhat.com>
4743
4744         spawn.in.h: make indentation consistent with parentheses
4745         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
4746         Make indentation consistent with parentheses.
4747
4748 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
4749
4750         Fix mismatched parens in previous commit
4751         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
4752         parens.
4753
4754 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
4755
4756         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
4757
4758         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
4759         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
4760         * lib/malloca.c: Include "verify.h".
4761         (verify1): Remove, replacing with a verify call.
4762         * lib/relocwrapper.c (verify1): Likewise.
4763         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
4764         Likewise.
4765         * modules/malloca (Depends-on): Add 'verify'.
4766         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
4767         * modules/vasnprintf (Depends-on): Add 'verify'.
4768         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
4769         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
4770         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
4771         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
4772         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
4773         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
4774         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
4775
4776         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
4777
4778         Formerly the style was sometimes 2*X - 1, because the C standard
4779         was wrongly thought to disallow ?: in integral constant expressions.
4780         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
4781         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
4782         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
4783         * lib/stdint.in.h (_verify_intmax_size): Likewise.
4784         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
4785         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
4786         verify that time_t cannot be floating.
4787
4788 2010-10-08  Eric Blake  <eblake@redhat.com>
4789
4790         time: enforce recent POSIX ruling that time_t is integral
4791         * lib/time.in.h (__time_t_must_be_integral): Detect any
4792         problematic systems, allowing the rest of gnulib to assume POSIX.
4793
4794 2010-10-08  Jim Meyering  <meyering@redhat.com>
4795
4796         fdopendir: fix a bug on systems lacking openat and /proc support
4797         OpenBSD 4.7 is one such system.  The most noticeable effect was
4798         failure of any application making nontrivial use of fts: rm, du,
4799         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
4800           ./rm: traversal failed: `a': Bad file descriptor
4801         Debugging that, you see that even though FD 6 was closed just
4802         prior to the opendir call in fd_clone_opendir, its resulting
4803         dir->dd_fd was 8, rather than the expected value of 6:
4804
4805         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
4806         93                close (fd);
4807         (gdb) n
4808         94                dir = fd_clone_opendir (dupfd);
4809         (gdb) n
4810         95                saved_errno = errno;
4811         (gdb) p dir->dd_fd
4812         $11 = 8
4813
4814         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
4815         The problem is that on OpenBSD, fd_clone_opendir has to resort
4816         to using the old-style save/restore CWD mechanism, due to its
4817         lack of openat/proc support, and *that* would steal the FD (6)
4818         that opendir was supposed to use.
4819
4820         The fix is to squirrel away the desired FD so that save_cwd uses a
4821         different one, and then free the dest FD right before calling opendir.
4822         That guarantees opendir will use the required file descriptor.
4823
4824         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
4825
4826 2010-10-08  Bruno Haible  <bruno@clisp.org>
4827
4828         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
4829         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
4830
4831 2010-10-08  Bruno Haible  <bruno@clisp.org>
4832
4833         nanosleep: Make replacement POSIX compliant.
4834         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
4835         is out of range.
4836         Reported by Jim Meyering.
4837
4838 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
4839
4840         bootstrap: add hook for altering gnulib.mk, for Bison
4841         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
4842         the Bison bootstrapping process can rewrite file names and variables
4843         in this file before later parts of 'bootstrap' use the file.
4844         Bison wants to include lib/gnulib.mk from the top-level makefile,
4845         so it needs the file names in this file to be relative to the top
4846         level, not relative to lib; plus it needs variable names to be
4847         rewritten.
4848         (slurp): Use the new function.
4849
4850         bootstrap: reformat for readability
4851         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
4852
4853 2010-10-08  Eric Blake  <eblake@redhat.com>
4854
4855         docs: update cygwin progress
4856         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
4857         1.7.7.
4858         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
4859         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
4860         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
4861         * doc/posix-functions/carg.texi (carg): Likewise.
4862         * doc/posix-functions/cargf.texi (cargf): Likewise.
4863         * doc/posix-functions/casin.texi (casin): Likewise.
4864         * doc/posix-functions/casinf.texi (casinf): Likewise.
4865         * doc/posix-functions/casinh.texi (casinh): Likewise.
4866         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
4867         * doc/posix-functions/catan.texi (catan): Likewise.
4868         * doc/posix-functions/catanf.texi (catanf): Likewise.
4869         * doc/posix-functions/catanh.texi (catanh): Likewise.
4870         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
4871         * doc/posix-functions/ccos.texi (ccos): Likewise.
4872         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
4873         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
4874         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
4875         * doc/posix-functions/cexp.texi (cexp): Likewise.
4876         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
4877         * doc/posix-functions/cimag.texi (cimag): Likewise.
4878         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
4879         * doc/posix-functions/clog.texi (clog): Likewise.
4880         * doc/posix-functions/clogf.texi (clogf): Likewise.
4881         * doc/posix-functions/conj.texi (conj): Likewise.
4882         * doc/posix-functions/conjf.texi (conjf): Likewise.
4883         * doc/posix-functions/cpow.texi (cpow): Likewise.
4884         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
4885         * doc/posix-functions/cproj.texi (cproj): Likewise.
4886         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
4887         * doc/posix-functions/creal.texi (creal): Likewise.
4888         * doc/posix-functions/crealf.texi (crealf): Likewise.
4889         * doc/posix-functions/csin.texi (csin): Likewise.
4890         * doc/posix-functions/csinf.texi (csinf): Likewise.
4891         * doc/posix-functions/csinh.texi (csinh): Likewise.
4892         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
4893         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
4894         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
4895         * doc/posix-functions/ctan.texi (ctan): Likewise.
4896         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
4897         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
4898         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
4899         * doc/posix-headers/complex.texi (complex.h): Likewise.
4900
4901 2010-10-07  Jim Meyering  <meyering@redhat.com>
4902
4903         parse-datetime: avoid compilation failure on OpenBSD 4.7
4904         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
4905         This works around a compilation failure on OpenBSD 4.7:
4906         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
4907
4908 2010-10-07  Eric Blake  <eblake@redhat.com>
4909
4910         docs: update cygwin progress
4911         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
4912         1.7.6.
4913         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
4914         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
4915         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
4916         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
4917         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
4918         Likewise.
4919         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
4920         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
4921         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
4922         Likewise.
4923         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
4924         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
4925         Likewise.
4926         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
4927         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
4928         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
4929         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
4930         Likewise.
4931         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
4932         Likewise.
4933         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
4934
4935         docs: update parse-datetime history
4936         * doc/parse-datetime.texi (Authors of parse_datetime): Better
4937         documentation of this function's history and alternatives.
4938
4939         cygwin: use more robust version check
4940         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
4941         exclude an eventual cygwin 1.9.1.
4942         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
4943         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
4944         (gl_FUNC_STRCASESTR): Likewise.
4945         Reported by Bruno Haible.
4946
4947 2010-10-06  Bruno Haible  <bruno@clisp.org>
4948
4949         string, sys_select: Avoid #including large headers unless necessary.
4950         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
4951         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
4952         OSF/1, BeOS, Haiku.
4953         Reported by Jim Meyering.
4954
4955 2010-10-05  Eric Blake  <eblake@redhat.com>
4956
4957         memmem, strstr, strcasestr: fix bug with long periodic needle
4958         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
4959         periodic needle having false positive.
4960         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
4961         and cygwin 1.7.7.
4962         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
4963         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
4964         (gl_FUNC_STRCASESTR): Likewise.
4965         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
4966         * tests/test-memmem.c (main): Expose the bug.
4967         * tests/test-strcasestr.c (main): Likewise.
4968         * tests/test-strstr.c (main): Likewise.
4969         * tests/test-c-strcasestr.c (main): Likewise.
4970         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
4971         * doc/posix-functions/strstr.texi (strstr): Likewise.
4972         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
4973         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
4974
4975 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
4976
4977         parse-datetime: do some more renaming
4978         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
4979         parse_datetime, not get_date.  Mention the renaming.
4980         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
4981         in comments.
4982         * m4/bison.m4: Likewise.
4983
4984 2010-10-05  Eric Blake  <eblake@redhat.com>
4985
4986         parse-datetime: better name than get_date
4987         * NEWS: Reword the deprecation notice.
4988         * modules/get_date: Rename to modules/parse-datetime.
4989         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
4990         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
4991         * lib/get_date.y: Rename to lib/parse-datetime.y.
4992         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
4993         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
4994         * doc/getdate.texi: Provide fallback wrapper.
4995         * lib/getdate.h: Move guts, and wrap...
4996         * lib/parse-datetime.h: ...new file.
4997         * lib/parse-datetime.y (get_date): Rename...
4998         (parse_datetime): ...to this.
4999         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
5000         (gl_PARSE_DATETIME): ...to this.
5001         * doc/posix-functions/getdate.texi (get_date): Provide fallback
5002         documentation.
5003         * modules/getdate (Files): Provide fallback docs and header.
5004         (Notice, Depends-on): Update references.
5005         * tests/test-parse-datetime.c: Likewise.
5006         * DEPENDENCIES: Likewise.
5007         * MODULES.html.sh (Date and time <time.h>): Likewise.
5008         * doc/parse-datetime.texi (Date input formats)
5009         (Authors of parse_datetime): Likewise.
5010         * modules/parse-datetime (Files, configure.ac, Makefile.am)
5011         (Include): Likewise.
5012         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
5013         * gnulib-tool: Likewise.
5014         * m4/bison.m4 (gl_BISON): Likewise.
5015         Suggested by Bruno Haible.
5016
5017 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
5018
5019         more ports to Solaris tr, which needs [] around ranges
5020         * gnulib-tool: Solaris tr needs [] around ranges.
5021         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
5022         * tests/test-pipe-filter-gi1.c (main): Likewise.
5023         * tests/test-pipe-filter-ii1.c (main): Likewise.
5024
5025 2010-10-05  Eric Blake  <eblake@redhat.com>
5026
5027         bootstrap: fix Solaris regression
5028         * build-aux/bootstrap (check_versions): Solaris tr still needs []
5029         around ranges.
5030         Reported by Pádraig Brady.
5031
5032         bootstrap: work with pkg-config
5033         * build-aux/bootstrap (check_versions): Also transliterate - in
5034         prerequisite name.
5035         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
5036         prerequisites that were already found, to avoid confusion.
5037         Reported by Justin Clift.
5038
5039         faccessat: remove unused wrappers
5040         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
5041         presence of these wrappers dragged in -lgen on Solaris.
5042         Reported by Clemens Brogi; fix suggested by Paul Eggert.
5043
5044 2010-10-05  Jim Meyering  <meyering@redhat.com>
5045
5046         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
5047         * Makefile (sc_pragma_columns): New syntax-check rule.
5048
5049 2010-10-04  Bruno Haible  <bruno@clisp.org>
5050
5051         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
5052         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
5053         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
5054         Reported by Bruce Korb and Eric Blake.
5055
5056 2010-10-04  Bruno Haible  <bruno@clisp.org>
5057
5058         threadlib: Make option --with-libpth-prefix work.
5059         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
5060         use $LIBPTH, not just -lpth.
5061
5062 2010-10-04  Bruno Haible  <bruno@clisp.org>
5063
5064         Avoid line length limitation from HP NonStop system header files.
5065         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
5066         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
5067         * lib/ctype.in.h: Likewise.
5068         * lib/dirent.in.h: Likewise.
5069         * lib/errno.in.h: Likewise.
5070         * lib/fcntl.in.h: Likewise.
5071         * lib/float.in.h: Likewise.
5072         * lib/getopt.in.h: Likewise.
5073         * lib/iconv.in.h: Likewise.
5074         * lib/inttypes.in.h: Likewise.
5075         * lib/langinfo.in.h: Likewise.
5076         * lib/locale.in.h: Likewise.
5077         * lib/math.in.h: Likewise.
5078         * lib/netdb.in.h: Likewise.
5079         * lib/netinet_in.in.h: Likewise.
5080         * lib/poll.in.h: Likewise.
5081         * lib/pthread.in.h: Likewise.
5082         * lib/pty.in.h: Likewise.
5083         * lib/sched.in.h: Likewise.
5084         * lib/se-selinux.in.h: Likewise.
5085         * lib/search.in.h: Likewise.
5086         * lib/signal.in.h: Likewise.
5087         * lib/spawn.in.h: Likewise.
5088         * lib/stdarg.in.h: Likewise.
5089         * lib/stddef.in.h: Likewise.
5090         * lib/stdint.in.h: Likewise.
5091         * lib/stdio.in.h: Likewise.
5092         * lib/stdlib.in.h: Likewise.
5093         * lib/string.in.h: Likewise.
5094         * lib/strings.in.h: Likewise.
5095         * lib/sys_file.in.h: Likewise.
5096         * lib/sys_ioctl.in.h: Likewise.
5097         * lib/sys_select.in.h: Likewise.
5098         * lib/sys_socket.in.h: Likewise.
5099         * lib/sys_stat.in.h: Likewise.
5100         * lib/sys_time.in.h: Likewise.
5101         * lib/sys_times.in.h: Likewise.
5102         * lib/sys_utsname.in.h: Likewise.
5103         * lib/sys_wait.in.h: Likewise.
5104         * lib/sysexits.in.h: Likewise.
5105         * lib/termios.in.h: Likewise.
5106         * lib/time.in.h: Likewise.
5107         * lib/unistd.in.h: Likewise.
5108         * lib/wchar.in.h: Likewise.
5109         * lib/wctype.in.h: Likewise.
5110         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
5111         * modules/ctype (Makefile.am): Likewise.
5112         * modules/dirent (Makefile.am): Likewise.
5113         * modules/errno (Makefile.am): Likewise.
5114         * modules/fcntl-h (Makefile.am): Likewise.
5115         * modules/float (Makefile.am): Likewise.
5116         * modules/getopt-posix (Makefile.am): Likewise.
5117         * modules/iconv-h (Makefile.am): Likewise.
5118         * modules/inttypes (Makefile.am): Likewise.
5119         * modules/langinfo (Makefile.am): Likewise.
5120         * modules/locale (Makefile.am): Likewise.
5121         * modules/math (Makefile.am): Likewise.
5122         * modules/netdb (Makefile.am): Likewise.
5123         * modules/netinet_in (Makefile.am): Likewise.
5124         * modules/poll-h (Makefile.am): Likewise.
5125         * modules/pthread (Makefile.am): Likewise.
5126         * modules/pty (Makefile.am): Likewise.
5127         * modules/sched (Makefile.am): Likewise.
5128         * modules/search (Makefile.am): Likewise.
5129         * modules/selinux-h (Makefile.am): Likewise.
5130         * modules/signal (Makefile.am): Likewise.
5131         * modules/spawn (Makefile.am): Likewise.
5132         * modules/stdarg (Makefile.am): Likewise.
5133         * modules/stddef (Makefile.am): Likewise.
5134         * modules/stdint (Makefile.am): Likewise.
5135         * modules/stdio (Makefile.am): Likewise.
5136         * modules/stdlib (Makefile.am): Likewise.
5137         * modules/string (Makefile.am): Likewise.
5138         * modules/strings (Makefile.am): Likewise.
5139         * modules/sys_file (Makefile.am): Likewise.
5140         * modules/sys_ioctl (Makefile.am): Likewise.
5141         * modules/sys_select (Makefile.am): Likewise.
5142         * modules/sys_socket (Makefile.am): Likewise.
5143         * modules/sys_stat (Makefile.am): Likewise.
5144         * modules/sys_time (Makefile.am): Likewise.
5145         * modules/sys_times (Makefile.am): Likewise.
5146         * modules/sys_utsname (Makefile.am): Likewise.
5147         * modules/sys_wait (Makefile.am): Likewise.
5148         * modules/sysexits (Makefile.am): Likewise.
5149         * modules/termios (Makefile.am): Likewise.
5150         * modules/time (Makefile.am): Likewise.
5151         * modules/unistd (Makefile.am): Likewise.
5152         * modules/wchar (Makefile.am): Likewise.
5153         * modules/wctype (Makefile.am): Likewise.
5154
5155 2010-10-04  Bruno Haible  <bruno@clisp.org>
5156
5157         read-file tests: Avoid a test failure on NonStop Kernel.
5158         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
5159         a regular file.
5160         Reported by Joachim Schmitz <schmitz@hp.com>.
5161
5162 2010-10-03  Bruno Haible  <bruno@clisp.org>
5163
5164         gnulib-tool: Fixes for --create-testdir with --libtool.
5165         * gnulib-tool (func_get_automake_snippet): Don't augment
5166         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
5167         an executable.
5168         (func_create_testdir): Handle module 'alloca' like func_import.
5169         Reported by Bruce Korb <bruce.korb@gmail.com>.
5170
5171 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
5172
5173         Avoid some lines longer than 80 characters.
5174         * lib/stdint.in.h: Break long comment lines.
5175         * lib/math.in.h: Likewise.
5176         (_GL_NUM_UINT_WORDS): New macro, for readability.
5177         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
5178         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
5179         * lib/stdlib.in.h: Likewise.
5180         * lib/spawn.in.h: Likewise.
5181         * lib/sys_socket.in.h: Update an URL.
5182         * lib/sys_stat.in.h: Break long line.
5183
5184 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
5185
5186         Improve pmccabe2html.
5187         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
5188         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
5189         when the sources change. Remove the line in the HTML about "Used
5190         ranges" (which implied that there might be other unused ranges),
5191         rename "Resume" to "Summary" (easier to understand for more users).
5192         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
5193         styles, and some unnecessary blank lines.
5194
5195 2010-10-03  Bruno Haible  <bruno@clisp.org>
5196             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
5197
5198         acl: Add support for ACLs on NonStop Kernel.
5199         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
5200         Check whether the function aclsort() exists.
5201         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
5202         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
5203         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
5204         (acl_nontrivial [HAVE_ACLSORT]: New function.
5205         (file_has_acl): Implement for NonStop Kernel.
5206         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
5207         (qset_acl): Implement for NonStop Kernel.
5208         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
5209         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
5210         (main): Implement for NonStop Kernel.
5211         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
5212         Kernel. Handle this flavor.
5213         * tests/test-set-mode-acl.sh: Likewise.
5214         * tests/test-copy-acl.sh: Likewise.
5215         * tests/test-copy-file.sh: Likewise.
5216
5217 2010-10-03  Bruno Haible  <bruno@clisp.org>
5218
5219         Info about ACLs on NonStop Kernel.
5220         * doc/acl-resources.txt: Add info about NonStop Kernel.
5221         References by Joachim Schmitz <schmitz@hp.com>.
5222
5223 2010-10-02  Bruno Haible  <bruno@clisp.org>
5224
5225         Define missing EDQUOT on NonStop Kernel.
5226         * lib/errno.in.h (EDQUOT): Assign a value if missing.
5227         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
5228         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
5229         missing.
5230         * doc/posix-headers/errno.texi: Mention the NSK bug.
5231         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
5232         Reported by Joachim Schmitz <schmitz@hp.com>.
5233
5234 2010-10-02  Bruno Haible  <bruno@clisp.org>
5235
5236         Update doc for POSIX:2008.
5237         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
5238         Update URL of POSIX specification.
5239
5240 2010-10-02  Bruno Haible  <bruno@clisp.org>
5241
5242         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
5243         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
5244         from gnulib, not from Automake.
5245
5246 2010-10-02  Bruno Haible  <bruno@clisp.org>
5247
5248         New module 'system-posix'.
5249         * modules/system-posix: New file.
5250         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
5251         module is present.
5252         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
5253         GNULIB_SYSTEM_POSIX.
5254         * modules/stdlib (Depends-on): Remove sys_wait.
5255         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
5256         * doc/posix-functions/system.texi: Mention the new module.
5257         * doc/posix-headers/stdlib.texi: Likewise.
5258         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
5259         define test_sys_wait_macros to a no-op.
5260         Reported by Sam Steingold <sds@gnu.org>.
5261
5262 2010-09-30  Bruno Haible  <bruno@clisp.org>
5263
5264         More renaming from 'getdate' to 'get_date'.
5265         * doc/get_date.texi: Renamed from doc/getdate.texi.
5266         * modules/get_date (Files): Update.
5267         * MODULES.html.sh (Date and time <time.h>): Update.
5268         * DEPENDENCIES: Update.
5269         * gnulib-tool: Update comment.
5270         * m4/bison.m4 (gl_BISON): Likewise.
5271         * m4/get_date.m4 (gl_GET_DATE): Likewise.
5272
5273 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
5274
5275         bootstrap: support ACLOCAL_FLAGS during aclocal
5276         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
5277         can add additional -I dir for third-party .m4 files.
5278
5279 2010-09-30  Eric Blake  <eblake@redhat.com>
5280
5281         bootstrap: use glibtoolize on MacOS
5282         * build-aux/bootstrap (check_versions): Convert libtool into
5283         libtoolize.
5284         (tool search): Move libtool check earlier, and look for
5285         glibtoolize for MacOS.
5286         (gnulib_tool_options): Auto-add --libtool when appropriate.
5287         Reported by Justin Clift.
5288
5289         poll: fix typo that broke test on MacOS
5290         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
5291         Reported by Justin Clift.
5292
5293         getdate: rename to get_date
5294         Note: getdate.h is not renamed, to minimize client impact.
5295         * modules/getdate: Mark obsolete.  Move old contents...
5296         * modules/get_date: ...to new module name.
5297         * modules/getdate-tests: Move...
5298         * modules/get_date-tests: ...here.
5299         * m4/getdate.m4: Move...
5300         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
5301         * lib/getdate.y: Move...
5302         * lib/get_date.y: ...here.
5303         * tests/test-getdate.c: Move...
5304         * tests/test-get_date.c: ...here.
5305         * doc/posix-functions/getdate.texi (getdate): Update name.
5306         * NEWS: Mention the change.
5307
5308 2010-09-29  Bruno Haible  <bruno@clisp.org>
5309
5310         Separate the module 'waitpid' from the module 'sys_wait'.
5311         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
5312         present.
5313         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
5314         gl_MODULE_INDICATOR_FOR_TESTS.
5315         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
5316         * modules/sys_wait (Depends-on): Remove waitpid.
5317         (Makefile.am): Substitute GNULIB_WAITPID.
5318         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
5319         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
5320         signature only if the 'waitpid' module is present.
5321         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
5322         * NEWS: Mention the change.
5323         * modules/grantpt (Depends-on): Add waitpid.
5324         * modules/wait-process (Depends-on): Likewise.
5325
5326 2010-09-29  Bruno Haible  <bruno@clisp.org>
5327
5328         More tests for module 'sys_wait'.
5329         * modules/sys_wait-c++-tests: New file.
5330         * tests/test-sys_wait-c++.cc: New file.
5331         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
5332         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
5333
5334 2010-09-29  Bruno Haible  <bruno@clisp.org>
5335
5336         New module 'waitpid'.
5337         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
5338         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
5339         Don't include <process.h>.
5340         (waitpid): Declare only, using modern idiom.
5341         * m4/waitpid.m4: New file.
5342         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
5343         * modules/waitpid: New file.
5344         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
5345         (Makefile.am): Update.
5346         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
5347
5348 2010-09-28  Bruno Haible  <bruno@clisp.org>
5349
5350         poll: Assume ANSI C.
5351         * lib/poll.c (poll): Use an ANSI C declaration.
5352
5353 2010-09-28  Bruno Haible  <bruno@clisp.org>
5354
5355         poll-h: Create poll.h on all platforms.
5356         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
5357         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
5358         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
5359         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
5360         (gl_REPLACE_POLL_H): Don't set POLL_H.
5361         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
5362         * modules/poll-h (Depends-on): Add include_next.
5363         (Makefile.am): Create poll.h unconditionally. Substitute also
5364         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
5365
5366 2010-09-28  Bruno Haible  <bruno@clisp.org>
5367
5368         Tests for module 'poll-h'.
5369         * modules/poll-h-c++-tests: New file.
5370         * tests/test-poll-h-c++.cc: New file.
5371
5372         Tests for module 'poll-h'.
5373         * modules/poll-h-tests: New file.
5374         * tests/test-poll-h.c: New file.
5375
5376 2010-09-28  Bruno Haible  <bruno@clisp.org>
5377
5378         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
5379         * modules/poll-h (Depends-on): Add 'extensions'.
5380
5381 2010-09-28  Bruno Haible  <bruno@clisp.org>
5382
5383         New module 'poll-h'.
5384         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
5385         (poll): Use modern idiom.
5386         * modules/poll-h: New file.
5387         * modules/poll (Files): Remove lib/poll.in.h.
5388         (Depends-on): Add poll-h.
5389         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
5390         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
5391         * m4/poll_h.m4: New file.
5392         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
5393         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
5394         and invoke gl_REPLACE_POLL_H.
5395         * lib/poll.c: Use common idiom.
5396         * tests/test-poll.c: Likewise.
5397         * doc/posix-headers/poll.texi: Mention the poll-h module.
5398         Suggested by Eric Blake.
5399
5400 2010-09-26  Bruno Haible  <bruno@clisp.org>
5401
5402         sys_wait: Implement WSTOPSIG.
5403         * lib/sys_wait.in.h (WSTOPSIG): New macro.
5404         Reported by Simon Josefsson.
5405
5406 2010-09-26  Simon Josefsson  <simon@josefsson.org>
5407
5408         stdlib, sys_wait: Avoid compilation error on mingw.
5409         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
5410
5411 2010-09-26  Bruno Haible  <bruno@clisp.org>
5412
5413         stdlib tests: Avoid code duplication.
5414         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
5415         * modules/sys_wait-tests (Files): Likewise.
5416         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
5417         * tests/test-stdlib.c: Include test-sys_wait.h.
5418         (main): Invoke test_sys_wait_macros.
5419         * tests/test-sys_wait.c: Include test-sys_wait.h.
5420         (main): Invoke test_sys_wait_macros.
5421
5422 2010-09-25  Simon Josefsson  <simon@josefsson.org>
5423
5424         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
5425         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
5426         sure Windows sockets are working before calling getaddrinfo.
5427         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
5428         * doc/gnulib.texi (Windows sockets): Fix typo.
5429
5430 2010-09-25  Bruno Haible  <bruno@clisp.org>
5431
5432         Tests for module 'regex-quote'.
5433         * modules/regex-quote-tests: New file.
5434         * tests/test-regex-quote.c: New file.
5435
5436         New module 'regex-quote'.
5437         * lib/regex-quote.h: New file.
5438         * lib/regex-quote.c: New file.
5439         * modules/regex-quote: New file.
5440         Suggested by Reuben Thomas <rrt@sc3d.org>.
5441
5442 2010-09-24  Bruno Haible  <bruno@clisp.org>
5443
5444         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
5445         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
5446
5447 2010-09-23  Bruno Haible  <bruno@clisp.org>
5448
5449         setenv: Relax license.
5450         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
5451         Blake.
5452         Requested by Eric Blake.
5453
5454 2010-09-22  Bruno Haible  <bruno@clisp.org>
5455
5456         termios: Relax license.
5457         * modules/termios (License): Change to LGPLv2+.
5458         Requested by Eric Blake.
5459
5460 2010-09-22  Bruno Haible  <bruno@clisp.org>
5461
5462         threadlib: Allow the package to change the default to 'no'.
5463         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
5464         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
5465         Reported by Paul Eggert.
5466
5467 2010-09-22  Pádraig Brady  <P@draigbrady.com>
5468             Bruno Haible  <bruno@clisp.org>
5469
5470         Fix endless loop in mbmemcasecoll.
5471         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
5472         byte.
5473         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
5474
5475 2010-09-22  Bruno Haible  <bruno@clisp.org>
5476
5477         Tests for module 'memcoll'.
5478         * modules/memcoll-tests: New file.
5479         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
5480
5481         memcoll, xmemcoll: Clarify size vs. length.
5482         * modules/memcoll.c (memcoll0): Clarify specification.
5483         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
5484         passed to collate_error.
5485
5486 2010-09-22  Bruno Haible  <bruno@clisp.org>
5487
5488         Tests for module 'memcasecmp'.
5489         * modules/memcasecmp-tests: New file.
5490         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
5491
5492 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
5493
5494         * lib/pthread.in.h: Add split double-inclusion guard, and include
5495         system <pthread.h> if there is one.  Use @@-style as in other
5496         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
5497         pthread.h doesn't.
5498         (pthread_mutexattr_destroy, pthread_mutexattr_init):
5499         (pthread_mutexattr_settype, pthread_mutex_trylock):
5500         New static inline functions, if there's no system <pthread.h>.
5501         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
5502         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
5503         Approximate with mutexes if the system lacks spinlocks, as in
5504         MacOS.
5505         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
5506         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
5507         @@-style.  Check for spinlocks separately.
5508         (gl_PTHREAD_DEFAULTS): New macro.
5509         * modules/pthread: Redo to use a more typical style for in.h files.
5510
5511 2010-09-21  Eric Blake  <eblake@redhat.com>
5512
5513         net_if: enhance tests
5514         * tests/test-net_if.c (main): Move signature checks earlier.
5515         Print failures to stderr.
5516         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
5517         Document the bug that we do not yet fix.
5518
5519 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
5520
5521         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
5522         about gnulib, not GSS.
5523
5524 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
5525
5526         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
5527         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
5528         for Emacs.
5529         * build-aux/pmccabe2html: Make Makefile.am example code more
5530         cut-and-paste friendly.
5531
5532 2010-09-21  Simon Josefsson  <simon@josefsson.org>
5533
5534         * tests/test-net_if.c: New file.
5535         * modules/net_if-tests: New file.
5536
5537 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
5538
5539         pthread: add pthread_spin_destroy
5540         * lib/pthread.in.h (pthread_spin_destroy): New function.
5541
5542 2010-09-19  Bruno Haible  <bruno@clisp.org>
5543
5544         gnulib-tool: Fix --help output.
5545         * gnulib-tool (func_usage): Fix help message.
5546         Reported by Reuben Thomas <rrt@sc3d.org>.
5547
5548 2010-09-18  Jim Meyering  <meyering@redhat.com>
5549
5550         maint.mk: avoid unexpanded \n in two diagnostics
5551         * top/maint.mk (sc_prohibit_always_true_header_tests):
5552         Don't use a literal \n in a halt=... assignment.  It would not be
5553         expanded, and the two \n bytes would appear in the diagnostic output
5554         rather than the desired newline.  Use halt=$$(printf ... instead.
5555         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
5556
5557 2010-09-18  Bruno Haible  <bruno@clisp.org>
5558
5559         netinet_in: Doc tweak.
5560         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
5561         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
5562
5563 2010-09-18  Jim Meyering  <meyering@redhat.com>
5564
5565         init.sh: correct an outdated comment
5566         * tests/init.sh (create_exe_shims_):  s/function/alias/
5567
5568         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
5569         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
5570         a file named "*.exe" is removed between the glob expansion and the
5571         processing of that oddly named file.
5572
5573 2010-09-17  Eric Blake  <eblake@redhat.com>
5574
5575         mirbsd: add some more support
5576         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
5577         in BSD family.
5578         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
5579         devices as OpenBSD.
5580         * m4/host-os.m4 (mirbsd): Add MirBSD.
5581
5582         tests: fix unportable assumption on sys/wait.h
5583         * tests/test-sys_wait.c (main): Relax test.
5584         * tests/test-stdlib.c (main): Likewise.
5585
5586         init.sh: accomodate directory with no .exes
5587         * tests/init.sh: Accomodate directory containing only scripts.
5588
5589         tests: avoid compiler warning
5590         * tests/test-stdlib.c (main): Use the variable.
5591
5592         fdutimens, fdutimensat: update signature, again
5593         * lib/utimens.h (gl_futimens): Delete, and move signature...
5594         (fdutimens): ...here.
5595         (fdutimensat): Rearrange signature.
5596         (lutimensat): Rename variable for clarity.
5597         * lib/fdutimensat.c (fdutimensat): Update signature.
5598         * lib/utimens.c (fdutimens): Likewise.
5599         (gl_futimens): Delete.
5600         (utimens, lutimens): Update callers.
5601         * lib/futimens.c (futimens): Likewise.
5602         * tests/test-fdutimensat.c: Likewise.
5603         * tests/test-utimens.c: Likewise.
5604         * tests/test-futimens.h: Update comment.
5605         * NEWS: Mention this.
5606         Suggested by Paul Eggert.
5607
5608 2010-09-17  Bruno Haible  <bruno@clisp.org>
5609
5610         Take over the maintenance of some older macros from Autoconf.
5611         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
5612         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
5613         GNU Autoconf.
5614         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
5615         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
5616
5617 2010-09-17  Eric Blake  <eblake@redhat.com>
5618
5619         fdutimensat: drop atflag validation
5620         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
5621         with valid fd, to close a race scenario where futimens is
5622         unsupported and FILE was replaced by a symlink.
5623         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
5624         accordingly.
5625         Suggested by Paul Eggert.
5626
5627 2010-09-16  Bruno Haible  <bruno@clisp.org>
5628
5629         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
5630         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
5631
5632 2010-09-16  Bruno Haible  <bruno@clisp.org>
5633
5634         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
5635         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
5636         login_tty exists.
5637         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
5638
5639 2010-09-16  Bruno Haible  <bruno@clisp.org>
5640
5641         login_tty: Make the replacement code work on BSD systems.
5642         * lib/login_tty.c: Include <sys/ioctl.h>.
5643         (login_tty): Use ioctl TIOCSCTTY when available.
5644         * modules/login_tty (Depends-on): Add sys_ioctl.
5645         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
5646
5647 2010-09-16  Bruno Haible  <bruno@clisp.org>
5648
5649         login_tty: Stricter unit test.
5650         * modules/login_tty-tests (Depends-on): Add tcgetsid.
5651         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
5652         and tcgetsid() after login_tty.
5653         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
5654
5655 2010-09-16  Bruno Haible  <bruno@clisp.org>
5656
5657         New module 'tcgetsid'.
5658         * lib/tcgetsid.c: New file.
5659         * m4/tcgetsid.m4: New file.
5660         * modules/tcgetsid: New file.
5661         * modules/termios (Depends-on): Add c++defs, warn-on-use.
5662         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
5663         GNULIB_TCGETSID, HAVE_TCGETSID.
5664         * lib/termios.in.h: Include <sys/types.h>.
5665         (tcgetsid): New declaration.
5666         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
5667         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
5668         * doc/posix-functions/tcgetsid.texi: Mention the new module.
5669         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
5670
5671 2010-09-16  Bruno Haible  <bruno@clisp.org>
5672
5673         Tests for module 'termios'.
5674         * modules/termios-c++-tests: New file.
5675         * modules/termios-tests: New file.
5676         * tests/test-termios-c++.cc: New file.
5677         * tests/test-termios.c: New file.
5678
5679         New module 'termios'.
5680         * modules/termios: New file.
5681         * lib/termios.in.h: New file.
5682         * m4/termios_h.m4: New file.
5683         * doc/posix-headers/termios.texi: Mention the new module.
5684
5685 2010-09-16  Eric Blake  <eblake@redhat.com>
5686
5687         fdutimensat: add an atflag parameter
5688         * lib/fdutimensat.c (fdutimensat): Add new parameter.
5689         * lib/utimens.h (fdutimensat): Update prototype.
5690         * tests/test-fdutimensat.c: Adjust test to match.
5691         * NEWS: Document the change.
5692         Suggested by Paul Eggert.
5693
5694 2010-09-16  Bruno Haible  <bruno@clisp.org>
5695
5696         Fix typos in comments.
5697         * lib/striconveh.h: Fix typo in comment.
5698         * lib/login_tty.c (login_tty): Likewise.
5699
5700 2010-09-15  Bruno Haible  <bruno@clisp.org>
5701
5702         stdlib: clarify MirBSD WEXITSTATUS bug
5703         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
5704         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
5705
5706 2010-09-15  Eric Blake  <eblake@redhat.com>
5707
5708         stdlib: work around MirBSD WEXITSTATUS bug
5709         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
5710         * modules/stdlib (Depends-on): Add sys_wait.
5711         * tests/test-sys_wait.c (main): Enhance test.
5712         * tests/test-stdlib.c (main): Likewise.
5713         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
5714
5715         docs: mention MacOS issue with WEXITSTATUS(constant)
5716         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
5717         issue.
5718         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
5719
5720         strnlen: add tests
5721         * modules/strnlen-tests: New file.
5722         * tests/test-strnlen.c: Likewise.
5723
5724 2010-09-14  Bruno Haible  <bruno@clisp.org>
5725
5726         unistr/base: Avoid link errors when module 'libunistring' is also used.
5727         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
5728         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
5729         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
5730         Declare also when HAVE_LIBUNISTRING is set.
5731         Reported by Pádraig Brady <P@draigbrady.com>.
5732
5733 2010-09-14  Eric Blake  <eblake@redhat.com>
5734
5735         test-rawmemchr: make more robust
5736         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
5737         (Depends-on, configure.ac): Add needed prerequisites to use it.
5738         * modules/memchr-tests (Files, Depends-on, configure.ac):
5739         Likewise, to avoid implicit reliance on memchr module prereqs.
5740         * tests/test-memchr.c (main): Ensure proper masking.
5741         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
5742         reads.
5743
5744         memchr: detect glibc Alpha bug
5745         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
5746         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
5747         Alpha.
5748         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
5749         * tests/test-memchr.c (main): Enhance test.
5750         Reported by Nelson H. F. Beebe.
5751
5752 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
5753
5754         fts, getcwd, glob: audit for dirfd returning -1
5755         * lib/fts.c (opendir): Remove #define; no longer used.
5756         (opendirat): New arg PDIR_FD.  All callers changed.
5757         (fts_build, _opendir2): Use new opendirat to avoid the need for
5758         dirfd, or for checking whether dirfd returns a negative value.
5759         Don't use opendir; always use openat followed by fdopendir.
5760         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
5761         it.
5762         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
5763         returns -1 here.
5764         * modules/fts (Depends-on): Remove dirfd.
5765         * modules/getcwd (Depends-on): Likewise.
5766
5767 2010-09-13  Eric Blake  <eblake@redhat.com>
5768
5769         float: fix broken MirBSD header
5770         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
5771         * doc/posix-headers/float.texi (float.h): Document it.
5772
5773 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
5774
5775         fts: use O_NOFOLLOW to avoid race condition when opening a directory
5776         * lib/fts.c (opendirat): New arg extra_flags.
5777         (__opendir2): Use it to avoid following symlinks when opening
5778         a directory, if symlinks are not supposed to be followed.  See
5779         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
5780
5781         fdopendir: preserve argument fd before returning
5782         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
5783         (fdopendir_with_dup, fd_clone_opendir): New static functions.
5784         (fdopendir): Use them, arranging for FD to be open to the same
5785         directory that it was when it started.  (It might be temporarily
5786         closed while fdopendir is running, so this not thread- or
5787         signal-safe.)  Be careful to do the right thing even when file
5788         descriptors are scarce and dup fails with errno == EMFILE.  See
5789         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
5790
5791 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
5792
5793         regex: Pass the system regex if its only problem is 32-bit regoff_t.
5794         * NEWS: Document change.
5795         * m4/regex.m4: Disable test for regoff_t size.
5796
5797 2010-09-13  Jim Meyering  <meyering@redhat.com>
5798
5799         fts: don't operate on an invalid file descriptor after failed dup
5800         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
5801         negative file descriptor.
5802
5803 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
5804
5805         savedir: add streamsavedir, deprecate fdsavedir
5806         * NEWS: Mention deprecation of fdsavedir.
5807         * lib/savedir.c (streamsavedir): New extern function, whose name
5808         ends in "savedir" to be consistent with the others.  This differs
5809         from savedirstream in that it doesn't close its argument.  The
5810         next version of GNU tar will use this instead of fdsavedir, to
5811         avoid some race conditions and conserve file descriptors.
5812         (savedirstream): Reimplement as a wrapper around streamsavedir.
5813         (fdsavedir): Add a comment deprecating this function.  As far as
5814         I know, only GNU tar used it, and GNU tar doesn't need it any more.
5815         * lib/savedir.h (streamsavedir): New decl.
5816         (fdsavedir): Add a comment deprecating this.
5817
5818 2010-09-10  Bruno Haible  <bruno@clisp.org>
5819
5820         langinfo: Fix last commit.
5821         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
5822         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
5823         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5824
5825 2010-09-10  Bruno Haible  <bruno@clisp.org>
5826
5827         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
5828         * lib/progreloc.c (O_EXEC): Define fallback.
5829
5830 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
5831
5832         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
5833         * NEWS: Document recent changes to fcntl-h.
5834         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
5835         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
5836         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
5837         Similarly for O_SEARCH; this last was already true, but not documented.
5838         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
5839         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
5840         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
5841         Likewise.
5842         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
5843         is zero, not whether it is defined.
5844         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
5845         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
5846         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
5847
5848 2010-09-10  Bruno Haible  <bruno@clisp.org>
5849
5850         langinfo, nl_langinfo: Fix for IRIX 5.3.
5851         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
5852         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
5853         HAVE_LANGINFO_YESEXPR.
5854         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
5855         HAVE_LANGINFO_YESEXPR.
5856         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
5857         HAVE_LANGINFO_T_FMT_AMPM is 0.
5858         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
5859         HAVE_LANGINFO_YESEXPR is 0.
5860         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
5861         NOEXPR.
5862         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
5863         * doc/posix-functions/nl_langinfo.texi: Likewise.
5864         Reported by Eric Blake.
5865
5866 2010-09-10  Bruno Haible  <bruno@clisp.org>
5867
5868         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
5869         * doc/glibc-functions/login_tty.texi: Mention the include file problem
5870         on FreeBSD 8.0 and OpenBSD 4.6.
5871         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
5872         * m4/pty_h.m4 (gl_PTY_H): Likewise.
5873         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
5874         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
5875         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
5876         ac_includes_default.
5877         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
5878
5879 2010-09-09  Eric Blake  <eblake@redhat.com>
5880
5881         strsignal: work around NetBSD bug
5882         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
5883         * lib/string.in.h (includes): Likewise.
5884         * doc/posix-functions/strsignal.texi (strsignal): Document the
5885         bug.
5886         Reported by Nelson H. F. Beebe.
5887
5888         gnulib-tool: work with NetBSD /bin/sh
5889         * gnulib-tool (func_cache_var, func_cache_lookup_module)
5890         (func_get_description, func_get_comment, func_get_status)
5891         (func_get_notice, func_get_applicability, func_get_filelist)
5892         (func_get_dependencies, func_get_autoconf_early_snippet)
5893         (func_get_autoconf_snippet, func_get_automake_snippet)
5894         (func_get_include_directive, func_get_link_directive)
5895         (func_get_license, func_get_maintainer, func_import): Avoid
5896         shell syntax errors from parsing syntax extensions.
5897
5898 2010-09-09  Bruno Haible  <bruno@clisp.org>
5899
5900         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
5901         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
5902         a reliable way to determine whether the 'alias' command works.
5903
5904 2010-09-08  Jim Meyering  <meyering@redhat.com>
5905
5906         init.sh: penalize a set-x-impaired shell; don't disqualify it
5907         * tests/init.sh: Too many shells corrupt application stderr when
5908         you set -x, so we can't afford to disqualify them, since at least
5909         on Irix-6.5, that would disqualify all bourne shells.
5910         Instead, use a two-pass approach.
5911         On the first pass, try to find a shell that meets the stricter
5912         condition that set -x does not corrupt stderr.
5913         If no shell meets the stricter condition, retest each candidate
5914         shell, but without that extra condition.  Finally, when
5915         VERBOSE=yes is requested and set -x might cause trouble, simply
5916         issue a warning and refrain from enabling debug output.
5917
5918 2010-09-08  Eric Blake  <eblake@redhat.com>
5919
5920         unsetenv: fix OpenBSD bug
5921         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
5922         * doc/posix-functions/unsetenv.texi (unsetenv): Update
5923         documentation.
5924         Reported by Jim Meyering.
5925
5926         strtod: work around IRIX 6.5 bug
5927         * lib/strtod.c (strtod): Reparse number on shorter string if
5928         exponent parse was invalid.
5929         * tests/test-strtod.c (main): Add check for "0x1p 2".
5930         Reported by Tom G. Christensen.
5931
5932         getopt: optimize previous patch
5933         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
5934         empty variable.  Speed up awk script.
5935         Reported by Paolo Bonzini.
5936
5937 2010-09-08  Jim Meyering  <meyering@redhat.com>
5938
5939         test.sh: disqualify shells for which set -x corrupts stderr
5940         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
5941         and OpenBSD 4.7.  They make it so with "set -x", environment settings
5942         appear in stderr output.  For example, this command:
5943             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
5944         prints "P=1" on those two systems:
5945
5946 2010-09-08  Bruno Haible  <bruno@clisp.org>
5947
5948         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
5949         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
5950         commands, because some shells ignore redirections when there is an
5951         error in the command lookup.
5952         Reported by Eric Blake.
5953
5954 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
5955
5956         * lib/regex.h: Fix a mention of `regex_compile' (should be
5957         `re_compile_pattern').
5958         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
5959         (re_set_registers): Correct name of parameter in comment.
5960
5961         * doc/regex.texi: Add documentation for missing syntax flags.
5962         Remove commented-out documentation of defunct syntax option
5963         RE_NO_EMPTY_ALTS.
5964         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
5965         Add documentation of re_set_registers.
5966         Document trick to re-use a pattern buffer by setting fastmap manually.
5967         Update documentation of struct re_pattern_buffer per public members.
5968         Uncomment documentation of equivalence class operators and
5969         collating symbol operators, since they are now implemented,
5970         Explain leftmost-longest matching in relation to alternatives.
5971         Tidy documentation of substring matching.
5972         Remove POSIX documentation, which is done better in
5973         glibc, and refer the reader there. Keep BSD API documentation, as
5974         that is not readily available elsewhere.
5975
5976 2010-09-07  Eric Blake  <eblake@redhat.com>
5977
5978         getopt: handle POSIXLY_CORRECT set but not exported
5979         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
5980         export state of POSIXLY_CORRECT, due to bash set -o posix.
5981         Reported by Dustin J. Mitchell.
5982
5983 2010-09-05  Bruno Haible  <bruno@clisp.org>
5984
5985         gnulib-tool: Highlight the changed options.
5986         * gnulib-tool (func_usage): Display the --import, --add-import,
5987         --remove-import explanations in bold font.
5988
5989 2010-09-06  Karl Berry  <karl@gnu.org>
5990
5991         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
5992
5993 2010-09-05  Bruno Haible  <bruno@clisp.org>
5994
5995         uniwidth/width: Update comment.
5996         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
5997         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
5998
5999 2010-09-05  Bruno Haible  <bruno@clisp.org>
6000
6001         isinf, isnan: Relax license.
6002         * modules/isinf (License): Change from GPL to LGPL, with consent from
6003         Ben Pfaff.
6004         * modules/isnan (License): Likewise.
6005         Requested by Ludovic Courtès.
6006
6007 2010-09-04  Bruno Haible  <bruno@clisp.org>
6008
6009         gnulib-tool: Help migration from --import to --add-import or --update.
6010         * gnulib-tool: Emit a verbose error message when --import is used
6011         without any module name.
6012
6013 2010-09-04  Bruno Haible  <bruno@clisp.org>
6014
6015         Update doc about gnulib-tool.
6016         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
6017         'gnulib-tool --update' in more detail.
6018         Reported by Eric Blake.
6019
6020 2010-09-04  Bruno Haible  <bruno@clisp.org>
6021
6022         gnulib-tool: Change --import. New options --add/remove-import.
6023         * gnulib-tool: New options --add-import, --remove-import.
6024         (func_usage): Document them.
6025         (have_associative): Define always.
6026         (func_import): In import mode, don't merge the specified settings with
6027         the cached settings. Implement remove-import mode.
6028         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
6029         Explain when to use them versus --import.
6030         (Simple update): Use --add-import instead of --import.
6031         * NEWS: Mention the change.
6032
6033 2010-09-04  Bruno Haible  <bruno@clisp.org>
6034
6035         * doc/gnulib-tool.texi (Initial import): Update paragraph about
6036         separate gnulib.mk.
6037
6038 2010-09-04  Bruno Haible  <bruno@clisp.org>
6039
6040         gnulib-tool: Don't talk about CVS any more.
6041         * gnulib-tool (func_usage, func_import): Write "version control"
6042         instead of CVS.
6043
6044 2010-09-04  Jim Meyering  <meyering@redhat.com>
6045
6046         maint.mk: avoid obscure sc_copyright_check failure in coreutils
6047         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
6048         false positives (whose names may be ill-chosen) when searching
6049         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
6050         would cause a false-positive.
6051
6052         avoid coreutils "make distcheck" failure
6053         Coreutils tests with an absolute build directory name that contains
6054         a space.  Not quoting this directory name caused a failure.
6055         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
6056         * tests/test-vc-list-files-cvs.sh: Likewise.
6057
6058 2010-09-04  Bruno Haible  <bruno@clisp.org>
6059
6060         gnulib-tool: Avoid error when run in a package without Makefile.am.
6061         * gnulib-tool: When collecting the m4dirs in a package that does not
6062         have a Makefile.am, eliminate those directories that contain no
6063         gnulib-cache.m4. Fix expression that counts these directories.
6064
6065 2010-09-04  Bruno Haible  <bruno@clisp.org>
6066
6067         update-copyright test: Improve output when perl is missing or too old.
6068         * tests/test-update-copyright.sh: Move test of Perl version down after
6069         the test whether Perl exists. Provide an explanation relating Perl's
6070         error message to Automake's SKIP: message.
6071
6072 2010-09-04  Bruno Haible  <bruno@clisp.org>
6073
6074         Don't augment PATH in TESTS_ENVIRONMENT.
6075         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
6076         set abs_aux_dir instead of augmenting PATH.
6077         * modules/vc-list-files-tests (Makefile.am): Likewise.
6078         * tests/test-update-copyright.sh: Augment PATH here.
6079         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
6080         path_prepend_.
6081         * tests/test-vc-list-files-git.sh: Likewise.
6082
6083 2010-09-04  Jim Meyering  <meyering@redhat.com>
6084
6085         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
6086         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
6087
6088 2010-09-04  Bruno Haible  <bruno@clisp.org>
6089
6090         strdup: Fix compilation error in C++ mode.
6091         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
6092         the macro.
6093
6094 2010-09-04  Bruno Haible  <bruno@clisp.org>
6095
6096         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
6097         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
6098         macro into a function.
6099         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6100
6101 2010-09-04  Bruno Haible  <bruno@clisp.org>
6102
6103         Set PATH_SEPARATOR the same way autoconf does.
6104         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
6105         the value of PATH_SEPARATOR the same way autoconf-generated configure
6106         scripts do.
6107         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
6108         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
6109
6110 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
6111
6112         Set PATH_SEPARATOR the same way autoconf does.
6113         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
6114         the same way autoconf-generated configure scripts do.
6115         * posix-modules: Likewise.
6116
6117 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
6118
6119         hash: fix safe_hasher const typo
6120         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
6121         const; otherwise, there is a type error later.
6122
6123 2010-09-02  Jim Meyering  <meyering@redhat.com>
6124
6125         test-update-copyright.sh: require perl 5.8.0
6126         * tests/test-update-copyright.sh: Require 5.8.0,
6127         which Tom G. Christensen has confirmed is adequate,
6128         while 5.6.1 is not.
6129
6130 2010-09-02  Eric Blake  <eblake@redhat.com>
6131
6132         tests: init.sh improvements for re-exec'ing with zsh
6133         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
6134         -vx through shell re-exec.
6135         Reported by Tom G. Christensen.
6136
6137         wctype: fix typo in previous commit
6138         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
6139         Reported by Ludovic Courtès.
6140
6141 2010-09-02  Jim Meyering  <meyering@redhat.com>
6142
6143         test-update-copyright.sh: skip test if Perl is too old
6144         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
6145         Reported by Tom G. Christensen.
6146
6147 2010-09-02  Bruno Haible  <bruno@clisp.org>
6148
6149         wctype: Avoid compilation error on IRIX 6.5.30.
6150         * lib/wctype.in.h (iswblank): Declare with a replacement if
6151         REPLACE_ISWBLANK is set.
6152         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
6153         declared. Set REPLACE_ISWBLANK.
6154         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
6155         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
6156         * doc/posix-headers/wctype.texi: Likewise.
6157         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6158
6159 2010-09-01  Bruno Haible  <bruno@clisp.org>
6160
6161         New module 'socketlib'.
6162         * modules/socketlib: New file.
6163         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
6164         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
6165         * modules/sockets (Depends-on): Add socketlib.
6166         Suggested by Sam Steingold <sds@gnu.org>.
6167
6168 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
6169
6170         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
6171
6172         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
6173         when one needs search access to a directory but not read access.
6174         On systems where it is available, it works in some cases where
6175         O_RDONLY does not, namely on directories that are searchable but
6176         not readable, and which need only to be searchable.  If O_SEARCH
6177         is not available, fall back to the traditional method of using
6178         O_RDONLY.
6179
6180         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
6181         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
6182         when opening a directory that needs only to be searchable.
6183         * lib/chdir-safer.c (chdir_no_follow): Likewise.
6184         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
6185         * lib/openat-proc.c (openat_proc_name): Likewise.
6186         * lib/openat.c (openat_needs_fchdir): Likewise.
6187         * lib/save-cwd.c (save_cwd): Likewise.
6188         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
6189
6190 2010-08-28  Bruno Haible  <bruno@clisp.org>
6191
6192         New module 'host-cpu-c-abi'.
6193         * modules/host-cpu-c-abi: New file.
6194         * m4/host-cpu-c-abi.m4: New file, based on part of
6195         clisp/src/m4/general.m4.
6196         Requested by Sam Steingold <sds@gnu.org>.
6197
6198 2010-08-31  Eric Blake  <eblake@redhat.com>
6199         and Jim Meyering  <meyering@redhat.com>
6200
6201         hash: factor, and guard against misbehaving hasher function
6202         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
6203         of table->hasher's return value.  Also protect against a hash value
6204         so large that adding it to table->bucket results in a NULL pointer.
6205         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
6206         Use it in place of open-coded check-and-abort.
6207
6208 2010-08-30  Bruno Haible  <bruno@clisp.org>
6209
6210         hash: silence spurious clang warning
6211         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
6212         Reported by Eric Blake.
6213
6214 2010-08-30  Eric Blake  <eblake@redhat.com>
6215
6216         strstr, memmem, strcasestr: avoid leaked shell message
6217         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
6218         FreeBSD.
6219         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6220         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
6221
6222         tests: silence clang warning
6223         * tests/test-malloca.c (do_allocation): Avoid dead store.
6224
6225 2010-08-29  Bruno Haible  <bruno@clisp.org>
6226
6227         gettext: Fix recent mistake.
6228         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
6229
6230 2010-08-29  Bruno Haible  <bruno@clisp.org>
6231
6232         selinux-h: Offer a --without-selinux option.
6233         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
6234         --without-selinux was specified, skip all tests and define
6235         HAVE_SELINUX_SELINUX_H to 0.
6236         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
6237         set LIB_SELINUX to empty.
6238         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
6239         gl_LIBSELINUX. If --without-selinux was specified, replace
6240         selinux/context.h.
6241         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
6242
6243 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6244             Bruno Haible  <bruno@clisp.org>
6245
6246         Make the module 'realloc-gnu' work again on AIX and OSF/1.
6247         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
6248         of HAVE_REALLOC.
6249         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
6250         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
6251         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
6252         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
6253
6254 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6255             Bruno Haible  <bruno@clisp.org>
6256
6257         Make the module 'calloc-gnu' work again on AIX and OSF/1.
6258         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
6259         HAVE_CALLOC.
6260         * lib/xmalloc.c: Update accordingly.
6261         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
6262         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
6263         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
6264
6265 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6266             Bruno Haible  <bruno@clisp.org>
6267
6268         Make the module 'malloc-gnu' work again on AIX and OSF/1.
6269         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
6270         HAVE_MALLOC.
6271         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
6272         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
6273         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
6274
6275 2010-08-29  Bruno Haible  <bruno@clisp.org>
6276
6277         Update modules list.
6278         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
6279         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
6280         (String handling <string.h>): Add astrxfrm.
6281         (File system functions): Add readlinkat.
6282
6283 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6284
6285         Tests for module 'realloc-gnu'.
6286         * modules/realloc-gnu-tests: New file.
6287         * tests/test-realloc-gnu.c: New file.
6288
6289         Tests for module 'calloc-gnu'.
6290         * modules/calloc-gnu-tests: New file.
6291         * tests/test-calloc-gnu.c: New file.
6292
6293         Tests for module 'malloc-gnu'.
6294         * modules/malloc-gnu-tests: New file.
6295         * tests/test-malloc-gnu.c: New file.
6296
6297 2010-08-28  Bruno Haible  <bruno@clisp.org>
6298
6299         Rename module 'realloc' -> 'realloc-gnu'.
6300         * modules/realloc-gnu: New file, copied from modules/realloc.
6301         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
6302         obsolete.
6303         * modules/mgetgroups (Depends-on): Update.
6304         * doc/posix-functions/realloc.texi: Update.
6305         * NEWS: Mention the change.
6306
6307         Rename module 'calloc' -> 'calloc-gnu'.
6308         * modules/calloc-gnu: New file, copied from modules/calloc.
6309         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
6310         obsolete.
6311         * doc/posix-functions/calloc.texi: Update.
6312         * NEWS: Mention the change.
6313
6314         Rename module 'malloc' -> 'malloc-gnu'.
6315         * modules/malloc-gnu: New file, copied from modules/malloc.
6316         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
6317         obsolete.
6318         * modules/argp (Depends-on): Update.
6319         * modules/regex (Depends-on): Update.
6320         * doc/posix-functions/malloc.texi: Update.
6321         * NEWS: Mention the change.
6322
6323 2010-08-28  Eric Blake  <eblake@redhat.com>
6324
6325         pread, pwrite: add missing dependency
6326         * modules/pread (Depends-on): Add extensions.
6327         * modules/pwrite (Depends-on): Likewise.
6328
6329 2010-08-28  Bruno Haible  <bruno@clisp.org>
6330
6331         unistr/u*-strchr: Fix tests dependencies.
6332         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
6333         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
6334         Reported by Ian Beckwith <ianb@erislabs.net>.
6335
6336 2010-08-28  Bruno Haible  <bruno@clisp.org>
6337
6338         read-file: Don't occupy too much unused memory.
6339         * lib/read-file.c (fread_file): Shrink the buffer at the end.
6340
6341 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
6342             Eric Blake  <eblake@redhat.com>
6343             Bruno Haible  <bruno@clisp.org>
6344
6345         read-file: Avoid memory reallocations with regular files.
6346         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
6347         (fread_file): With regular files, use the remaining length as the
6348         initial buffer size.  Check against overflow.
6349         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
6350         sys_stat.
6351
6352 2010-08-28  Bruno Haible  <bruno@clisp.org>
6353
6354         ftello: Relax license.
6355         * modules/ftello (License): Relax to LGPLv2+.
6356         Reported by Eric Blake.
6357
6358 2010-08-28  Bruno Haible  <bruno@clisp.org>
6359
6360         Avoid relocwrapper link errors due to gnulib replacement functions.
6361         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
6362         function.
6363         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6364
6365 2010-08-28  Bruno Haible  <bruno@clisp.org>
6366
6367         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
6368         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
6369         defined.
6370         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
6371         Suggested by Eric Blake.
6372
6373 2010-08-28  Bruno Haible  <bruno@clisp.org>
6374
6375         sys_socket, netdb: Ensure socklen_t gets defined.
6376         * modules/sys_socket (Depends-on): Add socklen.
6377         * modules/netdb (Depends-on): Likewise.
6378         * modules/getaddrinfo (Depends-on): Remove socklen.
6379         * modules/getsockopt (Depends-on): Likewise.
6380         * modules/setsockopt (Depends-on): Likewise.
6381         * tests/test-sys_socket.c: Check that socklen_t is defined.
6382         * tests/test-netdb.c: Likewise.
6383         * m4/socklen.m4: Update comments.
6384         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6385
6386 2010-08-27  Eric Blake  <eblake@redhat.com>
6387
6388         login_tty: add missing dependency
6389         * modules/login_tty (Depends-on): Add pty.
6390
6391 2010-08-26  Eric Blake  <eblake@redhat.com>
6392
6393         lib-symbol-versions: fix m4 quoting
6394         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
6395         format for AC_LINK_IFELSE.
6396
6397         glob: fix compile test
6398         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
6399
6400         btowc: fix missing file
6401         * modules/btowc (Files): Also ship locale-fr.m4.
6402
6403         lseek: fix link test
6404         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
6405         AC_LINK_IFELSE.
6406
6407         include_next: silence autoconf 2.68 warning
6408         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
6409         AC_COMPILE_IFELSE as special.
6410         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
6411         autoconf < 2.68.
6412
6413         acl: fix compilation test
6414         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
6415         AC_COMPILE_IFELSE.
6416
6417 2010-08-26  Bruno Haible  <bruno@clisp.org>
6418
6419         Modernize AC_TRY_RUN invocations.
6420         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
6421         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
6422         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
6423         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
6424         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
6425         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
6426         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
6427         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
6428         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
6429         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
6430         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
6431         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
6432         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
6433         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
6434         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
6435         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
6436         gl_MBRLEN_NUL_RETVAL): Likewise.
6437         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
6438         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
6439         Likewise.
6440         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6441         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
6442         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
6443         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
6444         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
6445         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
6446         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
6447         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
6448         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
6449         Likewise.
6450         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
6451         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
6452         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6453         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
6454         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6455         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
6456         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6457         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
6458         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6459         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6460
6461 2010-08-26  Bruno Haible  <bruno@clisp.org>
6462
6463         Modernize AC_TRY_LINK invocations.
6464         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
6465         AC_TRY_LINK.
6466         * m4/argp.m4 (gl_ARGP): Likewise.
6467         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
6468         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
6469         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
6470         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
6471         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
6472         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
6473         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
6474         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6475         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
6476         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
6477         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
6478         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
6479         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
6480         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
6481         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
6482         * m4/hostent.m4 (gl_HOSTENT): Likewise.
6483         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
6484         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
6485         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
6486         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
6487         Likewise.
6488         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
6489         Likewise.
6490         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
6491         Likewise.
6492         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
6493         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
6494         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
6495         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6496         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
6497         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
6498         * m4/servent.m4 (gl_SERVENT): Likewise.
6499         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6500         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
6501         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
6502         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
6503         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
6504         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6505         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6506         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6507         * modules/tsearch-tests (configure.ac): Likewise.
6508
6509 2010-08-26  Bruno Haible  <bruno@clisp.org>
6510
6511         Modernize AC_TRY_COMPILE invocations.
6512         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
6513         AC_TRY_COMPILE.
6514         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
6515         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
6516         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
6517         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
6518         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
6519         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
6520         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
6521         * m4/lock.m4 (gl_LOCK): Likewise.
6522         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
6523         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
6524         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
6525         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
6526         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
6527         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
6528         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
6529         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
6530         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
6531         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
6532         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
6533         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
6534         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
6535         extraneous semicolon.
6536
6537 2010-08-26  Jim Meyering  <meyering@redhat.com>
6538
6539         stat-time: relax license LGPL
6540         * modules/stat-time (License): Change from GPL to LGPL,
6541         with consent from all contributors, for use in libguile.
6542         Requested by Ludovic Courtès.
6543
6544 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
6545
6546         poll: return immediately on POLLHUP.
6547         * lib/poll.c (poll): Always set timeout before wait_timeout is
6548         computed.
6549
6550 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6551
6552         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
6553         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
6554         rmdir ("dir/.//"), unlinkat.
6555
6556 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
6557
6558         stdbool: avoid spurious failure with modern xlc
6559         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
6560
6561 2010-08-24  Bruno Haible  <bruno@clisp.org>
6562
6563         getloadavg: simplify code
6564         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
6565         gl_have_func. Update comments.
6566
6567 2010-08-24  Eric Blake  <eblake@redhat.com>
6568
6569         getloadavg: don't define SVR4 on cygwin
6570         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
6571         only define SVR4 when -lkvm is required.
6572         Reported by Yaakov Selkowitz.
6573
6574 2010-08-24  Bruno Haible  <bruno@clisp.org>
6575
6576         priv-set: fix comment
6577         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
6578
6579 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
6580
6581         priv-set: fix comments
6582         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
6583         to match code, as suggested by David Bartley in:
6584         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
6585
6586 2010-08-23  Eric Blake  <eblake@redhat.com>
6587
6588         stdbool: avoid rejecting clang
6589         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
6590         * tests/test-stdbool.c: Enable more tests if using the system
6591         <stdbool.h> instead of the gnulib replacement.
6592         (main): Move xlc bug test to a runtime test for all compilers.
6593         Reported by Anders Kaseorg.
6594
6595         argz: fix shell quoting issue
6596         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
6597         Reported by Charles Wilson.
6598
6599 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
6600             Erik Faye-Lund <kusmabite@gmail.com>
6601
6602         poll, select: handle ERROR_BROKEN_PIPE.
6603         * lib/poll.c (win32_compute_revents): Return POLLHUP when
6604         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
6605         * lib/select.c (win32_compute_revents): Do not mark a pipe
6606         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
6607
6608 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
6609
6610         fts: allow compilation with C++
6611         * lib/fts_.h: Specify extern "C" linkage with C++.
6612
6613 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6614
6615         Fix gnulib-tool sed script de-commentation for AIX sed.
6616         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
6617         sed.
6618
6619 2010-08-17  Eric Blake  <eblake@redhat.com>
6620
6621         test-stddef: test for (some) offsetof bugs
6622         * tests/test-stddef.c: Enhance test to ensure correct type of
6623         offsetof.
6624         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
6625         that we are not fixing at this time.
6626
6627 2010-08-15  Bruno Haible  <bruno@clisp.org>
6628
6629         stpncpy: Allow stpncpy to be defined as a macro.
6630         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
6631         if it's already correctly declared.
6632         * lib/string.in.h (stpncpy): Undefine before redefining.
6633         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
6634
6635 2010-08-14  Bruno Haible  <bruno@clisp.org>
6636
6637         Rename module 'memxfrm' to 'amemxfrm'.
6638         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
6639         (amemxfrm): Renamed from memxfrm.
6640         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
6641         (amemxfrm): Renamed from memxfrm.
6642         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
6643         * NEWS: Mention the change.
6644         * MODULES.html.sh (String handling <string.h>): Update.
6645         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
6646         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
6647         * lib/unicase/u16-casexfrm.c: Likewise.
6648         * lib/unicase/u32-casexfrm.c: Likewise.
6649         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
6650         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
6651         * lib/uninorm/u16-normxfrm.c: Likewise.
6652         * lib/uninorm/u32-normxfrm.c: Likewise.
6653         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
6654         memxfrm.
6655         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
6656         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
6657         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
6658         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
6659         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
6660         Suggested by Paul Eggert.
6661
6662 2010-08-14  Bruno Haible  <bruno@clisp.org>
6663
6664         Tests for module 'astrxfrm'.
6665         * modules/astrxfrm-tests: New file.
6666         * tests/test-astrxfrm.c: New file.
6667
6668         New module 'astrxfrm'.
6669         * lib/astrxfrm.h: New file.
6670         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
6671         * modules/astrxfrm: New file.
6672
6673 2010-08-14  Reuben Thomas <rrt@sc3d.org>
6674
6675         regex: Tweak doc.
6676         * doc/regex.texi (Overview): Don't mention regex.c.
6677         (GNU Regular Expression Compiling): Likewise.
6678         (Match-end-of-line Operator): Mention 'not_eol'.
6679
6680 2010-08-14  Brian Gough  <bjg@gnu.org>
6681             Bruno Haible  <bruno@clisp.org>
6682
6683         git-merge-changelog: add doc relating to use with bzr and hg.
6684         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
6685
6686 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
6687
6688         pthread: fix pthread.h creation for srcdir != builddir
6689         * modules/pthread (Makefile.am): Fix the rule to work also in a
6690         non-srcdir build.
6691
6692 2010-08-13  Karl Berry  <karl@gnu.org>
6693
6694         * doc/regex.texi (Predefined Syntaxes): @smallexample.
6695         * doc/posix-*/*: force line break before @url of POSIX
6696         specifications.
6697         Suggested by Werner Lemberg.
6698
6699 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6700
6701         strtod: fix const diagnostic
6702         * lib/strtod.c (strtod): Don't assign const char * to char *,
6703         as this elicits a warning from GCC when warnings are enabled.
6704
6705 2010-08-10  Pádraig Brady <P@draigbrady.com>
6706         and Eric Blake  <eblake@redhat.com>
6707
6708         copy-acl: ignore ENOTSUP on HP-UX
6709         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
6710         so that it is available for HP-UX.
6711         * lib/copy-acl.c (qcopy_acl): Use it.
6712         Reported by Patrick M. Callahan.
6713
6714 2010-08-10  Eric Blake  <eblake@redhat.com>
6715
6716         open, chown: relax license
6717         * modules/open (License): Change to LGPLv2+, with consent by all
6718         authors, for use in augeas.
6719         * modules/chown (License): Likewise.
6720         * modules/lchown (Likewise): Likewise.
6721         Requested by Adam Stokes.
6722
6723 2010-08-09  Karl Berry  <karl@gnu.org>
6724
6725         * build-aux/ar-lib: new file, import from Automake.
6726         * config/srclist.txt: autocheck for updates.
6727
6728 2010-08-09  Eric Blake  <eblake@redhat.com>
6729
6730         readlinkat: adjust client modules
6731         * modules/areadlinkat (Depends-on): Use readlinkat, not
6732         symlinkat.
6733         * modules/areadlinkat-with-size (Depends-on): Likewise.
6734
6735         mknod: be more vocal about danger of running tests as root
6736         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
6737         root, since that is just asking for problems.
6738         Suggested by Bruno Haible, based on a report by Rainer Tammer.
6739
6740         readlinkat: split into its own module
6741         * modules/symlinkat: Split readlinkat...
6742         * modules/readlinkat: ...into separate module.
6743         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
6744         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
6745         * lib/symlinkat.c (readlinkat): Move...
6746         * lib/readlinkat.c: ...into new file.
6747         * modules/symlinkat-tests: Split readlinkat test...
6748         * modules/readlinkat-tests: ...into separate module.
6749         * tests/test-symlinkat.c: Split...
6750         * tests/test-readlinkat.c: ...into new file.
6751         * NEWS: Document the split.
6752         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
6753         * lib/unistd.in.h (readlinkat): Likewise.
6754         Suggested by Bruno Haible.
6755
6756 2010-08-08  Bruno Haible  <bruno@clisp.org>
6757
6758         memxfrm: Speed up.
6759         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
6760         that usually only one call to strxfrm is necessary for each string
6761         part.
6762         Reported by Paul Eggert <eggert@cs.ucla.edu>.
6763
6764 2010-08-07  Karl Berry  <karl@gnu.org>
6765
6766         * doc/posix-headers/limits.texi,
6767         * doc/posix-functions/malloc.texi,
6768         * doc/posix-functions/strsignal.texi: missing @item.
6769         * doc/ld-version-script.texi: spurious leading i.
6770         * doc/regex.texi (Interval Operators): no commas inside @var.
6771
6772 2010-08-01  Bruno Haible  <bruno@clisp.org>
6773
6774         Integrate the regex documentation.
6775         * doc/gnulib.texi: Define 'cn' index.
6776         (Regular expressions): New a chapter that includes regex.texi and
6777         regexprops-generic.texi.
6778         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
6779         syntax.
6780
6781         Whitespace cleanup.
6782         * doc/regex.texi: Remove trailing spaces.
6783
6784         Add regex documentation.
6785         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
6786         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
6787         Written by Kathy A. Hargreaves and Karl Berry.
6788
6789 2010-08-01  Bruno Haible  <bruno@clisp.org>
6790
6791         link: Update documentation.
6792         * doc/posix-functions/link.texi: Update regarding Solaris.
6793
6794 2010-07-31  Bruno Haible  <bruno@clisp.org>
6795
6796         Update modules list.
6797         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
6798         (String handling <string.h>): Add memcmp2, memxfrm.
6799         (Container data structures): Add xlist, xsublist, xoset.
6800         (Core language properties): Add alignof, unused-parameter.
6801         (Process control, Numeric conversion functions <stdlib.h>): Renamed
6802         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
6803         (Unibyte characters <ctype.h>): New section.
6804         (String handling <string.h>): New section.
6805         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
6806         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
6807         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
6808         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
6809         tan, tanh, tanl, y0, y1, yn.
6810         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
6811         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
6812         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
6813         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
6814         unlockpt, vdprintf, vdprintf-posix.
6815         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
6816         (File system functions): Add concat-filename, sys_file, sys_ioctl,
6817         xconcat-filename.
6818         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
6819         getdtablesize, pipe2, pipe2-safer.
6820         (Security): New section.
6821         (Networking functions): Add accept4.
6822         (Signal handling): Add sigpipe.
6823         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
6824         mbmemcasecoll.
6825         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
6826         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
6827         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
6828         pipe-filter-ii.
6829         (Misc): Add argp-version-etc, login_tty, parse-duration.
6830
6831 2010-07-31  Bruno Haible  <bruno@clisp.org>
6832
6833         Improve doc in MODULES.html.
6834         * modules/linkat (Description): Add the word "function".
6835         * modules/mkfifo (Description): Likewise.
6836         * modules/mknod (Description): Likewise.
6837         * modules/remove (Description): Likewise.
6838         * modules/renameat (Description): Likewise.
6839         * modules/stat (Description): Likewise.
6840         * modules/symlink (Description): Likewise.
6841         * modules/unlink (Description): Likewise.
6842
6843 2010-07-31  Bruno Haible  <bruno@clisp.org>
6844
6845         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
6846         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
6847         option --enable/disable-c++ instead of --enable/disable-cxx.
6848         * NEWS: Mention the change.
6849
6850 2010-07-31  Bruno Haible  <bruno@clisp.org>
6851
6852         readlink, areadlink: Relax test a bit.
6853         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
6854         alternative to ENOTDIR.
6855         * tests/test-areadlink.h (test_areadlink): Likewise.
6856         Reported by Rainer Tammer.
6857
6858 2010-07-31  Bruno Haible  <bruno@clisp.org>
6859
6860         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
6861         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
6862         character, perform the search using U_STRCHR.
6863         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
6864         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
6865         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
6866         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
6867         Suggested by Paolo Bonzini.
6868
6869 2010-07-31  Bruno Haible  <bruno@clisp.org>
6870
6871         unistr/u*-strstr: Fix dependencies.
6872         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
6873         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
6874         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
6875
6876 2010-07-31  Bruno Haible  <bruno@clisp.org>
6877
6878         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
6879         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
6880         the beginning of the loop.
6881         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
6882         cases in 'switch' statement.
6883
6884         unistr/u8-strchr: Fix several bugs.
6885         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
6886         the string. When not found, return NULL, not a pointer near the end.
6887
6888         More tests for unistr/u8-strchr.
6889         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
6890         that the function does not read past the first occurrence of the byte
6891         being searched.
6892         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
6893         * tests/unistr/test-u16-strchr.c (main): New function.
6894         * tests/unistr/test-u32-strchr.c (main): New function.
6895
6896 2010-07-31  Bruno Haible  <bruno@clisp.org>
6897
6898         posix-modules: Ignore backup files of documentation files.
6899         * posix-modules: grep only through files named *.texi.
6900
6901 2010-07-31  Bruno Haible  <bruno@clisp.org>
6902
6903         symlinkat: Fix documentation.
6904         * doc/posix-functions/readlinkat.texi: Fix module name.
6905
6906 2010-07-31  Bruno Haible  <bruno@clisp.org>
6907
6908         fchownat: Replace also when chown has the trailing slash bug.
6909         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
6910         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
6911         introduced on 2010-04-10.
6912         Reported by Rainer Tammer.
6913
6914 2010-07-31  Bruno Haible  <bruno@clisp.org>
6915
6916         linkat: Work around AIX 7.1 bug.
6917         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
6918         whether linkat handles trailing slash correctly. If not, replace linkat
6919         and define LINKAT_TRAILING_SLASH_BUG.
6920         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
6921         check whether (fd1,file1) points to a directory if file1 or file2 ends
6922         in a slash. Code taken from lib/link.c.
6923         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
6924         Reported by Rainer Tammer.
6925
6926 2010-07-31  Bruno Haible  <bruno@clisp.org>
6927
6928         Correctly determine whether pow is available in libc on AIX 7 with xlc.
6929         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
6930         This disables an xlc optimization that was causing wrong test results.
6931         Reported by Rainer Tammer.
6932
6933 2010-07-31  Bruno Haible  <bruno@clisp.org>
6934
6935         iconv: Work around AIX 6.1..7.1 bug.
6936         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
6937         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
6938         cross-compiling, guess no on all versions of AIX.
6939         Reported by Rainer Tammer.
6940
6941 2010-07-31  Bruno Haible  <bruno@clisp.org>
6942
6943         readlink: Relax test a bit.
6944         * tests/test-readlink.h (test_readlink): Allow different errno value
6945         when readlink is called with a file name that ends in / and refers to
6946         a file.
6947         Suggested by Eric Blake.
6948         Reported by Rainer Tammer.
6949
6950 2010-07-31  Bruno Haible  <bruno@clisp.org>
6951
6952         copysign: Does not require -lm on glibc systems.
6953         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
6954         gl_COMMON_DOUBLE_MATHFUNC.
6955         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
6956
6957 2010-07-31  Bruno Haible  <bruno@clisp.org>
6958
6959         duplocale: Work around AIX 7.1 bug.
6960         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
6961         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
6962         * lib/duplocale.c (rpl_duplocale): Update comment.
6963         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
6964         Reported by Rainer Tammer.
6965
6966 2010-07-30  Bruno Haible  <bruno@clisp.org>
6967
6968         dirfd: Avoid link error on AIX 7.1.
6969         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
6970         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
6971         exist, set REPLACE_DIRFD.
6972         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
6973         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
6974         * doc/posix-functions/dirfd.texi: Update.
6975         Reported by Rainer Tammer.
6976
6977 2010-07-30  Eric Blake  <eblake@redhat.com>
6978
6979         strtod: next round of AIX fixes
6980         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
6981         exponent.
6982         * tests/test-strtod.c (main): Enhance tests.
6983         * doc/posix-functions/strtod.texi (strtod): Document next bug.
6984         Reported by Rainer Tammer.
6985
6986         futimens: fix configure check
6987         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
6988         Reported by Bruno Haible.
6989
6990 2010-07-30  Bruno Haible  <bruno@clisp.org>
6991
6992         getline: Update regarding AIX.
6993         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
6994         Reported by Rainer Tammer.
6995
6996 2010-07-30  Bruno Haible  <bruno@clisp.org>
6997
6998         wcwidth: Drop replacement on AIX 7.
6999         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
7000         AIX 7.
7001         Reported by Rainer Tammer.
7002
7003 2010-07-30  Bruno Haible  <bruno@clisp.org>
7004
7005         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
7006         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
7007         a 'char *'.
7008         Reported by Rainer Tammer.
7009
7010 2010-07-30  Bruno Haible  <bruno@clisp.org>
7011
7012         unlink: Update regarding AIX.
7013         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
7014         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
7015         Reported by Rainer Tammer.
7016
7017 2010-07-30  Bruno Haible  <bruno@clisp.org>
7018
7019         symlink: Update regarding AIX.
7020         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
7021         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
7022         Reported by Rainer Tammer.
7023
7024 2010-07-30  Bruno Haible  <bruno@clisp.org>
7025
7026         strndup: Update regarding AIX.
7027         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
7028         AIX 7.
7029         Reported by Rainer Tammer.
7030
7031 2010-07-30  Bruno Haible  <bruno@clisp.org>
7032
7033         stat: Update regarding AIX.
7034         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
7035         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
7036         Reported by Rainer Tammer.
7037
7038 2010-07-30  Bruno Haible  <bruno@clisp.org>
7039
7040         truncl: Fix autoconf test.
7041         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
7042         whether truncl works.
7043         Reported by Rainer Tammer.
7044
7045 2010-07-30  Bruno Haible  <bruno@clisp.org>
7046
7047         round: Update regarding AIX.
7048         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
7049         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
7050         Reported by Rainer Tammer.
7051
7052 2010-07-30  Bruno Haible  <bruno@clisp.org>
7053
7054         rename: Update regarding AIX.
7055         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
7056         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
7057         Reported by Rainer Tammer.
7058
7059 2010-07-30  Bruno Haible  <bruno@clisp.org>
7060
7061         printf.m4: Update regarding AIX.
7062         * m4/printf.m4: Update comments regarding AIX.
7063         Reported by Rainer Tammer.
7064
7065 2010-07-30  Bruno Haible  <bruno@clisp.org>
7066
7067         iconv: Update regarding AIX.
7068         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
7069         AIX 7.
7070         Reported by Rainer Tammer.
7071
7072 2010-07-30  Bruno Haible  <bruno@clisp.org>
7073
7074         getopt: Update regarding AIX.
7075         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
7076         no on AIX.
7077         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
7078         Reported by Rainer Tammer.
7079
7080 2010-07-30  Bruno Haible  <bruno@clisp.org>
7081
7082         ldexpl; Update regarding AIX.
7083         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
7084         on AIX 7.
7085         Reported by Rainer Tammer.
7086
7087 2010-07-30  Bruno Haible  <bruno@clisp.org>
7088
7089         frexpl: Update regarding AIX.
7090         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
7091         on AIX 7.
7092         Reported by Rainer Tammer.
7093
7094 2010-07-30  Bruno Haible  <bruno@clisp.org>
7095
7096         open, fopen: Update regarding AIX.
7097         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
7098         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
7099         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
7100         * doc/posix-functions/fopen.texi: Likewise.
7101         Reported by Rainer Tammer.
7102
7103 2010-07-30  Bruno Haible  <bruno@clisp.org>
7104
7105         chown: Update doc regarding AIX.
7106         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
7107         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
7108         Reported by Rainer Tammer.
7109
7110 2010-07-30  Eric Blake  <eblake@redhat.com>
7111
7112         strtod: fix bug in replacement function on AIX
7113         * lib/strtod.c (strtod): Special case broken "0x" parse in
7114         underlying strtod.
7115         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
7116         * doc/posix-functions/strtod.texi (strtod): Likewise.
7117         Reported by Rainer Tammer.
7118
7119 2010-07-30  Bruno Haible  <bruno@clisp.org>
7120
7121         mbrlen: Fix cross-compilation guess for AIX.
7122         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
7123         guess. Leftover from 2008-12-22.
7124
7125 2010-07-30  Bruno Haible  <bruno@clisp.org>
7126
7127         mbrtowc: Fix cross-compilation guess for AIX.
7128         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
7129         guess. Leftover from 2008-12-21.
7130
7131 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
7132
7133         init.sh: work around trap limitation of some shells
7134         * tests/init.sh (setup_): Move exit trap outside of shell function.
7135
7136 2010-07-29  Eric Blake  <eblake@redhat.com>
7137
7138         strtod: aid debugging
7139         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
7140         understanding why strtod is rejected.
7141
7142 2010-07-28  Bruno Haible  <bruno@clisp.org>
7143
7144         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
7145         * lib/unistr/u8-chr.c: Include <string.h>.
7146         * tests/unistr/test-u8-chr.c: Likewise.
7147         * tests/unistr/test-u16-chr.c: Likewise.
7148         * tests/unistr/test-u32-chr.c: Likewise.
7149         * tests/unistr/test-u8-strchr.c: Likewise.
7150         * tests/unistr/test-u16-strchr.c: Likewise.
7151         * tests/unistr/test-u32-strchr.c: Likewise.
7152         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
7153         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
7154         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
7155         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
7156
7157 2010-07-28  Bruno Haible  <bruno@clisp.org>
7158
7159         Use spaces for indentation, not tabs.
7160         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
7161
7162 2010-07-27  Bruno Haible  <bruno@clisp.org>
7163
7164         mbspcasecmp: Fix function specification.
7165         * lib/string.in.h (mbspcasecmp): Fix specification comment.
7166         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
7167         Reported by Eric Blake <eblake@redhat.com>.
7168
7169 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
7170
7171         timespec: use cast and not conditional, as truncation isn't possible
7172         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
7173         instead of a conditional.  Comment about the situation in more detail.
7174         This undoes most of the 2009-10-29 patch.
7175
7176 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
7177
7178         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
7179         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
7180         * lib/unistr/u8-strchr.c: Likewise.
7181         * modules/unistr/u8-chr: Depend on memchr.
7182
7183         unistr/u*-strchr: add tests
7184         * modules/unistr/u8-strchr-tests: New file.
7185         * modules/unistr/u16-strchr-tests: New file.
7186         * modules/unistr/u32-strchr-tests: New file.
7187         * tests/unistr/test-strchr.h: New file.
7188         * tests/unistr/test-u8-strchr.c: New file.
7189         * tests/unistr/test-u16-strchr.c: New file.
7190         * tests/unistr/test-u32-strchr.c: New file.
7191
7192         unistr/u*-chr: test multibyte sequences more
7193         * tests/unistr/test-chr.h: Do complete testing of the characters in the
7194         test vector.
7195         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
7196         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
7197         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
7198
7199         unistr/u*-chr: test multibyte sequences
7200         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
7201
7202         unistr/u*-chr: prepare for multibyte tests
7203         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
7204         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
7205         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
7206         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
7207         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
7208         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
7209
7210 2010-07-18  Bruno Haible  <bruno@clisp.org>
7211
7212         unistr/u8-strchr: Optimize non-ASCII argument case.
7213         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
7214         because the first byte often matches anyway.
7215         Reported by Pádraig Brady <P@draigbrady.com>.
7216
7217 2010-07-15  Karl Berry  <karl@gnu.org>
7218
7219         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
7220
7221 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
7222
7223         getcwd: on Solaris, work better if ancestors are inaccessible
7224         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
7225         buffer and size, try again with a large buffer.  This works better
7226         on Solaris, since its getcwd succeeds even if the path to the root
7227         is inaccessible, and this is helpful in common cases such as .zfs
7228         hidden directories.  Problem reported by J Chapman Flack in
7229         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
7230         Use system getcwd if it's declared, not merely if it's partly
7231         working; use the partly-working test only to avoid needless effort
7232         if the system getcwd fails.
7233         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
7234         comment that was already obsolete and is now even more obsolete.
7235         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
7236         now might call strdup.
7237
7238 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
7239
7240         pthread: Add enough so that coreutils/src/sort.c compiles.
7241         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
7242         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
7243         gnulib. Include <sched.h> and <time.h>, as per POSIX.
7244         Include <sys/types.h>, in case it defines pthread_t.
7245         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
7246         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
7247         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
7248         (pthread_rwlockattr_t, pthread_spinlock_t):
7249         New typedefs, if HAVE_PTHREAD_T is not defined.
7250         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
7251         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
7252         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
7253         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
7254         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
7255         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
7256         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
7257         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
7258         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
7259         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
7260         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
7261         New macros.
7262         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
7263         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
7264         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
7265         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
7266         (pthread_spin_unlock): New dummy functions.
7267         (pthread_create): Return EAGAIN; don't set errno.
7268         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
7269         require AC_C_INLINE.
7270         * modules/pthread (Depends-on): Add sched, time.
7271         (pthread.h): Use AM_V_GEN.
7272
7273 2010-07-13  Bruno Haible  <bruno@clisp.org>
7274
7275         striconveh: Don't malloc memory if the result buffer is sufficient.
7276         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
7277         buffer if its size is sufficient.
7278         Reported by Ludovic Courtès <ludo@gnu.org>.
7279
7280 2010-07-13  Bruno Haible  <bruno@clisp.org>
7281
7282         strtod: Add safety check.
7283         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
7284
7285 2010-07-12  Bruno Haible  <bruno@clisp.org>
7286
7287         Unify tests that set gl_cv_func_ldexpl_no_libm.
7288         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
7289         gl_FUNC_LDEXPL.
7290         (gl_FUNC_LDEXPL): Invoke it.
7291         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
7292
7293 2010-07-12  Bruno Haible  <bruno@clisp.org>
7294
7295         Unify tests that set gl_cv_func_ldexp_no_libm.
7296         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
7297         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
7298         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
7299         (configure.ac): Simply invoke gl_FUNC_LDEXP.
7300         * modules/strtod (Files): Add m4/ldexp.m4.
7301
7302 2010-07-12  Bruno Haible  <bruno@clisp.org>
7303
7304         Unify tests that set gl_cv_func_frexpl_no_libm.
7305         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
7306         gl_FUNC_FREXPL_NO_LIBM.
7307         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
7308         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
7309
7310 2010-07-12  Bruno Haible  <bruno@clisp.org>
7311
7312         Unify tests that set gl_cv_func_frexp_no_libm.
7313         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
7314         gl_FUNC_FREXP_NO_LIBM.
7315         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
7316         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
7317
7318 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
7319
7320         memcoll: clarify sizes versus lengths, document better, and tweak perf
7321         * lib/memcoll.c (strcoll_loop, memcoll0):
7322         Improve quality of descriptive comments.  Name variables
7323         consistently as to whether they are lengths (which do not include
7324         terminating null) versus sizes (which do).
7325         * lib/xmemcoll.c (xmemcoll0): Likewise.
7326         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
7327         returned when s1size == 0; this is easier to compile and saves
7328         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
7329
7330 2010-07-12  Bruno Haible  <bruno@clisp.org>
7331
7332         Tests for module '_Exit'.
7333         * modules/_Exit-tests: New file.
7334         * tests/test-_Exit.sh: New file.
7335         * tests/test-_Exit.c: New file.
7336
7337         New module '_Exit'.
7338         * lib/stdlib.in.h (__attribute__): New macro.
7339         (_Exit): New declaration.
7340         * lib/_Exit.c: New file.
7341         * m4/_Exit.m4: New file.
7342         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
7343         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
7344         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
7345         * modules/_Exit: New file.
7346         * tests/test-stdlib-c++.cc (_Exit): Check signature.
7347         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
7348
7349 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
7350
7351         strtod: make it more-accurate typically, and don't require libm
7352         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
7353         Include limits.h.  Don't include string.h.
7354         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
7355         (locale_isspace): New function, so that no casts are needed to
7356         check whether *s is a space.
7357         (ldexp): Provide an unused dummy if not available.
7358         (scale_radix_exp, parse_number, underlying_strtod): New functions.
7359         (strtod): Use them.  This implementation prefers to use the
7360         underlying strtod if available, falling back on our own code
7361         only to fix known bugs.  This is more likely to produce an
7362         accurate result.  Also, it avoids the use of libm functions.
7363         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
7364         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
7365         was absent, but it caused a test failure with coreutils.
7366         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
7367         with libm.
7368         * modules/strtod (Makefile.am, Link): libm is no longer needed.
7369         * modules/strtod-tests (Makefile.am): Likewise.
7370
7371 2010-07-11  Pádraig Brady  <P@draigBrady.com>
7372             Bruno Haible  <bruno@clisp.org>
7373
7374         unistr/u8-strchr: Optimize ASCII argument case.
7375         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
7376
7377 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
7378
7379         (x)memcoll: minor tweaks
7380         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
7381         is after the type that it qualifies.
7382         (memcoll0): Likewise.
7383         * lib/memcoll.h (memcoll0): Likewise.
7384         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
7385         * lib/xmemcoll.h (xmemcoll0): Likewise.
7386         * lib/memcoll.c (memcoll0): Correct the comment.  This function
7387         differs from memcoll in that the NUL byte is part of the argument.
7388         Omit the abort-checks, as performance is a real issue here.  Plus,
7389         the checks were wrong anyway (an off-by-one error).  Omit local
7390         variable 'diff', as it's a bit clearer that way.
7391         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
7392         no longer needed.
7393
7394 2010-07-08  Chen Guo <chenguo4@yahoo.com>
7395
7396         (x)memcoll: speedup when input is known to be NUL delimited
7397         * lib/memcoll.c: Include stdlib.
7398         (memcoll0) New function.
7399         (strcoll_loop) New function, refactored for use in both memcoll
7400         and memcoll0.
7401         * lib/memcoll.h: Add prototype for memcoll0.
7402         * lib/xmemcoll.c: (xmemcoll0) New function.
7403         (collate_error) New function, refactored for use in both xmemcoll
7404         and xmemcoll0.
7405         * lib/xmemcoll.h: Add prototype for xmemcoll0.
7406         * m4/memcoll.m4: add inline invocation.
7407
7408 2010-07-06  Pádraig Brady  <P@draigBrady.com>
7409
7410         * build-aux/bootstrap: Remove any local translations
7411         from the translation project synchronization directory,
7412         so that local only translations are not distributed.
7413
7414 2010-07-04  Bruno Haible  <bruno@clisp.org>
7415
7416         fsusage: Clarify which code applies to which platforms.
7417         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
7418         platform.
7419         * lib/fsusage.c (get_fs_usage): Likewise.
7420
7421 2010-07-04  Bruno Haible  <bruno@clisp.org>
7422
7423         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
7424         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
7425         Reported by Martin Lambers <marlam@marlam.de>.
7426
7427 2010-07-04  Jim Meyering  <meyering@redhat.com>
7428
7429         hash: once again explicitly disallow insertion of NULL
7430         * lib/hash.c (hash_insert0): Reinstate just-removed test:
7431         inserting a NULL pointer cannot work with these functions.
7432         Add a comment with details.
7433         This reverts part of the 2010-07-01 commit, 5bef1a35
7434         "hash: extend module to deal with non-pointer keys".
7435
7436 2010-07-01  Bruno Haible  <bruno@clisp.org>
7437
7438         stdbool: Update doc.
7439         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
7440         Info from Christian Weisgerber <naddy@mips.inka.de>.
7441
7442 2010-07-01  Jim Meyering  <meyering@redhat.com>
7443
7444         hash: extend module to deal with non-pointer keys
7445         * lib/hash.c (hash_insert0): New interface, much like hash_insert
7446         but that allows insertion of non-pointer entries.
7447         Do not disallow an ENTRY value of NULL.
7448         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
7449         * lib/hash.h (hash_insert0): Declare.
7450
7451 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
7452
7453         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
7454         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
7455         not present (i.e. with autoconf 2.59 and when using gettextize, not
7456         gnulib), require AC_GNU_SOURCE instead.
7457
7458 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
7459
7460         idpriv-drop: Fix tests.
7461         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
7462         not to the test-idpriv-droptemp program.
7463
7464 2010-06-29  Bruno Haible  <bruno@clisp.org>
7465
7466         string: Fix syntax error with g++ 2.96.
7467         * lib/string.in.h (__pure__): Remove definition.
7468         (_GL_ATTRIBUTE_PURE): New macro.
7469         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
7470         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
7471         Reported by Christian Weisgerber <naddy@mips.inka.de>.
7472
7473 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
7474
7475         unitypes: Fix bug introduced on 2010-05-18.
7476         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
7477
7478 2010-06-22  Eric Blake  <eblake@redhat.com>
7479
7480         memmem: slight optimization
7481         * lib/str-two-way.h (critical_factorization): Update comments.
7482         Reduce work during factorization phase.
7483         Reported by Carlos Bueno <carlos@bueno.org>.
7484
7485 2010-06-21  Bruno Haible  <bruno@clisp.org>
7486
7487         Fix HAVE_CALLOC_POSIX misnomer.
7488         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
7489         !HAVE_CALLOC_POSIX.
7490         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
7491         HAVE_CALLOC_POSIX.
7492         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
7493         instead of HAVE_CALLOC_POSIX.
7494         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
7495         HAVE_CALLOC_POSIX.
7496
7497         Use modern idiom for calloc() replacement.
7498         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
7499         AC_FUNC_CALLOC.
7500         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
7501         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
7502         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
7503         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
7504         (gl_REPLACE_CALLOC): New macro.
7505
7506 2010-06-21  Bruno Haible  <bruno@clisp.org>
7507
7508         Fix HAVE_REALLOC_POSIX misnomer.
7509         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
7510         !HAVE_REALLOC_POSIX.
7511         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
7512         HAVE_REALLOC_POSIX.
7513         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
7514         instead of HAVE_REALLOC_POSIX.
7515         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
7516         HAVE_REALLOC_POSIX.
7517
7518         Use modern idiom for realloc() replacement.
7519         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
7520         AC_FUNC_REALLOC.
7521         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
7522         Autoconf's AC_FUNC_REALLOC.
7523         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
7524         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
7525         (gl_REPLACE_REALLOC): New macro.
7526         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
7527
7528 2010-06-21  Bruno Haible  <bruno@clisp.org>
7529
7530         Fix HAVE_MALLOC_POSIX misnomer.
7531         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
7532         !HAVE_MALLOC_POSIX.
7533         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
7534         HAVE_MALLOC_POSIX.
7535         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
7536         instead of HAVE_MALLOC_POSIX.
7537         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
7538         HAVE_MALLOC_POSIX.
7539
7540         Use modern idiom for malloc() replacement.
7541         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
7542         AC_FUNC_MALLOC.
7543         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
7544         Autoconf's AC_FUNC_MALLOC.
7545         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
7546         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
7547         (gl_REPLACE_MALLOC): New macro.
7548         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
7549
7550 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
7551
7552         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
7553         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
7554         This macro takes 3 arguments, not 4.
7555
7556 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
7557
7558         ipv6: fix detection under mingw
7559         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
7560         in6_addr.
7561
7562 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
7563
7564         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
7565         that strtod() works when cross-compiling to a glibc version known
7566         to work.
7567
7568 2010-06-15  Bruno Haible  <bruno@clisp.org>
7569
7570         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
7571
7572 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
7573
7574         select: Correct timeout.
7575         * lib/select.c (rpl_select): Compute wait_timeout correctly.
7576
7577 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
7578
7579         git-version-gen: init shell var to avoid env var influence
7580         * build-aux/git-version-gen (v): Init shell var to empty.
7581
7582 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
7583
7584         priv-set: Don't assume that priv.h exists merely because getppriv does.
7585         See Jan Andersen's bug report about AIX 5L in
7586         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
7587         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
7588         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
7589         * lib/priv-set.h: Likewise.
7590         * tests/test-priv-set.c: Likewise.
7591
7592 2010-06-13  Bruno Haible  <bruno@clisp.org>
7593
7594         relocatable: Make it easier to test whether to install wrappers.
7595         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
7596         RELOCATABLE_VIA_WRAPPER.
7597
7598 2010-06-13  Bruno Haible  <bruno@clisp.org>
7599
7600         gnulib-tool: Display specified modules and dependencies differently.
7601         * gnulib-tool (func_show_module_list): New function.
7602         (func_import, func_create_testdir): Invoke it.
7603         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
7604
7605 2010-06-13  Bruno Haible  <bruno@clisp.org>
7606
7607         gnulib-tool: Align code of func_import and func_create_testdir.
7608         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
7609         specified_modules.
7610
7611 2010-06-12  Jim Meyering  <meyering@redhat.com>
7612
7613         test-inttostr: avoid spurious failure on Solaris 9
7614         * tests/test-inttostr.c (main): Skip the test when snprintf fails
7615         to accept "%ju".  Reported by Bruno Haible.
7616
7617 2010-06-11  Jim Meyering  <meyering@redhat.com>
7618
7619         test-sys_socket: mark variables as used more readably
7620         * tests/test-sys_socket.c (main): Mark otherwise unused variables
7621         as "used" explicitly via (void) statement casts.  This is more
7622         readable than using them in an artificial return expression.
7623         Suggestion from Bruno Haible.
7624
7625 2010-06-11  Bruno Haible  <bruno@clisp.org>
7626
7627         Avoid some more warnings from "gcc -Wwrite-strings".
7628         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
7629         to 'const char *'.
7630         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
7631         * tests/test-c-strcasestr.c (main): Likewise.
7632         * tests/test-mbscasestr1.c (main): Likewise.
7633         * tests/test-mbscasestr2.c (main): Likewise.
7634         * tests/test-memmem.c (main): Likewise.
7635         * tests/test-strstr.c (main): Likewise.
7636         * tests/test-strcasestr.c (main): Likewise.
7637
7638 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7639
7640         init.sh: change framework_failure_ to fail with status 99, not 1
7641         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
7642         automake's parallel-tests rule that this is an unexpected failure,
7643         even if the test is listed in XFAIL_TESTS.
7644
7645 2010-06-11  Jim Meyering  <meyering@redhat.com>
7646
7647         test-inttostr: avoid warnings about 4-6KB literal strings
7648         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
7649         Include "macros.h", for its definition of ASSERT.
7650         (CK): s/assert/ASSERT/
7651         * modules/inttostr-tests (Files): Add macros.h.
7652
7653         init.sh: don't use $ME_ or skip_ before they are defined
7654         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
7655         their first uses.  Also hoist their companions: warn_, fail_,
7656         framework_failure_, $stderr_fileno.  Prompted by a patch from
7657         Stefano Lattarini.
7658
7659         test-sys_socket: avoid set-but-not-used warnings from gcc
7660         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
7661         avoid warning about set-but-not-used variables.
7662
7663         test-xvasprintf: avoid 'const' discard warnings
7664         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
7665         "const" when assigning from literal strings.
7666         (test_xasprintf): Add "void" in function argument list to placate
7667         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
7668
7669         tests: avoid compilation warnings in argmatch and exclude tests...
7670         in packages that define ARGMATCH_DIE_DECL, like coreutils.
7671         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
7672         Since it always exits, declare with the "noreturn" attribute.
7673         * tests/test-argmatch.c: Likewise.
7674
7675         tests: avoid 'const' discard warnings in mbsstr tests
7676         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
7677         * tests/test-mbsstr2.c (main): Likewise.
7678
7679         test-verify: avoid warning from gcc's -Wmissing-declarations
7680         * tests/test-verify.c (function): Declare to be static.
7681
7682         test-inttostr.c: include <string.h> for use of strcmp
7683         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
7684
7685         test-linkat: avoid failed assertion on "other" architectures
7686         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
7687         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
7688         sparc: https://bugs.launchpad.net/bugs/591968
7689
7690 2010-06-11  Jim Meyering  <meyering@redhat.com>
7691
7692         printf.m4: avoid autoconf's "Expanded Before Required" warning
7693         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
7694         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
7695         autoconf warning.
7696
7697 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
7698
7699         Replacement header templates are now named with ".in", not "_".
7700         * doc/gnulib-intro.texi: Correct.
7701
7702 2010-06-10  Jim Meyering  <meyering@redhat.com>
7703
7704         inttostr-tests: depend on snprintf, not snprintf-posix
7705         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
7706         snprintf-posix, to avoid this aclocal failure:
7707           missing file gnulib-tests/vasnprintf.c
7708           configure.ac:45: error: expected source file, required through \
7709           AC_LIBSOURCES, not found
7710
7711 2010-06-10  Jim Meyering  <meyering@redhat.com>
7712
7713         inttostr: add a new function, inttostr, and tests
7714         The namesake function was not available.  The existence of the
7715         template file, inttostr.c makes its addition nontrivial.
7716         * lib/anytostr.c: Rename from inttostr.c.
7717         (anytostr): Rename from inttostr.
7718         * lib/inttostr.c: New file.
7719         * modules/inttostr (Files): Add anytostr.c.
7720         (Makefile.am): Set lib_SOURCES instead of ...
7721         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
7722         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
7723         * lib/offtostr.c: Likewise.
7724         * lib/uinttostr.c: Likewise.
7725         * lib/umaxtostr.c: Likewise.
7726         * modules/inttostr-tests: New file.
7727         * tests/test-inttostr.c: New file.  Test these functions.
7728
7729 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
7730             Bruno Haible  <bruno@clisp.org>
7731
7732         Add "Extending Gnulib" chapter to manual.
7733         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
7734         chapter.
7735         (Extending Gnulib): New chapter.
7736         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
7737         chapter.
7738
7739 2010-06-09  Bruno Haible  <bruno@clisp.org>
7740
7741         Avoid relocwrapper link errors due to gnulib replacement functions.
7742         * lib/areadlink.c: Use the system's malloc, realloc functions.
7743         (areadlink): Set errno to ENOMEM explicitly.
7744         * modules/areadlink (Depends-on): Remove malloc-posix.
7745         Reported by Ben Pfaff <blp@cs.stanford.edu>.
7746
7747 2010-06-09  Bruno Haible  <bruno@clisp.org>
7748
7749         Avoid relocwrapper link errors due to gnulib replacement functions.
7750         * lib/canonicalize-lgpl.c: Use the system's malloc function.
7751         * lib/malloca.c: Likewise.
7752         * lib/relocatable.c: Likewise.
7753         * lib/progreloc.c: Use the system's malloc, sprintf functions.
7754         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
7755         * lib/setenv.c: Use the system's malloc, realloc functions.
7756         * lib/strerror.c: Use the system's sprintf function.
7757         Reported by Ben Pfaff <blp@cs.stanford.edu>.
7758
7759 2010-06-04  Bruno Haible  <bruno@clisp.org>
7760
7761         Prefer documented low-level autoconf macro names.
7762         * m4/lib-link.m4: Use m4_translit instead of translit.
7763         * m4/environ.m4: Likewise.
7764         * m4/mathfunc.m4: Likewise.
7765         * m4/onceonly.m4: Likewise.
7766         * m4/stdint.m4: Likewise.
7767         Suggested by Eric Blake.
7768
7769 2010-06-04  Martin Lambers  <marlam@marlam.de>
7770             Bruno Haible  <bruno@clisp.org>
7771
7772         havelib: Allow library names with '+' characters.
7773         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
7774         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
7775
7776 2010-06-09  Bruno Haible  <bruno@clisp.org>
7777
7778         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
7779         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
7780         realloc failed.
7781
7782 2010-06-08  Peter Simons  <simons@cryp.to>
7783
7784         maint.mk: make the news-check rule more configurable
7785         * top/maint.mk (news-check-lines-spec) New variable.
7786         (news-check): Use "sed -n 1,10p" in place of "head".
7787
7788 2010-06-07  Jim Meyering  <meyering@redhat.com>
7789
7790         do-release-commit-and-tag: fix typo in --help
7791         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
7792
7793         regex: avoid new dead-code warning with gcc-4.6.0
7794         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
7795         if-block containing a while-loop.  It's been unused for at least
7796         5 years.
7797
7798 2010-06-05  Bruno Haible  <bruno@clisp.org>
7799
7800         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
7801         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
7802
7803 2010-06-04  Bruno Haible  <bruno@clisp.org>
7804
7805         Update to GNU gettext 0.18.1.
7806         * modules/gettext (configure.ac): Require gettext infrastructure from
7807         version 0.18.1.
7808
7809 2010-06-03  Bruno Haible  <bruno@clisp.org>
7810
7811         Don't use AC_LIBOBJ with file names in subdirectories.
7812         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
7813         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
7814         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
7815         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
7816         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
7817         gl_LIBUNISTRING_LIBSOURCE.
7818         (Makefile.am): Augment lib_SOURCES here, conditionally.
7819         * NEWS: Drop requirement for Automake option 'subdir-objects'.
7820
7821 2010-06-03  Bruno Haible  <bruno@clisp.org>
7822
7823         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
7824         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
7825         expansion does not end with a newline.
7826         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
7827         unnecessary newline.
7828
7829 2010-06-03  Bruno Haible  <bruno@clisp.org>
7830
7831         Reduce dependencies.
7832         * tests/test-quotearg.h: New file, extracted from
7833         tests/test-quotearg.c.
7834         * tests/test-quotearg-simple.c: New file, extracted from
7835         tests/test-quotearg.c.
7836         * tests/test-quotearg.c: Don't include <ctype.h>.
7837         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
7838         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
7839         use_quote_double_quotes, use_quotearg_colon): Moved to
7840         tests/test-quotearg.h.
7841         (results_g, flag_results, custom_quotes, custom_results): Moved
7842         to tests/test-quotearg-simple.c.
7843         (main): Moved the part that does not depend on gettext to
7844         tests/test-quotearg-simple.c. Return 77 if the test cannot be
7845         performed.
7846         * modules/quotearg-simple: New file.
7847         * modules/quotearg-simple-tests: New file.
7848         * modules/quotearg (Depends-on): Add quotearg-simple.
7849         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
7850         (Files): Add tests/test-quotearg.h.
7851         Reported by Paolo Bonzini.
7852
7853 2010-06-03  Bruno Haible  <bruno@clisp.org>
7854
7855         Reduce dependencies.
7856         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
7857
7858 2010-06-03  Bruno Haible  <bruno@clisp.org>
7859
7860         time: Undefine more broken macros.
7861         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
7862         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
7863         Reported by Eric Blake.
7864
7865 2010-06-03  Bruno Haible  <bruno@clisp.org>
7866
7867         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
7868         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
7869         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
7870         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
7871         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
7872         Reported by Ludovic Courtès <ludo@gnu.org>.
7873
7874 2010-06-02  Eric Blake  <eblake@redhat.com>
7875
7876         time: work with mingw + pthreads-win32 library
7877         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
7878         if timespec is defined only in pthread.h.
7879         * modules/time (Makefile.am): Substitute it.
7880         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
7881         <pthread.h>, when needed.
7882         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
7883         from the library.
7884
7885 2010-05-31  Bruno Haible  <bruno@clisp.org>
7886
7887         Avoid expanding two macros in the wrong order.
7888         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
7889         gl_LIBUNISTRING if it is defined.
7890         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
7891         autoconf >= 2.64.
7892         Reported by Ludovic Courtès <ludo@gnu.org>.
7893
7894 2010-05-27  Jim Meyering  <meyering@redhat.com>
7895
7896         maint.mk: also prohibit "#undef" of always-defined symbols
7897         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
7898         Allow more than one space before the symbol name.
7899         (sc_prohibit_always-defined_macros): Use grep's -E, now that
7900         the regexp uses alternation.
7901
7902 2010-05-26  Eric Blake  <eblake@redhat.com>
7903
7904         maint.mk: avoid echo -e
7905         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
7906         Convert all uses of echo -* to printf.
7907         Reported by Matthias Bolte.
7908
7909 2010-05-25  Bruno Haible  <bruno@clisp.org>
7910
7911         Update to GNU gettext 0.18, part 2.
7912         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
7913         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
7914
7915 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7916
7917         Add missing include in test-pwrite.c.
7918         * tests/test-pwrite.c: Include string.h, for strcmp.
7919
7920 2010-05-24  Bruno Haible  <bruno@clisp.org>
7921
7922         * NEWS: Mention requirement for Automake option 'subdir-objects'.
7923
7924 2010-05-24  Bruno Haible  <bruno@clisp.org>
7925
7926         Don't use conversion with transliteration in u{8,16,32}_strcoll.
7927         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
7928         iconveh_error argument.
7929         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
7930         U_STRCONV_TO_LOCALE.
7931         * lib/unistr/u16-strcoll.c: Likewise.
7932         * lib/unistr/u32-strcoll.c: Likewise.
7933         * modules/unistr/u8-strcoll (Depends-on): Add
7934         uniconv/u8-strconv-to-enc, localcharset. Remove
7935         uniconv/u8-strconv-to-locale.
7936         (configure.ac): Bump version number.
7937         * modules/unistr/u16-strcoll (Depends-on): Add
7938         uniconv/u16-strconv-to-enc, localcharset. Remove
7939         uniconv/u16-strconv-to-locale.
7940         (configure.ac): Bump version number.
7941         * modules/unistr/u32-strcoll (Depends-on): Add
7942         uniconv/u32-strconv-to-enc, localcharset. Remove
7943         uniconv/u32-strconv-to-locale.
7944         (configure.ac): Bump version number.
7945
7946 2010-05-24  Bruno Haible  <bruno@clisp.org>
7947
7948         Avoid a test failure on NetBSD 5.0.
7949         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
7950         an iconv() bug.
7951
7952 2010-05-24  Bruno Haible  <bruno@clisp.org>
7953
7954         Adjust #include directive style.
7955         * modules/regex (Includes): Recommend to write <regex.h>.
7956
7957 2010-05-24  Bruno Haible  <bruno@clisp.org>
7958
7959         regex: Don't require alloca.
7960         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
7961         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
7962         only inside if (0).
7963
7964 2010-05-23  Jim Meyering  <meyering@redhat.com>
7965
7966         test-renameat.c: include <sys/stat.h>
7967         * tests/test-renameat.c: Include <sys/stat.h>; required for
7968         definition of S_IS* macros.
7969
7970 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
7971
7972         Update maintainer documentation for 'relocatable-prog' module.
7973         * doc/relocatable-maint.texi: Update.
7974         Comments by Bruno Haible.
7975
7976 2010-05-23  Bruno Haible  <bruno@clisp.org>
7977
7978         git-merge-changelog: Enable --split-merged-entry by default.
7979         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
7980         (usage): Don't mention this option any more.
7981         Reported by Ralf Wildenhues.
7982
7983 2010-05-23  Jim Meyering  <meyering@redhat.com>
7984
7985         test-pwrite: do not leave behind a test file named "out"
7986         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
7987         The trivial-looking use of init.sh is really necessary.
7988         It ensures that the temporary file, "out", is created in
7989         a temporary directory, and removed upon termination.
7990         * tests/test-pwrite.sh: Re-add file.
7991         * modules/pwrite-tests: Reference it.
7992
7993 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7994
7995         Fix output redirection buglet in init.sh.
7996         * tests/init.sh: Fix redirection of stderr.
7997
7998 2010-05-20  Simon Josefsson  <simon@josefsson.org>
7999
8000         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
8001
8002 2010-05-17  Simon Josefsson  <simon@josefsson.org>
8003
8004         * modules/valgrind-tests: New file.
8005         * m4/valgrind-tests.m4: New file.
8006         * doc/valgrind-tests.texi: New file.
8007         * doc/gnulib.texi (Running self-tests under valgrind): New
8008         section.
8009
8010 2010-05-19  Bruno Haible  <bruno@clisp.org>
8011
8012         Clean up dead code in recent commit.
8013         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
8014         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
8015         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
8016         Suggested by Paolo Bonzini.
8017
8018 2010-05-19  Bruno Haible  <bruno@clisp.org>
8019
8020         Avoid valgrind error reports from libunistring.
8021         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
8022         * modules/libunistring (Files): Add it.
8023         * modules/libunistring-optional (Files): Likewise.
8024
8025 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
8026             Bruno Haible  <bruno@clisp.org>
8027
8028         New module 'libunistring-optional'.
8029         * modules/libunistring-optional: New file.
8030         * m4/libunistring-base.m4: New file.
8031         * m4/libunistring-optional.m4: New file.
8032         * lib/unicase.in.h: Renamed from lib/unicase.h.
8033         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
8034         * lib/unictype.in.h: Renamed from lib/unictype.h.
8035         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
8036         * lib/uniname.in.h: Renamed from lib/uniname.h.
8037         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
8038         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
8039         * lib/unistr.in.h: Renamed from lib/unistr.h.
8040         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
8041         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
8042         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
8043         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
8044         gl_LIBUNISTRING. If the library was found, determine the installed
8045         version and set LIBUNISTRING_VERSION.
8046         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
8047         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
8048         handle a configuration option --with-included-libunistring.
8049         * modules/libunistring (Files): Add m4/absolute-header.m4.
8050         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
8051         Add m4/libunistring-base.m4.
8052         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8053         (Makefile.am): Build unicase.h from unicase.in.h.
8054         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
8055         Add m4/libunistring-base.m4.
8056         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8057         (Makefile.am): Build uniconv.h from uniconv.in.h.
8058         * modules/unictype/base (Files): Use unictype.in.h instead of
8059         unictype.h. Add m4/libunistring-base.m4.
8060         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8061         (Makefile.am): Build unictype.h from unictype.in.h.
8062         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
8063         Add m4/libunistring-base.m4.
8064         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8065         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
8066         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
8067         Add m4/libunistring-base.m4.
8068         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8069         (Makefile.am): Build uniname.h from uniname.in.h.
8070         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
8071         Add m4/libunistring-base.m4.
8072         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8073         (Makefile.am): Build uninorm.h from uninorm.in.h.
8074         * modules/unistdio/base (Files): Use unistdio.in.h instead of
8075         unistdio.h. Add m4/libunistring-base.m4.
8076         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8077         (Makefile.am): Build unistdio.h from unistdio.in.h.
8078         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
8079         Add m4/libunistring-base.m4.
8080         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8081         (Makefile.am): Build unistr.h from unistr.in.h.
8082         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
8083         Add m4/libunistring-base.m4.
8084         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8085         (Makefile.am): Build unitypes.h from unitypes.in.h.
8086         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
8087         Add m4/libunistring-base.m4.
8088         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8089         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
8090         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
8091         uniwidth.h. Add m4/libunistring-base.m4.
8092         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8093         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
8094         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
8095         instead of augmenting lib_SOURCES.
8096         * modules/unicase/empty-suffix-context: Likewise.
8097         * modules/unicase/locale-language: Likewise.
8098         * modules/unicase/tolower: Likewise.
8099         * modules/unicase/totitle: Likewise.
8100         * modules/unicase/toupper: Likewise.
8101         * modules/unicase/u8-casecmp: Likewise.
8102         * modules/unicase/u8-casecoll: Likewise.
8103         * modules/unicase/u8-casefold: Likewise.
8104         * modules/unicase/u8-casexfrm: Likewise.
8105         * modules/unicase/u8-ct-casefold: Likewise.
8106         * modules/unicase/u8-ct-tolower: Likewise.
8107         * modules/unicase/u8-ct-totitle: Likewise.
8108         * modules/unicase/u8-ct-toupper: Likewise.
8109         * modules/unicase/u8-is-cased: Likewise.
8110         * modules/unicase/u8-is-casefolded: Likewise.
8111         * modules/unicase/u8-is-lowercase: Likewise.
8112         * modules/unicase/u8-is-titlecase: Likewise.
8113         * modules/unicase/u8-is-uppercase: Likewise.
8114         * modules/unicase/u8-prefix-context: Likewise.
8115         * modules/unicase/u8-suffix-context: Likewise.
8116         * modules/unicase/u8-tolower: Likewise.
8117         * modules/unicase/u8-totitle: Likewise.
8118         * modules/unicase/u8-toupper: Likewise.
8119         * modules/unicase/u16-casecmp: Likewise.
8120         * modules/unicase/u16-casecoll: Likewise.
8121         * modules/unicase/u16-casefold: Likewise.
8122         * modules/unicase/u16-casexfrm: Likewise.
8123         * modules/unicase/u16-ct-casefold: Likewise.
8124         * modules/unicase/u16-ct-tolower: Likewise.
8125         * modules/unicase/u16-ct-totitle: Likewise.
8126         * modules/unicase/u16-ct-toupper: Likewise.
8127         * modules/unicase/u16-is-cased: Likewise.
8128         * modules/unicase/u16-is-casefolded: Likewise.
8129         * modules/unicase/u16-is-lowercase: Likewise.
8130         * modules/unicase/u16-is-titlecase: Likewise.
8131         * modules/unicase/u16-is-uppercase: Likewise.
8132         * modules/unicase/u16-prefix-context: Likewise.
8133         * modules/unicase/u16-suffix-context: Likewise.
8134         * modules/unicase/u16-tolower: Likewise.
8135         * modules/unicase/u16-totitle: Likewise.
8136         * modules/unicase/u16-toupper: Likewise.
8137         * modules/unicase/u32-casecmp: Likewise.
8138         * modules/unicase/u32-casecoll: Likewise.
8139         * modules/unicase/u32-casefold: Likewise.
8140         * modules/unicase/u32-casexfrm: Likewise.
8141         * modules/unicase/u32-ct-casefold: Likewise.
8142         * modules/unicase/u32-ct-tolower: Likewise.
8143         * modules/unicase/u32-ct-totitle: Likewise.
8144         * modules/unicase/u32-ct-toupper: Likewise.
8145         * modules/unicase/u32-is-cased: Likewise.
8146         * modules/unicase/u32-is-casefolded: Likewise.
8147         * modules/unicase/u32-is-lowercase: Likewise.
8148         * modules/unicase/u32-is-titlecase: Likewise.
8149         * modules/unicase/u32-is-uppercase: Likewise.
8150         * modules/unicase/u32-prefix-context: Likewise.
8151         * modules/unicase/u32-suffix-context: Likewise.
8152         * modules/unicase/u32-tolower: Likewise.
8153         * modules/unicase/u32-totitle: Likewise.
8154         * modules/unicase/u32-toupper: Likewise.
8155         * modules/unicase/ulc-casecmp: Likewise.
8156         * modules/unicase/ulc-casecoll: Likewise.
8157         * modules/unicase/ulc-casexfrm: Likewise.
8158         * modules/uniconv/u8-conv-from-enc: Likewise.
8159         * modules/uniconv/u8-conv-to-enc: Likewise.
8160         * modules/uniconv/u8-strconv-from-enc: Likewise.
8161         * modules/uniconv/u8-strconv-from-locale: Likewise.
8162         * modules/uniconv/u8-strconv-to-enc: Likewise.
8163         * modules/uniconv/u8-strconv-to-locale: Likewise.
8164         * modules/uniconv/u16-conv-from-enc: Likewise.
8165         * modules/uniconv/u16-conv-to-enc: Likewise.
8166         * modules/uniconv/u16-strconv-from-enc: Likewise.
8167         * modules/uniconv/u16-strconv-from-locale: Likewise.
8168         * modules/uniconv/u16-strconv-to-enc: Likewise.
8169         * modules/uniconv/u16-strconv-to-locale: Likewise.
8170         * modules/uniconv/u32-conv-from-enc: Likewise.
8171         * modules/uniconv/u32-conv-to-enc: Likewise.
8172         * modules/uniconv/u32-strconv-from-enc: Likewise.
8173         * modules/uniconv/u32-strconv-from-locale: Likewise.
8174         * modules/uniconv/u32-strconv-to-enc: Likewise.
8175         * modules/uniconv/u32-strconv-to-locale: Likewise.
8176         * modules/unictype/bidicategory-byname: Likewise.
8177         * modules/unictype/bidicategory-name: Likewise.
8178         * modules/unictype/bidicategory-of: Likewise.
8179         * modules/unictype/bidicategory-test: Likewise.
8180         * modules/unictype/block-list: Likewise.
8181         * modules/unictype/block-test: Likewise.
8182         * modules/unictype/category-C: Likewise.
8183         * modules/unictype/category-Cc: Likewise.
8184         * modules/unictype/category-Cf: Likewise.
8185         * modules/unictype/category-Cn: Likewise.
8186         * modules/unictype/category-Co: Likewise.
8187         * modules/unictype/category-Cs: Likewise.
8188         * modules/unictype/category-L: Likewise.
8189         * modules/unictype/category-Ll: Likewise.
8190         * modules/unictype/category-Lm: Likewise.
8191         * modules/unictype/category-Lo: Likewise.
8192         * modules/unictype/category-Lt: Likewise.
8193         * modules/unictype/category-Lu: Likewise.
8194         * modules/unictype/category-M: Likewise.
8195         * modules/unictype/category-Mc: Likewise.
8196         * modules/unictype/category-Me: Likewise.
8197         * modules/unictype/category-Mn: Likewise.
8198         * modules/unictype/category-N: Likewise.
8199         * modules/unictype/category-Nd: Likewise.
8200         * modules/unictype/category-Nl: Likewise.
8201         * modules/unictype/category-No: Likewise.
8202         * modules/unictype/category-P: Likewise.
8203         * modules/unictype/category-Pc: Likewise.
8204         * modules/unictype/category-Pd: Likewise.
8205         * modules/unictype/category-Pe: Likewise.
8206         * modules/unictype/category-Pf: Likewise.
8207         * modules/unictype/category-Pi: Likewise.
8208         * modules/unictype/category-Po: Likewise.
8209         * modules/unictype/category-Ps: Likewise.
8210         * modules/unictype/category-S: Likewise.
8211         * modules/unictype/category-Sc: Likewise.
8212         * modules/unictype/category-Sk: Likewise.
8213         * modules/unictype/category-Sm: Likewise.
8214         * modules/unictype/category-So: Likewise.
8215         * modules/unictype/category-Z: Likewise.
8216         * modules/unictype/category-Zl: Likewise.
8217         * modules/unictype/category-Zp: Likewise.
8218         * modules/unictype/category-Zs: Likewise.
8219         * modules/unictype/category-and: Likewise.
8220         * modules/unictype/category-and-not: Likewise.
8221         * modules/unictype/category-byname: Likewise.
8222         * modules/unictype/category-name: Likewise.
8223         * modules/unictype/category-none: Likewise.
8224         * modules/unictype/category-of: Likewise.
8225         * modules/unictype/category-or: Likewise.
8226         * modules/unictype/category-test: Likewise.
8227         * modules/unictype/combining-class: Likewise.
8228         * modules/unictype/ctype-alnum: Likewise.
8229         * modules/unictype/ctype-alpha: Likewise.
8230         * modules/unictype/ctype-blank: Likewise.
8231         * modules/unictype/ctype-cntrl: Likewise.
8232         * modules/unictype/ctype-digit: Likewise.
8233         * modules/unictype/ctype-graph: Likewise.
8234         * modules/unictype/ctype-lower: Likewise.
8235         * modules/unictype/ctype-print: Likewise.
8236         * modules/unictype/ctype-punct: Likewise.
8237         * modules/unictype/ctype-space: Likewise.
8238         * modules/unictype/ctype-upper: Likewise.
8239         * modules/unictype/ctype-xdigit: Likewise.
8240         * modules/unictype/decimal-digit: Likewise.
8241         * modules/unictype/digit: Likewise.
8242         * modules/unictype/mirror: Likewise.
8243         * modules/unictype/numeric: Likewise.
8244         * modules/unictype/property-alphabetic: Likewise.
8245         * modules/unictype/property-ascii-hex-digit: Likewise.
8246         * modules/unictype/property-bidi-arabic-digit: Likewise.
8247         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
8248         * modules/unictype/property-bidi-block-separator: Likewise.
8249         * modules/unictype/property-bidi-boundary-neutral: Likewise.
8250         * modules/unictype/property-bidi-common-separator: Likewise.
8251         * modules/unictype/property-bidi-control: Likewise.
8252         * modules/unictype/property-bidi-embedding-or-override: Likewise.
8253         * modules/unictype/property-bidi-eur-num-separator: Likewise.
8254         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
8255         * modules/unictype/property-bidi-european-digit: Likewise.
8256         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
8257         * modules/unictype/property-bidi-left-to-right: Likewise.
8258         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
8259         * modules/unictype/property-bidi-other-neutral: Likewise.
8260         * modules/unictype/property-bidi-pdf: Likewise.
8261         * modules/unictype/property-bidi-segment-separator: Likewise.
8262         * modules/unictype/property-bidi-whitespace: Likewise.
8263         * modules/unictype/property-byname: Likewise.
8264         * modules/unictype/property-combining: Likewise.
8265         * modules/unictype/property-composite: Likewise.
8266         * modules/unictype/property-currency-symbol: Likewise.
8267         * modules/unictype/property-dash: Likewise.
8268         * modules/unictype/property-decimal-digit: Likewise.
8269         * modules/unictype/property-default-ignorable-code-point: Likewise.
8270         * modules/unictype/property-deprecated: Likewise.
8271         * modules/unictype/property-diacritic: Likewise.
8272         * modules/unictype/property-extender: Likewise.
8273         * modules/unictype/property-format-control: Likewise.
8274         * modules/unictype/property-grapheme-base: Likewise.
8275         * modules/unictype/property-grapheme-extend: Likewise.
8276         * modules/unictype/property-grapheme-link: Likewise.
8277         * modules/unictype/property-hex-digit: Likewise.
8278         * modules/unictype/property-hyphen: Likewise.
8279         * modules/unictype/property-id-continue: Likewise.
8280         * modules/unictype/property-id-start: Likewise.
8281         * modules/unictype/property-ideographic: Likewise.
8282         * modules/unictype/property-ids-binary-operator: Likewise.
8283         * modules/unictype/property-ids-trinary-operator: Likewise.
8284         * modules/unictype/property-ignorable-control: Likewise.
8285         * modules/unictype/property-iso-control: Likewise.
8286         * modules/unictype/property-join-control: Likewise.
8287         * modules/unictype/property-left-of-pair: Likewise.
8288         * modules/unictype/property-line-separator: Likewise.
8289         * modules/unictype/property-logical-order-exception: Likewise.
8290         * modules/unictype/property-lowercase: Likewise.
8291         * modules/unictype/property-math: Likewise.
8292         * modules/unictype/property-non-break: Likewise.
8293         * modules/unictype/property-not-a-character: Likewise.
8294         * modules/unictype/property-numeric: Likewise.
8295         * modules/unictype/property-other-alphabetic: Likewise.
8296         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
8297         * modules/unictype/property-other-grapheme-extend: Likewise.
8298         * modules/unictype/property-other-id-continue: Likewise.
8299         * modules/unictype/property-other-id-start: Likewise.
8300         * modules/unictype/property-other-lowercase: Likewise.
8301         * modules/unictype/property-other-math: Likewise.
8302         * modules/unictype/property-other-uppercase: Likewise.
8303         * modules/unictype/property-paired-punctuation: Likewise.
8304         * modules/unictype/property-paragraph-separator: Likewise.
8305         * modules/unictype/property-pattern-syntax: Likewise.
8306         * modules/unictype/property-pattern-white-space: Likewise.
8307         * modules/unictype/property-private-use: Likewise.
8308         * modules/unictype/property-punctuation: Likewise.
8309         * modules/unictype/property-quotation-mark: Likewise.
8310         * modules/unictype/property-radical: Likewise.
8311         * modules/unictype/property-sentence-terminal: Likewise.
8312         * modules/unictype/property-soft-dotted: Likewise.
8313         * modules/unictype/property-space: Likewise.
8314         * modules/unictype/property-terminal-punctuation: Likewise.
8315         * modules/unictype/property-test: Likewise.
8316         * modules/unictype/property-titlecase: Likewise.
8317         * modules/unictype/property-unassigned-code-value: Likewise.
8318         * modules/unictype/property-unified-ideograph: Likewise.
8319         * modules/unictype/property-uppercase: Likewise.
8320         * modules/unictype/property-variation-selector: Likewise.
8321         * modules/unictype/property-white-space: Likewise.
8322         * modules/unictype/property-xid-continue: Likewise.
8323         * modules/unictype/property-xid-start: Likewise.
8324         * modules/unictype/property-zero-width: Likewise.
8325         * modules/unictype/scripts: Likewise.
8326         * modules/unictype/syntax-c-ident: Likewise.
8327         * modules/unictype/syntax-c-whitespace: Likewise.
8328         * modules/unictype/syntax-java-ident: Likewise.
8329         * modules/unictype/syntax-java-whitespace: Likewise.
8330         * modules/unilbrk/u8-possible-linebreaks: Likewise.
8331         * modules/unilbrk/u8-width-linebreaks: Likewise.
8332         * modules/unilbrk/u16-possible-linebreaks: Likewise.
8333         * modules/unilbrk/u16-width-linebreaks: Likewise.
8334         * modules/unilbrk/u32-possible-linebreaks: Likewise.
8335         * modules/unilbrk/u32-width-linebreaks: Likewise.
8336         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
8337         * modules/unilbrk/ulc-width-linebreaks: Likewise.
8338         * modules/uniname/uniname: Likewise.
8339         * modules/uninorm/canonical-decomposition: Likewise.
8340         * modules/uninorm/composition: Likewise.
8341         * modules/uninorm/decomposing-form: Likewise.
8342         * modules/uninorm/decomposition: Likewise.
8343         * modules/uninorm/filter: Likewise.
8344         * modules/uninorm/nfc: Likewise.
8345         * modules/uninorm/nfd: Likewise.
8346         * modules/uninorm/nfkc: Likewise.
8347         * modules/uninorm/nfkd: Likewise.
8348         * modules/uninorm/u8-normalize: Likewise.
8349         * modules/uninorm/u8-normcmp: Likewise.
8350         * modules/uninorm/u8-normcoll: Likewise.
8351         * modules/uninorm/u8-normxfrm: Likewise.
8352         * modules/uninorm/u16-normalize: Likewise.
8353         * modules/uninorm/u16-normcmp: Likewise.
8354         * modules/uninorm/u16-normcoll: Likewise.
8355         * modules/uninorm/u16-normxfrm: Likewise.
8356         * modules/uninorm/u32-normalize: Likewise.
8357         * modules/uninorm/u32-normcmp: Likewise.
8358         * modules/uninorm/u32-normcoll: Likewise.
8359         * modules/uninorm/u32-normxfrm: Likewise.
8360         * modules/unistdio/u8-asnprintf: Likewise.
8361         * modules/unistdio/u8-asprintf: Likewise.
8362         * modules/unistdio/u8-snprintf: Likewise.
8363         * modules/unistdio/u8-sprintf: Likewise.
8364         * modules/unistdio/u8-u8-asnprintf: Likewise.
8365         * modules/unistdio/u8-u8-asprintf: Likewise.
8366         * modules/unistdio/u8-u8-snprintf: Likewise.
8367         * modules/unistdio/u8-u8-sprintf: Likewise.
8368         * modules/unistdio/u8-u8-vasnprintf: Likewise.
8369         * modules/unistdio/u8-u8-vasprintf: Likewise.
8370         * modules/unistdio/u8-u8-vsnprintf: Likewise.
8371         * modules/unistdio/u8-u8-vsprintf: Likewise.
8372         * modules/unistdio/u8-vasnprintf: Likewise.
8373         * modules/unistdio/u8-vasprintf: Likewise.
8374         * modules/unistdio/u8-vsnprintf: Likewise.
8375         * modules/unistdio/u8-vsprintf: Likewise.
8376         * modules/unistdio/u16-asnprintf: Likewise.
8377         * modules/unistdio/u16-asprintf: Likewise.
8378         * modules/unistdio/u16-snprintf: Likewise.
8379         * modules/unistdio/u16-sprintf: Likewise.
8380         * modules/unistdio/u16-u16-asnprintf: Likewise.
8381         * modules/unistdio/u16-u16-asprintf: Likewise.
8382         * modules/unistdio/u16-u16-snprintf: Likewise.
8383         * modules/unistdio/u16-u16-sprintf: Likewise.
8384         * modules/unistdio/u16-u16-vasnprintf: Likewise.
8385         * modules/unistdio/u16-u16-vasprintf: Likewise.
8386         * modules/unistdio/u16-u16-vsnprintf: Likewise.
8387         * modules/unistdio/u16-u16-vsprintf: Likewise.
8388         * modules/unistdio/u16-vasnprintf: Likewise.
8389         * modules/unistdio/u16-vasprintf: Likewise.
8390         * modules/unistdio/u16-vsnprintf: Likewise.
8391         * modules/unistdio/u16-vsprintf: Likewise.
8392         * modules/unistdio/u32-asnprintf: Likewise.
8393         * modules/unistdio/u32-asprintf: Likewise.
8394         * modules/unistdio/u32-snprintf: Likewise.
8395         * modules/unistdio/u32-sprintf: Likewise.
8396         * modules/unistdio/u32-u32-asnprintf: Likewise.
8397         * modules/unistdio/u32-u32-asprintf: Likewise.
8398         * modules/unistdio/u32-u32-snprintf: Likewise.
8399         * modules/unistdio/u32-u32-sprintf: Likewise.
8400         * modules/unistdio/u32-u32-vasnprintf: Likewise.
8401         * modules/unistdio/u32-u32-vasprintf: Likewise.
8402         * modules/unistdio/u32-u32-vsnprintf: Likewise.
8403         * modules/unistdio/u32-u32-vsprintf: Likewise.
8404         * modules/unistdio/u32-vasnprintf: Likewise.
8405         * modules/unistdio/u32-vasprintf: Likewise.
8406         * modules/unistdio/u32-vsnprintf: Likewise.
8407         * modules/unistdio/u32-vsprintf: Likewise.
8408         * modules/unistdio/ulc-asnprintf: Likewise.
8409         * modules/unistdio/ulc-asprintf: Likewise.
8410         * modules/unistdio/ulc-fprintf: Likewise.
8411         * modules/unistdio/ulc-snprintf: Likewise.
8412         * modules/unistdio/ulc-sprintf: Likewise.
8413         * modules/unistdio/ulc-vasnprintf: Likewise.
8414         * modules/unistdio/ulc-vasprintf: Likewise.
8415         * modules/unistdio/ulc-vfprintf: Likewise.
8416         * modules/unistdio/ulc-vsnprintf: Likewise.
8417         * modules/unistdio/ulc-vsprintf: Likewise.
8418         * modules/unistr/u8-check: Likewise.
8419         * modules/unistr/u8-chr: Likewise.
8420         * modules/unistr/u8-cmp: Likewise.
8421         * modules/unistr/u8-cmp2: Likewise.
8422         * modules/unistr/u8-cpy: Likewise.
8423         * modules/unistr/u8-cpy-alloc: Likewise.
8424         * modules/unistr/u8-endswith: Likewise.
8425         * modules/unistr/u8-mblen: Likewise.
8426         * modules/unistr/u8-mbsnlen: Likewise.
8427         * modules/unistr/u8-mbtouc: Likewise.
8428         * modules/unistr/u8-mbtouc-unsafe: Likewise.
8429         * modules/unistr/u8-mbtoucr: Likewise.
8430         * modules/unistr/u8-move: Likewise.
8431         * modules/unistr/u8-next: Likewise.
8432         * modules/unistr/u8-prev: Likewise.
8433         * modules/unistr/u8-set: Likewise.
8434         * modules/unistr/u8-startswith: Likewise.
8435         * modules/unistr/u8-stpcpy: Likewise.
8436         * modules/unistr/u8-stpncpy: Likewise.
8437         * modules/unistr/u8-strcat: Likewise.
8438         * modules/unistr/u8-strchr: Likewise.
8439         * modules/unistr/u8-strcmp: Likewise.
8440         * modules/unistr/u8-strcoll: Likewise.
8441         * modules/unistr/u8-strcpy: Likewise.
8442         * modules/unistr/u8-strcspn: Likewise.
8443         * modules/unistr/u8-strdup: Likewise.
8444         * modules/unistr/u8-strlen: Likewise.
8445         * modules/unistr/u8-strmblen: Likewise.
8446         * modules/unistr/u8-strmbtouc: Likewise.
8447         * modules/unistr/u8-strncat: Likewise.
8448         * modules/unistr/u8-strncmp: Likewise.
8449         * modules/unistr/u8-strncpy: Likewise.
8450         * modules/unistr/u8-strnlen: Likewise.
8451         * modules/unistr/u8-strpbrk: Likewise.
8452         * modules/unistr/u8-strrchr: Likewise.
8453         * modules/unistr/u8-strspn: Likewise.
8454         * modules/unistr/u8-strstr: Likewise.
8455         * modules/unistr/u8-strtok: Likewise.
8456         * modules/unistr/u8-to-u16: Likewise.
8457         * modules/unistr/u8-to-u32: Likewise.
8458         * modules/unistr/u8-uctomb: Likewise.
8459         * modules/unistr/u16-check: Likewise.
8460         * modules/unistr/u16-chr: Likewise.
8461         * modules/unistr/u16-cmp: Likewise.
8462         * modules/unistr/u16-cmp2: Likewise.
8463         * modules/unistr/u16-cpy: Likewise.
8464         * modules/unistr/u16-cpy-alloc: Likewise.
8465         * modules/unistr/u16-endswith: Likewise.
8466         * modules/unistr/u16-mblen: Likewise.
8467         * modules/unistr/u16-mbsnlen: Likewise.
8468         * modules/unistr/u16-mbtouc: Likewise.
8469         * modules/unistr/u16-mbtouc-unsafe: Likewise.
8470         * modules/unistr/u16-mbtoucr: Likewise.
8471         * modules/unistr/u16-move: Likewise.
8472         * modules/unistr/u16-next: Likewise.
8473         * modules/unistr/u16-prev: Likewise.
8474         * modules/unistr/u16-set: Likewise.
8475         * modules/unistr/u16-startswith: Likewise.
8476         * modules/unistr/u16-stpcpy: Likewise.
8477         * modules/unistr/u16-stpncpy: Likewise.
8478         * modules/unistr/u16-strcat: Likewise.
8479         * modules/unistr/u16-strchr: Likewise.
8480         * modules/unistr/u16-strcmp: Likewise.
8481         * modules/unistr/u16-strcoll: Likewise.
8482         * modules/unistr/u16-strcpy: Likewise.
8483         * modules/unistr/u16-strcspn: Likewise.
8484         * modules/unistr/u16-strdup: Likewise.
8485         * modules/unistr/u16-strlen: Likewise.
8486         * modules/unistr/u16-strmblen: Likewise.
8487         * modules/unistr/u16-strmbtouc: Likewise.
8488         * modules/unistr/u16-strncat: Likewise.
8489         * modules/unistr/u16-strncmp: Likewise.
8490         * modules/unistr/u16-strncpy: Likewise.
8491         * modules/unistr/u16-strnlen: Likewise.
8492         * modules/unistr/u16-strpbrk: Likewise.
8493         * modules/unistr/u16-strrchr: Likewise.
8494         * modules/unistr/u16-strspn: Likewise.
8495         * modules/unistr/u16-strstr: Likewise.
8496         * modules/unistr/u16-strtok: Likewise.
8497         * modules/unistr/u16-to-u32: Likewise.
8498         * modules/unistr/u16-to-u8: Likewise.
8499         * modules/unistr/u16-uctomb: Likewise.
8500         * modules/unistr/u32-check: Likewise.
8501         * modules/unistr/u32-chr: Likewise.
8502         * modules/unistr/u32-cmp: Likewise.
8503         * modules/unistr/u32-cmp2: Likewise.
8504         * modules/unistr/u32-cpy: Likewise.
8505         * modules/unistr/u32-cpy-alloc: Likewise.
8506         * modules/unistr/u32-endswith: Likewise.
8507         * modules/unistr/u32-mblen: Likewise.
8508         * modules/unistr/u32-mbsnlen: Likewise.
8509         * modules/unistr/u32-mbtouc: Likewise.
8510         * modules/unistr/u32-mbtouc-unsafe: Likewise.
8511         * modules/unistr/u32-mbtoucr: Likewise.
8512         * modules/unistr/u32-move: Likewise.
8513         * modules/unistr/u32-next: Likewise.
8514         * modules/unistr/u32-prev: Likewise.
8515         * modules/unistr/u32-set: Likewise.
8516         * modules/unistr/u32-startswith: Likewise.
8517         * modules/unistr/u32-stpcpy: Likewise.
8518         * modules/unistr/u32-stpncpy: Likewise.
8519         * modules/unistr/u32-strcat: Likewise.
8520         * modules/unistr/u32-strchr: Likewise.
8521         * modules/unistr/u32-strcmp: Likewise.
8522         * modules/unistr/u32-strcoll: Likewise.
8523         * modules/unistr/u32-strcpy: Likewise.
8524         * modules/unistr/u32-strcspn: Likewise.
8525         * modules/unistr/u32-strdup: Likewise.
8526         * modules/unistr/u32-strlen: Likewise.
8527         * modules/unistr/u32-strmblen: Likewise.
8528         * modules/unistr/u32-strmbtouc: Likewise.
8529         * modules/unistr/u32-strncat: Likewise.
8530         * modules/unistr/u32-strncmp: Likewise.
8531         * modules/unistr/u32-strncpy: Likewise.
8532         * modules/unistr/u32-strnlen: Likewise.
8533         * modules/unistr/u32-strpbrk: Likewise.
8534         * modules/unistr/u32-strrchr: Likewise.
8535         * modules/unistr/u32-strspn: Likewise.
8536         * modules/unistr/u32-strstr: Likewise.
8537         * modules/unistr/u32-strtok: Likewise.
8538         * modules/unistr/u32-to-u16: Likewise.
8539         * modules/unistr/u32-to-u8: Likewise.
8540         * modules/unistr/u32-uctomb: Likewise.
8541         * modules/uniwbrk/u8-wordbreaks: Likewise.
8542         * modules/uniwbrk/u16-wordbreaks: Likewise.
8543         * modules/uniwbrk/u32-wordbreaks: Likewise.
8544         * modules/uniwbrk/ulc-wordbreaks: Likewise.
8545         * modules/uniwbrk/wordbreak-property: Likewise.
8546         * modules/uniwidth/u8-strwidth: Likewise.
8547         * modules/uniwidth/u8-width: Likewise.
8548         * modules/uniwidth/u16-strwidth: Likewise.
8549         * modules/uniwidth/u16-width: Likewise.
8550         * modules/uniwidth/u32-strwidth: Likewise.
8551         * modules/uniwidth/u32-width: Likewise.
8552         * modules/uniwidth/width: Likewise.
8553         * modules/unicase/cased-tests (Makefile.am): Link all test programs
8554         with $(LIBUNISTRING).
8555         * modules/unicase/ignorable-tests: Likewise.
8556         * modules/unicase/locale-language-tests: Likewise.
8557         * modules/unicase/tolower-tests: Likewise.
8558         * modules/unicase/totitle-tests: Likewise.
8559         * modules/unicase/toupper-tests: Likewise.
8560         * modules/unicase/u8-casecmp-tests: Likewise.
8561         * modules/unicase/u8-casecoll-tests: Likewise.
8562         * modules/unicase/u8-casefold-tests: Likewise.
8563         * modules/unicase/u8-is-cased-tests: Likewise.
8564         * modules/unicase/u8-is-casefolded-tests: Likewise.
8565         * modules/unicase/u8-is-lowercase-tests: Likewise.
8566         * modules/unicase/u8-is-titlecase-tests: Likewise.
8567         * modules/unicase/u8-is-uppercase-tests: Likewise.
8568         * modules/unicase/u8-tolower-tests: Likewise.
8569         * modules/unicase/u8-totitle-tests: Likewise.
8570         * modules/unicase/u8-toupper-tests: Likewise.
8571         * modules/unicase/u16-casecmp-tests: Likewise.
8572         * modules/unicase/u16-casecoll-tests: Likewise.
8573         * modules/unicase/u16-casefold-tests: Likewise.
8574         * modules/unicase/u16-is-cased-tests: Likewise.
8575         * modules/unicase/u16-is-casefolded-tests: Likewise.
8576         * modules/unicase/u16-is-lowercase-tests: Likewise.
8577         * modules/unicase/u16-is-titlecase-tests: Likewise.
8578         * modules/unicase/u16-is-uppercase-tests: Likewise.
8579         * modules/unicase/u16-tolower-tests: Likewise.
8580         * modules/unicase/u16-totitle-tests: Likewise.
8581         * modules/unicase/u16-toupper-tests: Likewise.
8582         * modules/unicase/u32-casecmp-tests: Likewise.
8583         * modules/unicase/u32-casecoll-tests: Likewise.
8584         * modules/unicase/u32-casefold-tests: Likewise.
8585         * modules/unicase/u32-is-cased-tests: Likewise.
8586         * modules/unicase/u32-is-casefolded-tests: Likewise.
8587         * modules/unicase/u32-is-lowercase-tests: Likewise.
8588         * modules/unicase/u32-is-titlecase-tests: Likewise.
8589         * modules/unicase/u32-is-uppercase-tests: Likewise.
8590         * modules/unicase/u32-tolower-tests: Likewise.
8591         * modules/unicase/u32-totitle-tests: Likewise.
8592         * modules/unicase/u32-toupper-tests: Likewise.
8593         * modules/unicase/ulc-casecmp-tests: Likewise.
8594         * modules/unicase/ulc-casecoll-tests: Likewise.
8595         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
8596         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
8597         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
8598         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
8599         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
8600         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
8601         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
8602         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
8603         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
8604         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
8605         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
8606         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
8607         * modules/unictype/bidicategory-byname-tests: Likewise.
8608         * modules/unictype/bidicategory-name-tests: Likewise.
8609         * modules/unictype/bidicategory-of-tests: Likewise.
8610         * modules/unictype/bidicategory-test-tests: Likewise.
8611         * modules/unictype/block-list-tests: Likewise.
8612         * modules/unictype/block-of-tests: Likewise.
8613         * modules/unictype/block-test-tests: Likewise.
8614         * modules/unictype/category-C-tests: Likewise.
8615         * modules/unictype/category-Cc-tests: Likewise.
8616         * modules/unictype/category-Cf-tests: Likewise.
8617         * modules/unictype/category-Cn-tests: Likewise.
8618         * modules/unictype/category-Co-tests: Likewise.
8619         * modules/unictype/category-Cs-tests: Likewise.
8620         * modules/unictype/category-L-tests: Likewise.
8621         * modules/unictype/category-Ll-tests: Likewise.
8622         * modules/unictype/category-Lm-tests: Likewise.
8623         * modules/unictype/category-Lo-tests: Likewise.
8624         * modules/unictype/category-Lt-tests: Likewise.
8625         * modules/unictype/category-Lu-tests: Likewise.
8626         * modules/unictype/category-M-tests: Likewise.
8627         * modules/unictype/category-Mc-tests: Likewise.
8628         * modules/unictype/category-Me-tests: Likewise.
8629         * modules/unictype/category-Mn-tests: Likewise.
8630         * modules/unictype/category-N-tests: Likewise.
8631         * modules/unictype/category-Nd-tests: Likewise.
8632         * modules/unictype/category-Nl-tests: Likewise.
8633         * modules/unictype/category-No-tests: Likewise.
8634         * modules/unictype/category-P-tests: Likewise.
8635         * modules/unictype/category-Pc-tests: Likewise.
8636         * modules/unictype/category-Pd-tests: Likewise.
8637         * modules/unictype/category-Pe-tests: Likewise.
8638         * modules/unictype/category-Pf-tests: Likewise.
8639         * modules/unictype/category-Pi-tests: Likewise.
8640         * modules/unictype/category-Po-tests: Likewise.
8641         * modules/unictype/category-Ps-tests: Likewise.
8642         * modules/unictype/category-S-tests: Likewise.
8643         * modules/unictype/category-Sc-tests: Likewise.
8644         * modules/unictype/category-Sk-tests: Likewise.
8645         * modules/unictype/category-Sm-tests: Likewise.
8646         * modules/unictype/category-So-tests: Likewise.
8647         * modules/unictype/category-Z-tests: Likewise.
8648         * modules/unictype/category-Zl-tests: Likewise.
8649         * modules/unictype/category-Zp-tests: Likewise.
8650         * modules/unictype/category-Zs-tests: Likewise.
8651         * modules/unictype/category-and-not-tests: Likewise.
8652         * modules/unictype/category-and-tests: Likewise.
8653         * modules/unictype/category-byname-tests: Likewise.
8654         * modules/unictype/category-name-tests: Likewise.
8655         * modules/unictype/category-none-tests: Likewise.
8656         * modules/unictype/category-of-tests: Likewise.
8657         * modules/unictype/category-or-tests: Likewise.
8658         * modules/unictype/category-test-withtable-tests: Likewise.
8659         * modules/unictype/combining-class-tests: Likewise.
8660         * modules/unictype/ctype-alnum-tests: Likewise.
8661         * modules/unictype/ctype-alpha-tests: Likewise.
8662         * modules/unictype/ctype-blank-tests: Likewise.
8663         * modules/unictype/ctype-cntrl-tests: Likewise.
8664         * modules/unictype/ctype-digit-tests: Likewise.
8665         * modules/unictype/ctype-graph-tests: Likewise.
8666         * modules/unictype/ctype-lower-tests: Likewise.
8667         * modules/unictype/ctype-print-tests: Likewise.
8668         * modules/unictype/ctype-punct-tests: Likewise.
8669         * modules/unictype/ctype-space-tests: Likewise.
8670         * modules/unictype/ctype-upper-tests: Likewise.
8671         * modules/unictype/ctype-xdigit-tests: Likewise.
8672         * modules/unictype/decimal-digit-tests: Likewise.
8673         * modules/unictype/digit-tests: Likewise.
8674         * modules/unictype/mirror-tests: Likewise.
8675         * modules/unictype/numeric-tests: Likewise.
8676         * modules/unictype/property-alphabetic-tests: Likewise.
8677         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
8678         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
8679         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
8680         * modules/unictype/property-bidi-block-separator-tests: Likewise.
8681         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
8682         * modules/unictype/property-bidi-common-separator-tests: Likewise.
8683         * modules/unictype/property-bidi-control-tests: Likewise.
8684         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
8685         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
8686         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
8687         * modules/unictype/property-bidi-european-digit-tests: Likewise.
8688         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
8689         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
8690         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
8691         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
8692         * modules/unictype/property-bidi-pdf-tests: Likewise.
8693         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
8694         * modules/unictype/property-bidi-whitespace-tests: Likewise.
8695         * modules/unictype/property-byname-tests: Likewise.
8696         * modules/unictype/property-combining-tests: Likewise.
8697         * modules/unictype/property-composite-tests: Likewise.
8698         * modules/unictype/property-currency-symbol-tests: Likewise.
8699         * modules/unictype/property-dash-tests: Likewise.
8700         * modules/unictype/property-decimal-digit-tests: Likewise.
8701         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
8702         * modules/unictype/property-deprecated-tests: Likewise.
8703         * modules/unictype/property-diacritic-tests: Likewise.
8704         * modules/unictype/property-extender-tests: Likewise.
8705         * modules/unictype/property-format-control-tests: Likewise.
8706         * modules/unictype/property-grapheme-base-tests: Likewise.
8707         * modules/unictype/property-grapheme-extend-tests: Likewise.
8708         * modules/unictype/property-grapheme-link-tests: Likewise.
8709         * modules/unictype/property-hex-digit-tests: Likewise.
8710         * modules/unictype/property-hyphen-tests: Likewise.
8711         * modules/unictype/property-id-continue-tests: Likewise.
8712         * modules/unictype/property-id-start-tests: Likewise.
8713         * modules/unictype/property-ideographic-tests: Likewise.
8714         * modules/unictype/property-ids-binary-operator-tests: Likewise.
8715         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
8716         * modules/unictype/property-ignorable-control-tests: Likewise.
8717         * modules/unictype/property-iso-control-tests: Likewise.
8718         * modules/unictype/property-join-control-tests: Likewise.
8719         * modules/unictype/property-left-of-pair-tests: Likewise.
8720         * modules/unictype/property-line-separator-tests: Likewise.
8721         * modules/unictype/property-logical-order-exception-tests: Likewise.
8722         * modules/unictype/property-lowercase-tests: Likewise.
8723         * modules/unictype/property-math-tests: Likewise.
8724         * modules/unictype/property-non-break-tests: Likewise.
8725         * modules/unictype/property-not-a-character-tests: Likewise.
8726         * modules/unictype/property-numeric-tests: Likewise.
8727         * modules/unictype/property-other-alphabetic-tests: Likewise.
8728         * modules/unictype/property-other-default-ignorable-code-point-tests:
8729         Likewise.
8730         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
8731         * modules/unictype/property-other-id-continue-tests: Likewise.
8732         * modules/unictype/property-other-id-start-tests: Likewise.
8733         * modules/unictype/property-other-lowercase-tests: Likewise.
8734         * modules/unictype/property-other-math-tests: Likewise.
8735         * modules/unictype/property-other-uppercase-tests: Likewise.
8736         * modules/unictype/property-paired-punctuation-tests: Likewise.
8737         * modules/unictype/property-paragraph-separator-tests: Likewise.
8738         * modules/unictype/property-pattern-syntax-tests: Likewise.
8739         * modules/unictype/property-pattern-white-space-tests: Likewise.
8740         * modules/unictype/property-private-use-tests: Likewise.
8741         * modules/unictype/property-punctuation-tests: Likewise.
8742         * modules/unictype/property-quotation-mark-tests: Likewise.
8743         * modules/unictype/property-radical-tests: Likewise.
8744         * modules/unictype/property-sentence-terminal-tests: Likewise.
8745         * modules/unictype/property-soft-dotted-tests: Likewise.
8746         * modules/unictype/property-space-tests: Likewise.
8747         * modules/unictype/property-terminal-punctuation-tests: Likewise.
8748         * modules/unictype/property-test-tests: Likewise.
8749         * modules/unictype/property-titlecase-tests: Likewise.
8750         * modules/unictype/property-unassigned-code-value-tests: Likewise.
8751         * modules/unictype/property-unified-ideograph-tests: Likewise.
8752         * modules/unictype/property-uppercase-tests: Likewise.
8753         * modules/unictype/property-variation-selector-tests: Likewise.
8754         * modules/unictype/property-white-space-tests: Likewise.
8755         * modules/unictype/property-xid-continue-tests: Likewise.
8756         * modules/unictype/property-xid-start-tests: Likewise.
8757         * modules/unictype/property-zero-width-tests: Likewise.
8758         * modules/unictype/scripts-tests: Likewise.
8759         * modules/unictype/syntax-c-ident-tests: Likewise.
8760         * modules/unictype/syntax-c-whitespace-tests: Likewise.
8761         * modules/unictype/syntax-java-ident-tests: Likewise.
8762         * modules/unictype/syntax-java-whitespace-tests: Likewise.
8763         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
8764         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
8765         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
8766         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
8767         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
8768         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
8769         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
8770         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
8771         * modules/uniname/uniname-tests: Likewise.
8772         * modules/uninorm/canonical-decomposition-tests: Likewise.
8773         * modules/uninorm/compat-decomposition-tests: Likewise.
8774         * modules/uninorm/composition-tests: Likewise.
8775         * modules/uninorm/decomposing-form-tests: Likewise.
8776         * modules/uninorm/decomposition-tests: Likewise.
8777         * modules/uninorm/filter-tests: Likewise.
8778         * modules/uninorm/nfc-tests: Likewise.
8779         * modules/uninorm/nfd-tests: Likewise.
8780         * modules/uninorm/nfkc-tests: Likewise.
8781         * modules/uninorm/nfkd-tests: Likewise.
8782         * modules/uninorm/u8-normcmp-tests: Likewise.
8783         * modules/uninorm/u8-normcoll-tests: Likewise.
8784         * modules/uninorm/u16-normcmp-tests: Likewise.
8785         * modules/uninorm/u16-normcoll-tests: Likewise.
8786         * modules/uninorm/u32-normcmp-tests: Likewise.
8787         * modules/uninorm/u32-normcoll-tests: Likewise.
8788         * modules/unistdio/u8-asnprintf-tests: Likewise.
8789         * modules/unistdio/u8-vasnprintf-tests: Likewise.
8790         * modules/unistdio/u8-vasprintf-tests: Likewise.
8791         * modules/unistdio/u8-vsnprintf-tests: Likewise.
8792         * modules/unistdio/u8-vsprintf-tests: Likewise.
8793         * modules/unistdio/u16-asnprintf-tests: Likewise.
8794         * modules/unistdio/u16-vasnprintf-tests: Likewise.
8795         * modules/unistdio/u16-vasprintf-tests: Likewise.
8796         * modules/unistdio/u16-vsnprintf-tests: Likewise.
8797         * modules/unistdio/u16-vsprintf-tests: Likewise.
8798         * modules/unistdio/u32-asnprintf-tests: Likewise.
8799         * modules/unistdio/u32-vasnprintf-tests: Likewise.
8800         * modules/unistdio/u32-vasprintf-tests: Likewise.
8801         * modules/unistdio/u32-vsnprintf-tests: Likewise.
8802         * modules/unistdio/u32-vsprintf-tests: Likewise.
8803         * modules/unistdio/ulc-asnprintf-tests: Likewise.
8804         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
8805         * modules/unistdio/ulc-vasprintf-tests: Likewise.
8806         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
8807         * modules/unistdio/ulc-vsprintf-tests: Likewise.
8808         * modules/unistr/u8-check-tests: Likewise.
8809         * modules/unistr/u8-chr-tests: Likewise.
8810         * modules/unistr/u8-cmp-tests: Likewise.
8811         * modules/unistr/u8-cmp2-tests: Likewise.
8812         * modules/unistr/u8-cpy-alloc-tests: Likewise.
8813         * modules/unistr/u8-cpy-tests: Likewise.
8814         * modules/unistr/u8-mblen-tests: Likewise.
8815         * modules/unistr/u8-mbsnlen-tests: Likewise.
8816         * modules/unistr/u8-mbtouc-tests: Likewise.
8817         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
8818         * modules/unistr/u8-mbtoucr-tests: Likewise.
8819         * modules/unistr/u8-move-tests: Likewise.
8820         * modules/unistr/u8-next-tests: Likewise.
8821         * modules/unistr/u8-prev-tests: Likewise.
8822         * modules/unistr/u8-set-tests: Likewise.
8823         * modules/unistr/u8-stpcpy-tests: Likewise.
8824         * modules/unistr/u8-stpncpy-tests: Likewise.
8825         * modules/unistr/u8-strcat-tests: Likewise.
8826         * modules/unistr/u8-strcmp-tests: Likewise.
8827         * modules/unistr/u8-strcoll-tests: Likewise.
8828         * modules/unistr/u8-strcpy-tests: Likewise.
8829         * modules/unistr/u8-strdup-tests: Likewise.
8830         * modules/unistr/u8-strlen-tests: Likewise.
8831         * modules/unistr/u8-strmblen-tests: Likewise.
8832         * modules/unistr/u8-strmbtouc-tests: Likewise.
8833         * modules/unistr/u8-strncat-tests: Likewise.
8834         * modules/unistr/u8-strncmp-tests: Likewise.
8835         * modules/unistr/u8-strncpy-tests: Likewise.
8836         * modules/unistr/u8-strnlen-tests: Likewise.
8837         * modules/unistr/u8-to-u16-tests: Likewise.
8838         * modules/unistr/u8-to-u32-tests: Likewise.
8839         * modules/unistr/u8-uctomb-tests: Likewise.
8840         * modules/unistr/u16-check-tests: Likewise.
8841         * modules/unistr/u16-chr-tests: Likewise.
8842         * modules/unistr/u16-cmp-tests: Likewise.
8843         * modules/unistr/u16-cmp2-tests: Likewise.
8844         * modules/unistr/u16-cpy-alloc-tests: Likewise.
8845         * modules/unistr/u16-cpy-tests: Likewise.
8846         * modules/unistr/u16-mblen-tests: Likewise.
8847         * modules/unistr/u16-mbsnlen-tests: Likewise.
8848         * modules/unistr/u16-mbtouc-tests: Likewise.
8849         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
8850         * modules/unistr/u16-mbtoucr-tests: Likewise.
8851         * modules/unistr/u16-move-tests: Likewise.
8852         * modules/unistr/u16-next-tests: Likewise.
8853         * modules/unistr/u16-prev-tests: Likewise.
8854         * modules/unistr/u16-set-tests: Likewise.
8855         * modules/unistr/u16-stpcpy-tests: Likewise.
8856         * modules/unistr/u16-stpncpy-tests: Likewise.
8857         * modules/unistr/u16-strcat-tests: Likewise.
8858         * modules/unistr/u16-strcmp-tests: Likewise.
8859         * modules/unistr/u16-strcoll-tests: Likewise.
8860         * modules/unistr/u16-strcpy-tests: Likewise.
8861         * modules/unistr/u16-strdup-tests: Likewise.
8862         * modules/unistr/u16-strlen-tests: Likewise.
8863         * modules/unistr/u16-strmblen-tests: Likewise.
8864         * modules/unistr/u16-strmbtouc-tests: Likewise.
8865         * modules/unistr/u16-strncat-tests: Likewise.
8866         * modules/unistr/u16-strncmp-tests: Likewise.
8867         * modules/unistr/u16-strncpy-tests: Likewise.
8868         * modules/unistr/u16-strnlen-tests: Likewise.
8869         * modules/unistr/u16-to-u32-tests: Likewise.
8870         * modules/unistr/u16-to-u8-tests: Likewise.
8871         * modules/unistr/u16-uctomb-tests: Likewise.
8872         * modules/unistr/u32-check-tests: Likewise.
8873         * modules/unistr/u32-chr-tests: Likewise.
8874         * modules/unistr/u32-cmp-tests: Likewise.
8875         * modules/unistr/u32-cmp2-tests: Likewise.
8876         * modules/unistr/u32-cpy-alloc-tests: Likewise.
8877         * modules/unistr/u32-cpy-tests: Likewise.
8878         * modules/unistr/u32-mblen-tests: Likewise.
8879         * modules/unistr/u32-mbsnlen-tests: Likewise.
8880         * modules/unistr/u32-mbtouc-tests: Likewise.
8881         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
8882         * modules/unistr/u32-mbtoucr-tests: Likewise.
8883         * modules/unistr/u32-move-tests: Likewise.
8884         * modules/unistr/u32-next-tests: Likewise.
8885         * modules/unistr/u32-prev-tests: Likewise.
8886         * modules/unistr/u32-set-tests: Likewise.
8887         * modules/unistr/u32-stpcpy-tests: Likewise.
8888         * modules/unistr/u32-stpncpy-tests: Likewise.
8889         * modules/unistr/u32-strcat-tests: Likewise.
8890         * modules/unistr/u32-strcmp-tests: Likewise.
8891         * modules/unistr/u32-strcoll-tests: Likewise.
8892         * modules/unistr/u32-strcpy-tests: Likewise.
8893         * modules/unistr/u32-strdup-tests: Likewise.
8894         * modules/unistr/u32-strlen-tests: Likewise.
8895         * modules/unistr/u32-strmblen-tests: Likewise.
8896         * modules/unistr/u32-strmbtouc-tests: Likewise.
8897         * modules/unistr/u32-strncat-tests: Likewise.
8898         * modules/unistr/u32-strncmp-tests: Likewise.
8899         * modules/unistr/u32-strncpy-tests: Likewise.
8900         * modules/unistr/u32-strnlen-tests: Likewise.
8901         * modules/unistr/u32-to-u16-tests: Likewise.
8902         * modules/unistr/u32-to-u8-tests: Likewise.
8903         * modules/unistr/u32-uctomb-tests: Likewise.
8904         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
8905         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
8906         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
8907         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
8908         * modules/uniwidth/u8-strwidth-tests: Likewise.
8909         * modules/uniwidth/u8-width-tests: Likewise.
8910         * modules/uniwidth/u16-strwidth-tests: Likewise.
8911         * modules/uniwidth/u16-width-tests: Likewise.
8912         * modules/uniwidth/u32-strwidth-tests: Likewise.
8913         * modules/uniwidth/u32-width-tests: Likewise.
8914         * modules/uniwidth/width-tests: Likewise.
8915
8916 2010-05-18  Richard Jones  <rjones@redhat.com>
8917
8918         doc: users.txt: list hivex
8919         * users.txt: Add hivex.
8920
8921 2010-05-18  Richard Jones  <rjones@redhat.com>
8922
8923         doc: users.txt: list febootstrap
8924         * users.txt: Add febootstrap.
8925
8926 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
8927
8928         bootstrap: fix an error when gnulib is not used as a git submodule
8929         * build-aux/bootstrap (gnulib_path): If its length is zero then
8930         assign "gnulib" to it.
8931         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
8932
8933 2010-05-16  Bruno Haible  <bruno@clisp.org>
8934
8935         Avoid autoconf warnings about AM_ICONV.
8936         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
8937         2.64.
8938
8939 2010-05-16  Bruno Haible  <bruno@clisp.org>
8940
8941         absolute-header: Make the macro usable in more situations.
8942         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
8943         from gl_ABSOLUTE_HEADER.
8944         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
8945
8946 2010-05-16  James Youngman  <jay@gnu.org>
8947
8948         doc: update users.txt
8949         * users.txt: Add CSSC.
8950
8951 2010-05-16  Jim Meyering  <meyering@redhat.com>
8952
8953         init.sh: fix an error in the previous change; add more comments
8954         * tests/init.sh: Compare exit code in loop against 9, not 2.
8955         Patch by Bruno Haible.
8956         Make the two tests more similar by adding an empty "then" clause.
8957         Add comments.
8958
8959         init.sh: avoid unnecessary shell re-exec
8960         * tests/init.sh: Improve the re-exec-required check to first test the
8961         current shell.  If it passes the test, do not search for a shell that
8962         does pass, and do not re-exec.  This test is particularly contorted to
8963         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
8964         of $(...) evokes a syntax error and causes immediate shell exit with
8965         status 2.  Bruno Haible reported that the re-exec made it impossible
8966         to single-step through any init.sh-using script.
8967
8968 2010-05-16  Bruno Haible  <bruno@clisp.org>
8969
8970         Fix collision between gnulib's and libintl's printf replacements.
8971         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
8972         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
8973         (printf): When using GNU C, map the __printf__ function to rpl_printf
8974         via __asm__. When not using GNU C, define rpl_printf instead of
8975         __printf__.
8976         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
8977         commit.
8978         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
8979         commit.
8980         * m4/asm-underscore.m4: New file.
8981         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
8982         * modules/stdio (Files): Add m4/asm-underscore.m4.
8983         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
8984         Reported by Ben Pfaff.
8985
8986 2010-05-16  Bruno Haible  <bruno@clisp.org>
8987
8988         verify: Avoid skipping the test on openSUSE 11.0.
8989         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
8990
8991 2010-05-13  Bruno Haible  <bruno@clisp.org>
8992
8993         Avoid useless warnings from G++.
8994         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
8995         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
8996         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8997
8998 2010-05-11  Jim Meyering  <meyering@redhat.com>
8999
9000         maint.mk: tweak preceding change
9001         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
9002         regexps tighter by anchoring at EOL, and make the new group "shy"
9003         for slightly decreased overhead.
9004
9005 2010-05-11  Eric Blake  <eblake@redhat.com>
9006
9007         maint.mk: gnulib doesn't guarantee NSIG
9008         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
9009
9010 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
9011
9012         test-pwrite.c: Remove unused variable declaration.
9013         * tests/test-pwrite.c (main): Remove read_buf declaration.
9014
9015         Remove useless test-pwrite.sh file.
9016         * tests/test-pwrite.sh: Delete file.
9017         * modules/pwrite-tests: Remove references.
9018         Reported by Bruno Haible.
9019
9020 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
9021
9022         init.sh: fix a typo
9023         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
9024
9025 2010-05-10  Jim Meyering  <meyering@redhat.com>
9026
9027         maint.mk: avoid using a temporary file in the always-defined-macros check
9028         * top/maint.mk (.re-defmac): Remove rule.
9029         (gl_trap_): Remove definition.
9030         (sc_prohibit_always-defined_macros): Rewrite not to create and
9031         depend on a temporary file.  Instead, depend on GNU grep's ability
9032         to read a list of regular expressions from stdin when given "-f -".
9033
9034 2010-05-09  Bruno Haible  <bruno@clisp.org>
9035
9036         Update to GNU gettext 0.18, part 1.
9037         * m4/gettext.m4: Update to GNU gettext 0.18.
9038         * m4/intl.m4: Likewise.
9039         * m4/po.m4: Likewise.
9040         * modules/gettext (Files): Add m4/fcntl-o.m4.
9041         (configure.ac): Require gettext infrastructure from version 0.18.
9042
9043 2010-05-09  Jim Meyering  <meyering@redhat.com>
9044
9045         init.sh: enable MALLOC_PERTURB_
9046         * tests/init.sh: Enable glibc's malloc-perturbing option.
9047
9048         maint.mk: improve sc_cross_check_PATH_usage_in_tests
9049         With my recent change in init.sh from the two-line form:
9050             -#   : ${srcdir=.}
9051             -#   . "$srcdir/init.sh"; path_prepend_ .
9052             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
9053         I noticed that using the one-line form would cause this test
9054         to fail with a false-positive, or to stop working altogether,
9055         depending on whether help-version changed or all the tests did.
9056         * top/maint.mk (_hv_regex): Remove this definition.
9057         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
9058         (_hv_regex_strong): Use a stronger regex to check for conformance.
9059         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
9060         Give a separate diagnostic for lack of conforming use.
9061
9062         maint.mk: prohibit definition of symbols defined by gnulib
9063         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
9064         definition of symbols defined by gnulib.
9065
9066 2010-05-09  Bruno Haible  <bruno@clisp.org>
9067
9068         acl: Avoid test failure on Cygwin-hosted mingw.
9069         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
9070
9071 2010-05-09  Bruno Haible  <bruno@clisp.org>
9072
9073         error: Use system's fcntl function.
9074         * lib/error.c (fcntl): Undefine.
9075
9076 2010-05-09  Jim Meyering  <meyering@redhat.com>
9077
9078         verify: adjust formatting to be more consistent
9079         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
9080         argument-list '('s, and after one comma.
9081
9082 2010-05-09  Bruno Haible  <bruno@clisp.org>
9083
9084         error: More reliable output on mingw.
9085         * lib/error.c: Include <windows.h>.
9086         (is_open): New function.
9087         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
9088         defined.
9089
9090 2010-05-09  Bruno Haible  <bruno@clisp.org>
9091
9092         vasnprintf: Fix syntax errors in libintl build on mingw.
9093         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
9094         pad_ourselves and prec_ourselves after use.
9095
9096 2010-05-08  Bruno Haible  <bruno@clisp.org>
9097
9098         * lib/config.charset: Update comments for Cygwin 1.7.
9099         * lib/localcharset.c: Likewise.
9100
9101 2010-05-07  Jim Meyering  <meyering@redhat.com>
9102
9103         init.sh: improve comments
9104         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
9105         . "${srcdir=.}/init.sh"; path_prepend_ .
9106         Add a note about path_prepend_ and the alternative of using
9107         TESTS_ENVIRONMENT.
9108
9109 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
9110
9111         exclude: Unescape hashed patterns in wildcard mode.
9112         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
9113         to the hash list.
9114         * tests/test-exclude8.sh: New test case.
9115         * modules/exclude-tests: Add new test.
9116
9117 2010-05-05  Eric Blake  <eblake@redhat.com>
9118
9119         verify: automate tests
9120         * modules/verify-tests: New module.
9121         * tests/test-verify.sh: New file.
9122         * tests/test-verify.c: Guard each negative test with a unique id.
9123         Also avoid warning about unused left hand of comma expressions.
9124
9125 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
9126
9127         Further improvements to verify.h, suggested by Eric Blake.
9128         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
9129         the GL_* versions, to avoid collision with OpenGL.
9130         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
9131         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
9132         than testing merely whether it's defined.
9133
9134         Modify verify.h to pacify gcc -Wredundant_decls.
9135         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
9136         These use the prefix "GL_" since they're likely to be useful elsewhere.
9137         We may need to break them out into a different .h file.
9138         (__COUNTER__): Define to 0 if the compiler doesn't support it.
9139         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
9140         of verify_function__.
9141
9142 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
9143
9144         Tests for module pwrite.
9145         * modules/pwrite-tests: New file.
9146         * tests/test-pwrite.sh: New file.
9147         * tests/test-pwrite.c: New file.
9148
9149         New module pwrite.
9150         * lib/unistd.in.h (pwrite): New declaration.
9151         * lib/pwrite.c: New file, from glibc with modifications.
9152         * m4/pwrite.m4: New file.
9153         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
9154         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
9155         REPLACE_PWRITE.
9156         * modules/pwrite: New file.
9157         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
9158         REPLACE_PWRITE.
9159         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
9160         * doc/posix-functions/pwrite.texi: Mention the new module.
9161
9162 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
9163
9164         pread: Update documentation.
9165         * doc/posix-functions/pread.texi: Mention the 'pread' module.
9166
9167 2010-05-04  Eric Blake  <eblake@redhat.com>
9168
9169         docs: update cygwin progress
9170         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
9171         this bug.
9172         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
9173         Added in cygwin 1.7.2.
9174         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
9175         Likewise.
9176         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
9177         Likewise.
9178         * doc/glibc-functions/dup3.texi (dup3): Likewise.
9179         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
9180         * doc/glibc-functions/accept4.texi (accept4): Likewise.
9181         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
9182         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
9183         Mention nproc module.
9184         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
9185         bug in cygwin 1.7.5 addition.
9186         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
9187         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
9188         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
9189         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
9190         1.7.5.
9191         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
9192         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
9193         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
9194         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
9195         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
9196         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
9197         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
9198         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
9199         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
9200         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
9201         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
9202         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
9203         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
9204         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
9205         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
9206         Likewise.
9207         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
9208         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
9209         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
9210         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
9211         Likewise.
9212         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
9213         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
9214         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
9215         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
9216         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
9217         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
9218         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
9219         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
9220         Likewise.
9221         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
9222         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
9223         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
9224         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
9225         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
9226         Likewise.
9227         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
9228         Likewise.
9229         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
9230         Likewise.
9231         * doc/glibc-functions/xdrrec_endofrecord.texi
9232         (xdrrec_endofrecord): Likewise.
9233         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
9234         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
9235         Likewise.
9236         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
9237         Likewise.
9238
9239 2010-05-04  Jim Meyering  <meyering@redhat.com>
9240
9241         gendocs.sh: make its "-s FILE" option more useful
9242         * build-aux/gendocs.sh: When honoring the -s FILE option, update
9243         $PACKAGE to reflect the probably-different basename of "FILE".
9244
9245 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
9246
9247         bootstrap: don't ignore download_po_files failure
9248         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
9249         failure.
9250
9251 2010-05-03  Jim Meyering  <meyering@redhat.com>
9252
9253         maint.mk: allow to pass options to gendocs.sh
9254         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
9255         (gendocs_options_): New overridable variable.
9256
9257         gnu-web-doc-update: don't ignore configure or build failure
9258         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
9259
9260         announce-gen: backslash-escape '@'s in --help output
9261         * build-aux/announce-gen: Fix syntax errors.
9262
9263         maint.mk, announce-gen: allow project-specific announcement mail headers
9264         * top/maint.mk (translation_project_): Define default.
9265         (announcement_Cc_, announcement_mail_headers_): Likewise.
9266         (announcement): Invoke announce-gen with new --mail-headers option.
9267         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
9268
9269         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
9270         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
9271         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
9272         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
9273         line in the "err2" output file when running "make check" in verbose
9274         mode (i.e., with set -x enabled).
9275
9276 2010-05-03  Bruno Haible  <bruno@clisp.org>
9277
9278         wctob: Fix for weird platforms.
9279         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
9280         argument value.
9281
9282 2010-05-03  Jim Meyering  <meyering@redhat.com>
9283
9284         maint.mk: prohibit unwarranted use of <strings.h>
9285         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
9286         strings.h in a file that does not also use strcasecmp, strncasecmp,
9287         ffs or ffsll.
9288
9289         maint.mk: remove obsolete comments
9290         * top/maint.mk: Remove stale, commented-out rules.
9291
9292 2010-05-02  Bruno Haible  <bruno@clisp.org>
9293
9294         wcwidth: Declare also when it's aliased.
9295         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
9296         macro.
9297
9298 2010-05-02  Bruno Haible  <bruno@clisp.org>
9299
9300         Fix regression from 2010-04-25.
9301         * gnulib-tool (func_modules_transitive_closure): Check the status of
9302         all modules, not only of the tests that are of the form foo-tests where
9303         foo is a module.
9304
9305 2010-05-02  Bruno Haible  <bruno@clisp.org>
9306
9307         wctob: Work around nasty Cygwin 1.7.2 bug.
9308         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
9309         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
9310
9311 2010-05-01  Bruno Haible  <bruno@clisp.org>
9312
9313         fpurge: Sharper test.
9314         * tests/test-fpurge.c (main): Add one more ftell check.
9315         * modules/fpurge-tests (Depends-on): Add ftell.
9316         Suggested by Eric Blake.
9317
9318 2010-05-01  Bruno Haible  <bruno@clisp.org>
9319
9320         ftello: Another test.
9321         * tests/test-ftello3.c: New file.
9322         * modules/ftello-tests (Files): Add it.
9323         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
9324         MOSTLYCLEANFILES.
9325
9326         ftell: Another test.
9327         * tests/test-ftell3.c: New file.
9328         * modules/ftell-tests (Files): Add it.
9329         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
9330         MOSTLYCLEANFILES.
9331
9332 2010-05-01  Bruno Haible  <bruno@clisp.org>
9333
9334         ftell, ftello: Work around Solaris bug.
9335         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
9336         * lib/ftello.c: Include stdio-impl.h.
9337         (ftello): On Solaris, when _IOWRT is set, compute the result without
9338         looking at _IOREAD.
9339         * modules/ftello (Files): Add lib/stdio-impl.h.
9340         * doc/posix-functions/ftell.texi: Mention Solaris bug.
9341         * doc/posix-functions/ftello.texi: Likewise.
9342         Reported by Eric Blake.
9343
9344 2010-05-01  Bruno Haible  <bruno@clisp.org>
9345
9346         freading: Adapt to special meaning of _IOREAD flag on Solaris.
9347         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
9348         the _IOWRT flag is also set.
9349
9350 2010-05-01  Bruno Haible  <bruno@clisp.org>
9351
9352         Fix doc about a HP-UX stdio bug.
9353         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
9354         * doc/posix-functions/ftello.texi: Likewise.
9355
9356 2010-05-01  Bruno Haible  <bruno@clisp.org>
9357
9358         lseek test: Fix failure on Solaris.
9359         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
9360         output.
9361
9362 2010-04-30  Jim Meyering  <meyering@redhat.com>
9363
9364         bootstrap: don't ignore failure to generate po*/Makevars
9365         * build-aux/bootstrap (with_gettext): Don't ignore failure
9366         to create po/Makevars or runtime-po/Makevars.
9367
9368 2010-04-29  Eric Blake  <eblake@redhat.com>
9369
9370         headers: relax license to LGPLv2+
9371         * modules/fcntl-h (License): Relax license.
9372         * modules/getopt-posix (License): Likewise.
9373         * modules/locale (License): Likewise.
9374         * modules/math (License): Likewise.
9375         * modules/pty (License): Likewise.
9376         * modules/sched (License): Likewise.
9377         * modules/search (License): Likewise.
9378         * modules/spawn (License): Likewise.
9379         * modules/stdarg (License): Likewise.
9380         * modules/sysexits (License): Likewise.
9381
9382 2010-04-29  Jim Meyering  <meyering@redhat.com>
9383
9384         inttypes: relax license to LGPLv2+
9385         * modules/inttypes (License): Relax license.
9386
9387 2010-04-29  Simon Josefsson  <simon@josefsson.org>
9388
9389         * top/maint.mk (indent): Run twice to produce idempotent results.
9390
9391 2010-04-28  Bruno Haible  <bruno@clisp.org>
9392
9393         getdate: Generate getdate.c in the source directory.
9394         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
9395         MOSTLYCLEANFILES.
9396         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
9397
9398 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
9399
9400         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
9401         is not declared as a const *; avoid warnings in that case.
9402
9403 2010-04-28  Eric Blake  <eblake@redhat.com>
9404
9405         canonicalize-lgpl: avoid compiler warning
9406         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
9407         declaration' / 'extraneous semicolon' warning with some compilers.
9408         Reported by Andreas Gruenbacher.
9409
9410 2010-04-28  Jim Meyering  <meyering@redhat.com>
9411
9412         init.sh: ensure a more reliable exit status when exiting via trap
9413         * tests/init.sh (setup_): Don't rely on $? in signal handler.
9414         Inspired by patches from Dmitry V. Levin.
9415         Also trap on signal 3 (SIGQUIT).
9416
9417 2010-04-27  Bruno Haible  <bruno@clisp.org>
9418
9419         Update doc about utimes().
9420         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
9421         'utimens' module.
9422         Reported by Andreas Gruenbacher <agruen@suse.de>.
9423
9424 2010-04-27  Eric Blake  <eblake@redhat.com>
9425
9426         full-read, full-write: relax license
9427         * modules/full-read (License): Drop to LGPLv2+.
9428         * modules/full-write (License): Likewise.
9429         * modules/safe-read (License): Likewise.
9430         * modules/safe-write (License): Likewise.
9431
9432         pthread: mention library for linking
9433         * modules/pthread (Link): Mention $(LIB_PTHREAD).
9434
9435 2010-04-27  Jim Meyering  <meyering@redhat.com>
9436
9437         maint.mk: fix a bug introduced in last change
9438         * top/maint.mk (gl_assured_headers_): Now that all names are on
9439         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
9440         is not anchored to end of word, it should be adequate.
9441
9442         maint.mk: avoid side-effect in latest syntax-check
9443         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
9444         to run commands via $(shell...), and hence to incur cost only when
9445         the new rule is actually run.
9446
9447         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
9448         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
9449         and use that to create a regexp used to detect all #if HAVE_..._H uses.
9450         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
9451         (gl_assured_headers_, az_, AZ_): Define.
9452         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
9453
9454 2010-04-26  Jim Meyering  <jim@meyering.net>
9455             Bruno Haible  <bruno@clisp.org>
9456
9457         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
9458         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
9459         Prompted by an exchange with Gilles Espinasse.
9460
9461 2010-04-26  Jim Meyering  <meyering@redhat.com>
9462
9463         git-version-gen: aesthetic tweak
9464         * build-aux/git-version-gen: Use "$nl" rather than a literal,
9465         so that the command remains on a single line.
9466
9467 2010-04-26  Eric Blake  <eblake@redhat.com>
9468
9469         git-version-gen: allow use on EBCDIC hosts
9470         * build-aux/git-version-gen (dirty): Use literal rather than tying
9471         ourselves to ascii.
9472         Reported by Steve Goetze.
9473
9474 2010-04-25  Bruno Haible  <bruno@clisp.org>
9475
9476         netdb: Add support for GNULIB_POSIXCHECK.
9477         * lib/netdb.in.h: Include warn-on-use.h.
9478         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
9479         functions are used when GNULIB_POSIXCHECK is defined and the
9480         getaddrinfo module is not in use.
9481         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
9482         freeaddrinfo, gai_strerror, getnameinfo are declared.
9483         * modules/netdb (Depends-on): Add warn-on-use.
9484         (Makefile.am): Include warn-on-use.h in netdb.h.
9485
9486 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
9487
9488         build: avoid "make check" failure without .git/ directory
9489         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
9490         there is no .git/ directory.
9491
9492 2010-04-25  Bruno Haible  <bruno@clisp.org>
9493
9494         ptsname: Fix misuse of ttyname_r.
9495         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
9496         of errno.
9497
9498 2010-04-25  Bruno Haible  <bruno@clisp.org>
9499
9500         ttyname_r: Make it work on Solaris 10.
9501         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
9502         if the system function has the POSIX declaration. Test whether the
9503         function fails if the buffer is less than 128 bytes large.
9504         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
9505         system's ttyname_r function. Provide a reasonably large buffer.
9506         * modules/ttyname_r (Depends-on): Add extensions.
9507         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
9508
9509 2010-04-25  Bruno Haible  <bruno@clisp.org>
9510
9511         Use the 'extensions' module for some more functions on Solaris.
9512         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
9513         module.
9514         * doc/posix-functions/ctime_r.texi: Likewise.
9515         * doc/posix-functions/getgrgid_r.texi: Likewise.
9516         * doc/posix-functions/getgrnam_r.texi: Likewise.
9517         * doc/posix-functions/getpwnam_r.texi: Likewise.
9518         * doc/posix-functions/getpwuid_r.texi: Likewise.
9519         * doc/posix-functions/readdir_r.texi: Likewise.
9520         * doc/posix-functions/sigwait.texi: Likewise.
9521         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
9522         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
9523
9524 2010-04-25  Bruno Haible  <bruno@clisp.org>
9525
9526         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
9527         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
9528         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
9529         * lib/ttyname_r.c: Include <limits.h>.
9530         (ttyname_r): Define using the system's ttyname_r function, if it exists
9531         and not on Solaris.
9532         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
9533         set.
9534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
9535         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
9536         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
9537         Reported by Simon Josefsson.
9538
9539 2010-04-25  Bruno Haible  <bruno@clisp.org>
9540
9541         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
9542         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
9543         * doc/posix-functions/ctime_r.texi: Likewise.
9544         * doc/posix-functions/getgrgid_r.texi: Likewise.
9545         * doc/posix-functions/getgrnam_r.texi: Likewise.
9546         * doc/posix-functions/getlogin_r.texi: Likewise.
9547         * doc/posix-functions/getpwnam_r.texi: Likewise.
9548         * doc/posix-functions/getpwuid_r.texi: Likewise.
9549         * doc/posix-functions/readdir_r.texi: Likewise.
9550         * doc/posix-functions/sigwait.texi: Likewise.
9551         * doc/posix-functions/ttyname_r.texi: Likewise.
9552         Reported by Simon Josefsson.
9553
9554 2010-04-25  Bruno Haible  <bruno@clisp.org>
9555
9556         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
9557         * gnulib-tool (func_usage): Document that --with-*-tests options apply
9558         also to --create-testdir.
9559         (func_acceptable): Don't consider the status of *-tests modules here.
9560         (func_modules_transitive_closure): Consider it here, before including a
9561         test module.
9562         (func_import, func_create_testdir): Set inc_all_direct_tests,
9563         inc_all_indirect_tests.
9564         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
9565         --create-testdir and --create-megatestdir.
9566
9567 2010-04-25  Bruno Haible  <bruno@clisp.org>
9568
9569         gnulib-tool: Add --without-*-tests options.
9570         * gnulib-tool (func_usage): Document the --without-*-tests options.
9571         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
9572         excl_unportable_tests): New variables.
9573         Fail if they are specified with --import or --update.
9574         (func_acceptable): Respect the excl_*_tests variables.
9575         (func_import): Set the excl_*_tests variables to empty.
9576
9577 2010-04-25  Simon Josefsson  <simon@josefsson.org>
9578             Bruno Haible  <bruno@clisp.org>
9579
9580         Work around a MacOS X 10.4 bug with openpty.
9581         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
9582         * tests/test-openpty.c (main): Close the master side explicitly.
9583
9584 2010-04-25  Bruno Haible  <bruno@clisp.org>
9585
9586         strnlen: Fix a C++ test error on MacOS X and Solaris.
9587         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
9588         the function is not declared.
9589         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
9590         Simon Josefsson.
9591
9592 2010-04-24  Bruno Haible  <bruno@clisp.org>
9593
9594         Avoid a gcc warning.
9595         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
9596         of correct type for %08lx directive.
9597         Reported by Eric Blake.
9598
9599 2010-04-24  Bruno Haible  <bruno@clisp.org>
9600
9601         vasnprintf: Correct errno value in case of out-of-memory.
9602         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
9603         or sprintf. Use the errno value from SNPRINTF or sprintf.
9604         Reported by Ian Beckwith <ianb@erislabs.net>.
9605
9606 2010-04-24  Bruno Haible  <bruno@clisp.org>
9607
9608         ansi-c++-opt: Find correct compiler when cross-compiling.
9609         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
9610         AC_CHECK_PROGS.
9611         Reported by Simon Josefsson.
9612
9613 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
9614
9615         vc-list-files: Add support for subversion
9616         * build-aux/vc-list-files: Use "svn list" to generate the list of
9617         files controlled by subversion.
9618
9619 2010-04-23  Jim Meyering  <meyering@redhat.com>
9620
9621         vc-list-files tests: convert to use init.sh
9622         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
9623         path_prepend_.
9624         Use Exit, not exit.
9625         Use skip_ rather than open coding it.
9626         Remove trap set-up and compare definitions.
9627         * tests/test-vc-list-files-git.sh: Likewise.
9628         * modules/vc-list-files-tests (Files): Add tests/init.sh.
9629
9630 2010-04-22  Simon Josefsson  <simon@josefsson.org>
9631
9632         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
9633         backup files.
9634
9635 2010-04-21  Simon Josefsson  <simon@josefsson.org>
9636
9637         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
9638
9639 2010-04-20  Eric Blake  <eblake@redhat.com>
9640
9641         tests: be robust to ignored SIGPIPE
9642         * tests/test-select-in.sh: Consume all output.
9643         * tests/test-lseek.sh: Check correct exit status, while avoiding
9644         EPIPE.
9645
9646 2010-04-20  Simon Josefsson  <simon@josefsson.org>
9647             Bruno Haible  <bruno@clisp.org>
9648
9649         visibility: Don't use -fvisibility if it leads to a warning.
9650         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
9651         yes, don't pretend that visibility works if it leads to a warning.
9652         Reported by Mike Gran <spk121@yahoo.com>.
9653
9654 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
9655
9656         * build-aux/bootstrap: Use "git -h" for testing for supported options
9657         instead of "git --help".  The short-form option only shows a summary,
9658         and doesn't layout the full man page.  Grep for the full option name
9659         in the summary, too.
9660
9661 2010-04-19  Bruno Haible  <bruno@clisp.org>
9662
9663         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
9664         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
9665         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
9666         mention of RELOCATABLE_STRIP.
9667         Reported by Sylvain Beucler <beuc@beuc.net>.
9668
9669 2010-04-19  Bruno Haible  <bruno@clisp.org>
9670
9671         * lib/diffseq.h: Fix typo in comment.
9672         Reported by Eric Blake.
9673
9674 2010-04-19  Bruno Haible  <bruno@clisp.org>
9675
9676         ioctl: Move autoconf macro to a .m4 file.
9677         * m4/ioctl.m4: New file, extracted from modules/ioctl.
9678         * modules/ioctl (Files): Add it.
9679         (configure.ac): Simply invoke gl_FUNC_IOCTL.
9680         Reported by Ian Beckwith <ianb@erislabs.net>.
9681
9682 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
9683             Bruno Haible  <bruno@clisp.org>
9684
9685         diffseq: Accommodate use-case with abstract arrays.
9686         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
9687         is not defined.
9688         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
9689         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
9690
9691 2010-04-18  Bruno Haible  <bruno@clisp.org>
9692
9693         * doc/posix-headers/stdbool.texi: More precise wording.
9694
9695 2010-04-17  Jim Meyering  <meyering@redhat.com>
9696
9697         maint.mk: use gnu-style indentation in an embedded perl script
9698         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
9699         Rename variable: s/two/last_two_bytes/
9700
9701 2010-04-16  Eric Blake  <eblake@redhat.com>
9702
9703         test-stdbool: skip test that fails with Solaris CC
9704         * tests/test-stdbool.c (f): Skip test that causes compilation
9705         error under buggy C++ compiler.
9706         * lib/stdbool.in.h: Document the limitation.
9707         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
9708
9709         setenv: allow compilation with C++
9710         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
9711         register keyword.
9712
9713         stdint: allow test to pass with C++
9714         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
9715
9716         getopt: allow compilation with C++
9717         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
9718         struct.
9719         * lib/getopt.c (_getopt_internal_r): Use correct type.
9720         Reported by Dagobert Michelson, via Joel E. Denny.
9721
9722 2010-04-16  Bruno Haible  <bruno@clisp.org>
9723
9724         Override netdb.h always.
9725         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
9726         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
9727         Reported by Ludovic Courtès <ludo@gnu.org>.
9728
9729 2010-04-15  Bruno Haible  <bruno@clisp.org>
9730
9731         openpty: Fix mistake from 2010-03-21.
9732         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
9733         Reported by Simon Josefsson.
9734
9735 2010-04-15  Eric Blake  <eblake@redhat.com>
9736
9737         test-forkpty: fix expected signature
9738         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
9739         Reported by Simon Josefsson.
9740
9741 2010-04-15  Jim Meyering  <meyering@redhat.com>
9742
9743         maint.mk: texinfo_suffix_re_: correct the default regexp
9744         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
9745
9746         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
9747         make it configurable via texinfo_suffix_re_.
9748
9749 2010-04-14  Eric Blake  <eblake@redhat.com>
9750
9751         strtok_r: relax license to LGPLv2+
9752         * modules/strtok_r (License): Relax license.
9753         Reported by Matthias Bolte.
9754
9755 2010-04-14  Simon Josefsson  <simon@josefsson.org>
9756
9757         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
9758         version 1.4.4 by default instead of requiring the libgcrypt
9759         version used during build.  This makes it possible to use the
9760         application with older but still binary compatible libgcrypt
9761         versions.
9762
9763 2010-04-13  Eric Blake  <eblake@redhat.com>
9764
9765         getopt-gnu: match recent glibc fixes and posix ruling
9766         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
9767         '+' handling, when requesting extensions.
9768         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
9769         'W;' handling.
9770         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
9771         * doc/posix-functions/getopt.texi (getopt): Document this.
9772         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
9773         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9774         Likewise.
9775
9776         getopt: merge bug fixes from glibc
9777         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
9778         diagnostics.  Honor '+:' correctly.  Reject ';'.
9779
9780         getopt-posix: detect MacOS bug
9781         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
9782         optind when missing a required argument.
9783         * doc/posix-functions/getopt.texi (getopt): Document the bug.
9784         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
9785         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9786         Likewise.
9787
9788         getopt-posix: avoid spurious failure on Solaris
9789         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
9790         an indicator that setting optind=1 is sufficient for reset.
9791
9792         getopt-posix: avoid spurious failure on FreeBSD
9793         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
9794         in POSIX mode, since the m4 test uses it.
9795
9796         gnulib-tool: silence warning on BSD sh
9797         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
9798
9799 2010-04-13  Jim Meyering  <meyering@redhat.com>
9800
9801         doc: users.txt: GNU patch now uses gnulib
9802         * users.txt: Add patch.
9803
9804 2010-04-12  Jim Meyering  <meyering@redhat.com>
9805
9806         maint.mk: generate more concise timing data for syntax-check rules
9807         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
9808         " done" from each line that reports a syntax-check test duration.
9809
9810 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
9811
9812         git-version-gen: use "git update-index..." rather than "git status"
9813         * build-aux/git-version-gen: Use git update-index --refresh, not
9814         "git status".  With some versions of git, "git status" would fail
9815         to update the index and result in an unwarranted "-dirty" suffix.
9816
9817 2010-04-11  Jim Meyering  <meyering@redhat.com>
9818
9819         openat: correct formatting (no semantic change)
9820         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
9821         Suggested by Bruno Haible.
9822
9823 2010-04-11  Bruno Haible  <bruno@clisp.org>
9824
9825         Stricter declaration checking in testdirs.
9826         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9827         If for_tests is true, augment AM_CPPFLAGS to define
9828         GNULIB_STRICT_CHECKING.
9829         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
9830         GNULIB_STRICT_CHECKING is defined, verify that the function is
9831         declared.
9832
9833 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
9834             Bruno Haible  <bruno@clisp.org>
9835
9836         libunistring: Improve configure output.
9837         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
9838         Don't say "consider installing GNU libunistring" when checking again
9839         with libiconv.
9840
9841 2010-04-11  Bruno Haible  <bruno@clisp.org>
9842
9843         libunistring: Correct value of $LTLIBUNISTRING.
9844         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
9845         correct the value of $LTLIBUNISTRING.
9846
9847 2010-04-11  Bruno Haible  <bruno@clisp.org>
9848
9849         havelib: Add static libraries to LIBS in the right order.
9850         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
9851         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
9852
9853 2010-04-11  Bruno Haible  <bruno@clisp.org>
9854
9855         libunistring: Detect libunistring also when it depends on libiconv.
9856         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
9857         the second AC_LIB_HAVE_LINKFLAGS invocation.
9858
9859 2010-04-11  James Youngman  <jay@gnu.org>
9860
9861         close-stream: declare local scalars to be "const"
9862         * lib/close-stream.c (close_stream): Make boolean variables const
9863         to document the fact that we set but do not change them.
9864
9865 2010-04-11  Bruno Haible  <bruno@clisp.org>
9866
9867         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
9868
9869 2010-04-11  Jim Meyering  <meyering@redhat.com>
9870
9871         maint.mk: don't include dist-check.mk
9872         * top/maint.mk: Remove bogus include directive.
9873
9874         maint.mk: improve empty-line-at-EOF check
9875         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
9876         solution, rather than tail+Perl-based one.  The latter would read
9877         a few kilobytes from the end of each file, and did not handle empty
9878         files properly.
9879
9880         maint.mk: print the elapsed time for each syntax-check rule
9881         * top/maint.mk (sc_m_rules_): Save start time in a file.
9882         (sc_z_rules_): New rules: remove temp file and print elapsed time.
9883         (local-check): Interpose the .z rules
9884
9885 2010-04-11  Jim Meyering  <meyering@redhat.com>
9886
9887         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
9888         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
9889         empty file with one that ends in an empty line.
9890
9891 2010-04-10  Bruno Haible  <bruno@clisp.org>
9892
9893         mkdir: Make it work on mingw64.
9894         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
9895         * lib/mkdir.c: Update comment.
9896         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
9897
9898 2010-04-10  Bruno Haible  <bruno@clisp.org>
9899
9900         Don't override improved macro from newer autoconf.
9901         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
9902         autoconf >= 2.62.
9903         Reported by Joel E. Denny <jdenny@clemson.edu>.
9904
9905 2010-04-10  Jim Meyering  <meyering@redhat.com>
9906
9907         maint.mk: new syntax-check rule: prohibit empty lines at end of file
9908         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
9909
9910         maint.mk: correct a diagnostic
9911         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
9912         in diagnostic; now use $prohibit.
9913
9914 2010-04-10  Bruno Haible  <address@hidden>
9915
9916         fchownat: Fix a C++ test error on Solaris 8.
9917         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
9918         the function does not exist.
9919
9920 2010-04-10  Bruno Haible  <bruno@clisp.org>
9921
9922         vasnprintf: Add more tests.
9923         * tests/test-vasnprintf-posix.c: Include <errno.h>.
9924         (test_function): Test converting an invalid wide string.
9925
9926         vasnprintf: Correct handling of unconvertible wide string arguments.
9927         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
9928         VASNPRINTF.
9929         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
9930         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
9931         smaller than the expected maximum need for the directive. Set errno to
9932         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
9933         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
9934         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
9935         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
9936         * modules/vasnprintf (Files): Add m4/printf.m4.
9937         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9938
9939 2010-04-10  Bruno Haible  <bruno@clisp.org>
9940
9941         vasnprintf: Fix crash in %ls directive.
9942         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
9943         string is passed as argument to %ls, with no precision and no width.
9944         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9945
9946 2010-04-10  Bruno Haible  <bruno@clisp.org>
9947
9948         vasnprintf: Fix multiple test failures on mingw.
9949         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
9950         _snprintf, or snwprintf, not _snwprintf.
9951
9952 2010-04-10  Bruno Haible  <bruno@clisp.org>
9953
9954         write: Fix a C++ test error on mingw.
9955         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
9956
9957 2010-04-10  Bruno Haible  <bruno@clisp.org>
9958
9959         vasnprintf test: Reduce code duplication.
9960         * tests/test-vasnprintf.c (test_function): New function, extracted from
9961         test_vasnprintf.
9962         (test_vasnprintf, test_asnprintf): Invoke it.
9963
9964 2010-04-10  Bruno Haible  <bruno@clisp.org>
9965
9966         strnlen: Fix warning in C++ mode on MacOS X.
9967         * lib/string.in.h (strnlen): Use the modern idiom.
9968         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
9969         defining strnlen as a macro already in <config.h>.
9970         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9971         REPLACE_STRNLEN.
9972         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
9973         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9974
9975 2010-04-08  James Youngman  <jay@gnu.org>
9976
9977         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
9978         the example.
9979
9980 2010-04-09  Jim Meyering  <meyering@redhat.com>
9981
9982         maint.mk: print better diagnostic when there is no $(_hv_file)
9983         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
9984         announce that when $(_hv_file) (aka help-version) does not exist.
9985
9986         init.sh: run tr in the "C" locale to avoid multibyte interpretation
9987         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
9988         not try to interpret its random input bytes.  Jarno Rajahalme reported
9989         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
9990         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
9991         (mktempd_): Likewise, just in case.
9992
9993         ftruncate: add two years to projected module removal date: 2012
9994         * m4/ftruncate.m4: Adjust comments.
9995
9996         ftruncate: mark module as obsolete; even MinGW provides it, now
9997         * modules/ftruncate (Status): Obsolete.
9998         (Notice): Say that.
9999         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
10000         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
10001
10002 2010-04-08  Bruno Haible  <bruno@clisp.org>
10003
10004         Fix side effects from tests-related modules.
10005         * modules/dprintf-posix (Comment): New section.
10006         * modules/fprintf-posix (Comment): Likewise.
10007         * modules/obstack-printf-posix (Comment): Likewise.
10008         * modules/printf-posix (Comment): Likewise.
10009         * modules/snprintf-posix (Comment): Likewise.
10010         * modules/sprintf-posix (Comment): Likewise.
10011         * modules/vasnprintf-posix (Comment): Likewise.
10012         * modules/vasprintf-posix (Comment): Likewise.
10013         * modules/vdprintf-posix (Comment): Likewise.
10014         * modules/vfprintf-posix (Comment): Likewise.
10015         * modules/vprintf-posix (Comment): Likewise.
10016         * modules/vsnprintf-posix (Comment): Likewise.
10017         * modules/vsprintf-posix (Comment): Likewise.
10018         * modules/xprintf-posix (Comment): Likewise.
10019         * modules/xvasprintf-posix (Comment): Likewise.
10020         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
10021         * modules/floorf-tests (Depends-on): Likewise.
10022         * modules/round-tests (Depends-on): Likewise.
10023         * modules/roundf-tests (Depends-on): Likewise.
10024         * modules/trunc-tests (Depends-on): Likewise.
10025         * modules/truncf-tests (Depends-on): Likewise.
10026         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
10027         'fprintf-posix' module is not present.
10028         * tests/test-floorf2.c (check): Likewise.
10029         * tests/test-trunc2.c (check): Likewise.
10030         * tests/test-truncf2.c (check): Likewise.
10031         * tests/test-round2.c (equal): Likewise.
10032         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10033
10034 2010-04-07  Karl Berry  <karl@gnu.org>
10035
10036         * config/srclist.txt,
10037         * config/srclistvars.sh,
10038         * config/srclist-update: doc fixes.
10039
10040 2010-04-07  Jim Meyering  <meyering@redhat.com>
10041
10042         maint.mk: add a PATH crosschecking syntax-check rule
10043         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
10044         Useful if you use a test like the one in help-version (coreutils,
10045         diffutils, grep, gzip) that ensures $(VERSION) matches what is
10046         printed by prog --version.
10047
10048 2010-04-06  Bruno Haible  <bruno@clisp.org>
10049
10050         Fix link error on mingw.
10051         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
10052         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
10053
10054 2010-04-06  Bruno Haible  <bruno@clisp.org>
10055
10056         Assume rmdir exists.
10057         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
10058
10059 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
10060
10061         doc: update users.txt
10062         * users.txt: Add gcal.
10063
10064 2010-04-06  Jim Meyering  <meyering@redhat.com>
10065
10066         init.sh: simply unset TMPDIR rather than risking env -i
10067         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
10068         although it probably works fine on all Unix-based systems, some
10069         systems (Cygwin?) cannot tolerate a totally cleared environment.
10070         Suggestion from Eric Blake.
10071
10072 2010-04-06  Jim Meyering  <meyering@redhat.com>
10073
10074         init.sh: portability fix: use env's POSIX-specified -i option not -u
10075         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
10076         than unportable env -u.  Solaris 5.11's env lacks support for -u.
10077
10078 2010-04-05  Bruno Haible  <bruno@clisp.org>
10079
10080         btowc: Work around Cygwin 1.7.2 bug.
10081         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
10082         does not map NUL to 0.
10083         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
10084
10085 2010-04-05  Bruno Haible  <bruno@clisp.org>
10086
10087         Make the multithread modules work on Cygwin 1.7.2.
10088         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
10089         imported symbols can be declared weak, so that it returns "no" on
10090         Cygwin 1.7.2.
10091
10092 2010-04-05  Bruno Haible  <bruno@clisp.org>
10093
10094         Use the module 'strncat'.
10095         * modules/unistr/u8-strncat (Depends-on): Add strncat.
10096
10097         Tests for module 'strncat'.
10098         * modules/strncat-tests: New file.
10099         * tests/test-strncat.c: New file.
10100
10101         New module 'strncat'.
10102         * lib/string.in.h (strncat): New declaration.
10103         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
10104         * m4/strncat.m4: New file, based on m4/memchr.m4.
10105         * modules/strncat: New file.
10106         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
10107         is declared.
10108         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
10109         REPLACE_STRNCAT.
10110         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
10111         REPLACE_STRNCAT.
10112         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
10113         module.
10114         * tests/test-string-c++.cc: Check signature of strncat.
10115
10116 2010-04-05  Jim Meyering  <meyering@redhat.com>
10117
10118         xstrtoumax-tests: convert to use init.sh
10119         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
10120         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
10121         Use Exit, not exit.
10122         Remove uses of $EXEEXT and "./" to run a program in the current dir.
10123
10124         xstrtoimax-tests: convert to use init.sh
10125         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
10126         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
10127         Use Exit, not exit.
10128         Remove uses of $EXEEXT and "./" to run a program in the current dir.
10129
10130 2010-04-05  Bruno Haible  <bruno@clisp.org>
10131
10132         sys_socket: Avoid #define replacements in C++ mode.
10133         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
10134         warning to the function if possible, rather than #defining the symbol
10135         to a dysfunctional alias.
10136
10137 2010-04-05  Bruno Haible  <bruno@clisp.org>
10138
10139         fseeko: Fix C++ test error on mingw.
10140         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
10141         gl_FUNC_FSEEKO.
10142         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
10143         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
10144         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
10145         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
10146
10147 2010-04-05  Bruno Haible  <bruno@clisp.org>
10148
10149         duplocale: Improve test output.
10150         * tests/test-duplocale.c (main): Print reason for skipped test.
10151
10152 2010-04-05  Bruno Haible  <bruno@clisp.org>
10153
10154         Assume rmdir exists.
10155         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
10156         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
10157
10158 2010-04-05  Bruno Haible  <bruno@clisp.org>
10159
10160         Fix link error on Solaris 8 with cc.
10161         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
10162
10163 2010-04-05  Bruno Haible  <bruno@clisp.org>
10164
10165         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
10166         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
10167
10168 2010-04-05  Bruno Haible  <bruno@clisp.org>
10169
10170         vasprintf: Update documentation.
10171         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
10172
10173 2010-04-05  Bruno Haible  <bruno@clisp.org>
10174
10175         ptsname: Improve test.
10176         * tests/test-ptsname.c (main): Also try the various master names of BSD
10177         systems.
10178
10179 2010-04-05  Bruno Haible  <bruno@clisp.org>
10180
10181         memchr: Avoid a possible C++ test error.
10182         * lib/string.in.h (memchr): Provide declaration if function is missing.
10183         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
10184         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
10185         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
10186         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
10187
10188 2010-04-05  Bruno Haible  <bruno@clisp.org>
10189
10190         strtok_r: Improve idiom.
10191         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
10192         AC_LIBOBJ is used.
10193
10194 2010-04-05  Bruno Haible  <bruno@clisp.org>
10195
10196         strdup: Improve idiom.
10197         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
10198         AC_LIBOBJ is used.
10199         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
10200         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
10201         when AC_LIBOBJ is used.
10202
10203 2010-04-05  Bruno Haible  <bruno@clisp.org>
10204
10205         mbsinit, mbrtowc, wcrtomb: Improve idioms.
10206         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
10207         don't set REPLACE_MBSINIT to 1.
10208         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
10209         don't set REPLACE_MBRTOWC to 1.
10210         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
10211         exist, don't set REPLACE_MBSRTOWCS to 1.
10212         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
10213         exist, don't set REPLACE_MBSNRTOWCS to 1.
10214         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
10215         don't set REPLACE_WCRTOMB to 1.
10216         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
10217         exist, don't set REPLACE_WCSRTOMBS to 1.
10218         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
10219         exist, don't set REPLACE_WCSNRTOMBS to 1.
10220
10221 2010-04-05  Bruno Haible  <bruno@clisp.org>
10222
10223         ldexpl: Improve idiom.
10224         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
10225         make sure to set HAVE_DECL_LDEXPL to 0.
10226
10227 2010-04-05  Jim Meyering  <meyering@redhat.com>
10228
10229         xstrtol-tests: convert to use init.sh
10230         * modules/xstrtol-tests (Files): Add tests/init.sh.
10231         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
10232         Use Exit, not exit.
10233         Remove uses of $EXEEXT and "./" to run a program in the current dir.
10234
10235         atexit-tests: convert to use init.sh
10236         * modules/atexit-tests (Files): Add tests/init.sh.
10237         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
10238         Use Exit, not exit.
10239         Remove uses of $EXEEXT and "./" to run a program in the current dir.
10240
10241         init.sh: fix typo
10242         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
10243
10244         init.sh: make it easier for a test script to write to the tty, ...
10245         when using automake's parallel-tests mode.
10246         * tests/init.sh (stderr_fileno_): Define overridable variable.
10247         (warn_): New function, to use it.
10248         (fail_, skip_, framework_failure_): Use warn_.
10249
10250 2010-04-04  Bruno Haible  <bruno@clisp.org>
10251
10252         btowc: Avoid warning.
10253         * lib/btowc.c: Include <stdlib.h>.
10254         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
10255
10256 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
10257             Bruno Haible  <bruno@clisp.org>
10258
10259         wchar: Port to NetBSD 1.5.
10260         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
10261         * lib/wctype.in.h (WEOF): Likewise.
10262
10263 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
10264             Bruno Haible  <bruno@clisp.org>
10265
10266         Port extended stdio to NetBSD 1.5.
10267         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
10268         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
10269         older.
10270
10271 2010-04-04  Bruno Haible  <bruno@clisp.org>
10272
10273         string: Remove unused substitution.
10274         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
10275         HAVE_DECL_STRERROR.
10276         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
10277
10278 2010-04-04  Bruno Haible  <bruno@clisp.org>
10279
10280         strtod: Avoid a possible C++ test error.
10281         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
10282         set REPLACE_STRTOD.
10283
10284 2010-04-04  Bruno Haible  <bruno@clisp.org>
10285
10286         strerror: Update documentation.
10287         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
10288
10289 2010-04-04  Bruno Haible  <bruno@clisp.org>
10290
10291         stdio: Fix some C++ test errors on Solaris 8 with GCC.
10292         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
10293         _GL_CXXALIAS_SYS_CAST.
10294
10295 2010-04-04  Bruno Haible  <bruno@clisp.org>
10296
10297         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
10298         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
10299         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
10300         REPLACE_FREXPL to 1.
10301         * doc/posix-functions/frexpl.texi: Update documentation.
10302
10303 2010-04-04  Bruno Haible  <bruno@clisp.org>
10304
10305         math: Fix some C++ test errors on Solaris 8 and Cygwin.
10306         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
10307
10308 2010-04-04  Bruno Haible  <bruno@clisp.org>
10309
10310         Implement nanosleep for native Windows.
10311         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
10312
10313 2010-04-04  Bruno Haible  <bruno@clisp.org>
10314
10315         math: Fix some C++ test errors on Solaris 8.
10316         * lib/math.in.h (truncf, trunc): Use simpler idiom.
10317
10318 2010-04-04  Bruno Haible  <bruno@clisp.org>
10319
10320         math: Fix some C++ test errors on Cygwin.
10321         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
10322         truncl): Provide declaration if the system does not have it.
10323         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
10324         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
10325         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
10326         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
10327         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
10328         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
10329         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
10330         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
10331         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
10332         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
10333         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
10334         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
10335         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
10336         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
10337         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
10338         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
10339         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
10340         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
10341         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
10342         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
10343         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
10344         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
10345
10346 2010-04-04  Bruno Haible  <bruno@clisp.org>
10347
10348         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
10349         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10350         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10351         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10352         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
10353         * m4/isinf.m4 (gl_ISINF): Likewise.
10354         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10355
10356 2010-04-04  Bruno Haible  <bruno@clisp.org>
10357
10358         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
10359         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10360
10361 2010-04-04  Bruno Haible  <bruno@clisp.org>
10362
10363         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
10364         * modules/tmpfile (configure.ac): Update.
10365
10366         tmpfile: Fix C++ test error on mingw.
10367         * lib/stdio.in.h (tmpfile): New declaration.
10368         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
10369         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
10370         * modules/tmpfile (Depends-on): Add stdio.
10371         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
10372         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
10373         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
10374         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
10375         REPLACE_TMPFILE.
10376         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
10377
10378 2010-04-04  Bruno Haible  <bruno@clisp.org>
10379
10380         ioctl: Fix C++ test error on mingw.
10381         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
10382         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
10383         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
10384
10385 2010-04-03  Bruno Haible  <bruno@clisp.org>
10386
10387         wcwidth: Fix C++ test error on mingw.
10388         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
10389         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
10390         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
10391
10392 2010-04-03  Bruno Haible  <bruno@clisp.org>
10393
10394         nanosleep: Fix C++ test error on mingw.
10395         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
10396         * lib/time.in.h (nanosleep): Use modern idiom.
10397         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
10398         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
10399         REPLACE_NANOSLEEP to 1.
10400         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
10401         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
10402
10403 2010-04-03  Bruno Haible  <bruno@clisp.org>
10404
10405         strptime: Fix C++ test error on mingw.
10406         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
10407         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
10408         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
10409         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
10410         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
10411         not REPLACE_STRPTIME.
10412         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
10413         REPLACE_STRPTIME.
10414
10415 2010-04-03  Bruno Haible  <bruno@clisp.org>
10416
10417         timegm: Fix C++ test error on mingw.
10418         * lib/time.in.h (timegm): Use modern idiom.
10419         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
10420         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
10421         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
10422         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
10423
10424 2010-04-03  Bruno Haible  <bruno@clisp.org>
10425
10426         timegm: Assume declaration if function exists.
10427         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
10428         if it exists. Don't clobber ac_cv_func_timegm.
10429
10430 2010-04-03  Bruno Haible  <bruno@clisp.org>
10431
10432         time_r: Fix C++ test error on mingw.
10433         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
10434         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
10435         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
10436         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
10437         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
10438
10439 2010-04-03  Bruno Haible  <bruno@clisp.org>
10440
10441         time_r: Minor updates.
10442         * modules/time_r (Description): Mention the provided functions.
10443         * lib/time_r.c: Don't include <string.h>.
10444         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
10445         * doc/posix-functions/localtime_r.texi: Likewise.
10446
10447 2010-04-03  Bruno Haible  <bruno@clisp.org>
10448
10449         time: Fix regression introduced on 2010-03-08.
10450         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
10451         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
10452
10453 2010-04-03  Jim Meyering  <meyering@redhat.com>
10454
10455         maint.mk: don't silently disable project-specific syntax-check rules
10456         * top/maint.mk (_prohibit_regexp): Define, to help people realize
10457         that they need to convert their project-specific syntax-check rules
10458         to use the new _sc_search_regexp.
10459
10460 2010-04-03  Bruno Haible  <bruno@clisp.org>
10461
10462         fchdir: Fix regression introduced on 2010-03-08.
10463         * lib/unistd.in.h (fchdir): Fix declaration.
10464         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
10465         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
10466         REPLACE_FCHDIR.
10467         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
10468         REPLACE_FCHDIR.
10469
10470 2010-04-03  Bruno Haible  <bruno@clisp.org>
10471
10472         getpagesize: Fix C++ test error on mingw.
10473         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
10474         system does not declare the function.
10475         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
10476         declared.
10477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10478         HAVE_DECL_GETPAGESIZE.
10479         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
10480
10481 2010-04-03  Bruno Haible  <bruno@clisp.org>
10482
10483         stdio: Make C++ tests work on mingw.
10484         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
10485         does not declare the function.
10486
10487 2010-04-03  Bruno Haible  <bruno@clisp.org>
10488
10489         ftello: Fix C++ test error on mingw.
10490         * lib/stdio.in.h (ftello): Use modern idiom.
10491         * lib/ftello.c (ftello): Renamed from rpl_ftello.
10492         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
10493         is missing and that it needs to be replaced.
10494         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
10495         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
10496         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
10497
10498 2010-04-03  Bruno Haible  <bruno@clisp.org>
10499
10500         fseeko: Fix C++ test error on mingw.
10501         * lib/stdio.in.h (fseeko): Use modern idiom.
10502         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
10503         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
10504         is missing and that it needs to be replaced.
10505         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
10506         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
10507         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
10508
10509 2010-04-03  Bruno Haible  <bruno@clisp.org>
10510
10511         mkstemp: Fix C++ test error on mingw.
10512         * lib/stdlib.in.h (mkstemp): Use modern idiom.
10513         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
10514         function is missing and that it needs to be replaced.
10515         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
10516         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
10517
10518 2010-04-03  Bruno Haible  <bruno@clisp.org>
10519
10520         stpncpy: Fix C++ test error on mingw.
10521         * lib/string.in.h (stpncpy): Use modern idiom.
10522         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
10523         function is missing and that it needs to be replaced.
10524         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10525         REPLACE_STPNCPY.
10526         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
10527
10528 2010-04-03  Bruno Haible  <bruno@clisp.org>
10529
10530         sys_stat: Fix C++ test error on mingw.
10531         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
10532         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
10533
10534 2010-04-03  Bruno Haible  <bruno@clisp.org>
10535
10536         pty: Update doc.
10537         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
10538
10539 2010-04-03  Bruno Haible  <bruno@clisp.org>
10540
10541         unistd: Fix C++ test error on mingw.
10542         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
10543
10544 2010-04-03  Bruno Haible  <bruno@clisp.org>
10545
10546         Update doc regarding mingw.
10547         * doc/glibc-functions/openpty.texi: Update regarding mingw.
10548         * doc/glibc-functions/login_tty.texi: Likewise.
10549         * doc/glibc-functions/forkpty.texi: Likewise.
10550
10551 2010-04-03  Bruno Haible  <bruno@clisp.org>
10552
10553         stdlib: Avoid compilation failure of c-strtold on mingw.
10554         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
10555
10556 2010-04-03  Bruno Haible  <bruno@clisp.org>
10557
10558         locale: Make C++ tests work on Cygwin and mingw.
10559         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
10560         cannot provide the function.
10561         Reported by Simon Josefsson.
10562
10563 2010-04-03  Bruno Haible  <bruno@clisp.org>
10564
10565         localename: Port to MacOS X 10.6.
10566         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
10567         memory layout of the locales in MacOS X 10.6 as well.
10568         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
10569
10570 2010-04-02  Bruno Haible  <bruno@clisp.org>
10571
10572         gnulib-tool: Ensure that long-running tests are executed last.
10573         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
10574         running tests after the one for the other tests.
10575
10576 2010-04-02  Bruno Haible  <bruno@clisp.org>
10577
10578         gnulib-tool: Ensure the tests in the main directory are executed first.
10579         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
10580         start with the current directory.
10581
10582 2010-04-02  Bruno Haible  <bruno@clisp.org>
10583
10584         Tests for module 'havelib', moved here from GNU gettext.
10585         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
10586         modifications.
10587         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
10588         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
10589         with modifications.
10590         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
10591         modifications.
10592         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
10593         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
10594         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
10595         with modifications.
10596         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
10597         with modifications.
10598         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
10599         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
10600         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
10601         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
10602         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
10603         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
10604         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
10605         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
10606         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
10607         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
10608         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
10609         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
10610         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
10611         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
10612         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
10613         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
10614         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
10615         with modifications.
10616         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
10617         with modifications.
10618         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
10619         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
10620         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
10621         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
10622         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
10623         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
10624         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
10625         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
10626         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
10627         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
10628         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
10629         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
10630         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
10631         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
10632         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
10633         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
10634         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
10635         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
10636         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
10637         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
10638         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
10639         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
10640         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
10641         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
10642         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
10643         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
10644         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
10645         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
10646         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
10647         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
10648         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
10649         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
10650         * tests/havelib/rpathx/rpathx.c: New file, from
10651         gettext/autoconf-lib-link.
10652         * tests/havelib/rpathx/Makefile.am: New file, from
10653         gettext/autoconf-lib-link.
10654         * tests/havelib/rpathx/configure.ac: New file, from
10655         gettext/autoconf-lib-link with modifications.
10656         * tests/havelib/rpathy/rpathy.c: New file, from
10657         gettext/autoconf-lib-link.
10658         * tests/havelib/rpathy/Makefile.am: New file, from
10659         gettext/autoconf-lib-link.
10660         * tests/havelib/rpathy/configure.ac: New file, from
10661         gettext/autoconf-lib-link with modifications.
10662         * tests/havelib/rpathz/rpathz.c: New file, from
10663         gettext/autoconf-lib-link.
10664         * tests/havelib/rpathz/Makefile.am: New file, from
10665         gettext/autoconf-lib-link.
10666         * tests/havelib/rpathz/configure.ac: New file, from
10667         gettext/autoconf-lib-link with modifications.
10668         * tests/havelib/rpathlx/usex.c: New file, from
10669         gettext/autoconf-lib-link.
10670         * tests/havelib/rpathlx/Makefile.am: New file, from
10671         gettext/autoconf-lib-link.
10672         * tests/havelib/rpathlx/configure.ac: New file, from
10673         gettext/autoconf-lib-link with modifications.
10674         * tests/havelib/rpathly/usey.c: New file, from
10675         gettext/autoconf-lib-link.
10676         * tests/havelib/rpathly/Makefile.am: New file, from
10677         gettext/autoconf-lib-link.
10678         * tests/havelib/rpathly/configure.ac: New file, from
10679         gettext/autoconf-lib-link with modifications.
10680         * tests/havelib/rpathlz/usez.c: New file, from
10681         gettext/autoconf-lib-link.
10682         * tests/havelib/rpathlz/Makefile.am: New file, from
10683         gettext/autoconf-lib-link.
10684         * tests/havelib/rpathlz/configure.ac: New file, from
10685         gettext/autoconf-lib-link with modifications.
10686         * tests/havelib/rpathlyx/usey.c: New file, from
10687         gettext/autoconf-lib-link.
10688         * tests/havelib/rpathlyx/Makefile.am: New file, from
10689         gettext/autoconf-lib-link.
10690         * tests/havelib/rpathlyx/configure.ac: New file, from
10691         gettext/autoconf-lib-link with modifications.
10692         * tests/havelib/rpathlzyx/usez.c: New file, from
10693         gettext/autoconf-lib-link.
10694         * tests/havelib/rpathlzyx/Makefile.am: New file, from
10695         gettext/autoconf-lib-link.
10696         * tests/havelib/rpathlzyx/configure.ac: New file, from
10697         gettext/autoconf-lib-link with modifications.
10698         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
10699         with modifications.
10700
10701 2010-04-02  Bruno Haible  <bruno@clisp.org>
10702
10703         gnulib-tool: Create distributed built sources also for the tests.
10704         * gnulib-tool (func_create_testdir): Also generate distributed built
10705         sources in the tests directory.
10706
10707 2010-04-02  Bruno Haible  <bruno@clisp.org>
10708
10709         gnulib-tool: Obey user's environment variables.
10710         * gnulib-tool (func_create_testdir): When creating built sources,
10711         respect the environment variables for autoconf, automake, etc. given by
10712         the user.
10713
10714 2010-04-02  Bruno Haible  <bruno@clisp.org>
10715
10716         gnulib-tool: Provide the value of --m4-base to modules.
10717         * gnulib-tool (func_import, func_create_testdir): Emit a definition
10718         of gl_m4_base.
10719
10720 2010-04-02  Eric Blake  <eblake@redhat.com>
10721
10722         maint.mk: fix some fallout
10723         * NEWS: Document the incompatible change, and its effect on cfg.mk.
10724         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
10725
10726 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
10727
10728         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
10729         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
10730         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
10731         (sc_cast_of_x_alloc_return_value): Likewise.
10732         (sc_cast_of_alloca_return_value): Likewise.
10733         (sc_space_tab): Likewise.
10734         (sc_prohibit_atoi_atof): Likewise.
10735         (sc_prohibit_magic_number_exit): Likewise.
10736         (sc_error_exit_success): Likewise.
10737         (sc_file_system): Likewise.
10738         (sc_prohibit_have_config_h): Likewise.
10739         (sc_require_config_h): Likewise.
10740         (sc_prohibit_HAVE_MBRTOWC): Likewise.
10741         (sc_obsolete_symbols): Likewise.
10742         (sc_changelog): Likewise.
10743         (sc_program_name): Likewise.
10744         (sc_the_the): Likewise.
10745         (sc_trailing_blank): Likewise.
10746         (sc_two_space_separator_in_usage): Likewise.
10747         (sc_useless_cpp_parens): Likewise.
10748         (sc_GPL_version): Likewise.
10749         (sc_GFDL_version): Likewise.
10750         (sc_texinfo_acronym): Likewise.
10751         (sc_prohibit_cvs_keyword): Likewise.
10752         (sc_prohibit_stat_st_blocks): Likewise.
10753         (sc_prohibit_S_IS_definition): Likewise.
10754         (sc_redundant_const): Likewise.
10755         (sc_makefile_TAB_only_indentation): Likewise.
10756         (sc_m4_quote_check): Likewise.
10757         (sc_makefile_path_separator_check): Likewise.
10758         (sc_copyright_check): Likewise.
10759         (sc_Wundef_boolean): Likewise.
10760         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
10761
10762         maint.mk: match 0 or more whitespace-before-function-call '('
10763         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
10764         that have zero or two-and-more spaces between the function name
10765         and the open parenthesis.
10766         (sc_error_message_warn_fatal): Likewise.
10767         (sc_error_message_uppercase): Likewise.
10768         (sc_error_message_period): Likewise.
10769
10770 2010-03-31  Eric Blake  <eblake@redhat.com>
10771
10772         maint.mk: check for [ as well as test
10773         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
10774         Based on a libvirt report by Matthias Bolte.
10775
10776         gnumakefile: don't squelch _version output
10777         * top/GNUmakefile (_version): Create one-shot dependency rather
10778         than using $(shell) when version must be regenerated.
10779         (_autoreconf): Run verbosely, by default.
10780
10781         sys_time: avoid compiler warnings
10782         * lib/sys_time.in.h (includes): Ensure gcc pragma is
10783         unconditional, fixing regression from 2010-03-29.
10784         Reported by Simon Josefsson.
10785
10786 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
10787
10788         maint.mk: s/_header_without_use/_sc_header_without_use/
10789         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
10790         (sc_prohibit_assert_without_use): Use the new name.
10791         (sc_prohibit_close_stream_without_use): Likewise.
10792         (sc_prohibit_getopt_without_use): Likewise.
10793         (sc_prohibit_quotearg_without_use): Likewise.
10794         (sc_prohibit_quote_without_use): Likewise.
10795         (sc_prohibit_long_options_without_use): Likewise.
10796         (sc_prohibit_inttostr_without_use): Likewise.
10797         (sc_prohibit_ignore_value_without_use): Likewise.
10798         (sc_prohibit_error_without_use): Likewise.
10799         (sc_prohibit_xalloc_without_use): Likewise.
10800         (sc_prohibit_hash_without_use): Likewise.
10801         (sc_prohibit_hash_pjw_without_use): Likewise.
10802         (sc_prohibit_safe_read_without_use): Likewise.
10803         (sc_prohibit_argmatch_without_use): Likewise.
10804         (sc_prohibit_canonicalize_without_use): Likewise.
10805         (sc_prohibit_root_dev_ino_without_use): Likewise.
10806         (sc_prohibit_openat_without_use): Likewise.
10807         (sc_prohibit_c_ctype_without_use): Likewise.
10808         (sc_prohibit_signal_without_use): Likewise.
10809         (sc_prohibit_intprops_without_use): Likewise.
10810
10811 2010-03-30  Eric Blake  <eblake@redhat.com>
10812
10813         maint: improve module indicators
10814         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
10815         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
10816         columns, and avoid extra macro expansion.
10817
10818         fdopendir: work around FreeBSD bug
10819         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
10820         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
10821         * modules/dirent (Makefile.am): Substitute it.
10822         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
10823         declaration.
10824         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
10825         fix.
10826         Reported by Christian Weisgerber <naddy@mips.inka.de>.
10827
10828 2010-03-29  Bruno Haible  <bruno@clisp.org>
10829
10830         Emit #pragma system_header after the inclusion guard, not before.
10831         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
10832         guard that spans the entire file, not before. This enables an
10833         optimization in GCC's preprocessor.
10834         * lib/ctype.in.h: Likewise.
10835         * lib/dirent.in.h: Likewise.
10836         * lib/errno.in.h: Likewise.
10837         * lib/float.in.h: Likewise.
10838         * lib/getopt.in.h: Likewise.
10839         * lib/iconv.in.h: Likewise.
10840         * lib/langinfo.in.h: Likewise.
10841         * lib/locale.in.h: Likewise.
10842         * lib/math.in.h: Likewise.
10843         * lib/netdb.in.h: Likewise.
10844         * lib/netinet_in.in.h: Likewise.
10845         * lib/pty.in.h: Likewise.
10846         * lib/sched.in.h: Likewise.
10847         * lib/se-selinux.in.h: Likewise.
10848         * lib/search.in.h: Likewise.
10849         * lib/spawn.in.h: Likewise.
10850         * lib/stdarg.in.h: Likewise.
10851         * lib/stdint.in.h: Likewise.
10852         * lib/string.in.h: Likewise.
10853         * lib/strings.in.h: Likewise.
10854         * lib/sys_file.in.h: Likewise.
10855         * lib/sys_ioctl.in.h: Likewise.
10856         * lib/sys_time.in.h: Likewise.
10857         * lib/sys_times.in.h: Likewise.
10858         * lib/sys_utsname.in.h: Likewise.
10859         * lib/sys_wait.in.h: Likewise.
10860         * lib/sysexits.in.h: Likewise.
10861         * lib/wctype.in.h: Likewise.
10862
10863 2010-03-28  James Youngman  <jay@gnu.org>
10864
10865         save-cwd: don't leak a file descriptor when the caller execs.
10866         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
10867         saved file descriptor.
10868         * modules/save-cwd (Depends-on): Depend on cloexec.
10869
10870 2010-03-29  Bruno Haible  <bruno@clisp.org>
10871
10872         Remove vestiges of fts-lgpl module.
10873         * lib/fts_.h: Assume GNULIB_FTS is 1.
10874         * lib/fts.c: Likewise.
10875         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
10876
10877 2010-03-28  Bruno Haible  <bruno@clisp.org>
10878
10879         Fix definition of tests witness macro.
10880         * gnulib-tool (func_import): Fix definition of witness macro.
10881
10882 2010-03-28  Bruno Haible  <bruno@clisp.org>
10883
10884         Fix ioctl's protoype on glibc systems.
10885         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
10886         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
10887         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
10888         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
10889         signature. If not, arrange to replace the ioctl function.
10890         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
10891         REPLACE_IOCTL.
10892         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
10893         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
10894         Reported by Ludovic Courtès <ludo@gnu.org>.
10895
10896 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
10897
10898         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
10899         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
10900         made it so grep -r --include=GLOB* ... did not work.
10901
10902 2010-03-26  Jim Meyering  <meyering@redhat.com>
10903             Eric Blake  <eblake@redhat.com>
10904
10905         maint.mk: prohibit use of test's -o and -a operators
10906         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
10907
10908 2010-03-28  Bruno Haible  <bruno@clisp.org>
10909
10910         Remove unused GNULIB_XYZ macro definitions.
10911         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
10912         invocation.
10913
10914 2010-03-28  Bruno Haible  <bruno@clisp.org>
10915
10916         Mark privileged tests modules.
10917         * modules/idpriv-drop-tests (Status): New section.
10918         * modules/idpriv-droptemp-tests (Status): New section.
10919
10920 2010-03-28  Bruno Haible  <bruno@clisp.org>
10921
10922         Split C++ tests into separate tests modules.
10923         * modules/dirent-c++-tests: New file, extracted from
10924         modules/dirent-tests.
10925         * modules/dirent-tests: Depend on it.
10926         * modules/fcntl-h-c++-tests: New file, extracted from
10927         modules/fcntl-h-tests.
10928         * modules/fcntl-h-tests: Depend on it.
10929         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
10930         * modules/glob-tests: Depend on it.
10931         * modules/iconv-h-c++-tests: New file, extracted from
10932         modules/iconv-h-tests.
10933         * modules/iconv-h-tests: Depend on it.
10934         * modules/langinfo-c++-tests: New file, extracted from
10935         modules/langinfo-tests.
10936         * modules/langinfo-tests: Depend on it.
10937         * modules/locale-c++-tests: New file, extracted from
10938         modules/locale-tests.
10939         * modules/locale-tests: Depend on it.
10940         * modules/math-c++-tests: New file, extracted from modules/math-tests.
10941         * modules/math-tests: Depend on it.
10942         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
10943         * modules/pty-tests: Depend on it.
10944         * modules/search-c++-tests: New file, extracted from
10945         modules/search-tests.
10946         * modules/search-tests: Depend on it.
10947         * modules/signal-c++-tests: New file, extracted from
10948         modules/signal-tests.
10949         * modules/signal-tests: Depend on it.
10950         * modules/spawn-c++-tests: New file, extracted from
10951         modules/spawn-tests.
10952         * modules/spawn-tests: Depend on it.
10953         * modules/stdio-c++-tests: New file, extracted from
10954         modules/stdio-tests.
10955         * modules/stdio-tests: Depend on it.
10956         * modules/stdlib-c++-tests: New file, extracted from
10957         modules/stdlib-tests.
10958         * modules/stdlib-tests: Depend on it.
10959         * modules/string-c++-tests: New file, extracted from
10960         modules/string-tests.
10961         * modules/string-tests: Depend on it.
10962         * modules/sys_ioctl-c++-tests: New file, extracted from
10963         modules/sys_ioctl-tests.
10964         * modules/sys_ioctl-tests: Depend on it.
10965         * modules/sys_select-c++-tests: New file, extracted from
10966         modules/sys_select-tests.
10967         * modules/sys_select-tests: Depend on it.
10968         * modules/sys_socket-c++-tests: New file, extracted from
10969         modules/sys_socket-tests.
10970         * modules/sys_socket-tests: Depend on it.
10971         * modules/sys_stat-c++-tests: New file, extracted from
10972         modules/sys_stat-tests.
10973         * modules/sys_stat-tests: Depend on it.
10974         * modules/sys_time-c++-tests: New file, extracted from
10975         modules/sys_time-tests.
10976         * modules/sys_time-tests: Depend on it.
10977         * modules/time-c++-tests: New file, extracted from modules/time-tests.
10978         * modules/time-tests: Depend on it.
10979         * modules/unistd-c++-tests: New file, extracted from
10980         modules/unistd-tests.
10981         * modules/unistd-tests: Depend on it.
10982         * modules/wchar-c++-tests: New file, extracted from
10983         modules/wchar-tests.
10984         * modules/wchar-tests: Depend on it.
10985         * modules/wctype-c++-tests: New file, extracted from
10986         modules/wctype-tests.
10987         * modules/wctype-tests: Depend on it.
10988         Reported by Simon Josefsson.
10989
10990 2010-03-28  Bruno Haible  <bruno@clisp.org>
10991
10992         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
10993         * gnulib-tool (func_exists_module): New function, extracted from
10994         func_verify_module.
10995         (func_verify_module): Use it.
10996         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
10997         'foo' only if 'foo' exists.
10998         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
10999         module.
11000
11001 2010-03-28  Bruno Haible  <bruno@clisp.org>
11002
11003         gnulib-tool: Add support for special categories of tests.
11004         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
11005         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
11006         (func_usage): Document them.
11007         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
11008         inc_unportable_tests, inc_all_tests): New variables.
11009         (func_acceptable): Consider these variables.
11010         (func_modules_transitive_closure): Make it work when the 'Status' field
11011         consists of multiple words.
11012         (func_import): Store and restore the values of inc_cxx_tests,
11013         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
11014         inc_all_tests in gnulib-comp.m4.
11015         (func_create_testdir): Set inc_all_tests to true.
11016         * doc/gnulib.texi (Extra tests modules): New section.
11017         Suggested by Jim Meyering.
11018
11019 2010-03-28  Bruno Haible  <bruno@clisp.org>
11020
11021         ansi-c++-opt: Allow turning off the C++ build by default.
11022         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
11023         gl_CXX_CHOICE_DEFAULT_NO is defined.
11024         Requested by Eric Blake.
11025
11026 2010-03-28  Bruno Haible  <bruno@clisp.org>
11027
11028         unistd: Avoid #define replacements in C++ mode.
11029         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11030         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11031         setsockopt, shutdown, select): In C++, attach a warning to the function
11032         if possible, rather than #defining the symbol to a dysfunctional alias.
11033         Reported by John W. Eaton <jwe@gnu.org>.
11034
11035 2010-03-28  Bruno Haible  <bruno@clisp.org>
11036
11037         Fix link errors on mingw.
11038         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
11039         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
11040         $(LIBSOCKET).
11041         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
11042         $(LIBSOCKET).
11043
11044 2010-03-28  Bruno Haible  <bruno@clisp.org>
11045             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11046
11047         lib-ignore: Determine different options for different compilers.
11048         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
11049         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
11050         Add comments.
11051         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
11052         * NEWS: Mention the change.
11053
11054 2010-03-27  Bruno Haible  <bruno@clisp.org>
11055
11056         Remove unused GNULIB_XYZ macro definitions.
11057         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
11058         * modules/fseek (configure.ac): Likewise.
11059         * modules/ioctl (configure.ac): Likewise.
11060         * modules/open (configure.ac): Likewise.
11061         * modules/stdlib-safer (configure.ac): Likewise.
11062
11063 2010-03-27  Bruno Haible  <bruno@clisp.org>
11064
11065         Add a remark about certain modules.
11066         * modules/malloc (Comment): New section.
11067         * modules/realloc (Comment): Likewise.
11068         * modules/sigpipe (Comment): Likewise.
11069
11070 2010-03-27  Bruno Haible  <bruno@clisp.org>
11071
11072         Resolve conflict between the two kinds of module indicators.
11073         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
11074         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
11075         * modules/canonicalize (configure.ac): Invoke
11076         gl_MODULE_INDICATOR_FOR_TESTS.
11077         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
11078         GNULIB_XYZ.
11079         * tests/test-dirent-c++.cc: Likewise.
11080         * tests/test-dirent-safer.c: Likewise.
11081         * tests/test-dup2.c: Likewise.
11082         * tests/test-fchdir.c: Likewise.
11083         * tests/test-fcntl-h-c++.cc: Likewise.
11084         * tests/test-getopt.c: Likewise.
11085         * tests/test-getopt.h: Likewise.
11086         * tests/test-langinfo-c++.cc: Likewise.
11087         * tests/test-locale-c++.cc: Likewise.
11088         * tests/test-math-c++.cc: Likewise.
11089         * tests/test-pty-c++.cc: Likewise.
11090         * tests/test-search-c++.cc: Likewise.
11091         * tests/test-signal-c++.cc: Likewise.
11092         * tests/test-spawn-c++.cc: Likewise.
11093         * tests/test-stdio-c++.cc: Likewise.
11094         * tests/test-stdlib-c++.cc: Likewise.
11095         * tests/test-string-c++.cc: Likewise.
11096         * tests/test-sys_ioctl-c++.cc: Likewise.
11097         * tests/test-sys_select-c++.cc: Likewise.
11098         * tests/test-sys_socket-c++.cc: Likewise.
11099         * tests/test-sys_stat-c++.cc: Likewise.
11100         * tests/test-sys_time-c++.cc: Likewise.
11101         * tests/test-time-c++.cc: Likewise.
11102         * tests/test-unistd-c++.cc: Likewise.
11103         * tests/test-wchar-c++.cc: Likewise.
11104         * tests/uninorm/test-u8-nfc.c: Likewise.
11105         * tests/uninorm/test-u8-nfd.c: Likewise.
11106         * tests/uninorm/test-u8-nfkc.c: Likewise.
11107         * tests/uninorm/test-u8-nfkd.c: Likewise.
11108         * tests/uninorm/test-u16-nfc.c: Likewise.
11109         * tests/uninorm/test-u16-nfd.c: Likewise.
11110         * tests/uninorm/test-u16-nfkc.c: Likewise.
11111         * tests/uninorm/test-u16-nfkd.c: Likewise.
11112         * tests/uninorm/test-u32-nfc.c: Likewise.
11113         * tests/uninorm/test-u32-nfc-big.c: Likewise.
11114         * tests/uninorm/test-u32-nfd.c: Likewise.
11115         * tests/uninorm/test-u32-nfd-big.c: Likewise.
11116         * tests/uninorm/test-u32-nfkc.c: Likewise.
11117         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
11118         * tests/uninorm/test-u32-nfkd.c: Likewise.
11119         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
11120         * tests/uninorm/test-u32-normalize-big.c: Likewise.
11121
11122 2010-03-27  Bruno Haible  <bruno@clisp.org>
11123
11124         Distinguish two kinds of module indicators.
11125         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
11126         gl_MODULE_INDICATOR.
11127         (gl_MODULE_INDICATOR): New macro.
11128         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
11129         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
11130         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
11131         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
11132         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
11133         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
11134         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
11135         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
11136         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
11137         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
11138         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
11139         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
11140         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
11141         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
11142         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
11143         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
11144         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
11145         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
11146         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
11147         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
11148         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
11149         * modules/cloexec (configure.ac): Likewise.
11150         * modules/getopt-gnu (configure.ac): Likewise.
11151         * modules/uninorm/u8-normalize (configure.ac): Likewise.
11152         * modules/uninorm/u16-normalize (configure.ac): Likewise.
11153         * modules/uninorm/u32-normalize (configure.ac): Likewise.
11154         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
11155
11156 2010-03-27  Bruno Haible  <bruno@clisp.org>
11157
11158         New module description field 'Comment'.
11159         * gnulib-tool: New option --extract-comment.
11160         (func_usage): Document it.
11161         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
11162         (func_get_comment): New function.
11163         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
11164
11165 2010-03-27  Bruno Haible  <bruno@clisp.org>
11166
11167         Addendum to 2010-02-07 commit.
11168         * gnulib-tool (func_usage): Document --extract-applicability option.
11169
11170 2010-03-27  Bruno Haible  <bruno@clisp.org>
11171
11172         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
11173         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
11174         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
11175         rather than link errors.
11176
11177 2010-03-27  Bruno Haible  <bruno@clisp.org>
11178
11179         Avoid side effects from tests-related modules on the compilation of lib.
11180         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
11181         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
11182         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
11183         parameter. Emit into AM_CPPFLAGS a definition of the designated C
11184         macro.
11185         (func_import): Define a witness macro. Assign it a value that depends
11186         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
11187         tests-related modules.
11188         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
11189         Reported by Jim Meyering.
11190
11191 2010-03-27  Bruno Haible  <bruno@clisp.org>
11192
11193         Factorize common .m4 code.
11194         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
11195         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
11196         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
11197         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
11198         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
11199         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
11200         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
11201         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
11202         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
11203         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
11204         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
11205         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
11206         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
11207         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
11208         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
11209         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
11210         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
11211         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
11212         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
11213         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
11214         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
11215         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
11216         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
11217         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
11218         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
11219         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
11220         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
11221         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
11222         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
11223         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
11224         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
11225         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
11226
11227 2010-03-27  Bruno Haible  <bruno@clisp.org>
11228
11229         Fix a compilation error on Cygwin with g++ >= 4.3.
11230         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
11231         if it is undefined or if we alias it to chmod.
11232         (lstat): Don't warn about the use of this function if it is undefined
11233         or if we alias it to stat.
11234         Reported by Simon Josefsson.
11235
11236 2010-03-27  Bruno Haible  <bruno@clisp.org>
11237
11238         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
11239         * modules/getlogin (configure.ac): Update.
11240
11241         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
11242         * modules/getlogin_r (configure.ac): Update.
11243
11244         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
11245         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
11246         * modules/inet_ntop (configure.ac): Update.
11247
11248         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
11249         * modules/inet_pton (configure.ac): Update.
11250
11251         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
11252         * modules/mbslen (configure.ac): Update.
11253
11254         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
11255         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
11256         * modules/forkpty (configure.ac): Update.
11257         * modules/openpty (configure.ac): Update.
11258
11259 2010-03-26  Simon Josefsson  <simon@josefsson.org>
11260
11261         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
11262         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
11263
11264 2010-03-25  Eric Blake  <eblake@redhat.com>
11265
11266         maint: use pragma consistently across replacement headers
11267         * lib/ctype.in.h (system_header): Hoist for consistent placement.
11268         * lib/dirent.in.h (system_header): Likewise.
11269         * lib/errno.in.h (system_header): Likewise.
11270         * lib/float.in.h (system_header): Likewise.
11271         * lib/getopt.in.h (system_header): Likewise.
11272         * lib/iconv.in.h (system_header): Likewise.
11273         * lib/inttypes.in.h (system_header): Likewise.
11274         * lib/langinfo.in.h (system_header): Likewise.
11275         * lib/locale.in.h (system_header): Likewise.
11276         * lib/math.in.h (system_header): Likewise.
11277         * lib/netdb.in.h (system_header): Likewise.
11278         * lib/netinet_in.in.h (system_header): Likewise.
11279         * lib/pty.in.h (system_header): Likewise.
11280         * lib/sched.in.h (system_header): Likewise.
11281         * lib/se-selinux.in.h (system_header): Likewise.
11282         * lib/search.in.h (system_header): Likewise.
11283         * lib/spawn.in.h (system_header): Likewise.
11284         * lib/stdarg.in.h (system_header): Likewise.
11285         * lib/stdint.in.h (system_header): Likewise.
11286         * lib/string.in.h (system_header): Likewise.
11287         * lib/strings.in.h (system_header): Likewise.
11288         * lib/sys_file.in.h (system_header): Likewise.
11289         * lib/sys_ioctl.in.h (system_header): Likewise.
11290         * lib/sys_socket.in.h (system_header): Likewise.
11291         * lib/sys_times.in.h (system_header): Likewise.
11292         * lib/sys_utsname.in.h (system_header): Likewise.
11293         * lib/sys_wait.in.h (system_header): Likewise.
11294         * lib/sysexits.in.h (system_header): Likewise.
11295         * lib/unistd.in.h (system_header): Likewise.
11296         * lib/wctype.in.h (system_header): Likewise.
11297
11298         arpa/inet: fix mingw compilation warning
11299         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
11300         Reported by Matthew Bolte.
11301
11302 2010-03-25  Bruno Haible  <bruno@clisp.org>
11303
11304         Avoid collision between gnulib wrapper and libintl wrapper.
11305         * lib/printf.c (printf): Don't define if a printf wrapper is already
11306         defined in intl/printf.c.
11307         Reported by Michel Boaventura <michel@michelboaventura.com>.
11308
11309 2010-03-25  Bruno Haible  <bruno@clisp.org>
11310
11311         Use ANSI C.
11312         * lib/readutmp.h (getutent): Provide ANSI C prototype.
11313
11314 2010-03-25  Bruno Haible  <bruno@clisp.org>
11315
11316         Minor formatting changes.
11317         * lib/acosl.c: Insert space before function argument list.
11318         * lib/argz.c: Likewise.
11319         * lib/asinl.c: Likewise.
11320         * lib/expl.c: Likewise.
11321         * lib/gen-uni-tables.c: Likewise.
11322         * lib/gettext.h: Likewise.
11323         * lib/glthread/lock.h: Likewise.
11324         * lib/tanl.c: Likewise.
11325         * lib/uniname/uniname.c: Likewise.
11326         * tests/test-idpriv-drop.c: Likewise.
11327         * tests/test-idpriv-droptemp.c: Likewise.
11328         * tests/test-lock.c: Likewise.
11329         * tests/test-tls.c: Likewise.
11330         * lib/argp-help.c: Insert space before function-like macro argument
11331         list.
11332         * lib/memcmp.c: Likewise.
11333         * tests/test-base64.c: Likewise.
11334         * lib/localename.c: Insert space before sizeof's argument list.
11335         * lib/safe-alloc.h: Likewise.
11336         * lib/file-set.h: Insert space before macro argument list.
11337         * tests/test-argp.c: Likewise.
11338         * lib/argp-namefrob.h: Insert space before function parameter list.
11339         * lib/getaddrinfo.c: Likewise.
11340         * lib/netdb.in.h: Likewise.
11341         * lib/parse-duration.h: Likewise.
11342         * lib/parse-duration.c: Likewise.
11343         * lib/poll.c: Likewise.
11344         * lib/select.c: Likewise.
11345         * lib/trim.h: Likewise.
11346         * tests/test-usleep.c: Likewise.
11347         * lib/ldexpl.c: Insert space before function parameter list and before
11348         function argument list.
11349         * lib/logl.c: Likewise.
11350         * lib/sqrtl.c: Likewise.
11351         * lib/trim.c: Likewise.
11352         * lib/cosl.c: Use GNU style indentation. Insert space before function
11353         argument list.
11354         * lib/sinl.c: Likewise.
11355         * lib/tsearch.c: Insert space after 'for'.
11356         Reported by Jim Meyering.
11357
11358 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
11359
11360         * maint.mk (sc_Wundef_boolean): Check for the presence of the
11361         config header before grepping, as it's not present before
11362         autoreconf/configure are run.  Reported by Simon Josefsson.
11363
11364 2010-03-23  Bruno Haible  <bruno@clisp.org>
11365
11366         pt_chown: Make it work with automake < 1.11.
11367         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
11368         Reported by Simon Josefsson.
11369
11370 2010-03-23  Bruno Haible  <bruno@clisp.org>
11371
11372         pt_chown: Don't depend on GPLed modules.
11373         * lib/pt_chown.c: Don't include idpriv.h.
11374         (main): Don't drop privileges.
11375         * modules/pt_chown (Depends-on): Remove idpriv-drop.
11376         Reported by Simon Josefsson.
11377
11378 2010-03-24  Simon Josefsson  <simon@josefsson.org>
11379
11380         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
11381         suggestions from karl@freefriends.org (Karl Berry).
11382
11383 2010-03-22  Eric Blake  <eblake@redhat.com>
11384
11385         gethostname: further tweaks
11386         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
11387         are overriding gethostname.
11388         Suggested by Bruno Haible.
11389
11390 2010-03-21  Bruno Haible  <bruno@clisp.org>
11391
11392         Fix comments.
11393         * lib/forkpty.c (rpl_forkpty): Fix comment.
11394         * lib/openpty.c (rpl_openpty): Likewise.
11395         Reported by Eric Blake.
11396
11397 2010-03-22  Eric Blake  <eblake@redhat.com>
11398
11399         gethostname: fix build on mingw
11400         * lib/unistd.in.h (includes): Work around fact that mingw
11401         <winsock2.h> re-includes <unistd.h>, by avoiding any
11402         redeclarations if we are being included by <winsock2.h>.
11403         Reported by Matthias Bolte.
11404
11405 2010-03-21  Bruno Haible  <bruno@clisp.org>
11406
11407         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
11408         * lib/forkpty.c (forkpty): New replacement function, from glibc with
11409         modifications.
11410         * lib/pty.in.h (forkpty): Update declaration. Add comments.
11411         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
11412         provide the replacement.
11413         * modules/forkpty (Depends-on): Add openpty, login_tty.
11414         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
11415         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
11416         * doc/glibc-functions/forkpty.texi: More supported platforms.
11417         * config/srclist.txt: Add forkpty.c (commented).
11418
11419 2010-03-21  Bruno Haible  <bruno@clisp.org>
11420
11421         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
11422         (Makefile.am): Verify that PTY_LIB is defined.
11423
11424         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
11425
11426 2010-03-21  Bruno Haible  <bruno@clisp.org>
11427
11428         Tests for module 'login_tty'.
11429         * modules/login_tty-tests: New file.
11430         * tests/test-login_tty.c: New file.
11431
11432         New module 'login_tty'.
11433         * lib/login_tty.c: New file.
11434         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
11435         * modules/login_tty: New file.
11436         * doc/glibc-functions/login_tty.texi: Mention the new module.
11437
11438 2010-03-21  Bruno Haible  <bruno@clisp.org>
11439
11440         login_tty: Documentation.
11441         * doc/glibc-functions/login_tty.texi: New file.
11442         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
11443
11444 2010-03-21  Bruno Haible  <bruno@clisp.org>
11445
11446         pty: Consistent macro naming.
11447         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
11448         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
11449         * modules/pty (configure.ac): Update.
11450
11451 2010-03-21  Bruno Haible  <bruno@clisp.org>
11452
11453         Tests for openpty: Make stricter.
11454         * tests/test-openpty.c (main): Add test of canonical processing and
11455         erase.
11456         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
11457
11458         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
11459         * lib/openpty.c (openpty): New replacement function.
11460         * lib/pty.in.h: Include <termios.h>.
11461         (openpty): Update declaration. Add comments.
11462         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
11463         is not declared, arrange to provide the replacement. Check for _getpty
11464         and posix_openpt.
11465         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
11466         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
11467         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
11468         * modules/pty-tests (test_pty_c___LDADD): New variable.
11469         * doc/glibc-functions/openpty.texi: More supported platforms.
11470
11471 2010-03-21  Bruno Haible  <bruno@clisp.org>
11472
11473         setenv: Tweaks.
11474         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
11475         the test program.
11476         * doc/posix-functions/setenv.texi: Update platforms list.
11477
11478 2010-03-21  Bruno Haible  <bruno@clisp.org>
11479
11480         New module 'unlockpt'.
11481         * lib/unlockpt.c: New file, from glibc with modifications.
11482         * m4/unlockpt.m4: New file.
11483         * modules/unlockpt: New file.
11484         * lib/stdlib.in.h (unlockpt): New declaration.
11485         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
11486         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
11487         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
11488         HAVE_UNLOCKPT.
11489         * doc/posix-functions/unlockpt.texi: Mention the new module.
11490         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
11491         * config/srclist.txt: Add unlockpt.c (commented).
11492
11493 2010-03-21  Jim Meyering  <meyering@redhat.com>
11494
11495         maint.mk: prohibit inclusion of "intprops.h" without use
11496         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
11497
11498 2010-03-21  Bruno Haible  <bruno@clisp.org>
11499
11500         New module 'grantpt'.
11501         * lib/grantpt.c: New file, from glibc with modifications.
11502         * m4/grantpt.m4: New file.
11503         * modules/grantpt: New file.
11504         * lib/stdlib.in.h (grantpt): New declaration.
11505         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
11506         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
11507         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
11508         HAVE_GRANTPT.
11509         * doc/posix-functions/grantpt.texi: Mention the new module.
11510         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
11511         * config/srclist.txt: Add grantpt.c (commented).
11512
11513 2010-03-21  Bruno Haible  <bruno@clisp.org>
11514
11515         New module 'pt_chown'.
11516         * lib/pt_chown.c: New file, from glibc with modifications.
11517         * lib/pty-private.h: New file, from glibc with modifications.
11518         * modules/pt_chown: New file.
11519         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
11520
11521 2010-03-21  Bruno Haible  <bruno@clisp.org>
11522
11523         Tests for module 'ptsname'.
11524         * modules/ptsname-tests: New file.
11525         * tests/test-ptsname.c: New file.
11526
11527         New module 'ptsname'.
11528         * lib/ptsname.c: New file, from glibc with modifications.
11529         * m4/ptsname.m4: New file.
11530         * modules/ptsname: New file.
11531         * lib/stdlib.in.h (ptsname): New declaration.
11532         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
11533         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
11534         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
11535         HAVE_PTSNAME.
11536         * doc/posix-functions/ptsname.texi: Mention the new module.
11537         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
11538         * config/srclist.txt: Add ptsname.c (commented).
11539
11540 2010-03-21  Bruno Haible  <bruno@clisp.org>
11541
11542         Tests for module 'ttyname_r'.
11543         * modules/ttyname_r-tests: New file.
11544         * tests/test-ttyname_r.c: New file.
11545
11546         New module 'ttyname_r'.
11547         * lib/ttyname_r.c: New file.
11548         * m4/ttyname_r.m4: New file.
11549         * modules/ttyname_r: New file.
11550         * lib/unistd.in.h (ttyname_r): New declaration.
11551         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
11552         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
11553         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
11554         HAVE_TTYNAME_R.
11555         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
11556         * doc/posix-functions/ttyname_r.texi: Mention the new module.
11557
11558 2010-03-20  Bruno Haible  <bruno@clisp.org>
11559
11560         signal: Undefine macro definitions in C++ mode.
11561         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
11562         sigfillset): Undefine macro definitions from the system header in C++
11563         mode.
11564         Reported by John W. Eaton <jwe@gnu.org>.
11565
11566 2010-03-20  Bruno Haible  <bruno@clisp.org>
11567
11568         Ensure no #include statements inside extern "C" { ... }.
11569         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
11570         contain #include statements.
11571         * lib/time.in.h: Likewise.
11572
11573 2010-03-20  Bruno Haible  <bruno@clisp.org>
11574
11575         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
11576         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
11577         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
11578         Reported by John W. Eaton <jwe@gnu.org>.
11579
11580 2010-03-20  Bruno Haible  <bruno@clisp.org>
11581
11582         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
11583         Reported by Jim Meyering.
11584
11585 2010-03-20  Bruno Haible  <bruno@clisp.org>
11586
11587         pipe: Set errno upon failure.
11588         * lib/pipe.h: Specify that when -1 is returned, errno is set.
11589         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
11590         errno value in error message.
11591
11592 2010-03-20  Bruno Haible  <bruno@clisp.org>
11593             Jim Meyering  <meyering@redhat.com>
11594
11595         lchown: Avoid "unused variable" warning.
11596         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
11597
11598 2010-03-20  Bruno Haible  <bruno@clisp.org>
11599
11600         Work around unlink() bug on MacOS X 10.5.6.
11601         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
11602         attempting to unlink a parent directory.
11603         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
11604         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
11605         activate for the replacement function.
11606         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
11607
11608 2010-03-20  Bruno Haible  <bruno@clisp.org>
11609
11610         Fix link errors on Solaris 8.
11611         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
11612         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
11613
11614 2010-03-19  Jim Meyering  <meyering@redhat.com>
11615
11616         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
11617         The _LIBC implementation of build_range_exp correctly honors the
11618         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
11619         However, the non-_LIBC implementation would ignore that syntax-bit
11620         flag and return REG_ERANGE unconditionally.
11621         This change makes it honor that flag.
11622         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
11623         Make two pointer parameters "const".
11624         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
11625         (parse_bracket_exp): Update caller.
11626
11627         regex.m4: correct the reversed range endpoint ([b-a]) test
11628         * m4/regex.m4: When requiring that [b-a] evoke failure,
11629         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
11630         test pass once again for x86-based systems.
11631
11632 2010-03-19  Bruno Haible  <bruno@clisp.org>
11633
11634         scandir: Fix link error on Solaris 8.
11635         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
11636         macros.
11637
11638 2010-03-19  Bruno Haible  <bruno@clisp.org>
11639
11640         getusershell: Fix documentation.
11641         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
11642         module.
11643         * doc/glibc-functions/setusershell.texi: Likewise.
11644
11645         getusershell: Provide declaration, missing on Solaris 9.
11646         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
11647         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
11648         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
11649         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
11650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11651         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
11652         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
11653         HAVE_GETUSERSHELL.
11654         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
11655
11656 2010-03-19  Bruno Haible  <bruno@clisp.org>
11657
11658         wctype: Provide iswblank function.
11659         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
11660         exists and is fine.
11661         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
11662         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
11663         * tests/test-wctype.c (main): Re-enable the iswblank tests.
11664         * doc/posix-functions/iswblank.texi: Update.
11665
11666 2010-03-19  Bruno Haible  <bruno@clisp.org>
11667
11668         Tests of module 'pty' in C++ mode.
11669         * modules/pty-tests: New file.
11670         * tests/test-pty-c++.cc: New file.
11671         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
11672
11673 2010-03-19  Eric Blake  <eblake@redhat.com>
11674
11675         logb: fix documentation
11676         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
11677         1.5 declaration bug.
11678
11679         forkpty, openpty: prefer glibc's const-safe prototype
11680         * lib/forkpty.c (rpl_forkpty): New file.
11681         * lib/openpty.c (rpl_openpty): Likewise.
11682         * modules/forkpty (Files): Distribute it.
11683         * modules/openpty (Files): Likewise.
11684         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
11685         check...
11686         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
11687         replacement for for non-const BSD signature.
11688         * modules/pty (Makefile.am): Substitute witnesses.
11689         * lib/pty.in.h (forkpty, openpty): Declare replacements.
11690         * tests/test-forkpty.c: Update signature check.
11691         * tests/test-openpty.c: Likewise.
11692         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
11693         * doc/glibc-functions/openpty.texi (openpty): Likewise.
11694
11695         forkpty, openpty: split functions into new modules
11696         * modules/pty (Makefile.am): Substitute new witnesses.
11697         (Libraries): Move library detection...
11698         * modules/forkpty: ...into new module.
11699         * modules/openpty: Another new module.
11700         * modules/pty-tests: Rename and split...
11701         * modules/forkpty-tests: ...to this...
11702         * modules/openpty-tests: ...and this.
11703         * tests/test-pty.c: Rename and split...
11704         * tests/test-forkpty.c: ...to this...
11705         * tests/test-openpty.c: ...and this.
11706         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
11707         (gl_PTY): Split library searching...
11708         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
11709         (gl_FORKPTY, gl_OPENPTY): New macros.
11710         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
11711         * NEWS: Mention the split.
11712         * MODULES.html.sh (Misc): Document the modules.
11713         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
11714         * doc/glibc-functions/openpty.texi (openpty): Likewise.
11715
11716         pty: improve replacement header
11717         * lib/pty.in.h: New file.
11718         * modules/pty (Files): Ship it.
11719         (Makefile.am): Always build replacement.
11720         * m4/pty.m4: Rename...
11721         * m4/pty_h.m4: ...to this.
11722         (gl_PTY): Modernize setting of witness macros; update check of
11723         forkpty to take proper advantage of cache.
11724         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
11725
11726         getopt: avoid compiler warning
11727         * lib/getopt.c (attribute_hidden): Remove unused macro.
11728
11729 2010-03-18  Bruno Haible  <bruno@clisp.org>
11730
11731         Fix link errors on Solaris 8.
11732         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
11733         * modules/search-tests (test_search_c___LDADD): Likewise.
11734         * modules/signal-tests (test_signal_c___LDADD): Likewise.
11735         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
11736         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
11737         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
11738         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
11739         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
11740         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
11741
11742 2010-03-18  Bruno Haible  <bruno@clisp.org>
11743
11744         Fix bug introduced on 2010-03-14.
11745         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
11746         (gl_SPAWN_H): Require it.
11747         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
11748         Reported by Simon Josefsson.
11749
11750 2010-03-18  Bruno Haible  <bruno@clisp.org>
11751
11752         Fix typo introduced on 2009-12-31.
11753         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
11754         posix_spawn_file_actions_adddup2.
11755
11756 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
11757         and Eric Blake  <eblake@redhat.com>
11758
11759         test-vc-list-files-git: make more robust
11760         * tests/test-vc-list-files-git.sh: Unset problematic environment
11761         variables.  Chain commands together.
11762
11763 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
11764
11765         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
11766         `AC_CHECK_DECL' invocation.
11767
11768 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
11769
11770         * lib/inttostr.c (inttostr): Make sure the invocation of verify
11771         appears before executable statements. Suggested by Petr Sumbera
11772         <Petr.Sumbera@Sun.COM>.
11773
11774 2010-03-14  Bruno Haible  <bruno@clisp.org>
11775
11776         * tests/test-flock.c (test_exclusive): Comment out a test that causes
11777         portability problems. Instead use a simpler test.
11778         (main): Check that invalid arguments are rejected only on Linux.
11779
11780 2010-03-14  Bruno Haible  <bruno@clisp.org>
11781
11782         Fix bug introduced on 2009-12-31.
11783         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
11784         gl_PREREQ_SYS_H_WINSOCK2 always.
11785         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
11786         SYS_SOCKET_H variable.
11787         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
11788         Update comments.
11789         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
11790         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
11791         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11792         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11793         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
11794
11795 2010-03-14  Bruno Haible  <bruno@clisp.org>
11796
11797         Fix values returned by sinl, cosl.
11798         * lib/trigl.h: Add specification comments.
11799         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
11800         that combines the values from the precomputed table with the values of
11801         the Chebyshev polynomials.
11802
11803 2010-03-14  Bruno Haible  <bruno@clisp.org>
11804
11805         Fix compilation error when modules 'posix_spawn[p]' are not used.
11806         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
11807         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
11808
11809 2010-03-14  Bruno Haible  <bruno@clisp.org>
11810
11811         Fix compilation error on mingw when module 'time_r' is not used.
11812         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
11813         is 1.
11814         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
11815         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
11816         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
11817         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
11818
11819 2010-03-14  Bruno Haible  <bruno@clisp.org>
11820
11821         Fix compilation error with Sun C.
11822         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
11823         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
11824         instead of GCC specific ULONG_LONG_MAX.
11825         * lib/xstrtoll.c: Likewise.
11826         * lib/xstrtoull.c: Likewise.
11827
11828 2010-03-13  Bruno Haible  <bruno@clisp.org>
11829
11830         Allow the user to disable C++ code and tests.
11831         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
11832         (gl_PROG_ANSI_CXX): Require it.
11833
11834 2010-03-13  Bruno Haible  <bruno@clisp.org>
11835
11836         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
11837         cases.
11838
11839 2010-03-13  Bruno Haible  <bruno@clisp.org>
11840
11841         Test that gnulib does not break the standard C++ headers.
11842         * tests/test-locale-c++2.cc: New file.
11843         * modules/locale-tests (Files): Add it.
11844         (Makefile.am): Compile it for test-locale-c++.
11845         * tests/test-math-c++2.cc: New file.
11846         * modules/math-tests (Files): Add it.
11847         (Makefile.am): Compile it for test-math-c++.
11848         * tests/test-signal-c++2.cc: New file.
11849         * modules/signal-tests (Files): Add it.
11850         (Makefile.am): Compile it for test-signal-c++.
11851         * tests/test-stdio-c++2.cc: New file.
11852         * modules/stdio-tests (Files): Add it.
11853         (Makefile.am): Compile it for test-stdio-c++.
11854         * tests/test-stdlib-c++2.cc: New file.
11855         * modules/stdlib-tests (Files): Add it.
11856         (Makefile.am): Compile it for test-stdlib-c++.
11857         * tests/test-string-c++2.cc: New file.
11858         * modules/string-tests (Files): Add it.
11859         (Makefile.am): Compile it for test-string-c++.
11860         * tests/test-time-c++2.cc: New file.
11861         * modules/time-tests (Files): Add it.
11862         (Makefile.am): Compile it for test-time-c++.
11863         Reported by John W. Eaton <jwe@gnu.org>.
11864
11865 2010-03-13  Bruno Haible  <bruno@clisp.org>
11866
11867         * gnulib-tool (func_usage): Clarify which options are available for
11868         --create-testdir and --create-megatestdir.
11869
11870 2010-03-13  Bruno Haible  <bruno@clisp.org>
11871
11872         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
11873         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
11874         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
11875         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
11876         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
11877         when appropriate.
11878         Reported by Jim Meyering.
11879
11880 2010-03-12  Simon Josefsson  <simon@josefsson.org>
11881
11882         * gnulib-tool (func_import): Explain origin of code.
11883
11884 2010-03-12  Bruno Haible  <bruno@clisp.org>
11885
11886         Fix problem with automake's definition of CXXLINK.
11887         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
11888         Reported by Simon Josefsson and Ludovic Courtès.
11889
11890 2010-03-12  Bruno Haible  <bruno@clisp.org>
11891
11892         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
11893         stable releases.
11894
11895 2010-03-11  Bruno Haible  <bruno@clisp.org>
11896
11897         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
11898         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
11899         whether the system provides one variant or multiple variants of the
11900         function.
11901         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
11902         C++ compilers.
11903         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
11904         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
11905         Reported by Jim Meyering.
11906
11907 2010-03-09  Simon Josefsson  <simon@josefsson.org>
11908
11909         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
11910
11911 2010-03-08  Bruno Haible  <bruno@clisp.org>
11912
11913         gnulib-tool: Add support for --libtool in --create-testdir.
11914         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
11915         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
11916
11917 2010-03-08  Eric Blake  <eblake@redhat.com>
11918
11919         gnulib-tool.texi: mention possibility of git submodule
11920         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
11921         submodules.
11922         * doc/.gitignore: Ignore another generated file.
11923
11924 2010-03-08  Karl Berry  <karl@gnu.org>
11925
11926         * doc/gnulib-tool.texi (VCS Issues): Mention third option
11927         of committing gnulib files while skipping others.
11928
11929 2010-03-07  Bruno Haible  <bruno@clisp.org>
11930
11931         Tests of module 'wctype' in C++ mode.
11932         * tests/test-wctype-c++.cc: New file.
11933         * modules/wctype-tests (Files): Add it and tests/signature.h.
11934         (Depends-on): Add ansi-c++-opt.
11935         (Makefile.am): Arrange to compile and run test-wctype-c++.
11936
11937         Tests of module 'wchar' in C++ mode.
11938         * tests/test-wchar-c++.cc: New file.
11939         * modules/wchar-tests (Files): Add it and tests/signature.h.
11940         (Depends-on): Add ansi-c++-opt.
11941         (Makefile.am): Arrange to compile and run test-wchar-c++.
11942         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
11943         gl_MODULE_INDICATOR.
11944
11945         Tests of module 'unistd' in C++ mode.
11946         * tests/test-unistd-c++.cc: New file.
11947         * modules/unistd-tests (Files): Add it and tests/signature.h.
11948         (Depends-on): Add ansi-c++-opt.
11949         (Makefile.am): Arrange to compile and run test-unistd-c++.
11950         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
11951         gl_MODULE_INDICATOR.
11952
11953         Tests of module 'time' in C++ mode.
11954         * tests/test-time-c++.cc: New file.
11955         * modules/time-tests (Files): Add it and tests/signature.h.
11956         (Depends-on): Add ansi-c++-opt.
11957         (Makefile.am): Arrange to compile and run test-time-c++.
11958         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
11959
11960         Tests of module 'sys_time' in C++ mode.
11961         * tests/test-sys_time-c++.cc: New file.
11962         * modules/sys_time-tests (Files): Add it and tests/signature.h.
11963         (Depends-on): Add ansi-c++-opt.
11964         (Makefile.am): Arrange to compile and run test-sys_time-c++.
11965         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
11966         gl_MODULE_INDICATOR.
11967
11968         Tests of module 'sys_stat' in C++ mode.
11969         * tests/test-sys_stat-c++.cc: New file.
11970         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
11971         (Depends-on): Add ansi-c++-opt.
11972         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
11973         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
11974         gl_MODULE_INDICATOR.
11975
11976         Tests of module 'sys_socket' in C++ mode.
11977         * tests/test-sys_socket-c++.cc: New file.
11978         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
11979         (Depends-on): Add ansi-c++-opt.
11980         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
11981         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
11982         gl_MODULE_INDICATOR.
11983
11984         Tests of module 'sys_select' in C++ mode.
11985         * tests/test-sys_select-c++.cc: New file.
11986         * modules/sys_select-tests (Files): Add it and tests/signature.h.
11987         (Depends-on): Add ansi-c++-opt.
11988         (Makefile.am): Arrange to compile and run test-sys_select-c++.
11989         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
11990         gl_MODULE_INDICATOR.
11991
11992         Tests of module 'sys_ioctl' in C++ mode.
11993         * tests/test-sys_ioctl-c++.cc: New file.
11994         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
11995         (Depends-on): Add ansi-c++-opt.
11996         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
11997         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
11998         gl_MODULE_INDICATOR.
11999
12000         Tests of module 'string' in C++ mode.
12001         * tests/test-string-c++.cc: New file.
12002         * modules/string-tests (Files): Add it and tests/signature.h.
12003         (Depends-on): Add ansi-c++-opt.
12004         (Makefile.am): Arrange to compile and run test-string-c++.
12005         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
12006         gl_MODULE_INDICATOR.
12007
12008         Tests of module 'stdlib' in C++ mode.
12009         * tests/test-stdlib-c++.cc: New file.
12010         * modules/stdlib-tests (Files): Add it and tests/signature.h.
12011         (Depends-on): Add ansi-c++-opt.
12012         (Makefile.am): Arrange to compile and run test-stdlib-c++.
12013         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
12014         gl_MODULE_INDICATOR.
12015
12016         Tests of module 'stdio' in C++ mode.
12017         * tests/test-stdio-c++.cc: New file.
12018         * modules/stdio-tests (Files): Add it and tests/signature.h.
12019         (Depends-on): Add ansi-c++-opt.
12020         (Makefile.am): Arrange to compile and run test-stdio-c++.
12021         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
12022         gl_MODULE_INDICATOR.
12023
12024         Tests of module 'spawn' in C++ mode.
12025         * tests/test-spawn-c++.cc: New file.
12026         * modules/spawn-tests (Files): Add it and tests/signature.h.
12027         (Depends-on): Add ansi-c++-opt.
12028         (Makefile.am): Arrange to compile and run test-spawn-c++.
12029         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
12030         gl_MODULE_INDICATOR.
12031
12032         Tests of module 'signal' in C++ mode.
12033         * tests/test-signal-c++.cc: New file.
12034         * modules/signal-tests (Files): Add it and tests/signature.h.
12035         (Depends-on): Add ansi-c++-opt.
12036         (Makefile.am): Arrange to compile and run test-signal-c++.
12037         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
12038         gl_MODULE_INDICATOR.
12039
12040         Tests of module 'search' in C++ mode.
12041         * tests/test-search-c++.cc: New file.
12042         * modules/search-tests (Files): Add it and tests/signature.h.
12043         (Depends-on): Add ansi-c++-opt.
12044         (Makefile.am): Arrange to compile and run test-search-c++.
12045         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
12046         gl_MODULE_INDICATOR.
12047
12048         Tests of module 'math' in C++ mode.
12049         * tests/test-math-c++.cc: New file.
12050         * modules/math-tests (Files): Add it and tests/signature.h.
12051         (Depends-on): Add ansi-c++-opt.
12052         (Makefile.am): Arrange to compile and run test-math-c++.
12053         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
12054
12055         Tests of module 'locale' in C++ mode.
12056         * tests/test-locale-c++.cc: New file.
12057         * modules/locale-tests (Files): Add it and tests/signature.h.
12058         (Depends-on): Add ansi-c++-opt.
12059         (Makefile.am): Arrange to compile and run test-locale-c++.
12060         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
12061         gl_MODULE_INDICATOR.
12062
12063         Tests of module 'langinfo' in C++ mode.
12064         * tests/test-langinfo-c++.cc: New file.
12065         * modules/langinfo-tests (Files): Add it and tests/signature.h.
12066         (Depends-on): Add ansi-c++-opt.
12067         (Makefile.am): Arrange to compile and run test-langinfo-c++.
12068         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
12069         gl_MODULE_INDICATOR.
12070
12071         Tests of module 'iconv-h' in C++ mode.
12072         * tests/test-iconv-h-c++.cc: New file.
12073         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
12074         (Depends-on): Add ansi-c++-opt.
12075         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
12076
12077         Tests of module 'glob' in C++ mode.
12078         * tests/test-glob-c++.cc: New file.
12079         * modules/glob-tests (Files): Add it.
12080         (Depends-on): Add ansi-c++-opt.
12081         (Makefile.am): Arrange to compile and run test-glob-c++.
12082
12083         Tests of module 'fcntl-h' in C++ mode.
12084         * tests/test-fcntl-h-c++.cc: New file.
12085         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
12086         (Depends-on): Add ansi-c++-opt.
12087         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
12088         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
12089         gl_MODULE_INDICATOR.
12090
12091         Tests of module 'dirent' in C++ mode.
12092         * tests/test-dirent-c++.cc: New file.
12093         * modules/dirent-tests (Files): Add it and tests/signature.h.
12094         (Depends-on): Add ansi-c++-opt.
12095         (Makefile.am): Arrange to compile and run test-dirent-c++.
12096         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
12097         gl_MODULE_INDICATOR.
12098
12099         New module 'ansi-c++-opt'.
12100         * modules/ansi-c++-opt: New file.
12101         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
12102
12103         Document C++ namespace mode.
12104         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
12105
12106         wctype: Avoid #define replacements in C++ mode.
12107         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
12108         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
12109         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
12110         In C++, define a namespaced alias symbol.
12111         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
12112         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
12113         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
12114         rule.
12115
12116         wchar: Avoid #define replacements in C++ mode.
12117         * lib/wchar.in.h: Include c++defs.h.
12118         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
12119         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
12120         symbol.
12121         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
12122         * modules/wchar (Depends-on): Add c++defs.
12123         (Makefile.am): Update wchar.h rule.
12124
12125         unistd: Avoid #define replacements in C++ mode.
12126         * lib/unistd.in.h: Include c++defs.h.
12127         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
12128         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
12129         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
12130         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
12131         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
12132         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
12133         symbol.
12134         (environ): Update.
12135         * modules/unistd (Depends-on): Add c++defs.
12136         (Makefile.am): Update unistd.h rule.
12137
12138         time: Avoid #define replacements in C++ mode.
12139         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
12140         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
12141         define a namespaced alias symbol.
12142         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
12143         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
12144         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
12145         * modules/time (Depends-on): Add c++defs, warn-on-use.
12146         (Makefile.am): Update time.h rule.
12147         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
12148         * modules/nanosleep (configure.ac): Likewise.
12149         * modules/strptime (configure.ac): Likewise.
12150         * modules/timegm (configure.ac): Likewise.
12151
12152         sys_time: Avoid #define replacements in C++ mode.
12153         * lib/sys_time.in.h: Include c++defs.h.
12154         (gettimeofday): In C++, define a namespaced alias symbol.
12155         * modules/sys_time (Depends-on): Add c++defs.
12156         (Makefile.am): Update sys/time.h rule.
12157
12158         sys_stat: Avoid #define replacements in C++ mode.
12159         * lib/sys_stat.in.h: Include c++defs.h.
12160         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
12161         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
12162         namespaced alias symbol.
12163         In C++, define a namespaced alias symbol.
12164         * modules/sys_stat (Depends-on): Add c++defs.
12165         (Makefile.am): Update sys/stat.h rule.
12166
12167         sys_socket: Avoid #define replacements in C++ mode.
12168         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
12169         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
12170         definitions also when the system has a <sys/socket.h>.
12171         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
12172         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
12173         In C++, define a namespaced alias symbol.
12174         * modules/sys_socket (Depends-on): Add c++defs.
12175         (Makefile.am): Update sys/socket.h rule.
12176
12177         sys_select: Avoid #define replacements in C++ mode.
12178         * lib/sys_select.in.h: Include c++defs.h. Enable the function
12179         definitions also when the system has a <sys/select.h>.
12180         (select): In C++, define a namespaced alias symbol.
12181         * modules/sys_select (Depends-on): Add c++defs.
12182         (Makefile.am): Update sys/select.h rule.
12183
12184         sys_ioctl: Avoid #define replacements in C++ mode.
12185         * lib/sys_ioctl.in.h: Include c++defs.h.
12186         (ioctl): In C++, define a namespaced alias symbol.
12187         * modules/sys_ioctl (Depends-on): Add c++defs.
12188         (Makefile.am): Update sys/ioctl.h rule.
12189
12190         string: Avoid #define replacements in C++ mode.
12191         * lib/string.in.h: Include c++defs.h.
12192         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
12193         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
12194         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
12195         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
12196         strsignal, strverscmp): In C++, define a namespaced alias symbol.
12197         * modules/string (Depends-on): Add c++defs.
12198         (Makefile.am): Update string.h rule.
12199
12200         stdlib: Avoid #define replacements in C++ mode.
12201         * lib/stdlib.in.h: Include c++defs.h.
12202         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
12203         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
12204         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
12205         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
12206         symbol.
12207         * modules/stdlib (Depends-on): Add c++defs.
12208         (Makefile.am): Update stdlib.h rule.
12209
12210         stdio: Avoid #define replacements in C++ mode.
12211         * lib/stdio.in.h: Include c++defs.h.
12212         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
12213         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
12214         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
12215         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
12216         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
12217         namespaced alias symbol.
12218         * modules/stdio (Depends-on): Add c++defs.
12219         (Makefile.am): Update stdio.h rule.
12220
12221         spawn: Avoid #define replacements in C++ mode.
12222         * lib/spawn.in.h: Include c++defs.h.
12223         (posix_spawn, posix_spawnp, posix_spawnattr_init,
12224         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
12225         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
12226         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
12227         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
12228         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
12229         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
12230         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
12231         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
12232         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
12233         In C++, define a namespaced alias symbol.
12234         * modules/spawn (Depends-on): Add c++defs.
12235         (Makefile.am): Update spawn.h rule.
12236
12237         signal: Avoid #define replacements in C++ mode.
12238         * lib/signal.in.h: Include c++defs.h.
12239         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
12240         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
12241         namespaced alias symbol.
12242         * modules/signal (Depends-on): Add c++defs.
12243         (Makefile.am): Update signal.h rule.
12244
12245         search: Avoid #define replacements in C++ mode.
12246         * lib/search.in.h: Include c++defs.h.
12247         (_gl_search_compar_fn, _gl_search_action_fn): New types.
12248         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
12249         symbol.
12250         * modules/search (Depends-on): Add c++defs.
12251         (Makefile.am): Update search.h rule.
12252
12253         math: Avoid #define replacements in C++ mode.
12254         * lib/math.in.h: Include c++defs.h.
12255         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
12256         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
12257         trunc, truncl): In C++, define a namespaced alias symbol.
12258         * modules/math (Depends-on): Add c++defs.
12259         (Makefile.am): Update math.h rule.
12260
12261         locale: Avoid #define replacements in C++ mode.
12262         * lib/locale.in.h: Include c++defs.h.
12263         (duplocale): In C++, define a namespaced alias symbol.
12264         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
12265         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
12266         * modules/locale (Depends-on): Add c++defs.
12267         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
12268
12269         langinfo: Avoid #define replacements in C++ mode.
12270         * lib/langinfo.in.h: Include c++defs.h.
12271         (nl_langinfo): In C++, define a namespaced alias symbol.
12272         * modules/langinfo (Depends-on): Add c++defs.
12273         (Makefile.am): Update langinfo.h rule.
12274
12275         iconv-h: Avoid #define replacements in C++ mode.
12276         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
12277         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
12278         symbol.
12279         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
12280         whenever iconv is present.
12281         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
12282         (Makefile.am): Update iconv.h rule.
12283
12284         glob: Avoid #define replacements in C++ mode.
12285         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
12286         (_gl_glob_errfunc_fn): New type.
12287         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
12288         symbol.
12289         * modules/glob (Depends-on): Add c++defs, warn-on-use.
12290         (Makefile.am): Update glob.h rule.
12291
12292         fcntl-h: Avoid #define replacements in C++ mode.
12293         * lib/fcntl.in.h: Include c++defs.h.
12294         (fcntl, open, openat): In C++, define a namespaced alias symbol.
12295         * modules/fcntl-h (Depends-on): Add c++defs.
12296         (Makefile.am): Update fcntl.h rule.
12297
12298         dirent: Avoid #define replacements in C++ mode.
12299         * lib/dirent.in.h: Include c++defs.h.
12300         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
12301         namespaced alias symbol.
12302         (dirfd): Update declaration.
12303         * modules/dirent (Depends-on): Add c++defs.
12304         (Makefile.am): Update dirent.h rule.
12305
12306         ctype: Make it usable in C++ code.
12307         * lib/ctype.in.h: Include c++defs.h.
12308         (isblank): Declare as extern "C".
12309         * modules/ctype (Depends-on): Add c++defs.
12310         (Makefile.am): Update ctype.h rule.
12311
12312         New module 'c++defs'.
12313         * modules/c++defs: New file.
12314         * build-aux/c++defs.h: New file.
12315         Reported by John W. Eaton <jwe@gnu.org>.
12316
12317 2010-03-07  Bruno Haible  <bruno@clisp.org>
12318
12319         logb: Provide missing declaration for Cygwin.
12320         * lib/math.in.h (logb): New declaration.
12321         * m4/logb.m4: New file.
12322         * modules/logb (Files): Add m4/logb.m4.
12323         (Depends-on): Add math.
12324         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
12325         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
12326         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
12327         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
12328         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
12329
12330 2010-03-07  Bruno Haible  <bruno@clisp.org>
12331
12332         Fix test-cond link error.
12333         * tests/test-cond.c: Include <stdio.h>.
12334
12335 2010-03-07  Bruno Haible  <bruno@clisp.org>
12336
12337         Fix test-dirent-safer link error.
12338         * modules/dirent-safer-tests (Makefile.am): Define
12339         test_dirent_safer_LDADD.
12340
12341 2010-03-07  Bruno Haible  <bruno@clisp.org>
12342
12343         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
12344         among default module list.
12345
12346 2010-03-07  Bruno Haible  <bruno@clisp.org>
12347
12348         Fix link error on platforms with GNU libiconv.
12349         * modules/unistr/u8-strcoll-tests (Makefile): Define
12350         test_u8_strcoll_LDADD.
12351         * modules/unistr/u16-strcoll-tests (Makefile): Define
12352         test_u16_strcoll_LDADD.
12353         * modules/unistr/u32-strcoll-tests (Makefile): Define
12354         test_u32_strcoll_LDADD.
12355
12356 2010-03-07  Bruno Haible  <bruno@clisp.org>
12357
12358         Use POSIX declarations for socket functions.
12359         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
12360         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
12361         rpl_sendto): Change declaration to match POSIX.
12362         * lib/connect.c (rpl_connect): Likewise.
12363         * lib/accept.c (rpl_accept): Likewise.
12364         * lib/bind.c (rpl_bind): Likewise.
12365         * lib/getpeername.c (rpl_getpeername): Likewise.
12366         * lib/getsockname.c (rpl_getsockname): Likewise.
12367         * lib/recv.c (rpl_recv): Likewise.
12368         * lib/send.c (rpl_send): Likewise.
12369         * lib/recvfrom.c (rpl_recvfrom): Likewise.
12370         * lib/sendto.c (rpl_sendto): Likewise.
12371
12372 2010-03-06  Bruno Haible  <bruno@clisp.org>
12373
12374         Clarify access, euidaccess, faccessat.
12375         * doc/posix-functions/faccessat.texi: Mention security problem under
12376         "Other problems", not "Portability problems".
12377         * doc/posix-functions/access.texi: Likewise. Mention a related security
12378         problem.
12379         * doc/glibc-functions/euidaccess.texi: Mention security problems.
12380         * lib/euidaccess.c: Add comments about platforms.
12381         * lib/unistd.in.h (access, euidaccess): Add warnings.
12382
12383 2010-03-07  Bruno Haible  <bruno@clisp.org>
12384
12385         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
12386         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
12387         (POSIX_SPAWN_SETSCHEDULER): Likewise.
12388         (POSIX_SPAWN_USEVFORK): Define in a way that works when
12389         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
12390         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
12391         declare when POSIX_SPAWN_SETSCHEDULER is zero.
12392         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
12393         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
12394         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
12395         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
12396         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
12397         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
12398         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
12399         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
12400         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
12401         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
12402         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
12403         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
12404         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
12405         Likewise.
12406         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
12407         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
12408         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
12409         Likewise.
12410         * tests/test-spawn.c (main): Make it work when
12411         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
12412
12413 2010-03-07  Bruno Haible  <bruno@clisp.org>
12414
12415         Fix incorrect Makefile.am generation in German locale.
12416         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12417         Execute sed command with character range in C locale.
12418
12419 2010-03-06  Bruno Haible  <bruno@clisp.org>
12420
12421         Tests for module 'iconv-h'.
12422         * modules/iconv-h-tests: New file.
12423         * tests/test-iconv-h.c: New file.
12424
12425         New module 'iconv-h'.
12426         * modules/iconv-h: New file.
12427         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
12428         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
12429         (configure.ac): Remove gl_ICONV_H.
12430         (Makefile.am): Remove rule for iconv.h.
12431
12432 2010-03-06  Bruno Haible  <bruno@clisp.org>
12433
12434         More consistent naming of *.m4 files.
12435         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
12436         * modules/wctype (Files): Update.
12437
12438         More consistent naming of *.m4 files.
12439         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
12440         * modules/wchar (Files): Update.
12441
12442 2010-03-06  Jim Meyering  <meyering@redhat.com>
12443
12444         euidaccess: relax license to LGPLv2+
12445         * modules/euidaccess (License): Relax to LGPLv2+.
12446
12447 2010-03-06  Bruno Haible  <bruno@clisp.org>
12448
12449         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
12450         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
12451         (Makefile.am): Augment lib_SOURCES instead.
12452
12453 2010-03-04  Jim Meyering  <meyering@redhat.com>
12454
12455         utime: remove obsolete module
12456         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
12457         unnecessary for years, and has been marked as obsolete for 10 months.
12458         * modules/utime: Remove file.
12459         * lib/utime.c: Remove file.
12460         * m4/utime.m4: Remove file.
12461         * m4/utimes-null.m4: Remove file.
12462         * doc/posix-functions/utime.texi (utime): Remove reference to
12463         the module.  Move the sole "fixed by gnulib" item into the
12464         "problems not fixed by Gnulib" list.
12465         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
12466
12467 2010-03-05  Simon Josefsson  <simon@josefsson.org>
12468
12469         * modules/exit (License): Relax license to LGPLv2+.
12470         (Status): Mark as obsolete.
12471         * NEWS: Mention deprecated 'exit' module.
12472         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
12473         of now obsolete 'exit'.
12474
12475 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12476
12477         fts-lgpl: remove unused module
12478         * modules/fts-lgpl: Remove.
12479         * MODULES.html.sh (func_all_modules): Adjust.
12480         * check-module (find_included_lib_files): Adjust.
12481         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
12482
12483 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
12484
12485         copy-acl: enhance Solaris ACL error handling
12486         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
12487         * lib/set-mode-acl.c (qset_acl): Likewise.
12488
12489 2010-03-02  Bruno Haible  <bruno@clisp.org>
12490
12491         spawn: Don't override the system defined values on FreeBSD 8.
12492         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
12493         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
12494         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
12495         if HAVE_POSIX_SPAWN is 1.
12496         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
12497
12498 2010-03-01  Bruno Haible  <bruno@clisp.org>
12499
12500         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
12501         regarding Automake.
12502
12503 2010-02-25  Bruno Haible  <bruno@clisp.org>
12504
12505         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
12506         * gnulib-tool: Define 'echo' as a function only before the ksh alias
12507         setting, not afterwards.
12508         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
12509
12510 2010-02-24  Eric Blake  <eblake@redhat.com>
12511
12512         bootstrap, git-version-gen: use timestamp
12513         * build-aux/git-version-gen (scriptversion): Force UTC.
12514         * build-aux/bootstrap (scriptversion): New variable.
12515
12516         bootstrap: allow older git
12517         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
12518         older than 1.6.4.  Requested by the libvirt project.
12519
12520 2010-02-23  Eric Blake  <eblake@redhat.com>
12521
12522         warn-on-use: work with old autoconf
12523         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
12524         AS_VAR semantics of autoconf 2.60.
12525         Reported by Bruno Haible.
12526
12527         bootstrap: improve some comments
12528         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
12529         clarification comments.
12530
12531         gettimeofday: provide correct function
12532         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
12533         when replacement is declared, otherwise provide gettimeofday.
12534         Reported by Michael Goffioul.
12535
12536 2010-02-23  Jim Meyering  <meyering@redhat.com>
12537
12538         lib-ignore: relax license to "unlimited", not LGPLv2+
12539         * modules/lib-ignore (License): Relax to "unlimited".
12540
12541 2010-02-23  Jim Meyering  <meyering@redhat.com>
12542
12543         lib-ignore: relax license to LGPLv2+
12544         * modules/lib-ignore (License): Relax to LGPLv2+.
12545
12546 2010-02-22  Eric Blake  <eblake@redhat.com>
12547
12548         lseek: avoid bash 3.2 broken pipe bug
12549         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
12550         warning from bash 3.2.
12551         Reported by Ben Pfaff, with analysis from Bruno Haible.
12552
12553         bootstrap: support non-FSF copyright holder
12554         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
12555         bootstrap.conf override of COPYRIGHT_HOLDER.
12556         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
12557
12558         bootstrap: interoperate with gettext 0.14.1
12559         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
12560
12561         bootstrap: allow for alternate submodule location
12562         * build-aux/bootstrap (gnulib_path): New variable; use instead of
12563         hardcoding submodule location.
12564         (gnulib_mk): Allow direct use of Makefile.am.
12565
12566         bootstrap: use GNULIB_SRCDIR to reduce disk usage
12567         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
12568         rather than reconfiguring where the submodule points.
12569
12570         gettimeofday: restore support for platforms that lack function
12571         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
12572         replacement if function is missing.
12573         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
12574         * modules/sys_time (Makefile.am): Substitute it.
12575         * lib/sys_time.in.h (gettimeofday): Check it.
12576         Reported by Michael Goffioul.
12577
12578 2010-02-21  Bruno Haible  <bruno@clisp.org>
12579
12580         * lib/stdio.in.h (obstack_printf): Fix typo.
12581
12582 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
12583
12584         vc-list-files: use bzr ls's -R option
12585         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
12586         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
12587
12588 2010-02-21  Jim Meyering  <meyering@redhat.com>
12589
12590         init.sh: fix EXEEXT shims to work also for names like test-prog
12591         * tests/init.sh: Re-exec a better shell, when needed.
12592         If the current shell lacks support for posix $(...), an init.sh-using
12593         test will now try to find a shell that supports that.  If EXEEXT is
12594         nonempty, we also require support for hyphen-in-alias-name and shell
12595         substitutions like ${var#glob}.  Failure to find such a shell results
12596         in a skipped test.
12597
12598 2010-02-21  Bruno Haible  <bruno@clisp.org>
12599
12600         Really work around around "broken pipe" error message from bash 3.2.
12601         * gnulib-tool (func_reset_sigpipe): Remove function.
12602         (echo): In bash 3.2, define to a function that uses printf.
12603         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
12604
12605 2010-02-20  Bruno Haible  <bruno@clisp.org>
12606
12607         Restore support for automake 1.9.6 with autoconf 2.61.
12608         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
12609         Reported by James Youngman <jay@gnu.org>.
12610
12611 2010-02-20  Bruno Haible  <bruno@clisp.org>
12612
12613         Improve *printf warning condition.
12614         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
12615         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
12616         and the function is overridden due to SIGPIPE emulation.
12617
12618 2010-02-20  Bruno Haible  <bruno@clisp.org>
12619
12620         * lib/stdio.in.h: Tweak comments.
12621
12622 2010-02-19  Bruno Haible  <bruno@clisp.org>
12623
12624         Make it easier to find modules. New gnulib-tool option '--find'.
12625         * gnulib-tool: New option --find.
12626         (func_usage): Document it.
12627         (func_sanitize_modulelist): New function, extracted from
12628         func_all_modules.
12629         (func_all_modules): Invoke it.
12630         * doc/gnulib-tool.texi (Which modules?): New node.
12631
12632 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
12633
12634         * lib/sys_select.in.h: Provide select replacement even if
12635         sys/select.h exists on a system, for Interix.
12636
12637 2010-02-18  Jim Meyering  <meyering@redhat.com>
12638
12639         init.sh: don't use $(...) just yet
12640         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
12641         to accommodate e.g., Solaris' /bin/sh.
12642
12643 2010-02-17  Bruno Haible  <bruno@clisp.org>
12644
12645         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
12646         Reported by Ludovic Courtès <ludo@gnu.org>.
12647
12648 2010-02-16  Simon Josefsson  <simon@josefsson.org>
12649
12650         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
12651         linking with -lintl.
12652
12653 2010-02-17  Simon Josefsson  <simon@josefsson.org>
12654
12655         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
12656         if not provided by the system's netdb.h.  Reported by
12657         ludo@gnu.org (Ludovic Courtès).
12658
12659 2010-02-15  Jim Meyering  <meyering@redhat.com>
12660
12661         init.sh: improve portability and efficiency
12662         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
12663         "dummy" in a for loop.
12664         Use '!', not '^' to select the complement of a character set used
12665         in a "case" statement.
12666         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
12667         Suggestions from Eric Blake.
12668
12669         init.sh: automatically accommodate programs with the .exe suffix
12670         Automatically arrange for an invocation of "prog" to execute the
12671         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
12672         may use the simpler "prog", yet still work when built on a system
12673         that requires specifying the added suffix.
12674         Do this by constructing a function named "prog" that invokes
12675         "prog.exe" for each .exe file in selected directories.
12676         * tests/init.sh (find_exe_basenames_): New function.
12677         (create_exe_shim_functions_): New function.
12678         (path_prepend_): Use it.
12679
12680         maint.mk: mark syntax-check sc_*.m rules as .PHONY
12681         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
12682         "make -t syntax-check" doesn't create a ton of sc_*.m files.
12683
12684 2010-02-14  Jim Meyering  <meyering@redhat.com>
12685
12686         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
12687         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
12688         (sc_prohibit_hash_pjw_without_use): New rule.
12689
12690         maint.mk: allow the default upload destination dir to be overridden
12691         * top/maint.mk (upload_dest_dir_): Define with a default that
12692         preserves the status quo.
12693         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
12694         Reported by Peter Simons.
12695
12696         maint.mk: prohibit inclusion of "hash.h" without_use
12697         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
12698
12699 2010-02-10  Jim Meyering  <meyering@redhat.com>
12700
12701         maint.mk: prohibit inclusion of "ignore-value.h" without_use
12702         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
12703
12704 2010-02-09  Eric Blake  <ebb9@byu.net>
12705         and Bruno Haible  <bruno@clisp.org>
12706
12707         obstack-printf-posix: ensure declaration
12708         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
12709         extracted from gl_FUNC_OBSTACK_PRINTF.
12710         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
12711         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
12712         Likewise.
12713         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
12714         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
12715         0.
12716
12717 2010-02-08  Bruno Haible  <bruno@clisp.org>
12718
12719         gnulib-tool: Fix typo in 2010-02-07 commit.
12720         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
12721         Reported by Eric Blake.
12722
12723 2010-02-07  Bruno Haible  <bruno@clisp.org>
12724
12725         gnulib-tool: Fix up caching patches.
12726         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
12727         option --no-cache. Use associative arrays when supported by the shell.
12728         (sed_comments): New variable.
12729         (modcache): Renamed from do_cache.
12730         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
12731         abbreviate unnecessarily.
12732         (have_associative): New variable.
12733         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
12734         way also for ksh and zsh.
12735         (func_init_sed_convert_to_cache_statements): New function, extracted
12736         from func_cache_lookup_module. Add support for associative arrays.
12737         Don't set the c_MODULE_cached variable here. Ignore all lines before
12738         the first field header. Remove only the final newline, not all trailing
12739         newlines. Support empty fields correctly. Limit the use of 'eval' to
12740         assignments.
12741         (func_get_description, func_get_status, func_get_notice,
12742         func_get_applicability, func_get_filelist, func_get_dependencies,
12743         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
12744         func_get_automake_snippet, func_get_include_directive,
12745         func_get_link_directive, func_get_license, func_get_maintainer):
12746         Update documentation. List the unoptimized code first. Add support for
12747         associative arrays. Limit the use of 'eval' to assignments.
12748         (func_get_applicability): Undo stylistic pessimisations.
12749         (func_get_automake_snippet, func_get_include_directive): Reduce code
12750         duplication.
12751         (func_modules_transitive_closure, func_modules_add_dummy,
12752         func_modules_notice, func_modules_to_filelist, func_add_file,
12753         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
12754         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
12755         func_create_testdir, func_create_megatestdir): Update documentation.
12756
12757 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12758
12759         * gnulib-tool (func_cache_lookup_module): Store the module name
12760         belonging to the cache variable; error out if two different
12761         module names map to the same cache variable name.
12762
12763 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12764
12765         gnulib-tool: Make caching optional.
12766         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
12767         Update matching short versions of --no-changelog.
12768         (func_usage): Update.
12769         (sed_extract_cache_prog): Renamed from ...
12770         (sed_extract_prog): ... this; revert to old extraction script.
12771         (func_get_description, func_get_status)
12772         (func_get_notice, func_get_applicability, func_get_filelist)
12773         (func_get_dependencies, func_get_autoconf_early_snippet)
12774         (func_get_autoconf_snippet, func_get_automake_snippet)
12775         (func_get_include_directive, func_get_link_directive)
12776         (func_get_license, func_get_maintainer): If $do_cache is false,
12777         use old, non-caching extraction scripts.
12778         Suggestion by Bruno Haible.
12779
12780 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12781
12782         gnulib-tool: cache module metainformation.
12783         * gnulib-tool (sed_extract_prog): Match newline before each
12784         header, and rewrite header to a shell variable suffix.
12785         (func_cache_var, func_cache_lookup_module): New functions,
12786         to turn a module name into a cache variable prefix, and to
12787         look up and cache module metainformation.
12788         (func_get_description, func_get_status)
12789         (func_get_notice, func_get_applicability, func_get_filelist)
12790         (func_get_dependencies, func_get_autoconf_early_snippet)
12791         (func_get_autoconf_snippet, func_get_automake_snippet)
12792         (func_get_include_directive, func_get_link_directive)
12793         (func_get_license, func_get_maintainer): Use
12794         func_cache_lookup_module.
12795
12796 2010-02-07  Bruno Haible  <bruno@clisp.org>
12797
12798         fnctl: Fix missing dependency.
12799         * modules/fcntl (Depends-on): Add getdtablesize.
12800         Reported by John W. Eaton <jwe@gnu.org>.
12801
12802 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
12803
12804         Argp: fix recognition of short alias options.
12805
12806         * lib/argp-parse.c (convert_options): Fix improper use of
12807         `|' between character values.
12808         * tests/test-argp.c (group1_option): New alias option
12809         --read (-r).
12810         (group1_parser): Special handling for 'r'.
12811         (test15): New test case.
12812         (test_fun): Add test15.
12813         * tests/test-argp-2.sh: Update expected --help and --usage
12814         outputs.
12815
12816 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
12817
12818         * tests/test-argp.c: Fix indentation.
12819
12820 2010-02-04  Eric Blake  <ebb9@byu.net>
12821
12822         gettimeofday: expose type of second argument
12823         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
12824         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
12825         * tests/test-gettimeofday.c: Use it to silence warning.
12826         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
12827         the issue.
12828
12829 2010-02-03  Jim Meyering  <meyering@redhat.com>
12830
12831         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
12832         * lib/regcomp.c (TYPE_SIGNED): Define.
12833         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
12834
12835         regcomp.c: avoid a new -Wshadow warning
12836         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
12837
12838 2010-02-01  Jim Meyering  <meyering@redhat.com>
12839
12840         removing useless parentheses in cpp #define directives
12841         For motivation, see commit c0221df4, "define STREQ(a,b)
12842         consistently, removing useless parentheses"
12843         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
12844         * lib/mountlist.c (MNT_IGNORE): Likewise.
12845         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
12846
12847 2010-02-01  Eric Blake  <ebb9@byu.net>
12848
12849         sys_time: use link-warning
12850         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
12851         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
12852         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
12853         * modules/sys_time (Depends-on): Add warn-on-use.
12854         (Makefile.am): Always build replacement.
12855         (configure.ac): Update substitutions.
12856         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
12857         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
12858         bother with SYS_TIME_H.
12859         * modules/gettimeofday (configure.ac): Declare indicator.
12860         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
12861         in use.
12862
12863         closein-tests: silence compiler warning
12864         * tests/test-closein.c (main): Ignore fread result.
12865         * modules/closein-tests (Depends-on): Add ignore-value.
12866
12867         tests: silence warning about system return
12868         * tests/test-areadlink-with-size.c (main): Ignore system result.
12869         * tests/test-areadlink.c (main): Likewise.
12870         * tests/test-areadlinkat-with-size.c (main): Likewise.
12871         * tests/test-areadlinkat.c (main): Likewise.
12872         * tests/test-canonicalize-lgpl.c (main): Likewise.
12873         * tests/test-canonicalize.c (main): Likewise.
12874         * tests/test-chown.c (main): Likewise.
12875         * tests/test-fchownat.c (main): Likewise.
12876         * tests/test-fdutimensat.c (main): Likewise.
12877         * tests/test-fstatat.c (main): Likewise.
12878         * tests/test-futimens.c (main): Likewise.
12879         * tests/test-lchown.c (main): Likewise.
12880         * tests/test-link.c (main): Likewise.
12881         * tests/test-linkat.c (main): Likewise.
12882         * tests/test-lstat.c (main): Likewise.
12883         * tests/test-mkdir.c (main): Likewise.
12884         * tests/test-mkdirat.c (main): Likewise.
12885         * tests/test-mkfifo.c (main): Likewise.
12886         * tests/test-mkfifoat.c (main): Likewise.
12887         * tests/test-mknod.c (main): Likewise.
12888         * tests/test-readlink.c (main): Likewise.
12889         * tests/test-remove.c (main): Likewise.
12890         * tests/test-rename.c (main): Likewise.
12891         * tests/test-renameat.c (main): Likewise.
12892         * tests/test-rmdir.c (main): Likewise.
12893         * tests/test-symlink.c (main): Likewise.
12894         * tests/test-symlinkat.c (main): Likewise.
12895         * tests/test-unlink.c (main): Likewise.
12896         * tests/test-unlinkat.c (main): Likewise.
12897         * tests/test-utimens.c (main): Likewise.
12898         * tests/test-utimensat.c (main): Likewise.
12899         * modules/areadlink-tests (Depends-on): Add ignore-value.
12900         * modules/areadlink-with-size-tests (Depends-on): Likewise.
12901         * modules/areadlinkat-tests (Depends-on): Likewise.
12902         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
12903         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
12904         * modules/canonicalize-tests (Depends-on): Likewise.
12905         * modules/chown-tests (Depends-on): Likewise.
12906         * modules/fdutimensat-tests (Depends-on): Likewise.
12907         * modules/futimens-tests (Depends-on): Likewise.
12908         * modules/lchown-tests (Depends-on): Likewise.
12909         * modules/link-tests (Depends-on): Likewise.
12910         * modules/linkat-tests (Depends-on): Likewise.
12911         * modules/lstat-tests (Depends-on): Likewise.
12912         * modules/mkdir-tests (Depends-on): Likewise.
12913         * modules/mkfifo-tests (Depends-on): Likewise.
12914         * modules/mkfifoat-tests (Depends-on): Likewise.
12915         * modules/mknod-tests (Depends-on): Likewise.
12916         * modules/openat-tests (Depends-on): Likewise.
12917         * modules/readlink-tests (Depends-on): Likewise.
12918         * modules/remove-tests (Depends-on): Likewise.
12919         * modules/rename-tests (Depends-on): Likewise.
12920         * modules/renameat-tests (Depends-on): Likewise.
12921         * modules/rmdir-tests (Depends-on): Likewise.
12922         * modules/symlink-tests (Depends-on): Likewise.
12923         * modules/symlinkat-tests (Depends-on): Likewise.
12924         * modules/unlink-tests (Depends-on): Likewise.
12925         * modules/utimens-tests (Depends-on): Likewise.
12926         * modules/utimensat-tests (Depends-on): Likewise.
12927
12928 2010-01-31  Bruno Haible  <bruno@clisp.org>
12929
12930         Perform the same test for many <math.h> functions.
12931         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
12932         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
12933         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
12934         of gl_MATHFUNC.
12935         * modules/acos (configure.ac): Likewise.
12936         * modules/asin (configure.ac): Likewise.
12937         * modules/atan (configure.ac): Likewise.
12938         * modules/atan2 (configure.ac): Likewise.
12939         * modules/cbrt (configure.ac): Likewise.
12940         * modules/copysign (configure.ac): Likewise.
12941         * modules/cos (configure.ac): Likewise.
12942         * modules/cosh (configure.ac): Likewise.
12943         * modules/erf (configure.ac): Likewise.
12944         * modules/erfc (configure.ac): Likewise.
12945         * modules/exp (configure.ac): Likewise.
12946         * modules/fmod (configure.ac): Likewise.
12947         * modules/hypot (configure.ac): Likewise.
12948         * modules/j0 (configure.ac): Likewise.
12949         * modules/j1 (configure.ac): Likewise.
12950         * modules/jn (configure.ac): Likewise.
12951         * modules/lgamma (configure.ac): Likewise.
12952         * modules/log (configure.ac): Likewise.
12953         * modules/log10 (configure.ac): Likewise.
12954         * modules/log1p (configure.ac): Likewise.
12955         * modules/pow (configure.ac): Likewise.
12956         * modules/remainder (configure.ac): Likewise.
12957         * modules/sin (configure.ac): Likewise.
12958         * modules/sinh (configure.ac): Likewise.
12959         * modules/tan (configure.ac): Likewise.
12960         * modules/tanh (configure.ac): Likewise.
12961         * modules/y0 (configure.ac): Likewise.
12962         * modules/y1 (configure.ac): Likewise.
12963         * modules/yn (configure.ac): Likewise.
12964         Suggested by Paolo Bonzini.
12965
12966 2010-01-31  Bruno Haible  <bruno@clisp.org>
12967
12968         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
12969
12970 2010-01-31  Bruno Haible  <bruno@clisp.org>
12971
12972         Work around getdelim() bug on FreeBSD 8.0.
12973         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
12974         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
12975         not work.
12976         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
12977         is 1.
12978         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
12979         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
12980         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
12981         a non-zero size.
12982         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
12983
12984 2010-01-31  Bruno Haible  <bruno@clisp.org>
12985
12986         Work around getline() bug on FreeBSD 8.0.
12987         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
12988         and a non-zero size.
12989         * tests/test-getline.c (main): Likewise.
12990         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
12991         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
12992
12993 2010-01-28  Eric Blake  <ebb9@byu.net>
12994
12995         regex: fix build failure
12996         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
12997         platforms.
12998
12999 2010-01-28  Jim Meyering  <meyering@redhat.com>
13000
13001         regex: do not ignore memory allocation failure
13002         * lib/regex_internal.c (create_cd_newstate): Detect
13003         re_node_set_init_copy failure.   Extracted from glibc commit
13004         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
13005
13006         regex: sync more white-space changes from libc
13007         * lib/regex_internal.c: White-space only changes.
13008         * lib/regexec.c: Likewise.
13009
13010         regex: add many uses of __attribute_warn_unused_result__
13011         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
13012         * lib/regexec.c: Likewise.
13013         Extracted from a messy glibc commit.
13014
13015         regcomp.c: spelling and merge-artifact from glibc
13016         * lib/regcomp.c: Merge remainder of glibc's
13017         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
13018
13019         regcomp.c: sync white-space changes from glibc
13020         * lib/regcomp.c: Merge to accommodate white space
13021         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
13022
13023         regcomp.c: do not ignore internal return values
13024         * lib/regcomp.c: Do not ignore internal return values.
13025         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
13026         but without its white-space changes and spelling fixes.
13027
13028         regex_internal.h: define __attribute_warn_unused_result__
13029         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
13030
13031         maint: add a syntax-check rule to check for vulnerable Makefile.in
13032         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
13033
13034 2010-01-27  Jim Meyering  <meyering@redhat.com>
13035
13036         ncftpput-ftp: clean up spaces
13037         * build-aux/ncftpput-ftp: Make Copyright line consistent.
13038         Remove trailing blanks.
13039
13040 2010-01-27  Simon Josefsson  <simon@josefsson.org>
13041
13042         * build-aux/git-version-gen: Fix copyright statement.
13043         * build-aux/gnupload: Likewise.
13044         * tests/test-arcfour.c: Likewise.
13045         * tests/test-arctwo.c: Likewise.
13046         * tests/test-count-one-bits.c: Likewise.
13047         * tests/test-crc.c: Likewise.
13048         * tests/test-des.c: Likewise.
13049         * tests/test-gc-arcfour.c: Likewise.
13050         * tests/test-gc-arctwo.c: Likewise.
13051         * tests/test-gc-des.c: Likewise.
13052         * tests/test-gc-hmac-md5.c: Likewise.
13053         * tests/test-gc-hmac-sha1.c: Likewise.
13054         * tests/test-gc-md2.c: Likewise.
13055         * tests/test-gc-md4.c: Likewise.
13056         * tests/test-gc-md5.c: Likewise.
13057         * tests/test-gc-pbkdf2-sha1.c: Likewise.
13058         * tests/test-gc-rijndael.c: Likewise.
13059         * tests/test-gc-sha1.c: Likewise.
13060         * tests/test-gc.c: Likewise.
13061         * tests/test-gethostname.c: Likewise.
13062         * tests/test-gettimeofday.c: Likewise.
13063         * tests/test-hash.c: Likewise.
13064         * tests/test-hmac-md5.c: Likewise.
13065         * tests/test-hmac-sha1.c: Likewise.
13066         * tests/test-md2.c: Likewise.
13067         * tests/test-md4.c: Likewise.
13068         * tests/test-md5.c: Likewise.
13069         * tests/test-memchr.c: Likewise.
13070         * tests/test-memchr2.c: Likewise.
13071         * tests/test-memcmp.c: Likewise.
13072         * tests/test-memmem.c: Likewise.
13073         * tests/test-memrchr.c: Likewise.
13074         * tests/test-rawmemchr.c: Likewise.
13075         * tests/test-read-file.c: Likewise.
13076         * tests/test-rijndael.c: Likewise.
13077         * tests/test-sockets.c: Likewise.
13078         * tests/test-strchrnul.c: Likewise.
13079         * tests/test-strstr.c: Likewise.
13080         * tests/test-strtod.c: Likewise.
13081         * build-aux/ncftpput-ftp: Likewise.
13082
13083 2010-01-26  Eric Blake  <ebb9@byu.net>
13084
13085         ignore-value: update recommended header name
13086         * modules/ignore-value (Include): Only use <> for headers that
13087         exist in glibc.
13088
13089 2010-01-26  Jim Meyering  <meyering@redhat.com>
13090
13091         test-userspec.c: avoid compiler warnings
13092         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
13093         and "initialization discards qualifiers..." warnings.
13094         Put the first "uid" in its own scope, and make char* members "const".
13095
13096 2010-01-25  Bruno Haible  <bruno@clisp.org>
13097
13098         gnulib-tool: Make warning diagnostics consistent.
13099         * gnulib-tool (func_warning): New function.
13100         Use it everywhere where gnulib-tool produces output to stderr and it is
13101         not a fatal error.
13102
13103 2010-01-25  Bruno Haible  <bruno@clisp.org>
13104
13105         Fix test dependencies.
13106         * modules/xstrtol-tests (Depends-on): Add inttypes.
13107         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
13108
13109 2010-01-25 Pádraig Brady <P@draigBrady.com>
13110
13111         syntax-check: detect incorrect boolean macro values in config.h
13112         * modules/maintainer-makefile (configure.ac): Parameterize the location
13113         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
13114         The logic is from Eric Blake and the location indicated by Jim Meyering.
13115         Note the more natural CONFIG_HEADER name is prohibited by automake
13116         for backwards compatibility reasons.
13117         * top/maint.mk (sc_Wundef_boolean): New rule.
13118
13119 2010-01-25  Jim Meyering  <meyering@redhat.com>
13120
13121         bootstrap: detect MacOS 10.6's shasum, too
13122         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
13123         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
13124
13125 2010-01-23  Jim Meyering  <meyering@redhat.com>
13126
13127         xstrtoll: new module
13128         * modules/xstrtoll: New file.
13129         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
13130         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
13131         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
13132         ./configure fails if you use this module and lack "long long".
13133         * modules/xstrtoll-tests: New module.
13134         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
13135         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
13136         new init.sh-based test framework.
13137
13138 2010-01-24  Bruno Haible  <bruno@clisp.org>
13139
13140         Tests for module 'yn'.
13141         * modules/yn-tests: New file.
13142         * tests/test-yn.c: New file.
13143
13144         Tests for module 'y1'.
13145         * modules/y1-tests: New file.
13146         * tests/test-y1.c: New file.
13147
13148         Tests for module 'y0'.
13149         * modules/y0-tests: New file.
13150         * tests/test-y0.c: New file.
13151
13152         Tests for module 'tanh'.
13153         * modules/tanh-tests: New file.
13154         * tests/test-tanh.c: New file.
13155
13156         Tests for module 'tan'.
13157         * modules/tan-tests: New file.
13158         * tests/test-tan.c: New file.
13159
13160         Tests for module 'sqrt'.
13161         * modules/sqrt-tests: New file.
13162         * tests/test-sqrt.c: New file.
13163
13164         Tests for module 'sinh'.
13165         * modules/sinh-tests: New file.
13166         * tests/test-sinh.c: New file.
13167
13168         Tests for module 'sin'.
13169         * modules/sin-tests: New file.
13170         * tests/test-sin.c: New file.
13171
13172         Tests for module 'rint'.
13173         * modules/rint-tests: New file.
13174         * tests/test-rint.c: New file.
13175
13176         Tests for module 'remainder'.
13177         * modules/remainder-tests: New file.
13178         * tests/test-remainder.c: New file.
13179
13180         Tests for module 'pow'.
13181         * modules/pow-tests: New file.
13182         * tests/test-pow.c: New file.
13183
13184         Tests for module 'nextafter'.
13185         * modules/nextafter-tests: New file.
13186         * tests/test-nextafter.c: New file.
13187
13188         Tests for module 'modf'.
13189         * modules/modf-tests: New file.
13190         * tests/test-modf.c: New file.
13191
13192         Tests for module 'logb'.
13193         * modules/logb-tests: New file.
13194         * tests/test-logb.c: New file.
13195
13196         Tests for module 'log1p'.
13197         * modules/log1p-tests: New file.
13198         * tests/test-log1p.c: New file.
13199
13200         Tests for module 'log10'.
13201         * modules/log10-tests: New file.
13202         * tests/test-log10.c: New file.
13203
13204         Tests for module 'log'.
13205         * modules/log-tests: New file.
13206         * tests/test-log.c: New file.
13207
13208         Tests for module 'lgamma'.
13209         * modules/lgamma-tests: New file.
13210         * tests/test-lgamma.c: New file.
13211
13212         Tests for module 'ldexp'.
13213         * modules/ldexp-tests: New file.
13214         * tests/test-ldexp.c: New file.
13215
13216         Tests for module 'jn'.
13217         * modules/jn-tests: New file.
13218         * tests/test-jn.c: New file.
13219
13220         Tests for module 'j1'.
13221         * modules/j1-tests: New file.
13222         * tests/test-j1.c: New file.
13223
13224         Tests for module 'j0'.
13225         * modules/j0-tests: New file.
13226         * tests/test-j0.c: New file.
13227
13228         Tests for module 'hypot'.
13229         * modules/hypot-tests: New file.
13230         * tests/test-hypot.c: New file.
13231
13232         Tests for module 'fmod'.
13233         * modules/fmod-tests: New file.
13234         * tests/test-fmod.c: New file.
13235
13236         Tests for module 'fabs'.
13237         * modules/fabs-tests: New file.
13238         * tests/test-fabs.c: New file.
13239
13240         Tests for module 'exp'.
13241         * modules/exp-tests: New file.
13242         * tests/test-exp.c: New file.
13243
13244         Tests for module 'erfc'.
13245         * modules/erfc-tests: New file.
13246         * tests/test-erfc.c: New file.
13247
13248         Tests for module 'erf'.
13249         * modules/erf-tests: New file.
13250         * tests/test-erf.c: New file.
13251
13252         Tests for module 'cosh'.
13253         * modules/cosh-tests: New file.
13254         * tests/test-cosh.c: New file.
13255
13256         Tests for module 'cos'.
13257         * modules/cos-tests: New file.
13258         * tests/test-cos.c: New file.
13259
13260         Tests for module 'copysign'.
13261         * modules/copysign-tests: New file.
13262         * tests/test-copysign.c: New file.
13263
13264         Tests for module 'cbrt'.
13265         * modules/cbrt-tests: New file.
13266         * tests/test-cbrt.c: New file.
13267
13268         Tests for module 'atan2'.
13269         * modules/atan2-tests: New file.
13270         * tests/test-atan2.c: New file.
13271
13272         Tests for module 'atan'.
13273         * modules/atan-tests: New file.
13274         * tests/test-atan.c: New file.
13275
13276         Tests for module 'asin'.
13277         * modules/asin-tests: New file.
13278         * tests/test-asin.c: New file.
13279
13280         Tests for module 'acos'.
13281         * modules/acos-tests: New file.
13282         * tests/test-acos.c: New file.
13283
13284 2010-01-24  Bruno Haible  <bruno@clisp.org>
13285
13286         Fix tests for common <math.h> functions.
13287         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
13288         code snippet that references the function pointer, rather than merely
13289         calling the function. Substitute the FUNC_LIBM variable.
13290         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
13291         * modules/acos (configure.ac): Likewise.
13292         * modules/asin (configure.ac): Likewise.
13293         * modules/atan (configure.ac): Likewise.
13294         * modules/atan2 (configure.ac): Likewise.
13295         * modules/cbrt (configure.ac): Likewise.
13296         * modules/copysign (configure.ac): Likewise.
13297         * modules/cos (configure.ac): Likewise.
13298         * modules/cosh (configure.ac): Likewise.
13299         * modules/erf (configure.ac): Likewise.
13300         * modules/erfc (configure.ac): Likewise.
13301         * modules/exp (configure.ac): Likewise.
13302         * modules/fabs (configure.ac): Likewise.
13303         * modules/fmod (configure.ac): Likewise.
13304         * modules/hypot (configure.ac): Likewise.
13305         * modules/j0 (configure.ac): Likewise.
13306         * modules/j1 (configure.ac): Likewise.
13307         * modules/jn (configure.ac): Likewise.
13308         * modules/ldexp (configure.ac): Likewise.
13309         * modules/lgamma (configure.ac): Likewise.
13310         * modules/log (configure.ac): Likewise.
13311         * modules/log10 (configure.ac): Likewise.
13312         * modules/log1p (configure.ac): Likewise.
13313         * modules/logb (configure.ac): Likewise.
13314         * modules/modf (configure.ac): Likewise.
13315         * modules/nextafter (configure.ac): Likewise.
13316         * modules/pow (configure.ac): Likewise.
13317         * modules/remainder (configure.ac): Likewise.
13318         * modules/rint (configure.ac): Likewise.
13319         * modules/sin (configure.ac): Likewise.
13320         * modules/sinh (configure.ac): Likewise.
13321         * modules/tan (configure.ac): Likewise.
13322         * modules/tanh (configure.ac): Likewise.
13323         * modules/y0 (configure.ac): Likewise.
13324         * modules/y1 (configure.ac): Likewise.
13325         * modules/yn (configure.ac): Likewise.
13326
13327 2010-01-24  Bruno Haible  <bruno@clisp.org>
13328
13329         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
13330         * tests/test-acosl.c (x): New variable.
13331         (main): Store argument in x and fetch it from x.
13332         * tests/test-asinl.c (x): New variable.
13333         (main): Store argument in x and fetch it from x.
13334         * tests/test-atanl.c (x): New variable.
13335         (main): Store argument in x and fetch it from x.
13336         * tests/test-cosl.c (x): New variable.
13337         (main): Store argument in x and fetch it from x.
13338         * tests/test-expl.c (x): New variable.
13339         (main): Store argument in x and fetch it from x.
13340         * tests/test-logl.c (x): New variable.
13341         (main): Store argument in x and fetch it from x.
13342         * tests/test-sinl.c (x): New variable.
13343         (main): Store argument in x and fetch it from x.
13344         * tests/test-sqrtl.c (x): New variable.
13345         (main): Store argument in x and fetch it from x.
13346         * tests/test-tanl.c (x): New variable.
13347         (main): Store argument in x and fetch it from x.
13348
13349 2010-01-24  Bruno Haible  <bruno@clisp.org>
13350
13351         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
13352         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
13353         assignments to the initial TESTS_ENVIRONMENT.
13354         * doc/gnulib.texi (Unit test modules): Document it.
13355         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
13356         TESTS_ENVIRONMENT.
13357         * modules/btowc-tests (Makefile.am): Likewise.
13358         * modules/c-stack-tests (Makefile.am): Likewise.
13359         * modules/c-strcase-tests (Makefile.am): Likewise.
13360         * modules/copy-file-tests (Makefile.am): Likewise.
13361         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
13362         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
13363         * modules/mbrtowc-tests (Makefile.am): Likewise.
13364         * modules/mbscasecmp-tests (Makefile.am): Likewise.
13365         * modules/mbscasestr-tests (Makefile.am): Likewise.
13366         * modules/mbschr-tests (Makefile.am): Likewise.
13367         * modules/mbscspn-tests (Makefile.am): Likewise.
13368         * modules/mbsinit-tests (Makefile.am): Likewise.
13369         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
13370         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
13371         * modules/mbspbrk-tests (Makefile.am): Likewise.
13372         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
13373         * modules/mbsrchr-tests (Makefile.am): Likewise.
13374         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
13375         * modules/mbsspn-tests (Makefile.am): Likewise.
13376         * modules/mbsstr-tests (Makefile.am): Likewise.
13377         * modules/nl_langinfo-tests (Makefile.am): Likewise.
13378         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
13379         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
13380         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
13381         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
13382         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
13383         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
13384         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
13385         * modules/wcrtomb-tests (Makefile.am): Likewise.
13386         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
13387         * modules/wcsrtombs-tests (Makefile.am): Likewise.
13388         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
13389         assignments from TESTS_ENVIRONMENT.
13390         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
13391         augmentation.
13392         * modules/argp-version-etc-tests (Makefile.am): Likewise.
13393         * modules/atexit-tests (Makefile.am): Likewise.
13394         * modules/binary-io-tests (Makefile.am): Likewise.
13395         * modules/closein-tests (Makefile.am): Likewise.
13396         * modules/dprintf-posix-tests (Makefile.am): Likewise.
13397         * modules/exclude-tests (Makefile.am): Likewise.
13398         * modules/fflush-tests (Makefile.am): Likewise.
13399         * modules/fpending-tests (Makefile.am): Likewise.
13400         * modules/fprintf-posix-tests (Makefile.am): Likewise.
13401         * modules/freadahead-tests (Makefile.am): Likewise.
13402         * modules/freadptr-tests (Makefile.am): Likewise.
13403         * modules/freadseek-tests (Makefile.am): Likewise.
13404         * modules/fseek-tests (Makefile.am): Likewise.
13405         * modules/fseeko-tests (Makefile.am): Likewise.
13406         * modules/ftell-tests (Makefile.am): Likewise.
13407         * modules/ftello-tests (Makefile.am): Likewise.
13408         * modules/idpriv-drop-tests (Makefile.am): Likewise.
13409         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
13410         * modules/lseek-tests (Makefile.am): Likewise.
13411         * modules/parse-duration-tests (Makefile.am): Likewise.
13412         * modules/perror-tests (Makefile.am): Likewise.
13413         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
13414         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
13415         * modules/pipe-tests (Makefile.am): Likewise.
13416         * modules/pread-tests (Makefile.am): Likewise.
13417         * modules/printf-posix-tests (Makefile.am): Likewise.
13418         * modules/select-tests (Makefile.am): Likewise.
13419         * modules/sigpipe-tests (Makefile.am): Likewise.
13420         * modules/tsearch-tests (Makefile.am): Likewise.
13421         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
13422         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
13423         * modules/uniname/uniname-tests (Makefile.am): Likewise.
13424         * modules/uniwidth/width-tests (Makefile.am): Likewise.
13425         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
13426         * modules/version-etc-tests (Makefile.am): Likewise.
13427         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
13428         * modules/vprintf-posix-tests (Makefile.am): Likewise.
13429         * modules/xalloc-die-tests (Makefile.am): Likewise.
13430         * modules/xprintf-posix-tests (Makefile.am): Likewise.
13431         * modules/xstrtoimax-tests (Makefile.am): Likewise.
13432         * modules/xstrtol-tests (Makefile.am): Likewise.
13433         * modules/xstrtoumax-tests (Makefile.am): Likewise.
13434         * modules/yesno-tests (Makefile.am): Likewise.
13435         Suggested by Jim Meyering.
13436
13437 2010-01-24  Bruno Haible  <bruno@clisp.org>
13438
13439         More documentation.
13440         * doc/gnulib.texi (Writing modules): New chapter.
13441         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
13442         the new chapter.
13443
13444 2010-01-24  Jim Meyering  <meyering@redhat.com>
13445
13446         maint.mk: do not prepend "./" after filtering
13447         * top/maint.mk (_prepend_srcdir_prefix): New variable
13448         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
13449         "./" when $(srcdir) is ".".
13450
13451         define STREQ(a,b) consistently, removing useless parentheses
13452         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
13453         since the only risk is that "a" or "b" contains an unparenthesized
13454         comma, but if either did that, STREQ would have 3 or more arguments.
13455         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
13456         * lib/fts.c (STREQ): Remove unnecessary parentheses.
13457         * lib/hash-triple.c (STREQ): Likewise.
13458         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
13459         * lib/getugroups.c (STREQ): Likewise.
13460
13461 2010-01-23  Jim Meyering  <meyering@redhat.com>
13462
13463         maint.mk: fix syntax-check in a non-srcdir build directory
13464         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
13465         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
13466
13467 2010-01-22  Jim Meyering  <meyering@redhat.com>
13468
13469         userspec: add unit tests
13470         * tests/test-userspec.c: New file.
13471         * modules/userspec-tests: Likewise.
13472
13473 2010-01-21  Jim Meyering  <meyering@redhat.com>
13474
13475         maint.mk: handle source file names containing "." robustly
13476         * top/maint.mk (_dot_escaped_srcdir): Define.
13477         (VC_LIST): Use it in LHS of sed substitution.
13478
13479 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
13480
13481         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
13482         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
13483         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
13484         from a non-srcdir build.
13485
13486 2010-01-20  Eric Blake  <ebb9@byu.net>
13487
13488         warn-on-use: use instead of link-warning
13489         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
13490         * modules/unistd (Depends-on, Makefile.am): Likewise.
13491         * modules/arpa_inet (Depends-on): Replace link-warning with
13492         warn-on-use.
13493         (Makefile.am): Update rules accordingly.
13494         * modules/ctype (Depends-on, Makefile.am): Likewise.
13495         * modules/dirent (Depends-on, Makefile.am): Likewise.
13496         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
13497         * modules/inttypes (Depends-on, Makefile.am): Likewise.
13498         * modules/langinfo (Depends-on, Makefile.am): Likewise.
13499         * modules/locale (Depends-on, Makefile.am): Likewise.
13500         * modules/math (Depends-on, Makefile.am): Likewise.
13501         * modules/search (Depends-on, Makefile.am): Likewise.
13502         * modules/signal (Depends-on, Makefile.am): Likewise.
13503         * modules/spawn (Depends-on, Makefile.am): Likewise.
13504         * modules/stdlib (Depends-on, Makefile.am): Likewise.
13505         * modules/string (Depends-on, Makefile.am): Likewise.
13506         * modules/strings (Depends-on, Makefile.am): Likewise.
13507         * modules/sys_file (Depends-on, Makefile.am): Likewise.
13508         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
13509         * modules/sys_select (Depends-on, Makefile.am): Likewise.
13510         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
13511         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
13512         * modules/sys_times (Depends-on, Makefile.am): Likewise.
13513         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
13514         * modules/wchar (Depends-on, Makefile.am): Likewise.
13515         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
13516         should be poisoned.
13517         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
13518         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
13519         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
13520         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
13521         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
13522         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
13523         * m4/math_h.m4 (gl_MATH_H): Likewise.
13524         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
13525         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
13526         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13527         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
13528         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
13529         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
13530         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
13531         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
13532         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
13533         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13534         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
13535         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
13536         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13537         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13538         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13539         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
13540         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
13541         GL_LINK_WARNING.
13542         * lib/ctype.in.h: Likewise.
13543         * lib/dirent.in.h: Likewise.
13544         * lib/fcntl.in.h: Likewise.
13545         * lib/inttypes.in.h: Likewise.
13546         * lib/langinfo.in.h: Likewise.
13547         * lib/locale.in.h: Likewise.
13548         * lib/math.in.h: Likewise.
13549         * lib/search.in.h: Likewise.
13550         * lib/signal.in.h: Likewise.
13551         * lib/spawn.in.h: Likewise.
13552         * lib/stdio.in.h: Likewise.
13553         * lib/stdlib.in.h: Likewise.
13554         * lib/string.in.h: Likewise.
13555         * lib/strings.in.h: Likewise.
13556         * lib/sys_file.in.h: Likewise.
13557         * lib/sys_ioctl.in.h: Likewise.
13558         * lib/sys_select.in.h: Likewise.
13559         * lib/sys_socket.in.h: Likewise.
13560         * lib/sys_stat.in.h: Likewise.
13561         * lib/sys_times.in.h: Likewise.
13562         * lib/sys_utsname.in.h: Likewise.
13563         * lib/unistd.in.h: Likewise.
13564         * lib/wchar.in.h: Likewise.
13565
13566 2010-01-20  Bruno Haible  <bruno@clisp.org>
13567
13568         Avoid duplicate -lm.
13569         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
13570         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
13571         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
13572         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
13573         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
13574         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
13575         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
13576         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
13577         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
13578         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
13579         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
13580         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13581         Reported by Paolo Bonzini.
13582
13583 2010-01-19  Bruno Haible  <bruno@clisp.org>
13584
13585         langinfo, nl_langinfo: Relicense under LGPLv2+.
13586         * modules/langinfo (License): Change to LGPLv2+.
13587         * modules/nl_langinfo (License): Likewise.
13588         Patch by David Lutterkort <lutter@redhat.com>.
13589
13590 2010-01-19  Bruno Haible  <bruno@clisp.org>
13591
13592         Avoid compilation error with cc on OSF/1 5.1.
13593         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
13594         statement, not before.
13595         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13596
13597 2010-01-18  Bruno Haible  <bruno@clisp.org>
13598
13599         Avoid a link error due to the __printf__ symbol.
13600         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
13601         and 2.6.x.
13602         (__format__, __printf__): Remove definitions.
13603         * lib/argp-fmtstream.h: Likewise.
13604         * lib/argp.h: Likewise.
13605         * lib/error.h: Likewise.
13606         * lib/vasnprintf.h: Likewise.
13607         * lib/xprintf.h: Likewise.
13608         * lib/xvasprintf.h: Likewise.
13609         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13610
13611 2010-01-18  Bruno Haible  <bruno@clisp.org>
13612
13613         Tests for module 'tanl'.
13614         * modules/tanl-tests: New file.
13615         * tests/test-tanl.c: New file.
13616
13617         Tests for module 'sqrtl'.
13618         * modules/sqrtl-tests: New file.
13619         * tests/test-sqrtl.c: New file.
13620
13621         Tests for module 'sinl'.
13622         * modules/sinl-tests: New file.
13623         * tests/test-sinl.c: New file.
13624
13625         Tests for module 'logl'.
13626         * modules/logl-tests: New file.
13627         * tests/test-logl.c: New file.
13628
13629         Tests for module 'expl'.
13630         * modules/expl-tests: New file.
13631         * tests/test-expl.c: New file.
13632
13633         Tests for module 'cosl'.
13634         * modules/cosl-tests: New file.
13635         * tests/test-cosl.c: New file.
13636
13637         Tests for module 'atanl'.
13638         * modules/atanl-tests: New file.
13639         * tests/test-atanl.c: New file.
13640
13641         Tests for module 'asinl'.
13642         * modules/asinl-tests: New file.
13643         * tests/test-asinl.c: New file.
13644
13645         Tests for module 'acosl'.
13646         * modules/acosl-tests: New file.
13647         * tests/test-acosl.c: New file.
13648
13649         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
13650         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
13651         tanl): Use the standard gnulib idiom.
13652         * lib/cosl.c: Don't include trigl.c and sincosl.c.
13653         * lib/sinl.c: Likewise.
13654         * lib/tanl.c: Don't include trigl.c.
13655         (kernel_tanl): Make static.
13656         * lib/sincosl.c: Include trigl.h first.
13657         * lib/trigl.c: Likewise.
13658         * m4/acosl.m4: New file.
13659         * m4/asinl.m4: New file.
13660         * m4/atanl.m4: New file.
13661         * m4/cosl.m4: New file.
13662         * m4/expl.m4: New file.
13663         * m4/logl.m4: New file.
13664         * m4/sinl.m4: New file.
13665         * m4/sqrtl.m4: New file.
13666         * m4/tanl.m4: New file.
13667         * m4/mathl.m4: Remove file.
13668         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
13669         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
13670         Don't initialize GNULIB_MATHL.
13671         * modules/acosl: New file.
13672         * modules/asinl: New file.
13673         * modules/atanl: New file.
13674         * modules/cosl: New file.
13675         * modules/expl: New file.
13676         * modules/logl: New file.
13677         * modules/sinl: New file.
13678         * modules/sqrtl: New file.
13679         * modules/tanl: New file.
13680         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
13681         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
13682         substitute GNULIB_MATHL.
13683         * modules/mathl: Rewritten.
13684         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
13685         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
13686         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
13687         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
13688         * doc/posix-functions/expl.texi: Mention the 'expl' module.
13689         * doc/posix-functions/logl.texi: Mention the 'logl' module.
13690         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
13691         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
13692         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
13693
13694 2010-01-18  Bruno Haible  <bruno@clisp.org>
13695
13696         sqrt: Make gl_FUNC_SQRT requirable.
13697         * m4/sqrt.m4: New file.
13698         * modules/sqrt (Files): Add it.
13699         (configure.ac): Invoke gl_FUNC_SQRT.
13700
13701 2010-01-18  Bruno Haible  <bruno@clisp.org>
13702
13703         New modules for common <math.h> functions.
13704         * m4/mathfunc.m4: New file.
13705         * modules/acos: New file.
13706         * modules/asin: New file.
13707         * modules/atan: New file.
13708         * modules/atan2: New file.
13709         * modules/cbrt: New file.
13710         * modules/copysign: New file.
13711         * modules/cos: New file.
13712         * modules/cosh: New file.
13713         * modules/erf: New file.
13714         * modules/erfc: New file.
13715         * modules/exp: New file.
13716         * modules/fabs: New file.
13717         * modules/fmod: New file.
13718         * modules/hypot: New file.
13719         * modules/j0: New file.
13720         * modules/j1: New file.
13721         * modules/jn: New file.
13722         * modules/ldexp: New file.
13723         * modules/lgamma: New file.
13724         * modules/log: New file.
13725         * modules/log10: New file.
13726         * modules/log1p: New file.
13727         * modules/logb: New file.
13728         * modules/modf: New file.
13729         * modules/nextafter: New file.
13730         * modules/pow: New file.
13731         * modules/remainder: New file.
13732         * modules/rint: New file.
13733         * modules/sin: New file.
13734         * modules/sinh: New file.
13735         * modules/sqrt: New file.
13736         * modules/tan: New file.
13737         * modules/tanh: New file.
13738         * modules/y0: New file.
13739         * modules/y1: New file.
13740         * modules/yn: New file.
13741         * doc/posix-functions/acos.texi: Mention the 'acos' module.
13742         * doc/posix-functions/asin.texi: Mention the 'asin' module.
13743         * doc/posix-functions/atan.texi: Mention the 'atan' module.
13744         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
13745         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
13746         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
13747         * doc/posix-functions/cos.texi: Mention the 'cos' module.
13748         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
13749         * doc/posix-functions/erf.texi: Mention the 'erf' module.
13750         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
13751         * doc/posix-functions/exp.texi: Mention the 'exp' module.
13752         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
13753         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
13754         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
13755         * doc/posix-functions/j0.texi: Mention the 'j0' module.
13756         * doc/posix-functions/j1.texi: Mention the 'j1' module.
13757         * doc/posix-functions/jn.texi: Mention the 'jn' module.
13758         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
13759         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
13760         * doc/posix-functions/log.texi: Mention the 'log' module.
13761         * doc/posix-functions/log10.texi: Mention the 'log10' module.
13762         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
13763         * doc/posix-functions/logb.texi: Mention the 'logb' module.
13764         * doc/posix-functions/modf.texi: Mention the 'modf' module.
13765         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
13766         * doc/posix-functions/pow.texi: Mention the 'pow' module.
13767         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
13768         * doc/posix-functions/rint.texi: Mention the 'rint' module.
13769         * doc/posix-functions/sin.texi: Mention the 'sin' module.
13770         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
13771         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
13772         * doc/posix-functions/tan.texi: Mention the 'tan' module.
13773         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
13774         * doc/posix-functions/y0.texi: Mention the 'y0' module.
13775         * doc/posix-functions/y1.texi: Mention the 'y1' module.
13776         * doc/posix-functions/yn.texi: Mention the 'yn' module.
13777
13778 2010-01-18  Jim Meyering  <meyering@redhat.com>
13779
13780         ignore-value: relax license to LGPLv2+
13781         * modules/ignore-value (License): Relax to LGPLv2+.
13782
13783         getdate: don't leak when TZ contains two or more '"'s
13784         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
13785         double quote in TZ after the first one.
13786
13787         readtokens: do not leak internal token_lengths buffer
13788         * lib/readtokens.c (readtokens): Free the local, lengths,
13789         when the supplied "token_lengths" parameter is NULL.
13790
13791 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13792
13793         Fix a couple of missing LIBTHREAD link failures on AIX.
13794         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
13795         $(LIBTHREAD).
13796         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
13797
13798         Link test-poll against INET_PTON_LIB.
13799         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
13800         for inet_pton on Solaris 10.
13801
13802 2010-01-17  Bruno Haible  <bruno@clisp.org>
13803
13804         unistdio/*-sprintf: Fix typo in module description.
13805         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
13806         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
13807         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
13808         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
13809         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
13810         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
13811         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
13812         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13813
13814 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13815
13816         gnulib-tool: fix filelist for AIX, HP-UX ksh.
13817         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
13818         variables in shell case patterns, for AIX and HP-UX ksh.
13819
13820         Split large sed scripts, for HP-UX sed.
13821         * modules/stdio: Split sed scripts around 50 sed commands,
13822         to avoid HP-UX limit of 99 commands, in the near future.
13823         * modules/string: Likewise.
13824         * modules/unistd: Likewise.
13825
13826         gnulib-tool: avoid writing in the current directory.
13827         * gnulib-tool (func_emit_lib_Makefile_am)
13828         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
13829         not in the current directory, so concurrent gnulib-tool
13830         instances do not interfere.
13831
13832 2010-01-16  Jim Meyering  <meyering@redhat.com>
13833
13834         doc: update users.txt
13835         * users.txt: Add grep.
13836         (diffutils, gzip): Update URLs.
13837
13838 2010-01-12  Bruno Haible  <bruno@clisp.org>
13839
13840         posix_spawn: Avoid test failure on Cygwin.
13841         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
13842         characters.
13843         Reported by Simon Josefsson.
13844
13845 2010-01-12  Bruno Haible  <bruno@clisp.org>
13846
13847         * tests/test-cond.c (main): When skipping the test, show the reason.
13848
13849 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13850
13851         * lib/striconv.c (str_cd_iconv): Avoid if before free.
13852
13853 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13854
13855         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
13856         VC_LIST_ALWAYS_EXCLUDE_REGEX.
13857
13858 2010-01-12  Eric Blake  <ebb9@byu.net>
13859
13860         build: guarantee AS_VAR_IF
13861         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
13862         (gl_AS_VAR_IF): Move...
13863         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
13864         Reported by Simon Josefsson.
13865
13866 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13867
13868         * lib/stdio.in.h: Fix typo.
13869
13870 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13871
13872         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
13873         libgpg-error.
13874
13875 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13876
13877         * tests/test-xalloc-die.sh: Use $EXEEXT.
13878
13879 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13880             Bruno Haible  <bruno@clisp.org>
13881
13882         getlogin, getlogin_r: Avoid test failure.
13883         * tests/test-getlogin.c: Include <stdio.h>.
13884         (main): Skip the test when the function fails because stdin is not a
13885         tty.
13886         * tests/test-getlogin_r.c: Include <stdio.h>.
13887         (main): Skip the test when the function fails because stdin is not a
13888         tty.
13889
13890 2010-01-11  Eric Blake  <ebb9@byu.net>
13891
13892         tests: avoid more large file warnings
13893         * tests/test-fflush.c: Avoid warning about ftell use.
13894         * tests/test-fseek.c: Avoid warning about fseek use.
13895
13896 2010-01-10  Bruno Haible  <bruno@clisp.org>
13897
13898         nproc: Work better on Linux when /proc and /sys are not mounted.
13899         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
13900         as lower bound when, on glibc/Linux systems,
13901         sysconf (_SC_NPROCESSORS_CONF) returns 1.
13902         Suggested by Pádraig Brady <P@draigbrady.com>.
13903         Reported by Dmitry V. Levin <ldv@altlinux.org>.
13904
13905         nproc: Refactor.
13906         * lib/nproc.c (num_processors_via_affinity_mask): New function,
13907         extracted from num_processors.
13908         (num_processors): Call it.
13909
13910 2010-01-11  Jim Meyering  <meyering@redhat.com>
13911
13912         utimecmp: avoid new warning from upcoming gcc-4.5.0
13913         * lib/utimecmp.c (BILLION): Define using #define rather than an
13914         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
13915
13916 2010-01-11  Eric Blake  <ebb9@byu.net>
13917
13918         math: add portability warnings for classification macros
13919         * modules/math (Depends-on): Add warn-on-use.
13920         (Makefile.am): Provide new substitutions.
13921         * m4/math_h.m4 (gl_MATH_H): Require inline.
13922         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
13923         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
13924         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
13925         implement warnings.
13926
13927         unistd: warn on use of environ without module
13928         * modules/unistd (Depends-on): Add warn-on-use.
13929         (Makefile.am): Provide new substitutions.
13930         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
13931         * lib/unistd.in.h (environ): Wrap with a warning helper function.
13932
13933         stdio: warn on suspicious uses
13934         * modules/stdio (Depends-on): Add warn-on-use.
13935         (Makefile.am): Provide new substitutions.
13936         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
13937         fseeko.
13938         * lib/stdio.in.h (gets): Always warn on use.
13939         (fseek, ftell): Adjust when warnings are issued, and honor
13940         _GL_NO_LARGE_FILES as a way to silence the warning.
13941         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
13942         any warning about large file offsets.
13943         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
13944         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
13945         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
13946         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
13947         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
13948         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
13949         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
13950         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
13951
13952         warn-on-use: new module
13953         * modules/warn-on-use: New file.
13954         * build-aux/warn-on-use.h: Likewise.
13955         * m4/warn-on-use.m4: Likewise.
13956         * MODULES.html.sh (Support for building): Mention it.
13957
13958 2010-01-10  Bruno Haible  <bruno@clisp.org>
13959
13960         Tests for module 'unistr/u32-strdup'.
13961         * modules/unistr/u32-strdup-tests: New file.
13962         * tests/unistr/test-u32-strdup.c: New file.
13963
13964         Tests for module 'unistr/u16-strdup'.
13965         * modules/unistr/u16-strdup-tests: New file.
13966         * tests/unistr/test-u16-strdup.c: New file.
13967
13968         Tests for module 'unistr/u8-strdup'.
13969         * modules/unistr/u8-strdup-tests: New file.
13970         * tests/unistr/test-u8-strdup.c: New file.
13971         * tests/unistr/test-strdup.h: New file.
13972
13973         Tests for module 'unistr/u32-strncmp'.
13974         * modules/unistr/u32-strncmp-tests: New file.
13975         * tests/unistr/test-u32-strncmp.c: New file.
13976
13977         Tests for module 'unistr/u16-strncmp'.
13978         * modules/unistr/u16-strncmp-tests: New file.
13979         * tests/unistr/test-u16-strncmp.c: New file.
13980
13981         Tests for module 'unistr/u8-strncmp'.
13982         * modules/unistr/u8-strncmp-tests: New file.
13983         * tests/unistr/test-u8-strncmp.c: New file.
13984         * tests/unistr/test-strncmp.h: New file.
13985
13986         Tests for module 'unistr/u32-strcoll'.
13987         * modules/unistr/u32-strcoll-tests: New file.
13988         * tests/unistr/test-u32-strcoll.c: New file.
13989
13990         Tests for module 'unistr/u16-strcoll'.
13991         * modules/unistr/u16-strcoll-tests: New file.
13992         * tests/unistr/test-u16-strcoll.c: New file.
13993
13994         Tests for module 'unistr/u8-strcoll'.
13995         * modules/unistr/u8-strcoll-tests: New file.
13996         * tests/unistr/test-u8-strcoll.c: New file.
13997
13998         Tests for module 'unistr/u32-strcmp'.
13999         * modules/unistr/u32-strcmp-tests: New file.
14000         * tests/unistr/test-u32-strcmp.c: New file.
14001         * tests/unistr/test-u32-strcmp.h: New file.
14002
14003         Tests for module 'unistr/u16-strcmp'.
14004         * modules/unistr/u16-strcmp-tests: New file.
14005         * tests/unistr/test-u16-strcmp.c: New file.
14006         * tests/unistr/test-u16-strcmp.h: New file.
14007
14008         Tests for module 'unistr/u8-strcmp'.
14009         * modules/unistr/u8-strcmp-tests: New file.
14010         * tests/unistr/test-u8-strcmp.c: New file.
14011         * tests/unistr/test-u8-strcmp.h: New file.
14012         * tests/unistr/test-strcmp.h: New file.
14013
14014         Tests for module 'unistr/u32-strncat'.
14015         * modules/unistr/u32-strncat-tests: New file.
14016         * tests/unistr/test-u32-strncat.c: New file.
14017
14018         Tests for module 'unistr/u16-strncat'.
14019         * modules/unistr/u16-strncat-tests: New file.
14020         * tests/unistr/test-u16-strncat.c: New file.
14021
14022         Tests for module 'unistr/u8-strncat'.
14023         * modules/unistr/u8-strncat-tests: New file.
14024         * tests/unistr/test-u8-strncat.c: New file.
14025         * tests/unistr/test-strncat.h: New file.
14026
14027         Tests for module 'unistr/u32-strcat'.
14028         * modules/unistr/u32-strcat-tests: New file.
14029         * tests/unistr/test-u32-strcat.c: New file.
14030
14031         Tests for module 'unistr/u16-strcat'.
14032         * modules/unistr/u16-strcat-tests: New file.
14033         * tests/unistr/test-u16-strcat.c: New file.
14034
14035         Tests for module 'unistr/u8-strcat'.
14036         * modules/unistr/u8-strcat-tests: New file.
14037         * tests/unistr/test-u8-strcat.c: New file.
14038         * tests/unistr/test-strcat.h: New file.
14039
14040         Tests for module 'unistr/u32-stpncpy'.
14041         * modules/unistr/u32-stpncpy-tests: New file.
14042         * tests/unistr/test-u32-stpncpy.c: New file.
14043
14044         Tests for module 'unistr/u16-stpncpy'.
14045         * modules/unistr/u16-stpncpy-tests: New file.
14046         * tests/unistr/test-u16-stpncpy.c: New file.
14047
14048         Tests for module 'unistr/u8-stpncpy'.
14049         * modules/unistr/u8-stpncpy-tests: New file.
14050         * tests/unistr/test-u8-stpncpy.c: New file.
14051         * tests/unistr/test-stpncpy.h: New file.
14052
14053         Tests for module 'unistr/u32-strncpy'.
14054         * modules/unistr/u32-strncpy-tests: New file.
14055         * tests/unistr/test-u32-strncpy.c: New file.
14056
14057         Tests for module 'unistr/u16-strncpy'.
14058         * modules/unistr/u16-strncpy-tests: New file.
14059         * tests/unistr/test-u16-strncpy.c: New file.
14060
14061         Tests for module 'unistr/u8-strncpy'.
14062         * modules/unistr/u8-strncpy-tests: New file.
14063         * tests/unistr/test-u8-strncpy.c: New file.
14064         * tests/unistr/test-strncpy.h: New file.
14065
14066         Tests for module 'unistr/u32-stpcpy'.
14067         * modules/unistr/u32-stpcpy-tests: New file.
14068         * tests/unistr/test-u32-stpcpy.c: New file.
14069
14070         Tests for module 'unistr/u16-stpcpy'.
14071         * modules/unistr/u16-stpcpy-tests: New file.
14072         * tests/unistr/test-u16-stpcpy.c: New file.
14073
14074         Tests for module 'unistr/u8-stpcpy'.
14075         * modules/unistr/u8-stpcpy-tests: New file.
14076         * tests/unistr/test-u8-stpcpy.c: New file.
14077         * tests/unistr/test-stpcpy.h: New file.
14078
14079         Tests for module 'unistr/u32-strcpy'.
14080         * modules/unistr/u32-strcpy-tests: New file.
14081         * tests/unistr/test-u32-strcpy.c: New file.
14082
14083         Tests for module 'unistr/u16-strcpy'.
14084         * modules/unistr/u16-strcpy-tests: New file.
14085         * tests/unistr/test-u16-strcpy.c: New file.
14086
14087         Tests for module 'unistr/u8-strcpy'.
14088         * modules/unistr/u8-strcpy-tests: New file.
14089         * tests/unistr/test-u8-strcpy.c: New file.
14090         * tests/unistr/test-strcpy.h: New file.
14091
14092         Tests for module 'unistr/u32-strnlen'.
14093         * modules/unistr/u32-strnlen-tests: New file.
14094         * tests/unistr/test-u32-strnlen.c: New file.
14095
14096         Tests for module 'unistr/u16-strnlen'.
14097         * modules/unistr/u16-strnlen-tests: New file.
14098         * tests/unistr/test-u16-strnlen.c: New file.
14099
14100         Tests for module 'unistr/u8-strnlen'.
14101         * modules/unistr/u8-strnlen-tests: New file.
14102         * tests/unistr/test-u8-strnlen.c: New file.
14103         * tests/unistr/test-strnlen.h: New file.
14104
14105         Tests for module 'unistr/u32-strlen'.
14106         * modules/unistr/u32-strlen-tests: New file.
14107         * tests/unistr/test-u32-strlen.c: New file.
14108
14109         Tests for module 'unistr/u16-strlen'.
14110         * modules/unistr/u16-strlen-tests: New file.
14111         * tests/unistr/test-u16-strlen.c: New file.
14112
14113         Tests for module 'unistr/u8-strlen'.
14114         * modules/unistr/u8-strlen-tests: New file.
14115         * tests/unistr/test-u8-strlen.c: New file.
14116
14117         Tests for module 'unistr/u32-prev'.
14118         * modules/unistr/u32-prev-tests: New file.
14119         * tests/unistr/test-u32-prev.c: New file.
14120
14121         Tests for module 'unistr/u16-prev'.
14122         * modules/unistr/u16-prev-tests: New file.
14123         * tests/unistr/test-u16-prev.c: New file.
14124
14125         Tests for module 'unistr/u8-prev'.
14126         * modules/unistr/u8-prev-tests: New file.
14127         * tests/unistr/test-u8-prev.c: New file.
14128
14129         Tests for module 'unistr/u32-next'.
14130         * modules/unistr/u32-next-tests: New file.
14131         * tests/unistr/test-u32-next.c: New file.
14132
14133         Tests for module 'unistr/u16-next'.
14134         * modules/unistr/u16-next-tests: New file.
14135         * tests/unistr/test-u16-next.c: New file.
14136
14137         Tests for module 'unistr/u8-next'.
14138         * modules/unistr/u8-next-tests: New file.
14139         * tests/unistr/test-u8-next.c: New file.
14140
14141         Tests for module 'unistr/u32-strmbtouc'.
14142         * modules/unistr/u32-strmbtouc-tests: New file.
14143         * tests/unistr/test-u32-strmbtouc.c: New file.
14144
14145         Tests for module 'unistr/u16-strmbtouc'.
14146         * modules/unistr/u16-strmbtouc-tests: New file.
14147         * tests/unistr/test-u16-strmbtouc.c: New file.
14148
14149         Tests for module 'unistr/u8-strmbtouc'.
14150         * modules/unistr/u8-strmbtouc-tests: New file.
14151         * tests/unistr/test-u8-strmbtouc.c: New file.
14152
14153         Tests for module 'unistr/u32-strmblen'.
14154         * modules/unistr/u32-strmblen-tests: New file.
14155         * tests/unistr/test-u32-strmblen.c: New file.
14156
14157         Tests for module 'unistr/u16-strmblen'.
14158         * modules/unistr/u16-strmblen-tests: New file.
14159         * tests/unistr/test-u16-strmblen.c: New file.
14160
14161         Tests for module 'unistr/u8-strmblen'.
14162         * modules/unistr/u8-strmblen-tests: New file.
14163         * tests/unistr/test-u8-strmblen.c: New file.
14164
14165         Tests for module 'unistr/u32-cpy-alloc'.
14166         * modules/unistr/u32-cpy-alloc-tests: New file.
14167         * tests/unistr/test-u32-cpy-alloc.c: New file.
14168
14169         Tests for module 'unistr/u16-cpy-alloc'.
14170         * modules/unistr/u16-cpy-alloc-tests: New file.
14171         * tests/unistr/test-u16-cpy-alloc.c: New file.
14172
14173         Tests for module 'unistr/u8-cpy-alloc'.
14174         * modules/unistr/u8-cpy-alloc-tests: New file.
14175         * tests/unistr/test-u8-cpy-alloc.c: New file.
14176         * tests/unistr/test-cpy-alloc.h: New file.
14177
14178         Tests for module 'unistr/u32-mbsnlen'.
14179         * modules/unistr/u32-mbsnlen-tests: New file.
14180         * tests/unistr/test-u32-mbsnlen.c: New file.
14181
14182         Tests for module 'unistr/u16-mbsnlen'.
14183         * modules/unistr/u16-mbsnlen-tests: New file.
14184         * tests/unistr/test-u16-mbsnlen.c: New file.
14185
14186         Tests for module 'unistr/u8-mbsnlen'.
14187         * modules/unistr/u8-mbsnlen-tests: New file.
14188         * tests/unistr/test-u8-mbsnlen.c: New file.
14189
14190         Tests for module 'unistr/u32-chr'.
14191         * modules/unistr/u32-chr-tests: New file.
14192         * tests/unistr/test-u32-chr.c: New file.
14193
14194         Tests for module 'unistr/u16-chr'.
14195         * modules/unistr/u16-chr-tests: New file.
14196         * tests/unistr/test-u16-chr.c: New file.
14197
14198         Tests for module 'unistr/u8-chr'.
14199         * modules/unistr/u8-chr-tests: New file.
14200         * tests/unistr/test-u8-chr.c: New file.
14201         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
14202
14203         Tests for module 'unistr/u32-cmp2'.
14204         * modules/unistr/u32-cmp2-tests: New file.
14205         * tests/unistr/test-u32-cmp2.c: New file.
14206
14207         Tests for module 'unistr/u16-cmp2'.
14208         * modules/unistr/u16-cmp2-tests: New file.
14209         * tests/unistr/test-u16-cmp2.c: New file.
14210
14211         Tests for module 'unistr/u8-cmp2'.
14212         * modules/unistr/u8-cmp2-tests: New file.
14213         * tests/unistr/test-u8-cmp2.c: New file.
14214         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
14215
14216         Tests for module 'unistr/u32-cmp'.
14217         * modules/unistr/u32-cmp-tests: New file.
14218         * tests/unistr/test-u32-cmp.c: New file.
14219
14220         Tests for module 'unistr/u16-cmp'.
14221         * modules/unistr/u16-cmp-tests: New file.
14222         * tests/unistr/test-u16-cmp.c: New file.
14223
14224         Tests for module 'unistr/u8-cmp'.
14225         * modules/unistr/u8-cmp-tests: New file.
14226         * tests/unistr/test-u8-cmp.c: New file.
14227         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
14228
14229         Tests for module 'unistr/u32-set'.
14230         * modules/unistr/u32-set-tests: New file.
14231         * tests/unistr/test-u32-set.c: New file.
14232
14233         Tests for module 'unistr/u16-set'.
14234         * modules/unistr/u16-set-tests: New file.
14235         * tests/unistr/test-u16-set.c: New file.
14236
14237         Tests for module 'unistr/u8-set'.
14238         * modules/unistr/u8-set-tests: New file.
14239         * tests/unistr/test-u8-set.c: New file.
14240         * tests/unistr/test-set.h: New file.
14241
14242         Tests for module 'unistr/u32-move'.
14243         * modules/unistr/u32-move-tests: New file.
14244         * tests/unistr/test-u32-move.c: New file.
14245
14246         Tests for module 'unistr/u16-move'.
14247         * modules/unistr/u16-move-tests: New file.
14248         * tests/unistr/test-u16-move.c: New file.
14249
14250         Tests for module 'unistr/u8-move'.
14251         * modules/unistr/u8-move-tests: New file.
14252         * tests/unistr/test-u8-move.c: New file.
14253         * tests/unistr/test-move.h: New file.
14254
14255         Tests for module 'unistr/u32-cpy'.
14256         * modules/unistr/u32-cpy-tests: New file.
14257         * tests/unistr/test-u32-cpy.c: New file.
14258
14259         Tests for module 'unistr/u16-cpy'.
14260         * modules/unistr/u16-cpy-tests: New file.
14261         * tests/unistr/test-u16-cpy.c: New file.
14262
14263         Tests for module 'unistr/u8-cpy'.
14264         * modules/unistr/u8-cpy-tests: New file.
14265         * tests/unistr/test-u8-cpy.c: New file.
14266         * tests/unistr/test-cpy.h: New file.
14267
14268 2010-01-09  Bruno Haible  <bruno@clisp.org>
14269
14270         Tests for module 'unistr/u32-uctomb'.
14271         * modules/unistr/u32-uctomb-tests: New file.
14272         * tests/unistr/test-u32-uctomb.c: New file.
14273
14274         Tests for module 'unistr/u16-uctomb'.
14275         * modules/unistr/u16-uctomb-tests: New file.
14276         * tests/unistr/test-u16-uctomb.c: New file.
14277
14278         Tests for module 'unistr/u8-uctomb'.
14279         * modules/unistr/u8-uctomb-tests: New file.
14280         * tests/unistr/test-u8-uctomb.c: New file.
14281
14282         Tests for module 'unistr/u32-mbtoucr'.
14283         * modules/unistr/u32-mbtoucr-tests: New file.
14284         * tests/unistr/test-u32-mbtoucr.c: New file.
14285
14286         Tests for module 'unistr/u16-mbtoucr'.
14287         * modules/unistr/u16-mbtoucr-tests: New file.
14288         * tests/unistr/test-u16-mbtoucr.c: New file.
14289
14290         Tests for module 'unistr/u8-mbtoucr'.
14291         * modules/unistr/u8-mbtoucr-tests: New file.
14292         * tests/unistr/test-u8-mbtoucr.c: New file.
14293
14294         Tests for module 'unistr/u32-mbtouc'.
14295         * modules/unistr/u32-mbtouc-tests: New file.
14296         * tests/unistr/test-u32-mbtouc.c: New file.
14297
14298         Tests for module 'unistr/u16-mbtouc'.
14299         * modules/unistr/u16-mbtouc-tests: New file.
14300         * tests/unistr/test-u16-mbtouc.c: New file.
14301
14302         Tests for module 'unistr/u8-mbtouc'.
14303         * modules/unistr/u8-mbtouc-tests: New file.
14304         * tests/unistr/test-u8-mbtouc.c: New file.
14305
14306         Tests for module 'unistr/u32-mbtouc-unsafe'.
14307         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
14308         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
14309         * tests/unistr/test-u32-mbtouc.h: New file.
14310
14311         Tests for module 'unistr/u16-mbtouc-unsafe'.
14312         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
14313         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
14314         * tests/unistr/test-u16-mbtouc.h: New file.
14315
14316         Tests for module 'unistr/u8-mbtouc-unsafe'.
14317         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
14318         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
14319         * tests/unistr/test-u8-mbtouc.h: New file.
14320
14321         Tests for module 'unistr/u32-mblen'.
14322         * modules/unistr/u32-mblen-tests: New file.
14323         * tests/unistr/test-u32-mblen.c: New file.
14324
14325         Tests for module 'unistr/u16-mblen'.
14326         * modules/unistr/u16-mblen-tests: New file.
14327         * tests/unistr/test-u16-mblen.c: New file.
14328
14329         Tests for module 'unistr/u8-mblen'.
14330         * modules/unistr/u8-mblen-tests: New file.
14331         * tests/unistr/test-u8-mblen.c: New file.
14332
14333         Tests for module 'unistr/u32-to-u16'.
14334         * modules/unistr/u32-to-u16-tests: New file.
14335         * tests/unistr/test-u32-to-u16.c: New file.
14336
14337         Tests for module 'unistr/u32-to-u8'.
14338         * modules/unistr/u32-to-u8-tests: New file.
14339         * tests/unistr/test-u32-to-u8.c: New file.
14340
14341         Tests for module 'unistr/u16-to-u32'.
14342         * modules/unistr/u16-to-u32-tests: New file.
14343         * tests/unistr/test-u16-to-u32.c: New file.
14344
14345         Tests for module 'unistr/u16-to-u8'.
14346         * modules/unistr/u16-to-u8-tests: New file.
14347         * tests/unistr/test-u16-to-u8.c: New file.
14348
14349         Tests for module 'unistr/u8-to-u32'.
14350         * modules/unistr/u8-to-u32-tests: New file.
14351         * tests/unistr/test-u8-to-u32.c: New file.
14352
14353         Tests for module 'unistr/u8-to-u16'.
14354         * modules/unistr/u8-to-u16-tests: New file.
14355         * tests/unistr/test-u8-to-u16.c: New file.
14356
14357         Tests for module 'unistr/u32-check'.
14358         * modules/unistr/u32-check-tests: New file.
14359         * tests/unistr/test-u32-check.c: New file.
14360
14361         Tests for module 'unistr/u16-check'.
14362         * modules/unistr/u16-check-tests: New file.
14363         * tests/unistr/test-u16-check.c: New file.
14364
14365         Tests for module 'unistr/u8-check'.
14366         * modules/unistr/u8-check-tests: New file.
14367         * tests/unistr/test-u8-check.c: New file.
14368
14369         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
14370         (category_equals): New function.
14371         (main): Add more tests.
14372         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
14373
14374         * tests/unictype/test-bidi_byname.c (main): Add more tests.
14375
14376 2010-01-10  Bruno Haible  <bruno@clisp.org>
14377
14378         unistr/u*-strcoll: Try harder to distinguish different strings.
14379         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
14380         compare s1 and s2 to see if they are different.
14381
14382 2010-01-10  Bruno Haible  <bruno@clisp.org>
14383
14384         unistr/u*-stpncpy: Fix the return value.
14385         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
14386         description of the return value consistent with stpncpy in glibc.
14387         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
14388         written non-NUL unit.
14389
14390 2010-01-10  Bruno Haible  <bruno@clisp.org>
14391
14392         unistr/u*-next: Add missing dependencies.
14393         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
14394         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
14395         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
14396
14397 2010-01-10  Bruno Haible  <bruno@clisp.org>
14398
14399         unistr/u8-mbsnlen: Fix return value for incomplete character.
14400         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
14401         u8_mblen.
14402         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
14403         Remove unistr/u8-mblen.
14404         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
14405         u16_mblen.
14406         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
14407         Remove unistr/u16-mblen.
14408
14409 2010-01-10  Bruno Haible  <bruno@clisp.org>
14410
14411         wchar: Fix compilation error when <wchar.h> is used from coreutils.
14412         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
14413         Reported by Brian Gough <bjg@gnu.org> and
14414         Chris Clayton <chris2553@googlemail.com> via
14415         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
14416
14417 2010-01-09  Bruno Haible  <bruno@clisp.org>
14418
14419         unistr/u16-to-u32: Reject invalid input.
14420         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
14421         u16_mbtouc.
14422         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
14423         Remove unistr/u16-mbtouc.
14424
14425         unistr/u16-to-u8: Reject invalid input.
14426         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
14427         u16_mbtouc.
14428         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
14429         Remove unistr/u16-mbtouc.
14430
14431         unistr/u8-to-u32: Reject invalid input.
14432         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
14433         u8_mbtouc.
14434         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
14435         Remove unistr/u8-mbtouc.
14436
14437         unistr/u8-to-u16: Reject invalid input.
14438         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
14439         u8_mbtouc.
14440         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
14441         Remove unistr/u8-mbtouc.
14442
14443 2010-01-09  Bruno Haible  <bruno@clisp.org>
14444
14445         Tests for module 'getlogin'.
14446         * modules/getlogin-tests: New file.
14447         * tests/test-getlogin.c: New file.
14448
14449         New module 'getlogin'.
14450         * lib/unistd.in.h (getlogin): New declaration.
14451         * lib/getlogin.c: New file.
14452         * m4/getlogin.m4: New file.
14453         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
14454         HAVE_GETLOGIN.
14455         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
14456         HAVE_GETLOGIN.
14457         * modules/getlogin: New file.
14458         * doc/posix-functions/getlogin.texi: Mention the new module.
14459         Reported by John W. Eaton <jwe@gnu.org>.
14460
14461 2010-01-09  Bruno Haible  <bruno@clisp.org>
14462
14463         getlogin_r: Support for native Windows.
14464         * lib/getlogin_r.c: Include <windows.h>
14465         (getlogin_r): Implement for native Windows.
14466         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
14467         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
14468         via John W. Eaton <jwe@gnu.org>.
14469
14470 2010-01-09  Bruno Haible  <bruno@clisp.org>
14471
14472         getlogin_r: Small fixes.
14473         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
14474         succeeds.
14475         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
14476         before testing whether getlogin_r is declared. No need to set
14477         HAVE_DECL_GETLOGIN_R to 1.
14478         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
14479
14480 2010-01-09  Bruno Haible  <bruno@clisp.org>
14481
14482         * lib/unistd.in.h (getlogin_r): Add comment.
14483
14484 2010-01-09  Bruno Haible  <bruno@clisp.org>
14485
14486         Tests for module 'getlogin_r'.
14487         * modules/getlogin_r-tests: New file.
14488         * tests/test-getlogin_r.c: New file.
14489
14490 2010-01-09  Jim Meyering  <meyering@redhat.com>
14491
14492         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
14493         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
14494         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
14495
14496 2010-01-08  Simon Josefsson  <simon@josefsson.org>
14497
14498         * lib/dup2.c (rpl_dup2): Improve comment.
14499
14500 2010-01-08  Eric Blake  <ebb9@byu.net>
14501
14502         maint.mk: allow packages to add makefile @@ exceptions
14503         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
14504         (sc_makefile_check): Rename...
14505         (sc_makefile_at_at_check): ...to this, and use hook.
14506
14507         dup2: work around mingw bug
14508         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
14509         Reported by Simon Josefsson.
14510
14511 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
14512
14513         glob: Fix C++ compilation.
14514         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
14515         C++.
14516
14517 2010-01-07  Bruno Haible  <bruno@clisp.org>
14518
14519         Fix indentation of wctype.in.h, broken since 2007-01-06.
14520         * lib/wctype.in.h: Fix indentation of preprocessor directives.
14521
14522 2010-01-07  Bruno Haible  <bruno@clisp.org>
14523
14524         mbslen: Avoid collision with system function.
14525         * lib/string.in.h [MirBSD]: Include <wchar.h>.
14526         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
14527         * m4/mbslen.m4: New file.
14528         * modules/mbslen (Files): Add it.
14529         (configure.ac): Invoke gl_MBSLEN.
14530         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
14531         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
14532         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
14533         via Ian Beckwith <ianb@erislabs.net>.
14534
14535 2010-01-07  Bruno Haible  <bruno@clisp.org>
14536
14537         dirent: Document the last fix.
14538         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
14539
14540 2010-01-07  Bruno Haible  <bruno@clisp.org>
14541
14542         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
14543         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
14544         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
14545         va_list are defined.
14546         * doc/posix-headers/stdio.texi: Document the bug of missing types.
14547         Reported by Eric Blake.
14548
14549 2010-01-07  Bruno Haible  <bruno@clisp.org>
14550
14551         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
14552         * modules/xlist (Depends-on): Add 'list',
14553         * modules/xoset (Depends-on): Add 'oset'.
14554         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14555
14556 2010-01-07  Bruno Haible  <bruno@clisp.org>
14557
14558         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
14559         * doc/posix-functions/strncasecmp.texi: Likewise.
14560
14561 2010-01-07  Bruno Haible  <bruno@clisp.org>
14562
14563         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
14564
14565 2010-01-07  John W. Eaton  <jwe@octave.org>
14566
14567         wctype: allow C++ use
14568         * lib/wctype.in.h: Add extern "C" block for C++.
14569
14570 2010-01-06  Eric Blake  <ebb9@byu.net>
14571
14572         maint.mk: detect incorrect GFDL usage
14573         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
14574
14575 2010-01-06  Jim Meyering  <meyering@redhat.com>
14576         and Eric Blake  <ebb9@byu.net>
14577
14578         maint.mk: ignore multi-line copyright in NEWS
14579         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
14580
14581 2010-01-06  Eric Blake  <ebb9@byu.net>
14582
14583         select: add missing dependency
14584         * modules/select-tests (Depends-on): Move sockets dependency...
14585         * modules/select (Depends-on): ...here.
14586         Reported by Ian Beckwith.
14587
14588         doc: regenerate INSTALL
14589         * doc/INSTALL: Reflect recent autoconf update.
14590         * doc/INSTALL.ISO: Likewise.
14591         * doc/INSTALL.UTF-8: Likewise.
14592
14593         pread: fix compilation on glibc
14594         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
14595         Reported by Ralf Wildenhues.
14596
14597         dirent: fix test failure
14598         * lib/dirent.in.h (includes): Guarantee ino_t.
14599         Reported by Ralf Wildenhues.
14600
14601 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
14602
14603         linkat, renameat: avoid bad free
14604         * lib/at-func2.c (at_func2): Fix typo.
14605         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
14606
14607 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14608
14609         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
14610         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
14611         to avoid failure of symlink test later.
14612
14613 2010-01-06  Eric Blake  <ebb9@byu.net>
14614
14615         stdio, unistd: guarantee ssize_t
14616         * lib/unistd.in.h (includes): Ensure that types required by POSIX
14617         2008 are exposed when needed.
14618         * lib/stdio.in.h (includes): Likewise.
14619         Reported by Ralf Wildenhues.
14620
14621 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
14622
14623         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
14624         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
14625         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
14626
14627 2010-01-06  Jim Meyering  <meyering@redhat.com>
14628
14629         readtokens: this module *does* require xalloc.h
14630         It uses only functions that were omitted by the old syntax-check rule.
14631         * lib/readtokens.c: Include "xalloc.h" once again.
14632         * modules/readtokens (Depends-on): Add xalloc.
14633         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
14634
14635 2010-01-05  Eric Blake  <ebb9@byu.net>
14636
14637         maint: support 'make announcement' from a VPATH build
14638         * top/maint.mk (announcement): Look for correct NEWS file.
14639
14640 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
14641
14642         utimens (fdutimens): ignore a negative FD, per contract
14643         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
14644         when we have a valid file descriptor.  Otherwise, using a brand
14645         new glibc (with just-patched futimens that now fails with EBADF)
14646         would cause this function to fail with ENOSYS.
14647         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
14648         See also http://bugzilla.redhat.com/552320.
14649
14650 2010-01-05  Eric Blake  <ebb9@byu.net>
14651
14652         strcase: document what it provides
14653         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
14654         gnulib module.
14655         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
14656         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
14657
14658 2010-01-05  Jim Meyering  <meyering@redhat.com>
14659
14660         maint: remove useless inclusions of "xalloc.h"
14661         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
14662         * lib/readtokens.c: Likewise.
14663         * lib/same.c: Likewise.
14664         * modules/getloadavg (Depends-on): Remove xalloc.
14665         * modules/readtokens: Likewise.
14666         * modules/same: Likewise.
14667
14668         maint.mk: include 4 more function names in alloca.h-checking regexp
14669         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
14670         regexp.  Before, we would give a false-positive (saying alloca.h
14671         is included unnecessarily) when the only uses involved omitted symbols.
14672
14673         xalloc.h: use consistent formatting
14674         * lib/xalloc.h: Move declarations to start in the first column.
14675
14676 2010-01-05  Eric Blake  <ebb9@byu.net>
14677
14678         mkdir: avoid xalloc
14679         * lib/mkdir.c (includes): Drop unused header.
14680         Reported by John W. Eaton.
14681
14682 2010-01-04  Jim Meyering  <meyering@redhat.com>
14683
14684         nl_langinfo: avoid configure-time syntax error
14685         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
14686         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
14687         the empty string.  Don't let that provoke a shell syntax error.
14688
14689         regcomp, regexec, fnmatch: avoid array bounds read error
14690         * lib/regcomp.c (build_equiv_class): From glibc:
14691         Use only the low 24 bits of a findidx return value as an index
14692         into the weights array.  Patch by Ulrich Drepper:
14693         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
14694         * lib/regexec.c (check_node_accept_bytes): Likewise.
14695         * lib/fnmatch_loop.c (FCT): Likewise.
14696
14697         regcomp: skip collseq lookup when there are no rules
14698         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
14699         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
14700
14701         regcomp: recognize ill-formed { } expressions
14702         * lib/regcomp.c (parse_dup_op): From glibc:
14703         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
14704
14705         regcomp: fix typo in comment
14706         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
14707         s/satisfy/satisfies/.
14708
14709         regcomp: sync from glibc: remove dead store
14710         * lib/regcomp.c (duplicate_node_closure): Remove useless
14711         search_duplicated_node call and dead store.
14712
14713         regcomp: sync from glibc; always use nl_langinfo
14714         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
14715         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
14716         * modules/regex (Depends-on): Add nl_langinfo.
14717
14718 2010-01-04  Eric Blake  <ebb9@byu.net>
14719
14720         fdopendir: fix configure test
14721         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
14722
14723 2010-01-01  Bruno Haible  <bruno@clisp.org>
14724
14725         wchar: Remove unused configure check.
14726         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
14727
14728 2010-01-01  Eric Blake  <ebb9@byu.net>
14729
14730         headers: make check of system header explicit
14731         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
14732         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
14733         ourselves.
14734         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14735         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14736         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
14737         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
14738         internals.
14739         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
14740         missing.
14741         Suggested by Bruno Haible.
14742
14743 2010-01-01  Jim Meyering  <meyering@redhat.com>
14744
14745         ChangeLog: tweak to eliminate unnecessary copyright line
14746         * ChangeLog: Remove a copyright line that was mistakenly updated
14747         by today's update-copyright run.  Reported by Eric Blake.
14748
14749         test-update-copyright: don't let envvar setting cause test failure
14750         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
14751
14752 2010-01-01  Bruno Haible  <bruno@clisp.org>
14753
14754         localename: Avoid gcc warning.
14755         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
14756         function if it is not used.
14757
14758 2010-01-01  Jim Meyering  <meyering@redhat.com>
14759
14760         update nearly all FSF copyright year lists to include 2010
14761         Use the same procedure as for 2009, outlined in
14762         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
14763
14764         version-etc: set COPYRIGHT_YEAR to 2010
14765         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
14766
14767 2009-12-31  Eric Blake  <ebb9@byu.net>
14768
14769         doc: correct availability of cygwin 1.5.x getopt
14770         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
14771         variables.
14772         * doc/posix-functions/opterr.texi (opterr): Likewise.
14773         * doc/posix-functions/optind.texi (optind): Likewise.
14774         * doc/posix-functions/optopt.texi (optopt): Likewise.
14775         * doc/posix-functions/tzname.texi (tzname): Likewise.
14776
14777         openat: update maintainer
14778         * modules/openat (Maintainer): Add myself.
14779
14780         utimens: avoid shadowing warning
14781         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
14782         buffers into one, to avoid shadowing, as well as avoiding a
14783         redundant stat.
14784         Reported by Jim Meyering.
14785
14786         test-dup2: avoid compiler warning
14787         * tests/test-dup2.c (is_inheritable): Only define if used.
14788
14789 2010-01-01  Bruno Haible  <bruno@clisp.org>
14790
14791         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
14792         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
14793         defined, use wctomb instead of wcrtomb.
14794
14795 2010-01-01  Bruno Haible  <bruno@clisp.org>
14796
14797         iconv: Reject native Solaris iconv.
14798         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
14799         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
14800
14801 2009-12-31  Bruno Haible  <bruno@clisp.org>
14802
14803         * tests/test-signal.c (main): Remove test of 'SIG'.
14804
14805 2009-12-31  Bruno Haible  <bruno@clisp.org>
14806
14807         spawn: Fix incomplete fix.
14808         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
14809         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
14810         warnings for GNULIB_POSIXCHECK again.
14811         Reported by Eric Blake.
14812
14813 2009-12-31  Bruno Haible  <bruno@clisp.org>
14814
14815         Avoid namespace pollution on glibc systems.
14816         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
14817         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
14818         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
14819         glibc systems.
14820
14821 2009-12-31  Bruno Haible  <bruno@clisp.org>
14822
14823         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
14824         (gl_REPLACE_WCHAR_H): Turn into a no-op.
14825         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
14826         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
14827         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
14828         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
14829         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
14830
14831 2009-12-31  Bruno Haible  <bruno@clisp.org>
14832
14833         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
14834         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
14835         afterwards.
14836
14837 2009-12-31  Bruno Haible  <bruno@clisp.org>
14838
14839         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
14840         SYS_UTSNAME_H.
14841
14842 2009-12-31  Bruno Haible  <bruno@clisp.org>
14843
14844         spawn: Fix misapplied patch.
14845         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
14846         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
14847         warnings for GNULIB_POSIXCHECK.
14848
14849 2009-12-31  Bruno Haible  <bruno@clisp.org>
14850
14851         times: Update after sys_times changed.
14852         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
14853         * modules/times (Files): Add it.
14854         (configure.ac): Invoke gl_FUNC_TIMES.
14855
14856 2009-12-31  Bruno Haible  <bruno@clisp.org>
14857
14858         Use AC_C_INLINE where necessary.
14859         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
14860         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
14861         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
14862         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
14863         * m4/mbfile.m4 (gl_MBFILE): Likewise.
14864         * m4/mbiter.m4 (gl_MBITER): Likewise.
14865         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14866         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14867         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
14868         * modules/u64 (configure.ac): Likewise.
14869
14870 2009-12-31  Bruno Haible  <bruno@clisp.org>
14871
14872         Use AC_C_INLINE instead of module 'inline' where possible.
14873         * modules/inline (Description): Clarify purpose.
14874         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
14875         * modules/count-one-bits (Depends-on): Remove inline.
14876         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
14877         * modules/openat (Depends-on): Remove inline.
14878         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
14879         instead of depending on module 'inline'.
14880         * modules/filevercmp (Depends-on, configure.ac): Likewise.
14881         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
14882         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
14883         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
14884         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
14885         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
14886         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
14887         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
14888         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
14889         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
14890         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
14891         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
14892         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
14893         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
14894         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
14895         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
14896         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
14897         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
14898         Likewise.
14899         * modules/unictype/property-ascii-hex-digit (Depends-on,
14900         configure.ac): Likewise.
14901         * modules/unictype/property-bidi-arabic-digit (Depends-on,
14902         configure.ac): Likewise.
14903         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
14904         configure.ac): Likewise.
14905         * modules/unictype/property-bidi-block-separator (Depends-on,
14906         configure.ac): Likewise.
14907         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
14908         configure.ac): Likewise.
14909         * modules/unictype/property-bidi-common-separator (Depends-on,
14910         configure.ac): Likewise.
14911         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
14912         Likewise.
14913         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
14914         configure.ac): Likewise.
14915         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
14916         configure.ac): Likewise.
14917         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
14918         configure.ac): Likewise.
14919         * modules/unictype/property-bidi-european-digit (Depends-on,
14920         configure.ac): Likewise.
14921         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
14922         configure.ac): Likewise.
14923         * modules/unictype/property-bidi-left-to-right (Depends-on,
14924         configure.ac): Likewise.
14925         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
14926         configure.ac): Likewise.
14927         * modules/unictype/property-bidi-other-neutral (Depends-on,
14928         configure.ac): Likewise.
14929         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
14930         Likewise.
14931         * modules/unictype/property-bidi-segment-separator (Depends-on,
14932         configure.ac): Likewise.
14933         * modules/unictype/property-bidi-whitespace (Depends-on,
14934         configure.ac): Likewise.
14935         * modules/unictype/property-combining (Depends-on, configure.ac):
14936         Likewise.
14937         * modules/unictype/property-composite (Depends-on, configure.ac):
14938         Likewise.
14939         * modules/unictype/property-currency-symbol (Depends-on,
14940         configure.ac): Likewise.
14941         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
14942         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
14943         Likewise.
14944         * modules/unictype/property-default-ignorable-code-point (Depends-on,
14945         configure.ac): Likewise.
14946         * modules/unictype/property-deprecated (Depends-on, configure.ac):
14947         Likewise.
14948         * modules/unictype/property-diacritic (Depends-on, configure.ac):
14949         Likewise.
14950         * modules/unictype/property-extender (Depends-on, configure.ac):
14951         Likewise.
14952         * modules/unictype/property-format-control (Depends-on, configure.ac):
14953         Likewise.
14954         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
14955         Likewise.
14956         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
14957         Likewise.
14958         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
14959         Likewise.
14960         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
14961         Likewise.
14962         * modules/unictype/property-hyphen (Depends-on, configure.ac):
14963         Likewise.
14964         * modules/unictype/property-id-continue (Depends-on, configure.ac):
14965         Likewise.
14966         * modules/unictype/property-id-start (Depends-on, configure.ac):
14967         Likewise.
14968         * modules/unictype/property-ideographic (Depends-on, configure.ac):
14969         Likewise.
14970         * modules/unictype/property-ids-binary-operator (Depends-on,
14971         configure.ac): Likewise.
14972         * modules/unictype/property-ids-trinary-operator (Depends-on,
14973         configure.ac): Likewise.
14974         * modules/unictype/property-ignorable-control (Depends-on,
14975         configure.ac): Likewise.
14976         * modules/unictype/property-iso-control (Depends-on, configure.ac):
14977         Likewise.
14978         * modules/unictype/property-join-control (Depends-on, configure.ac):
14979         Likewise.
14980         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
14981         Likewise.
14982         * modules/unictype/property-line-separator (Depends-on, configure.ac):
14983         Likewise.
14984         * modules/unictype/property-logical-order-exception (Depends-on,
14985         configure.ac): Likewise.
14986         * modules/unictype/property-lowercase (Depends-on, configure.ac):
14987         Likewise.
14988         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
14989         * modules/unictype/property-non-break (Depends-on, configure.ac):
14990         Likewise.
14991         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
14992         Likewise.
14993         * modules/unictype/property-numeric (Depends-on, configure.ac):
14994         Likewise.
14995         * modules/unictype/property-other-alphabetic (Depends-on,
14996         configure.ac): Likewise.
14997         * modules/unictype/property-other-default-ignorable-code-point
14998         (Depends-on, configure.ac): Likewise.
14999         * modules/unictype/property-other-grapheme-extend (Depends-on,
15000         configure.ac): Likewise.
15001         * modules/unictype/property-other-id-continue (Depends-on,
15002         configure.ac): Likewise.
15003         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
15004         Likewise.
15005         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
15006         Likewise.
15007         * modules/unictype/property-other-math (Depends-on, configure.ac):
15008         Likewise.
15009         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
15010         Likewise.
15011         * modules/unictype/property-paired-punctuation (Depends-on,
15012         configure.ac): Likewise.
15013         * modules/unictype/property-paragraph-separator (Depends-on,
15014         configure.ac): Likewise.
15015         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
15016         Likewise.
15017         * modules/unictype/property-pattern-white-space (Depends-on,
15018         configure.ac): Likewise.
15019         * modules/unictype/property-private-use (Depends-on, configure.ac):
15020         Likewise.
15021         * modules/unictype/property-punctuation (Depends-on, configure.ac):
15022         Likewise.
15023         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
15024         Likewise.
15025         * modules/unictype/property-radical (Depends-on, configure.ac):
15026         Likewise.
15027         * modules/unictype/property-sentence-terminal (Depends-on,
15028         configure.ac): Likewise.
15029         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
15030         Likewise.
15031         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
15032         * modules/unictype/property-terminal-punctuation (Depends-on,
15033         configure.ac): Likewise.
15034         * modules/unictype/property-titlecase (Depends-on, configure.ac):
15035         Likewise.
15036         * modules/unictype/property-unassigned-code-value (Depends-on,
15037         configure.ac): Likewise.
15038         * modules/unictype/property-unified-ideograph (Depends-on,
15039         configure.ac): Likewise.
15040         * modules/unictype/property-uppercase (Depends-on, configure.ac):
15041         Likewise.
15042         * modules/unictype/property-variation-selector (Depends-on,
15043         configure.ac): Likewise.
15044         * modules/unictype/property-white-space (Depends-on, configure.ac):
15045         Likewise.
15046         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
15047         Likewise.
15048         * modules/unictype/property-xid-start (Depends-on, configure.ac):
15049         Likewise.
15050         * modules/unictype/property-zero-width (Depends-on, configure.ac):
15051         Likewise.
15052         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
15053         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
15054         Likewise.
15055
15056 2009-12-31  Bruno Haible  <bruno@clisp.org>
15057
15058         Remove unnecessary AC_C_INLINE invocation.
15059         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
15060         since 2009-08-21.
15061
15062 2009-12-31  Jim Meyering  <meyering@redhat.com>
15063
15064         maint.mk: don't require explicit gpg_key_ID in cfg.mk
15065         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
15066         With this change, we can all remove the gpg_key_ID = ... definition
15067         from our respective cfg.mk files.
15068
15069         maint.mk: create announcement template in ~/, not in /tmp
15070         * top/maint.mk (emit_upload_commands): Adjust.
15071         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
15072         Remove temporary file, .ci-msg.
15073
15074 2009-12-31  Eric Blake  <ebb9@byu.net>
15075
15076         link-warning: always build headers with link warnings
15077         * modules/arpa_inet (Makefile.am): Always build replacement
15078         header.
15079         * modules/ctype (Makefile.am): Likewise.
15080         * modules/dirent (Makefile.am): Likewise.
15081         * modules/inttypes (Makefile.am): Likewise.
15082         * modules/langinfo (Makefile.am): Likewise.
15083         * modules/locale (Makefile.am): Likewise.
15084         * modules/spawn (Makefile.am): Likewise.
15085         * modules/sys_file (Makefile.am): Likewise.
15086         * modules/sys_ioctl (Makefile.am): Likewise.
15087         * modules/sys_select (Makefile.am): Likewise.
15088         * modules/sys_socket (Makefile.am): Likewise.
15089         * modules/sys_times (Makefile.am): Likewise.
15090         * modules/sys_utsname (Makefile.am): Likewise.
15091         * modules/sys_wait (Makefile.am): Likewise.
15092         * modules/wchar (Makefile.am): Likewise.
15093         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
15094         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
15095         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
15096         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
15097         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
15098         Likewise.
15099         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
15100         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
15101         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
15102         Likewise.
15103         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
15104         Likewise.
15105         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15106         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
15107         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
15108         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15109         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15110         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
15111         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
15112         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
15113         (gl_WCHAR_H_DEFAULTS): Likewise.
15114
15115 2009-12-31  Eric Blake  <ebb9@byu.net>
15116
15117         signal, spawn: use link warnings
15118         * lib/signal.in.h (sigset_t): Make unconditional.
15119         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
15120         (sigpending, sigprocmask, sigaction): Add link warnings.
15121         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
15122         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
15123         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
15124         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
15125         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
15126         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
15127         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
15128         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
15129         (posix_spawn_file_actions_destroy)
15130         (posix_spawn_file_actions_addopen)
15131         (posix_spawn_file_actions_addclose)
15132         (posix_spawn_file_actions_adddup2): Likewise.
15133         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
15134         * tests/test-signal.c (main): Enhance test.
15135
15136         spawn: improve wrapper support
15137         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
15138         (gl_SPAWN_H_DEFAULTS): New defaults.
15139         * modules/spawn (Makefile.am): Substitute them.
15140         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
15141         Only declare if missing or broken.
15142
15143         sys_times, sys_utsname: use include_next
15144         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
15145         header.
15146         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
15147         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
15148         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
15149         * modules/sys_times (Depends-on): Add include_next.
15150         (Makefile.am): Substitute additional values.
15151         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
15152         * lib/sys_times.in.h (includes): Include native header, if
15153         available.
15154         * lib/sys_utsname.in.h (includes): Likewise.
15155         * tests/test-sys_times.c (main): Enhance test.
15156
15157         fdutimensat: revert prior patch
15158         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
15159         utimens.h.
15160         Reported by Bruno Haible.
15161
15162 2009-12-30  Eric Blake  <ebb9@byu.net>
15163
15164         sys_wait: drop link-warning dependency
15165         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
15166         link-warning efforts.
15167         * lib/sys_wait.in.h: Likewise.
15168
15169         fdutimensat: remove bogus dependency
15170         * modules/fdutimensat (Depends-on): Drop inline.
15171
15172         unistd: fix typo
15173         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
15174
15175 2009-12-30  Bruno Haible  <bruno@clisp.org>
15176
15177         Fix compilation error with Solaris cc.
15178         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
15179         * lib/unicase/u16-is-invariant.c: Likewise.
15180         * lib/unicase/u32-is-invariant.c: Likewise.
15181         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
15182
15183 2009-12-30  Bruno Haible  <bruno@clisp.org>
15184
15185         Fix test crash.
15186         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
15187         locales.
15188         Reported by Simon Josefsson <simon@josefsson.org>.
15189
15190 2009-12-30  Bruno Haible  <bruno@clisp.org>
15191
15192         Fix compilation error on most platforms.
15193         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
15194         Reported by Simon Josefsson <simon@josefsson.org>
15195         and Nelson H. F. Beebe <beebe@math.utah.edu>.
15196
15197 2009-12-30  Eric Blake  <ebb9@byu.net>
15198
15199         futimens, utimensat: work around ntfs-3g bug
15200         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
15201         a ctime bug is present, and expand workaround to cover ntfs-3g.
15202         * lib/utimens.c (fdutimens, lutimens): Likewise.
15203         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
15204         (validate_timespec): Adjust return value.
15205         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
15206         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15207         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
15208
15209 2009-12-29  Eric Blake  <ebb9@byu.net>
15210
15211         link-warning: make usage consistent
15212         * modules/ctype (Depends-on): Add link-warning.
15213         (Makefile.am): Update rules accordingly.
15214         * modules/langinfo (Depends-on, Makefile.am): Likewise.
15215         * modules/locale (Depends-on, Makefile.am): Likewise.
15216         * modules/sys_file (Makefile.am): Likewise.
15217         * modules/getopt-posix (Makefile.am): Delete unused link warning
15218         efforts.
15219         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
15220         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
15221         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
15222         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
15223
15224         stdio: remove unused variables
15225         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
15226         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
15227         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15228
15229         tests: test more substitute headers
15230         * modules/ctype-tests: New file.
15231         * modules/dirent-tests: Likewise.
15232         * modules/spawn-tests: Likewise.
15233         * modules/sys_file-tests: Likewise.
15234         * modules/sys_ioctl-tests: Likewise.
15235         * modules/sys_wait-tests: Likewise.
15236         * tests/test-ctype.c: Likewise.
15237         * tests/test-dirent.c: Likewise.
15238         * tests/test-spawn.c: Likewise.
15239         * tests/test-sys_file.c: Likewise.
15240         * tests/test-sys_ioctl.c: Likewise.
15241         * tests/test-sys_wait.c: Likewise.
15242         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
15243         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
15244         whether or not flock is in use.
15245
15246         tests: remove License section from module
15247         * modules/arpa_inet-tests: Remove unneeded section.
15248         * modules/byteswap-tests: Likewise.
15249         * modules/ceilf-tests: Likewise.
15250         * modules/ceill-tests: Likewise.
15251         * modules/crypto/des-tests: Likewise.
15252         * modules/crypto/gc-arcfour-tests: Likewise.
15253         * modules/crypto/gc-arctwo-tests: Likewise.
15254         * modules/crypto/gc-des-tests: Likewise.
15255         * modules/crypto/gc-hmac-md5-tests: Likewise.
15256         * modules/crypto/gc-hmac-sha1-tests: Likewise.
15257         * modules/crypto/gc-md2-tests: Likewise.
15258         * modules/crypto/gc-md4-tests: Likewise.
15259         * modules/crypto/gc-md5-tests: Likewise.
15260         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
15261         * modules/crypto/gc-rijndael-tests: Likewise.
15262         * modules/crypto/gc-sha1-tests: Likewise.
15263         * modules/crypto/gc-tests: Likewise.
15264         * modules/crypto/md2-tests: Likewise.
15265         * modules/crypto/md4-tests: Likewise.
15266         * modules/fcntl-h-tests: Likewise.
15267         * modules/floorf-tests: Likewise.
15268         * modules/floorl-tests: Likewise.
15269         * modules/frexp-nolibm-tests: Likewise.
15270         * modules/frexp-tests: Likewise.
15271         * modules/frexpl-nolibm-tests: Likewise.
15272         * modules/frexpl-tests: Likewise.
15273         * modules/getaddrinfo-tests: Likewise.
15274         * modules/inttypes-tests: Likewise.
15275         * modules/isfinite-tests: Likewise.
15276         * modules/isinf-tests: Likewise.
15277         * modules/ldexpl-tests: Likewise.
15278         * modules/locale-tests: Likewise.
15279         * modules/math-tests: Likewise.
15280         * modules/netdb-tests: Likewise.
15281         * modules/netinet_in-tests: Likewise.
15282         * modules/printf-frexp-tests: Likewise.
15283         * modules/printf-frexpl-tests: Likewise.
15284         * modules/priv-set-tests: Likewise.
15285         * modules/random_r-tests: Likewise.
15286         * modules/round-tests: Likewise.
15287         * modules/roundf-tests: Likewise.
15288         * modules/roundl-tests: Likewise.
15289         * modules/search-tests: Likewise.
15290         * modules/select-tests: Likewise.
15291         * modules/signal-tests: Likewise.
15292         * modules/stdbool-tests: Likewise.
15293         * modules/stddef-tests: Likewise.
15294         * modules/stdint-tests: Likewise.
15295         * modules/stdio-tests: Likewise.
15296         * modules/stdlib-tests: Likewise.
15297         * modules/string-tests: Likewise.
15298         * modules/strings-tests: Likewise.
15299         * modules/sys_select-tests: Likewise.
15300         * modules/sys_socket-tests: Likewise.
15301         * modules/sys_stat-tests: Likewise.
15302         * modules/sys_time-tests: Likewise.
15303         * modules/sys_utsname-tests: Likewise.
15304         * modules/sysexits-tests: Likewise.
15305         * modules/time-tests: Likewise.
15306         * modules/trunc-tests: Likewise.
15307         * modules/truncf-tests: Likewise.
15308         * modules/truncl-tests: Likewise.
15309         * modules/tsearch-tests: Likewise.
15310         * modules/unistd-tests: Likewise.
15311         * modules/wchar-tests: Likewise.
15312         * modules/wctype-tests: Likewise.
15313
15314         tests: fix license on several tests
15315         * tests/test-des.c: Update to GPLv3+.
15316         * tests/test-flock.c: Likewise.
15317         * tests/test-fsync.c: Likewise.
15318         * tests/test-futimens.h: Likewise.
15319         * tests/test-gc-arcfour.c: Likewise.
15320         * tests/test-gc-arctwo.c: Likewise.
15321         * tests/test-gc-des.c: Likewise.
15322         * tests/test-gc-hmac-md5.c: Likewise.
15323         * tests/test-gc-hmac-sha1.c: Likewise.
15324         * tests/test-gc-md2.c: Likewise.
15325         * tests/test-gc-md4.c: Likewise.
15326         * tests/test-gc-md5.c: Likewise.
15327         * tests/test-gc-pbkdf2-sha1.c: Likewise.
15328         * tests/test-gc-rijndael.c: Likewise.
15329         * tests/test-gc-sha1.c: Likewise.
15330         * tests/test-gc.c: Likewise.
15331         * tests/test-getcwd.c: Likewise.
15332         * tests/test-link.c: Likewise.
15333         * tests/test-link.h: Likewise.
15334         * tests/test-lutimens.h: Likewise.
15335         * tests/test-md2.c: Likewise.
15336         * tests/test-md4.c: Likewise.
15337         * tests/test-mkdir.h: Likewise.
15338         * tests/test-rename.c: Likewise.
15339         * tests/test-rename.h: Likewise.
15340         * tests/test-safe-alloc.c: Likewise.
15341         * tests/test-utimens-common.h: Likewise.
15342         * tests/test-utimens.h: Likewise.
15343
15344         maint: sync license texts
15345         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
15346         * doc/gpl-3.0.texi: Revert copyright year update.
15347         * doc/lgpl-3.0.texi: Likewise.
15348
15349 2009-12-29  Jim Meyering  <meyering@redhat.com>
15350
15351         update nearly all FSF copyright year lists to include 2009
15352         The files named by the following are exempted:
15353             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
15354               test -f "$dst" && { echo "$dst"; continue; }
15355               test -d "$dst" || continue
15356               echo "$dst"/$(basename "$src")
15357             done > exempt
15358             git ls-files tests/unictype >> exempt
15359         In the remaining files, convert to all-interval notation if
15360         - there is already at least one year interval like 2000-2003
15361         - the file is maintained by me
15362         - the file is in lib/uni*/, where that style already prevails
15363         Otherwise, use update-copyright's default.
15364
15365 2009-12-29  Simon Josefsson  <simon@josefsson.org>
15366         and Eric Blake  <ebb9@byu.net>
15367
15368         tests: don't require debug system() to pass
15369         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
15370         * tests/test-rmdir.h (test_rmdir_func): Likewise.
15371         * tests/test-unlink.h (test_unlink_func): Likewise.
15372         * tests/test-fstatat.c (main): ...into callers.
15373         * tests/test-lstat.c (main): Likewise.
15374         * tests/test-rmdir.c (main): Likewise.
15375         * tests/test-unlink.c (main): Likewise.
15376         * tests/test-unlinkat.c (main): Likewise.
15377         * tests/test-areadlink-with-size.c (main): Don't require a
15378         debug-only system call to pass, aiding cross-testing to mingw.
15379         * tests/test-areadlink.c (main): Likewise.
15380         * tests/test-areadlinkat-with-size.c (main): Likewise.
15381         * tests/test-areadlinkat.c (main): Likewise.
15382         * tests/test-canonicalize-lgpl.c (main): Likewise.
15383         * tests/test-canonicalize.c (main): Likewise.
15384         * tests/test-chown.c (main): Likewise.
15385         * tests/test-fchownat.c (main): Likewise.
15386         * tests/test-lchown.c (main): Likewise.
15387         * tests/test-fdutimensat.c (main): Likewise.
15388         * tests/test-futimens.c (main): Likewise.
15389         * tests/test-link.c (main): Likewise.
15390         * tests/test-linkat.c (main): Likewise.
15391         * tests/test-mkdir.c (main): Likewise.
15392         * tests/test-mkdirat.c (main): Likewise.
15393         * tests/test-mkfifo.c (main): Likewise.
15394         * tests/test-mkfifoat.c (main): Likewise.
15395         * tests/test-mknod.c (main): Likewise.
15396         * tests/test-readlink.c (main): Likewise.
15397         * tests/test-remove.c (main): Likewise.
15398         * tests/test-rename.c (main): Likewise.
15399         * tests/test-renameat.c (main): Likewise.
15400         * tests/test-symlink.c (main): Likewise.
15401         * tests/test-symlinkat.c (main): Likewise.
15402         * tests/test-utimens.c (main): Likewise.
15403         * tests/test-utimensat.c (main): Likewise.
15404
15405 2009-12-29  Simon Josefsson  <simon@josefsson.org>
15406
15407         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
15408         on $(UNUSED_PARAMETER_H) to avoid build failure.
15409
15410 2009-12-28  Jim Meyering  <meyering@redhat.com>
15411
15412         update-copyright: you may specify a max. line length other than 72
15413         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
15414
15415         maint: use consistent FSF copyright line syntax
15416         * lib/posixtm.c: Add missing comma in FSF copyright line.
15417         * lib/posixtm.h: Likewise.
15418         * lib/getugroups.c: Add missing ", Inc.".
15419
15420         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
15421         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
15422         FSF copyright line.  Remove trailing blanks.
15423
15424 2009-12-28  Eric Blake  <ebb9@byu.net>
15425
15426         test-dup2: reduce dependencies
15427         * modules/cloexec (Configure.ac): Set witness.
15428         * modules/dup2-tests (Depends-on): Drop cloexec.
15429         * tests/test-dup2.c (main): Skip portion of test if cloexec module
15430         not present.
15431         Suggested by Bruno Haible.
15432
15433 2009-12-26  Bruno Haible  <bruno@clisp.org>
15434
15435         Remove an unneeded dependency.
15436         * modules/fseterr (Depends-on): Remove dup2.
15437
15438 2009-12-26  Eric Blake  <ebb9@byu.net>
15439
15440         tests: use macros.h in more places
15441         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
15442         (ASSERT_STREAM): Provide default of stderr.
15443         * tests/test-dirent-safer.c: Include macros.h, using alternate
15444         stream for assertions.
15445         * tests/test-dup-safer.c: Likewise.
15446         * tests/test-freopen-safer.c: Likewise.
15447         * tests/test-getopt.c: Likewise.
15448         * tests/test-openat-safer.c: Likewise.
15449         * tests/test-pipe.c: Likewise.
15450         * tests/test-popen-safer.c: Likewise.
15451         * modules/dirent-safer-tests (Files): Include macros.h.
15452         * modules/unistd-safer-tests (Files): Likewise.
15453         * modules/freopen-safer-tests (Files): Likewise.
15454         * modules/getopt-posix-tests (Files): Likewise.
15455         * modules/openat-safer-tests (Files): Likewise.
15456         * modules/pipe-tests (Files): Likewise.
15457
15458 2009-12-26  Bruno Haible  <bruno@clisp.org>
15459
15460         javacomp: Portability fix.
15461         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
15462         that it also works on Solaris.
15463
15464 2009-12-26  Bruno Haible  <bruno@clisp.org>
15465
15466         localename: Fix storage allocation of gl_locale_name_thread's result.
15467         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
15468         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
15469         all platforms that have 'uselocale'.
15470         (gl_locale_name_thread_unsafe): New function, extracted from
15471         gl_locale_name_thread.
15472         (gl_locale_name_thread): Call struniq on all platforms that have
15473         'uselocale'.
15474         * tests/test-localename.c (test_locale_name_thread): Check that the
15475         resulting strings are permanently allocated.
15476         * modules/localename-tests (Depends-on): Add strdup.
15477
15478 2009-12-26  Bruno Haible  <bruno@clisp.org>
15479
15480         * tests/test-localename.c (categories): Fill in the strings.
15481
15482 2009-12-26  Jim Meyering  <meyering@redhat.com>
15483
15484         isdir: complete the removal of m4/isdir.m4
15485         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
15486
15487         isdir: clean up, since at least grep still uses it
15488         * lib/isdir.c: Include "isdir.h".
15489         (S_ISDIR): Remove now-unneeded definition.
15490         * modules/isdir (Files): Add lib/isdir.h.
15491         * lib/isdir.h: New file, with declaration.
15492         * m4/isdir.m4: Remove file -- unneeded.
15493
15494 2009-12-25  Bruno Haible  <bruno@clisp.org>
15495
15496         selinux-h: Make generated .h files standalone.
15497         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
15498         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
15499         * lib/se-selinux.in.h: Likewise.
15500         * modules/selinux-h (Depends-on): Add unused-parameter.
15501         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
15502         selinux/selinux.h and selinux/context.h.
15503         Suggested by Eric Blake.
15504
15505 2009-12-25  Bruno Haible  <bruno@clisp.org>
15506
15507         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
15508         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
15509         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
15510         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
15511         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
15512
15513 2009-12-24  Bruno Haible  <bruno@clisp.org>
15514
15515         openat: Fix warning.
15516         * lib/openat-proc.c: Include <unistd.h>.
15517
15518 2009-12-24  Bruno Haible  <bruno@clisp.org>
15519
15520         New module 'unused-parameter'.
15521         * build-aux/unused-parameter.h: New file, extracted from earlier
15522         gnulib-common.m4.
15523         * modules/unused-parameter: New file.
15524         * lib/unistr.h: Include unused-parameter.h.
15525         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
15526         _GL_UNUSED.
15527         * modules/unistr/base (Depends-on): Add unused-parameter.
15528
15529 2009-12-24  Bruno Haible  <bruno@clisp.org>
15530
15531         Add missing dependencies to 'extensions' module.
15532         * m4/extensions.m4: Add comment.
15533         * modules/accept4 (Depends-on): Add extensions.
15534         * modules/dup3 (Depends-on): Likewise.
15535         * modules/fcntl (Depends-on): Likewise.
15536         * modules/futimens (Depends-on): Likewise.
15537         * modules/mknod (Depends-on): Likewise.
15538         * modules/pipe2 (Depends-on): Likewise.
15539         * modules/stat-time (Depends-on): Likewise.
15540         * modules/strcasestr-simple (Depends-on): Likewise.
15541         * modules/strsignal (Depends-on): Likewise.
15542         * modules/utimensat (Depends-on): Likewise.
15543         * modules/localcharset (Depends-on): Likewise. Needed because of
15544         gl_FCNTL_O_FLAGS.
15545         * modules/wcrtomb (Depends-on): Likewise. Needed because of
15546         AC_TYPE_MBSTATE_T.
15547         * modules/wcsnrtombs (Depends-on): Likewise.
15548         * modules/wcsrtombs (Depends-on): Likewise.
15549
15550 2009-12-24  Bruno Haible  <bruno@clisp.org>
15551
15552         binary-io: Avoid gcc warning due to SET_BINARY.
15553         * lib/binary-io.h (SET_BINARY): Cast the result to void.
15554         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
15555
15556 2009-12-24  Bruno Haible  <bruno@clisp.org>
15557
15558         Avoid future namespace pollution on glibc systems.
15559         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
15560         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
15561         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
15562         glibc systems.
15563
15564 2009-12-24  Bruno Haible  <bruno@clisp.org>
15565
15566         Refactor common macros used in tests.
15567         * tests/macros.h: New file.
15568         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
15569         and/or <stdlib.h>, if appropriate.
15570         (ASSERT, SIZEOF): Remove macros.
15571         * tests/test-areadlink-with-size.c: Likewise.
15572         * tests/test-areadlinkat.c: Likewise.
15573         * tests/test-areadlinkat-with-size.c: Likewise.
15574         * tests/test-argmatch.c: Likewise.
15575         * tests/test-argv-iter.c: Likewise.
15576         * tests/test-array-mergesort.c: Likewise.
15577         * tests/test-array_list.c: Likewise.
15578         * tests/test-array_oset.c: Likewise.
15579         * tests/test-avltree_list.c: Likewise.
15580         * tests/test-avltree_oset.c: Likewise.
15581         * tests/test-avltreehash_list.c: Likewise.
15582         * tests/test-base64.c: Likewise.
15583         * tests/test-binary-io.c: Likewise.
15584         * tests/test-bitrotate.c: Likewise.
15585         * tests/test-btowc.c: Likewise.
15586         * tests/test-byteswap.c: Likewise.
15587         * tests/test-c-ctype.c: Likewise.
15588         * tests/test-c-stack.c: Likewise.
15589         * tests/test-c-strcasecmp.c: Likewise.
15590         * tests/test-c-strcasestr.c: Likewise.
15591         * tests/test-c-strncasecmp.c: Likewise.
15592         * tests/test-c-strstr.c: Likewise.
15593         * tests/test-canonicalize-lgpl.c: Likewise.
15594         * tests/test-canonicalize.c: Likewise.
15595         * tests/test-carray_list.c: Likewise.
15596         * tests/test-ceilf1.c: Likewise.
15597         * tests/test-ceilf2.c: Likewise.
15598         * tests/test-ceill.c: Likewise.
15599         * tests/test-chown.c: Likewise.
15600         * tests/test-cloexec.c: Likewise.
15601         * tests/test-copy-acl.c: Likewise.
15602         * tests/test-copy-file.c: Likewise.
15603         * tests/test-count-one-bits.c: Likewise.
15604         * tests/test-dprintf-posix.c: Likewise.
15605         * tests/test-dup2.c: Likewise.
15606         * tests/test-dup3.c: Likewise.
15607         * tests/test-duplocale.c: Likewise.
15608         * tests/test-fbufmode.c: Likewise.
15609         * tests/test-fchdir.c: Likewise.
15610         * tests/test-fchownat.c: Likewise.
15611         * tests/test-fcntl-safer.c: Likewise.
15612         * tests/test-fcntl.c: Likewise.
15613         * tests/test-fdopendir.c: Likewise.
15614         * tests/test-fdutimensat.c: Likewise.
15615         * tests/test-fflush2.c: Likewise.
15616         * tests/test-file-has-acl.c: Likewise.
15617         * tests/test-filevercmp.c: Likewise.
15618         * tests/test-flock.c: Likewise.
15619         * tests/test-floorf1.c: Likewise.
15620         * tests/test-floorf2.c: Likewise.
15621         * tests/test-floorl.c: Likewise.
15622         * tests/test-fnmatch.c: Likewise.
15623         * tests/test-fopen.h: Likewise.
15624         * tests/test-fpending.c: Likewise.
15625         * tests/test-fprintf-posix.c: Likewise.
15626         * tests/test-fpurge.c: Likewise.
15627         * tests/test-freadable.c: Likewise.
15628         * tests/test-freadahead.c: Likewise.
15629         * tests/test-freading.c: Likewise.
15630         * tests/test-freadptr.c: Likewise.
15631         * tests/test-freadptr2.c: Likewise.
15632         * tests/test-freadseek.c: Likewise.
15633         * tests/test-freopen.c: Likewise.
15634         * tests/test-frexp.c: Likewise.
15635         * tests/test-frexpl.c: Likewise.
15636         * tests/test-fseek.c: Likewise.
15637         * tests/test-fseeko.c: Likewise.
15638         * tests/test-fstatat.c: Likewise.
15639         * tests/test-fstrcmp.c: Likewise.
15640         * tests/test-fsync.c: Likewise.
15641         * tests/test-ftell.c: Likewise.
15642         * tests/test-ftello.c: Likewise.
15643         * tests/test-func.c: Likewise.
15644         * tests/test-futimens.c: Likewise.
15645         * tests/test-fwritable.c: Likewise.
15646         * tests/test-fwriting.c: Likewise.
15647         * tests/test-getcwd.c: Likewise.
15648         * tests/test-getdate.c: Likewise.
15649         * tests/test-getdelim.c: Likewise.
15650         * tests/test-getdtablesize.c: Likewise.
15651         * tests/test-getgroups.c: Likewise.
15652         * tests/test-getline.c: Likewise.
15653         * tests/test-getndelim2.c: Likewise.
15654         * tests/test-glob.c: Likewise.
15655         * tests/test-hash.c: Likewise.
15656         * tests/test-i-ring.c: Likewise.
15657         * tests/test-iconv-utf.c: Likewise.
15658         * tests/test-iconv.c: Likewise.
15659         * tests/test-idpriv-drop.c: Likewise.
15660         * tests/test-idpriv-droptemp.c: Likewise.
15661         * tests/test-inet_ntop.c: Likewise.
15662         * tests/test-inet_pton.c: Likewise.
15663         * tests/test-isblank.c: Likewise.
15664         * tests/test-isfinite.c: Likewise.
15665         * tests/test-isinf.c: Likewise.
15666         * tests/test-isnan.c: Likewise.
15667         * tests/test-isnand.h: Likewise.
15668         * tests/test-isnanf.h: Likewise.
15669         * tests/test-isnanl.h: Likewise.
15670         * tests/test-lchown.c: Likewise.
15671         * tests/test-ldexpl.c: Likewise.
15672         * tests/test-link.c: Likewise.
15673         * tests/test-linkat.c: Likewise.
15674         * tests/test-linked_list.c: Likewise.
15675         * tests/test-linkedhash_list.c: Likewise.
15676         * tests/test-localename.c: Likewise.
15677         * tests/test-lseek.c: Likewise.
15678         * tests/test-lstat.c: Likewise.
15679         * tests/test-mbmemcasecmp.c: Likewise.
15680         * tests/test-mbmemcasecoll.c: Likewise.
15681         * tests/test-mbrtowc.c: Likewise.
15682         * tests/test-mbscasecmp.c: Likewise.
15683         * tests/test-mbscasestr1.c: Likewise.
15684         * tests/test-mbscasestr2.c: Likewise.
15685         * tests/test-mbscasestr3.c: Likewise.
15686         * tests/test-mbscasestr4.c: Likewise.
15687         * tests/test-mbschr.c: Likewise.
15688         * tests/test-mbscspn.c: Likewise.
15689         * tests/test-mbsinit.c: Likewise.
15690         * tests/test-mbsncasecmp.c: Likewise.
15691         * tests/test-mbsnrtowcs.c: Likewise.
15692         * tests/test-mbspbrk.c: Likewise.
15693         * tests/test-mbspcasecmp.c: Likewise.
15694         * tests/test-mbsrchr.c: Likewise.
15695         * tests/test-mbsrtowcs.c: Likewise.
15696         * tests/test-mbsspn.c: Likewise.
15697         * tests/test-mbsstr1.c: Likewise.
15698         * tests/test-mbsstr2.c: Likewise.
15699         * tests/test-mbsstr3.c: Likewise.
15700         * tests/test-memchr.c: Likewise.
15701         * tests/test-memchr2.c: Likewise.
15702         * tests/test-memcmp.c: Likewise.
15703         * tests/test-memmem.c: Likewise.
15704         * tests/test-memrchr.c: Likewise.
15705         * tests/test-mkdir.c: Likewise.
15706         * tests/test-mkdirat.c: Likewise.
15707         * tests/test-mkfifo.c: Likewise.
15708         * tests/test-mkfifoat.c: Likewise.
15709         * tests/test-mknod.c: Likewise.
15710         * tests/test-nanosleep.c: Likewise.
15711         * tests/test-nl_langinfo.c: Likewise.
15712         * tests/test-obstack-printf.c: Likewise.
15713         * tests/test-open.c: Likewise.
15714         * tests/test-openat.c: Likewise.
15715         * tests/test-pipe-filter-gi1.c: Likewise.
15716         * tests/test-pipe-filter-gi2-main.c: Likewise.
15717         * tests/test-pipe-filter-ii1.c: Likewise.
15718         * tests/test-pipe-filter-ii2-main.c: Likewise.
15719         * tests/test-pipe2.c: Likewise.
15720         * tests/test-popen.h: Likewise.
15721         * tests/test-posixtm.c: Likewise.
15722         * tests/test-pread.c: Likewise.
15723         * tests/test-printf-frexp.c: Likewise.
15724         * tests/test-printf-frexpl.c: Likewise.
15725         * tests/test-printf-posix.c: Likewise.
15726         * tests/test-priv-set.c: Likewise.
15727         * tests/test-quotearg.c: Likewise.
15728         * tests/test-random_r.c: Likewise.
15729         * tests/test-rawmemchr.c: Likewise.
15730         * tests/test-rbtree_list.c: Likewise.
15731         * tests/test-rbtree_oset.c: Likewise.
15732         * tests/test-rbtreehash_list.c: Likewise.
15733         * tests/test-readlink.c: Likewise.
15734         * tests/test-remove.c: Likewise.
15735         * tests/test-rename.c: Likewise.
15736         * tests/test-renameat.c: Likewise.
15737         * tests/test-rmdir.c: Likewise.
15738         * tests/test-round1.c: Likewise.
15739         * tests/test-roundf1.c: Likewise.
15740         * tests/test-roundl.c: Likewise.
15741         * tests/test-safe-alloc.c: Likewise.
15742         * tests/test-sameacls.c: Likewise.
15743         * tests/test-set-mode-acl.c: Likewise.
15744         * tests/test-setenv.c: Likewise.
15745         * tests/test-sigaction.c: Likewise.
15746         * tests/test-signbit.c: Likewise.
15747         * tests/test-sleep.c: Likewise.
15748         * tests/test-snprintf-posix.c: Likewise.
15749         * tests/test-snprintf.c: Likewise.
15750         * tests/test-sprintf-posix.c: Likewise.
15751         * tests/test-stat-time.c: Likewise.
15752         * tests/test-stat.c: Likewise.
15753         * tests/test-strcasestr.c: Likewise.
15754         * tests/test-strchrnul.c: Likewise.
15755         * tests/test-strerror.c: Likewise.
15756         * tests/test-striconv.c: Likewise.
15757         * tests/test-striconveh.c: Likewise.
15758         * tests/test-striconveha.c: Likewise.
15759         * tests/test-strsignal.c: Likewise.
15760         * tests/test-strstr.c: Likewise.
15761         * tests/test-strtod.c: Likewise.
15762         * tests/test-strverscmp.c: Likewise.
15763         * tests/test-symlink.c: Likewise.
15764         * tests/test-symlinkat.c: Likewise.
15765         * tests/test-trunc1.c: Likewise.
15766         * tests/test-trunc2.c: Likewise.
15767         * tests/test-truncf1.c: Likewise.
15768         * tests/test-truncf2.c: Likewise.
15769         * tests/test-truncl.c: Likewise.
15770         * tests/test-uname.c: Likewise.
15771         * tests/test-unlink.c: Likewise.
15772         * tests/test-unlinkat.c: Likewise.
15773         * tests/test-unsetenv.c: Likewise.
15774         * tests/test-usleep.c: Likewise.
15775         * tests/test-utimens.c: Likewise.
15776         * tests/test-utimensat.c: Likewise.
15777         * tests/test-vasnprintf-posix.c: Likewise.
15778         * tests/test-vasnprintf-posix2.c: Likewise.
15779         * tests/test-vasnprintf.c: Likewise.
15780         * tests/test-vasprintf-posix.c: Likewise.
15781         * tests/test-vasprintf.c: Likewise.
15782         * tests/test-vdprintf-posix.c: Likewise.
15783         * tests/test-vfprintf-posix.c: Likewise.
15784         * tests/test-vprintf-posix.c: Likewise.
15785         * tests/test-vsnprintf-posix.c: Likewise.
15786         * tests/test-vsnprintf.c: Likewise.
15787         * tests/test-vsprintf-posix.c: Likewise.
15788         * tests/test-wcrtomb.c: Likewise.
15789         * tests/test-wcsnrtombs.c: Likewise.
15790         * tests/test-wcsrtombs.c: Likewise.
15791         * tests/test-wctype.c: Likewise.
15792         * tests/test-wcwidth.c: Likewise.
15793         * tests/test-xfprintf-posix.c: Likewise.
15794         * tests/test-xmemdup0.c: Likewise.
15795         * tests/test-xprintf-posix.c: Likewise.
15796         * tests/test-xvasprintf.c: Likewise.
15797         * tests/unicase/test-locale-language.c: Likewise.
15798         * tests/unicase/test-mapping-part1.h: Likewise.
15799         * tests/unicase/test-predicate-part1.h: Likewise.
15800         * tests/unicase/test-u8-casecmp.c: Likewise.
15801         * tests/unicase/test-u8-casecoll.c: Likewise.
15802         * tests/unicase/test-u8-casefold.c: Likewise.
15803         * tests/unicase/test-u8-is-cased.c: Likewise.
15804         * tests/unicase/test-u8-is-casefolded.c: Likewise.
15805         * tests/unicase/test-u8-is-lowercase.c: Likewise.
15806         * tests/unicase/test-u8-is-titlecase.c: Likewise.
15807         * tests/unicase/test-u8-is-uppercase.c: Likewise.
15808         * tests/unicase/test-u8-tolower.c: Likewise.
15809         * tests/unicase/test-u8-totitle.c: Likewise.
15810         * tests/unicase/test-u8-toupper.c: Likewise.
15811         * tests/unicase/test-u16-casecmp.c: Likewise.
15812         * tests/unicase/test-u16-casecoll.c: Likewise.
15813         * tests/unicase/test-u16-casefold.c: Likewise.
15814         * tests/unicase/test-u16-is-cased.c: Likewise.
15815         * tests/unicase/test-u16-is-casefolded.c: Likewise.
15816         * tests/unicase/test-u16-is-lowercase.c: Likewise.
15817         * tests/unicase/test-u16-is-titlecase.c: Likewise.
15818         * tests/unicase/test-u16-is-uppercase.c: Likewise.
15819         * tests/unicase/test-u16-tolower.c: Likewise.
15820         * tests/unicase/test-u16-totitle.c: Likewise.
15821         * tests/unicase/test-u16-toupper.c: Likewise.
15822         * tests/unicase/test-u32-casecmp.c: Likewise.
15823         * tests/unicase/test-u32-casecoll.c: Likewise.
15824         * tests/unicase/test-u32-casefold.c: Likewise.
15825         * tests/unicase/test-u32-is-cased.c: Likewise.
15826         * tests/unicase/test-u32-is-casefolded.c: Likewise.
15827         * tests/unicase/test-u32-is-lowercase.c: Likewise.
15828         * tests/unicase/test-u32-is-titlecase.c: Likewise.
15829         * tests/unicase/test-u32-is-uppercase.c: Likewise.
15830         * tests/unicase/test-u32-tolower.c: Likewise.
15831         * tests/unicase/test-u32-totitle.c: Likewise.
15832         * tests/unicase/test-u32-toupper.c: Likewise.
15833         * tests/unicase/test-ulc-casecmp.c: Likewise.
15834         * tests/unicase/test-ulc-casecoll.c: Likewise.
15835         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
15836         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
15837         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
15838         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
15839         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
15840         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
15841         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
15842         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
15843         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
15844         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
15845         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
15846         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
15847         * tests/unictype/test-bidi_byname.c: Likewise.
15848         * tests/unictype/test-bidi_name.c: Likewise.
15849         * tests/unictype/test-bidi_of.c: Likewise.
15850         * tests/unictype/test-bidi_test.c: Likewise.
15851         * tests/unictype/test-block_list.c: Likewise.
15852         * tests/unictype/test-block_of.c: Likewise.
15853         * tests/unictype/test-block_test.c: Likewise.
15854         * tests/unictype/test-categ_and.c: Likewise.
15855         * tests/unictype/test-categ_and_not.c: Likewise.
15856         * tests/unictype/test-categ_byname.c: Likewise.
15857         * tests/unictype/test-categ_name.c: Likewise.
15858         * tests/unictype/test-categ_none.c: Likewise.
15859         * tests/unictype/test-categ_of.c: Likewise.
15860         * tests/unictype/test-categ_or.c: Likewise.
15861         * tests/unictype/test-categ_test_withtable.c: Likewise.
15862         * tests/unictype/test-combining.c: Likewise.
15863         * tests/unictype/test-decdigit.c: Likewise.
15864         * tests/unictype/test-digit.c: Likewise.
15865         * tests/unictype/test-mirror.c: Likewise.
15866         * tests/unictype/test-numeric.c: Likewise.
15867         * tests/unictype/test-pr_byname.c: Likewise.
15868         * tests/unictype/test-pr_test.c: Likewise.
15869         * tests/unictype/test-predicate-part1.h: Likewise.
15870         * tests/unictype/test-scripts.c: Likewise.
15871         * tests/unictype/test-sy_c_ident.c: Likewise.
15872         * tests/unictype/test-sy_java_ident.c: Likewise.
15873         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
15874         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
15875         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
15876         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
15877         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
15878         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
15879         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
15880         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
15881         * tests/uninorm/test-canonical-decomposition.c: Likewise.
15882         * tests/uninorm/test-compat-decomposition.c: Likewise.
15883         * tests/uninorm/test-composition.c: Likewise.
15884         * tests/uninorm/test-decomposing-form.c: Likewise.
15885         * tests/uninorm/test-decomposition.c: Likewise.
15886         * tests/uninorm/test-u8-nfc.c: Likewise.
15887         * tests/uninorm/test-u8-nfd.c: Likewise.
15888         * tests/uninorm/test-u8-nfkc.c: Likewise.
15889         * tests/uninorm/test-u8-nfkd.c: Likewise.
15890         * tests/uninorm/test-u8-normcmp.c: Likewise.
15891         * tests/uninorm/test-u8-normcoll.c: Likewise.
15892         * tests/uninorm/test-u16-nfc.c: Likewise.
15893         * tests/uninorm/test-u16-nfd.c: Likewise.
15894         * tests/uninorm/test-u16-nfkc.c: Likewise.
15895         * tests/uninorm/test-u16-nfkd.c: Likewise.
15896         * tests/uninorm/test-u16-normcmp.c: Likewise.
15897         * tests/uninorm/test-u16-normcoll.c: Likewise.
15898         * tests/uninorm/test-u32-nfc.c: Likewise.
15899         * tests/uninorm/test-u32-nfd.c: Likewise.
15900         * tests/uninorm/test-u32-nfkc.c: Likewise.
15901         * tests/uninorm/test-u32-nfkd.c: Likewise.
15902         * tests/uninorm/test-u32-normalize-big.c: Likewise.
15903         * tests/uninorm/test-u32-normcmp.c: Likewise.
15904         * tests/uninorm/test-u32-normcoll.c: Likewise.
15905         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
15906         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
15907         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
15908         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
15909         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
15910         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
15911         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
15912         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
15913         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
15914         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
15915         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
15916         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
15917         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
15918         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
15919         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
15920         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
15921         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
15922         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
15923         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
15924         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
15925         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
15926         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
15927         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
15928         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
15929         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
15930         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
15931         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
15932         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
15933         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
15934         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
15935         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
15936         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
15937         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
15938         * tests/uniwidth/test-u8-strwidth.c: Likewise.
15939         * tests/uniwidth/test-u8-width.c: Likewise.
15940         * tests/uniwidth/test-u16-strwidth.c: Likewise.
15941         * tests/uniwidth/test-u16-width.c: Likewise.
15942         * tests/uniwidth/test-u32-strwidth.c: Likewise.
15943         * tests/uniwidth/test-u32-width.c: Likewise.
15944         * tests/uniwidth/test-uc_width.c: Likewise.
15945         * tests/uniwidth/test-uc_width2.c: Likewise.
15946         * modules/acl-tests (Files): Add tests/macros.h.
15947         * modules/areadlink-tests (Files): Likewise.
15948         * modules/areadlink-with-size-tests (Files): Likewise.
15949         * modules/areadlinkat-tests (Files): Likewise.
15950         * modules/areadlinkat-with-size-tests (Files): Likewise.
15951         * modules/argmatch-tests (Files): Likewise.
15952         * modules/argv-iter-tests (Files): Likewise.
15953         * modules/array-list-tests (Files): Likewise.
15954         * modules/array-mergesort-tests (Files): Likewise.
15955         * modules/array-oset-tests (Files): Likewise.
15956         * modules/avltree-list-tests (Files): Likewise.
15957         * modules/avltree-oset-tests (Files): Likewise.
15958         * modules/avltreehash-list-tests (Files): Likewise.
15959         * modules/base64-tests (Files): Likewise.
15960         * modules/binary-io-tests (Files): Likewise.
15961         * modules/bitrotate-tests (Files): Likewise.
15962         * modules/btowc-tests (Files): Likewise.
15963         * modules/byteswap-tests (Files): Likewise.
15964         * modules/c-ctype-tests (Files): Likewise.
15965         * modules/c-stack-tests (Files): Likewise.
15966         * modules/c-strcase-tests (Files): Likewise.
15967         * modules/c-strcasestr-tests (Files): Likewise.
15968         * modules/c-strstr-tests (Files): Likewise.
15969         * modules/canonicalize-lgpl-tests (Files): Likewise.
15970         * modules/canonicalize-tests (Files): Likewise.
15971         * modules/carray-list-tests (Files): Likewise.
15972         * modules/ceilf-tests (Files): Likewise.
15973         * modules/ceill-tests (Files): Likewise.
15974         * modules/chown-tests (Files): Likewise.
15975         * modules/cloexec-tests (Files): Likewise.
15976         * modules/copy-file-tests (Files): Likewise.
15977         * modules/count-one-bits-tests (Files): Likewise.
15978         * modules/dprintf-posix-tests (Files): Likewise.
15979         * modules/dup2-tests (Files): Likewise.
15980         * modules/dup3-tests (Files): Likewise.
15981         * modules/duplocale-tests (Files): Likewise.
15982         * modules/fbufmode-tests (Files): Likewise.
15983         * modules/fchdir-tests (Files): Likewise.
15984         * modules/fcntl-safer-tests (Files): Likewise.
15985         * modules/fcntl-tests (Files): Likewise.
15986         * modules/fdopendir-tests (Files): Likewise.
15987         * modules/fdutimensat-tests (Files): Likewise.
15988         * modules/fflush-tests (Files): Likewise.
15989         * modules/filevercmp-tests (Files): Likewise.
15990         * modules/flock-tests (Files): Likewise.
15991         * modules/floorf-tests (Files): Likewise.
15992         * modules/floorl-tests (Files): Likewise.
15993         * modules/fnmatch-tests (Files): Likewise.
15994         * modules/fopen-safer-tests (Files): Likewise.
15995         * modules/fopen-tests (Files): Likewise.
15996         * modules/fpending-tests (Files): Likewise.
15997         * modules/fprintf-posix-tests (Files): Likewise.
15998         * modules/fpurge-tests (Files): Likewise.
15999         * modules/freadable-tests (Files): Likewise.
16000         * modules/freadahead-tests (Files): Likewise.
16001         * modules/freading-tests (Files): Likewise.
16002         * modules/freadptr-tests (Files): Likewise.
16003         * modules/freadseek-tests (Files): Likewise.
16004         * modules/freopen-tests (Files): Likewise.
16005         * modules/frexp-nolibm-tests (Files): Likewise.
16006         * modules/frexp-tests (Files): Likewise.
16007         * modules/frexpl-nolibm-tests (Files): Likewise.
16008         * modules/frexpl-tests (Files): Likewise.
16009         * modules/fseek-tests (Files): Likewise.
16010         * modules/fseeko-tests (Files): Likewise.
16011         * modules/fstrcmp-tests (Files): Likewise.
16012         * modules/fsync-tests (Files): Likewise.
16013         * modules/ftell-tests (Files): Likewise.
16014         * modules/ftello-tests (Files): Likewise.
16015         * modules/func-tests (Files): Likewise.
16016         * modules/futimens-tests (Files): Likewise.
16017         * modules/fwritable-tests (Files): Likewise.
16018         * modules/fwriting-tests (Files): Likewise.
16019         * modules/getcwd-tests (Files): Likewise.
16020         * modules/getdate-tests (Files): Likewise.
16021         * modules/getdelim-tests (Files): Likewise.
16022         * modules/getdtablesize-tests (Files): Likewise.
16023         * modules/getgroups-tests (Files): Likewise.
16024         * modules/getline-tests (Files): Likewise.
16025         * modules/getndelim2-tests (Files): Likewise.
16026         * modules/glob-tests (Files): Likewise.
16027         * modules/hash-tests (Files): Likewise.
16028         * modules/i-ring-tests (Files): Likewise.
16029         * modules/iconv-tests (Files): Likewise.
16030         * modules/iconv_open-utf-tests (Files): Likewise.
16031         * modules/idpriv-drop-tests (Files): Likewise.
16032         * modules/idpriv-droptemp-tests (Files): Likewise.
16033         * modules/inet_ntop-tests (Files): Likewise.
16034         * modules/inet_pton-tests (Files): Likewise.
16035         * modules/isblank-tests (Files): Likewise.
16036         * modules/isfinite-tests (Files): Likewise.
16037         * modules/isinf-tests (Files): Likewise.
16038         * modules/isnan-tests (Files): Likewise.
16039         * modules/isnand-nolibm-tests (Files): Likewise.
16040         * modules/isnand-tests (Files): Likewise.
16041         * modules/isnanf-nolibm-tests (Files): Likewise.
16042         * modules/isnanf-tests (Files): Likewise.
16043         * modules/isnanl-nolibm-tests (Files): Likewise.
16044         * modules/isnanl-tests (Files): Likewise.
16045         * modules/lchown-tests (Files): Likewise.
16046         * modules/ldexpl-tests (Files): Likewise.
16047         * modules/link-tests (Files): Likewise.
16048         * modules/linkat-tests (Files): Likewise.
16049         * modules/linked-list-tests (Files): Likewise.
16050         * modules/linkedhash-list-tests (Files): Likewise.
16051         * modules/localename-tests (Files): Likewise.
16052         * modules/lseek-tests (Files): Likewise.
16053         * modules/lstat-tests (Files): Likewise.
16054         * modules/mbmemcasecmp-tests (Files): Likewise.
16055         * modules/mbmemcasecoll-tests (Files): Likewise.
16056         * modules/mbrtowc-tests (Files): Likewise.
16057         * modules/mbscasecmp-tests (Files): Likewise.
16058         * modules/mbscasestr-tests (Files): Likewise.
16059         * modules/mbschr-tests (Files): Likewise.
16060         * modules/mbscspn-tests (Files): Likewise.
16061         * modules/mbsinit-tests (Files): Likewise.
16062         * modules/mbsncasecmp-tests (Files): Likewise.
16063         * modules/mbsnrtowcs-tests (Files): Likewise.
16064         * modules/mbspbrk-tests (Files): Likewise.
16065         * modules/mbspcasecmp-tests (Files): Likewise.
16066         * modules/mbsrchr-tests (Files): Likewise.
16067         * modules/mbsrtowcs-tests (Files): Likewise.
16068         * modules/mbsspn-tests (Files): Likewise.
16069         * modules/mbsstr-tests (Files): Likewise.
16070         * modules/memchr-tests (Files): Likewise.
16071         * modules/memchr2-tests (Files): Likewise.
16072         * modules/memcmp-tests (Files): Likewise.
16073         * modules/memmem-tests (Files): Likewise.
16074         * modules/memrchr-tests (Files): Likewise.
16075         * modules/mkdir-tests (Files): Likewise.
16076         * modules/mkfifo-tests (Files): Likewise.
16077         * modules/mkfifoat-tests (Files): Likewise.
16078         * modules/mknod-tests (Files): Likewise.
16079         * modules/nanosleep-tests (Files): Likewise.
16080         * modules/nl_langinfo-tests (Files): Likewise.
16081         * modules/obstack-printf-tests (Files): Likewise.
16082         * modules/open-tests (Files): Likewise.
16083         * modules/openat-tests (Files): Likewise.
16084         * modules/pipe-filter-gi-tests (Files): Likewise.
16085         * modules/pipe-filter-ii-tests (Files): Likewise.
16086         * modules/pipe2-tests (Files): Likewise.
16087         * modules/popen-safer-tests (Files): Likewise.
16088         * modules/popen-tests (Files): Likewise.
16089         * modules/posixtm-tests (Files): Likewise.
16090         * modules/pread-tests (Files): Likewise.
16091         * modules/printf-frexp-tests (Files): Likewise.
16092         * modules/printf-frexpl-tests (Files): Likewise.
16093         * modules/printf-posix-tests (Files): Likewise.
16094         * modules/priv-set-tests (Files): Likewise.
16095         * modules/quotearg-tests (Files): Likewise.
16096         * modules/random_r-tests (Files): Likewise.
16097         * modules/rawmemchr-tests (Files): Likewise.
16098         * modules/rbtree-list-tests (Files): Likewise.
16099         * modules/rbtree-oset-tests (Files): Likewise.
16100         * modules/rbtreehash-list-tests (Files): Likewise.
16101         * modules/readlink-tests (Files): Likewise.
16102         * modules/remove-tests (Files): Likewise.
16103         * modules/rename-tests (Files): Likewise.
16104         * modules/renameat-tests (Files): Likewise.
16105         * modules/rmdir-tests (Files): Likewise.
16106         * modules/round-tests (Files): Likewise.
16107         * modules/roundf-tests (Files): Likewise.
16108         * modules/roundl-tests (Files): Likewise.
16109         * modules/safe-alloc-tests (Files): Likewise.
16110         * modules/setenv-tests (Files): Likewise.
16111         * modules/sigaction-tests (Files): Likewise.
16112         * modules/signbit-tests (Files): Likewise.
16113         * modules/sleep-tests (Files): Likewise.
16114         * modules/snprintf-posix-tests (Files): Likewise.
16115         * modules/snprintf-tests (Files): Likewise.
16116         * modules/sprintf-posix-tests (Files): Likewise.
16117         * modules/stat-tests (Files): Likewise.
16118         * modules/stat-time-tests (Files): Likewise.
16119         * modules/strcasestr-tests (Files): Likewise.
16120         * modules/strchrnul-tests (Files): Likewise.
16121         * modules/strerror-tests (Files): Likewise.
16122         * modules/striconv-tests (Files): Likewise.
16123         * modules/striconveh-tests (Files): Likewise.
16124         * modules/striconveha-tests (Files): Likewise.
16125         * modules/strsignal-tests (Files): Likewise.
16126         * modules/strstr-tests (Files): Likewise.
16127         * modules/strtod-tests (Files): Likewise.
16128         * modules/strverscmp-tests (Files): Likewise.
16129         * modules/symlink-tests (Files): Likewise.
16130         * modules/symlinkat-tests (Files): Likewise.
16131         * modules/trunc-tests (Files): Likewise.
16132         * modules/truncf-tests (Files): Likewise.
16133         * modules/truncl-tests (Files): Likewise.
16134         * modules/uname-tests (Files): Likewise.
16135         * modules/unicase/cased-tests (Files): Likewise.
16136         * modules/unicase/ignorable-tests (Files): Likewise.
16137         * modules/unicase/locale-language-tests (Files): Likewise.
16138         * modules/unicase/tolower-tests (Files): Likewise.
16139         * modules/unicase/totitle-tests (Files): Likewise.
16140         * modules/unicase/toupper-tests (Files): Likewise.
16141         * modules/unicase/u8-casecmp-tests (Files): Likewise.
16142         * modules/unicase/u8-casecoll-tests (Files): Likewise.
16143         * modules/unicase/u8-casefold-tests (Files): Likewise.
16144         * modules/unicase/u8-is-cased-tests (Files): Likewise.
16145         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
16146         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
16147         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
16148         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
16149         * modules/unicase/u8-tolower-tests (Files): Likewise.
16150         * modules/unicase/u8-totitle-tests (Files): Likewise.
16151         * modules/unicase/u8-toupper-tests (Files): Likewise.
16152         * modules/unicase/u16-casecmp-tests (Files): Likewise.
16153         * modules/unicase/u16-casecoll-tests (Files): Likewise.
16154         * modules/unicase/u16-casefold-tests (Files): Likewise.
16155         * modules/unicase/u16-is-cased-tests (Files): Likewise.
16156         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
16157         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
16158         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
16159         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
16160         * modules/unicase/u16-tolower-tests (Files): Likewise.
16161         * modules/unicase/u16-totitle-tests (Files): Likewise.
16162         * modules/unicase/u16-toupper-tests (Files): Likewise.
16163         * modules/unicase/u32-casecmp-tests (Files): Likewise.
16164         * modules/unicase/u32-casecoll-tests (Files): Likewise.
16165         * modules/unicase/u32-casefold-tests (Files): Likewise.
16166         * modules/unicase/u32-is-cased-tests (Files): Likewise.
16167         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
16168         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
16169         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
16170         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
16171         * modules/unicase/u32-tolower-tests (Files): Likewise.
16172         * modules/unicase/u32-totitle-tests (Files): Likewise.
16173         * modules/unicase/u32-toupper-tests (Files): Likewise.
16174         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
16175         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
16176         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
16177         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
16178         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
16179         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
16180         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
16181         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
16182         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
16183         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
16184         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
16185         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
16186         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
16187         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
16188         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
16189         * modules/unictype/bidicategory-name-tests (Files): Likewise.
16190         * modules/unictype/bidicategory-of-tests (Files): Likewise.
16191         * modules/unictype/bidicategory-test-tests (Files): Likewise.
16192         * modules/unictype/block-list-tests (Files): Likewise.
16193         * modules/unictype/block-of-tests (Files): Likewise.
16194         * modules/unictype/block-test-tests (Files): Likewise.
16195         * modules/unictype/category-C-tests (Files): Likewise.
16196         * modules/unictype/category-Cc-tests (Files): Likewise.
16197         * modules/unictype/category-Cf-tests (Files): Likewise.
16198         * modules/unictype/category-Cn-tests (Files): Likewise.
16199         * modules/unictype/category-Co-tests (Files): Likewise.
16200         * modules/unictype/category-Cs-tests (Files): Likewise.
16201         * modules/unictype/category-L-tests (Files): Likewise.
16202         * modules/unictype/category-Ll-tests (Files): Likewise.
16203         * modules/unictype/category-Lm-tests (Files): Likewise.
16204         * modules/unictype/category-Lo-tests (Files): Likewise.
16205         * modules/unictype/category-Lt-tests (Files): Likewise.
16206         * modules/unictype/category-Lu-tests (Files): Likewise.
16207         * modules/unictype/category-M-tests (Files): Likewise.
16208         * modules/unictype/category-Mc-tests (Files): Likewise.
16209         * modules/unictype/category-Me-tests (Files): Likewise.
16210         * modules/unictype/category-Mn-tests (Files): Likewise.
16211         * modules/unictype/category-N-tests (Files): Likewise.
16212         * modules/unictype/category-Nd-tests (Files): Likewise.
16213         * modules/unictype/category-Nl-tests (Files): Likewise.
16214         * modules/unictype/category-No-tests (Files): Likewise.
16215         * modules/unictype/category-P-tests (Files): Likewise.
16216         * modules/unictype/category-Pc-tests (Files): Likewise.
16217         * modules/unictype/category-Pd-tests (Files): Likewise.
16218         * modules/unictype/category-Pe-tests (Files): Likewise.
16219         * modules/unictype/category-Pf-tests (Files): Likewise.
16220         * modules/unictype/category-Pi-tests (Files): Likewise.
16221         * modules/unictype/category-Po-tests (Files): Likewise.
16222         * modules/unictype/category-Ps-tests (Files): Likewise.
16223         * modules/unictype/category-S-tests (Files): Likewise.
16224         * modules/unictype/category-Sc-tests (Files): Likewise.
16225         * modules/unictype/category-Sk-tests (Files): Likewise.
16226         * modules/unictype/category-Sm-tests (Files): Likewise.
16227         * modules/unictype/category-So-tests (Files): Likewise.
16228         * modules/unictype/category-Z-tests (Files): Likewise.
16229         * modules/unictype/category-Zl-tests (Files): Likewise.
16230         * modules/unictype/category-Zp-tests (Files): Likewise.
16231         * modules/unictype/category-Zs-tests (Files): Likewise.
16232         * modules/unictype/category-and-not-tests (Files): Likewise.
16233         * modules/unictype/category-and-tests (Files): Likewise.
16234         * modules/unictype/category-byname-tests (Files): Likewise.
16235         * modules/unictype/category-name-tests (Files): Likewise.
16236         * modules/unictype/category-none-tests (Files): Likewise.
16237         * modules/unictype/category-of-tests (Files): Likewise.
16238         * modules/unictype/category-or-tests (Files): Likewise.
16239         * modules/unictype/category-test-withtable-tests (Files): Likewise.
16240         * modules/unictype/combining-class-tests (Files): Likewise.
16241         * modules/unictype/ctype-alnum-tests (Files): Likewise.
16242         * modules/unictype/ctype-alpha-tests (Files): Likewise.
16243         * modules/unictype/ctype-blank-tests (Files): Likewise.
16244         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
16245         * modules/unictype/ctype-digit-tests (Files): Likewise.
16246         * modules/unictype/ctype-graph-tests (Files): Likewise.
16247         * modules/unictype/ctype-lower-tests (Files): Likewise.
16248         * modules/unictype/ctype-print-tests (Files): Likewise.
16249         * modules/unictype/ctype-punct-tests (Files): Likewise.
16250         * modules/unictype/ctype-space-tests (Files): Likewise.
16251         * modules/unictype/ctype-upper-tests (Files): Likewise.
16252         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
16253         * modules/unictype/decimal-digit-tests (Files): Likewise.
16254         * modules/unictype/digit-tests (Files): Likewise.
16255         * modules/unictype/mirror-tests (Files): Likewise.
16256         * modules/unictype/numeric-tests (Files): Likewise.
16257         * modules/unictype/property-alphabetic-tests (Files): Likewise.
16258         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
16259         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
16260         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
16261         Likewise.
16262         * modules/unictype/property-bidi-block-separator-tests (Files):
16263         Likewise.
16264         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
16265         Likewise.
16266         * modules/unictype/property-bidi-common-separator-tests (Files):
16267         Likewise.
16268         * modules/unictype/property-bidi-control-tests (Files): Likewise.
16269         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
16270         Likewise.
16271         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
16272         Likewise.
16273         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
16274         Likewise.
16275         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
16276         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
16277         Likewise.
16278         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
16279         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
16280         Likewise.
16281         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
16282         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
16283         * modules/unictype/property-bidi-segment-separator-tests (Files):
16284         Likewise.
16285         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
16286         * modules/unictype/property-byname-tests (Files): Likewise.
16287         * modules/unictype/property-combining-tests (Files): Likewise.
16288         * modules/unictype/property-composite-tests (Files): Likewise.
16289         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
16290         * modules/unictype/property-dash-tests (Files): Likewise.
16291         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
16292         * modules/unictype/property-default-ignorable-code-point-tests (Files):
16293         Likewise.
16294         * modules/unictype/property-deprecated-tests (Files): Likewise.
16295         * modules/unictype/property-diacritic-tests (Files): Likewise.
16296         * modules/unictype/property-extender-tests (Files): Likewise.
16297         * modules/unictype/property-format-control-tests (Files): Likewise.
16298         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
16299         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
16300         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
16301         * modules/unictype/property-hex-digit-tests (Files): Likewise.
16302         * modules/unictype/property-hyphen-tests (Files): Likewise.
16303         * modules/unictype/property-id-continue-tests (Files): Likewise.
16304         * modules/unictype/property-id-start-tests (Files): Likewise.
16305         * modules/unictype/property-ideographic-tests (Files): Likewise.
16306         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
16307         * modules/unictype/property-ids-trinary-operator-tests (Files):
16308         Likewise.
16309         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
16310         * modules/unictype/property-iso-control-tests (Files): Likewise.
16311         * modules/unictype/property-join-control-tests (Files): Likewise.
16312         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
16313         * modules/unictype/property-line-separator-tests (Files): Likewise.
16314         * modules/unictype/property-logical-order-exception-tests (Files):
16315         Likewise.
16316         * modules/unictype/property-lowercase-tests (Files): Likewise.
16317         * modules/unictype/property-math-tests (Files): Likewise.
16318         * modules/unictype/property-non-break-tests (Files): Likewise.
16319         * modules/unictype/property-not-a-character-tests (Files): Likewise.
16320         * modules/unictype/property-numeric-tests (Files): Likewise.
16321         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
16322         * modules/unictype/property-other-default-ignorable-code-point-tests
16323         (Files): Likewise.
16324         * modules/unictype/property-other-grapheme-extend-tests (Files):
16325         Likewise.
16326         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
16327         * modules/unictype/property-other-id-start-tests (Files): Likewise.
16328         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
16329         * modules/unictype/property-other-math-tests (Files): Likewise.
16330         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
16331         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
16332         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
16333         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
16334         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
16335         * modules/unictype/property-private-use-tests (Files): Likewise.
16336         * modules/unictype/property-punctuation-tests (Files): Likewise.
16337         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
16338         * modules/unictype/property-radical-tests (Files): Likewise.
16339         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
16340         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
16341         * modules/unictype/property-space-tests (Files): Likewise.
16342         * modules/unictype/property-terminal-punctuation-tests (Files):
16343         Likewise.
16344         * modules/unictype/property-test-tests (Files): Likewise.
16345         * modules/unictype/property-titlecase-tests (Files): Likewise.
16346         * modules/unictype/property-unassigned-code-value-tests (Files):
16347         Likewise.
16348         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
16349         * modules/unictype/property-uppercase-tests (Files): Likewise.
16350         * modules/unictype/property-variation-selector-tests (Files): Likewise.
16351         * modules/unictype/property-white-space-tests (Files): Likewise.
16352         * modules/unictype/property-xid-continue-tests (Files): Likewise.
16353         * modules/unictype/property-xid-start-tests (Files): Likewise.
16354         * modules/unictype/property-zero-width-tests (Files): Likewise.
16355         * modules/unictype/scripts-tests (Files): Likewise.
16356         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
16357         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
16358         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
16359         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
16360         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
16361         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
16362         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
16363         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
16364         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
16365         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
16366         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
16367         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
16368         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
16369         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
16370         * modules/uninorm/composition-tests (Files): Likewise.
16371         * modules/uninorm/decomposing-form-tests (Files): Likewise.
16372         * modules/uninorm/decomposition-tests (Files): Likewise.
16373         * modules/uninorm/filter-tests (Files): Likewise.
16374         * modules/uninorm/nfc-tests (Files): Likewise.
16375         * modules/uninorm/nfd-tests (Files): Likewise.
16376         * modules/uninorm/nfkc-tests (Files): Likewise.
16377         * modules/uninorm/nfkd-tests (Files): Likewise.
16378         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
16379         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
16380         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
16381         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
16382         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
16383         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
16384         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
16385         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
16386         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
16387         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
16388         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
16389         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
16390         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
16391         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
16392         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
16393         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
16394         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
16395         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
16396         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
16397         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
16398         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
16399         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
16400         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
16401         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
16402         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
16403         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
16404         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
16405         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
16406         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
16407         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
16408         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
16409         * modules/uniwidth/u8-width-tests (Files): Likewise.
16410         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
16411         * modules/uniwidth/u16-width-tests (Files): Likewise.
16412         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
16413         * modules/uniwidth/u32-width-tests (Files): Likewise.
16414         * modules/uniwidth/width-tests (Files): Likewise.
16415         * modules/unlink-tests (Files): Likewise.
16416         * modules/unsetenv-tests (Files): Likewise.
16417         * modules/usleep-tests (Files): Likewise.
16418         * modules/utimens-tests (Files): Likewise.
16419         * modules/utimensat-tests (Files): Likewise.
16420         * modules/vasnprintf-posix-tests (Files): Likewise.
16421         * modules/vasnprintf-tests (Files): Likewise.
16422         * modules/vasprintf-posix-tests (Files): Likewise.
16423         * modules/vasprintf-tests (Files): Likewise.
16424         * modules/vdprintf-posix-tests (Files): Likewise.
16425         * modules/vfprintf-posix-tests (Files): Likewise.
16426         * modules/vprintf-posix-tests (Files): Likewise.
16427         * modules/vsnprintf-posix-tests (Files): Likewise.
16428         * modules/vsnprintf-tests (Files): Likewise.
16429         * modules/vsprintf-posix-tests (Files): Likewise.
16430         * modules/wcrtomb-tests (Files): Likewise.
16431         * modules/wcsnrtombs-tests (Files): Likewise.
16432         * modules/wcsrtombs-tests (Files): Likewise.
16433         * modules/wctype-tests (Files): Likewise.
16434         * modules/wcwidth-tests (Files): Likewise.
16435         * modules/xmemdup0-tests (Files): Likewise.
16436         * modules/xprintf-posix-tests (Files): Likewise.
16437         * modules/xvasprintf-tests (Files): Likewise.
16438
16439 2009-12-24  Eric Blake  <ebb9@byu.net>
16440
16441         test-nanosleep: fix typo
16442         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
16443         patch.
16444         Reported by Bruno Haible.
16445
16446 2009-12-24  Bruno Haible  <bruno@clisp.org>
16447
16448         Reduce namespace pollution on glibc systems.
16449         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
16450         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
16451         systems.
16452         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
16453         <getopt.h> on glibc systems.
16454         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
16455         systems.
16456         * lib/fcntl.c: Include <unistd.h> here instead.
16457
16458 2009-12-24  Bruno Haible  <bruno@clisp.org>
16459
16460         * lib/stdlib.in.h (includes): Fix typo in today's commit.
16461
16462 2009-12-24  Eric Blake  <ebb9@byu.net>
16463
16464         tests: add signature checks
16465         * tests/signature.h (SIGNATURE_CHECK): New file.
16466         * modules/atexit-tests (Files): Use it.
16467         * modules/btowc-tests (Files): Likewise.
16468         * modules/canonicalize-lgpl-tests (Files): Likewise.
16469         * modules/ceilf-tests (Files): Likewise.
16470         * modules/ceill-tests (Files): Likewise.
16471         * modules/chown-tests (Files): Likewise.
16472         * modules/dprintf-posix-tests (Files): Likewise.
16473         * modules/dup2-tests (Files): Likewise.
16474         * modules/dup3-tests (Files): Likewise.
16475         * modules/duplocale-tests (Files): Likewise.
16476         * modules/fchdir-tests (Files): Likewise.
16477         * modules/fcntl-tests (Files): Likewise.
16478         * modules/fdopendir-tests (Files): Likewise.
16479         * modules/fflush-tests (Files): Likewise.
16480         * modules/flock-tests (Files): Likewise.
16481         * modules/floorf-tests (Files): Likewise.
16482         * modules/floorl-tests (Files): Likewise.
16483         * modules/fnmatch-tests (Files): Likewise.
16484         * modules/fopen-tests (Files): Likewise.
16485         * modules/fprintf-posix-tests (Files): Likewise.
16486         * modules/freopen-tests (Files): Likewise.
16487         * modules/frexp-nolibm-tests (Files): Likewise.
16488         * modules/frexp-tests (Files): Likewise.
16489         * modules/frexpl-nolibm-tests (Files): Likewise.
16490         * modules/frexpl-tests (Files): Likewise.
16491         * modules/fseek-tests (Files): Likewise.
16492         * modules/fseeko-tests (Files): Likewise.
16493         * modules/fsync-tests (Files): Likewise.
16494         * modules/ftell-tests (Files): Likewise.
16495         * modules/ftello-tests (Files): Likewise.
16496         * modules/futimens-tests (Files): Likewise.
16497         * modules/getaddrinfo-tests (Files): Likewise.
16498         * modules/getcwd-tests (Files): Likewise.
16499         * modules/getdelim-tests (Files): Likewise.
16500         * modules/getdtablesize-tests (Files): Likewise.
16501         * modules/getgroups-tests (Files): Likewise.
16502         * modules/gethostname-tests (Files): Likewise.
16503         * modules/getline-tests (Files): Likewise.
16504         * modules/getopt-posix-tests (Files): Likewise.
16505         * modules/gettimeofday-tests (Files): Likewise.
16506         * modules/glob-tests (Files): Likewise.
16507         * modules/iconv-tests (Files): Likewise.
16508         * modules/inet_ntop-tests (Files): Likewise.
16509         * modules/inet_pton-tests (Files): Likewise.
16510         * modules/isblank-tests (Files): Likewise.
16511         * modules/lchown-tests (Files): Likewise.
16512         * modules/ldexpl-tests (Files): Likewise.
16513         * modules/link-tests (Files): Likewise.
16514         * modules/linkat-tests (Files): Likewise.
16515         * modules/lseek-tests (Files): Likewise.
16516         * modules/lstat-tests (Files): Likewise.
16517         * modules/mbrtowc-tests (Files): Likewise.
16518         * modules/mbsinit-tests (Files): Likewise.
16519         * modules/mbsnrtowcs-tests (Files): Likewise.
16520         * modules/mbsrtowcs-tests (Files): Likewise.
16521         * modules/memchr-tests (Files): Likewise.
16522         * modules/memcmp-tests (Files): Likewise.
16523         * modules/memmem-tests (Files): Likewise.
16524         * modules/memrchr-tests (Files): Likewise.
16525         * modules/mkdir-tests (Files): Likewise.
16526         * modules/mkfifo-tests (Files): Likewise.
16527         * modules/mkfifoat-tests (Files): Likewise.
16528         * modules/mknod-tests (Files): Likewise.
16529         * modules/nanosleep-tests (Files): Likewise.
16530         * modules/nl_langinfo-tests (Files): Likewise.
16531         * modules/obstack-printf-tests (Files): Likewise.
16532         * modules/open-tests (Files): Likewise.
16533         * modules/openat-tests (Files): Likewise.
16534         * modules/perror-tests (Files): Likewise.
16535         * modules/pipe2-tests (Files): Likewise.
16536         * modules/poll-tests (Files): Likewise.
16537         * modules/popen-tests (Files): Likewise.
16538         * modules/posix_spawn-tests (Files): Likewise.
16539         * modules/posix_spawnp-tests (Files): Likewise.
16540         * modules/pread-tests (Files): Likewise.
16541         * modules/printf-posix-tests (Files): Likewise.
16542         * modules/pty-tests (Files): Likewise.
16543         * modules/random_r-tests (Files): Likewise.
16544         * modules/rawmemchr-tests (Files): Likewise.
16545         * modules/readlink-tests (Files): Likewise.
16546         * modules/remove-tests (Files): Likewise.
16547         * modules/rename-tests (Files): Likewise.
16548         * modules/renameat-tests (Files): Likewise.
16549         * modules/rmdir-tests (Files): Likewise.
16550         * modules/round-tests (Files): Likewise.
16551         * modules/roundf-tests (Files): Likewise.
16552         * modules/roundl-tests (Files): Likewise.
16553         * modules/select-tests (Files): Likewise.
16554         * modules/setenv-tests (Files): Likewise.
16555         * modules/sigaction-tests (Files): Likewise.
16556         * modules/sleep-tests (Files): Likewise.
16557         * modules/snprintf-posix-tests (Files): Likewise.
16558         * modules/snprintf-tests (Files): Likewise.
16559         * modules/sprintf-posix-tests (Files): Likewise.
16560         * modules/stat-tests (Files): Likewise.
16561         * modules/strcasestr-tests (Files): Likewise.
16562         * modules/strchrnul-tests (Files): Likewise.
16563         * modules/strerror-tests (Files): Likewise.
16564         * modules/strsignal-tests (Files): Likewise.
16565         * modules/strstr-tests (Files): Likewise.
16566         * modules/strtod-tests (Files): Likewise.
16567         * modules/strverscmp-tests (Files): Likewise.
16568         * modules/symlink-tests (Files): Likewise.
16569         * modules/symlinkat-tests (Files): Likewise.
16570         * modules/times-tests (Files): Likewise.
16571         * modules/trunc-tests (Files): Likewise.
16572         * modules/truncf-tests (Files): Likewise.
16573         * modules/truncl-tests (Files): Likewise.
16574         * modules/tsearch-tests (Files): Likewise.
16575         * modules/uname-tests (Files): Likewise.
16576         * modules/unlink-tests (Files): Likewise.
16577         * modules/unsetenv-tests (Files): Likewise.
16578         * modules/usleep-tests (Files): Likewise.
16579         * modules/utimensat-tests (Files): Likewise.
16580         * modules/vasprintf-tests (Files): Likewise.
16581         * modules/vdprintf-posix-tests (Files): Likewise.
16582         * modules/vfprintf-posix-tests (Files): Likewise.
16583         * modules/vprintf-posix-tests (Files): Likewise.
16584         * modules/vsnprintf-posix-tests (Files): Likewise.
16585         * modules/vsnprintf-tests (Files): Likewise.
16586         * modules/vsprintf-posix-tests (Files): Likewise.
16587         * modules/wcrtomb-tests (Files): Likewise.
16588         * modules/wcsnrtombs-tests (Files): Likewise.
16589         * modules/wcsrtombs-tests (Files): Likewise.
16590         * modules/wcwidth-tests (Files): Likewise.
16591         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
16592         * tests/test-isinf.c (isinf): Likewise.
16593         * tests/test-isnan.c (isnan): Likewise.
16594         * tests/test-signbit.c (signbit): Likewise.
16595         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
16596         declaration, either as macro or with correct signature.
16597         (select): Ensure function under test is declared with correct
16598         signature in correct header.
16599         * tests/test-atexit.c (atexit): Likewise.
16600         * tests/test-btowc.c (btowc): Likewise.
16601         * tests/test-canonicalize-lgpl.c (realpath)
16602         (canonicalize_file_name): Likewise.
16603         * tests/test-ceilf1.c (ceilf): Likewise.
16604         * tests/test-ceill.c (ceill): Likewise.
16605         * tests/test-chown.c (chown): Likewise.
16606         * tests/test-dprintf-posix.c (dprintf): Likewise.
16607         * tests/test-dup2.c (dup2): Likewise.
16608         * tests/test-dup3.c (dup3): Likewise.
16609         * tests/test-duplocale.c (duplocale): Likewise.
16610         * tests/test-fchdir.c (fchdir): Likewise.
16611         * tests/test-fchownat.c (fchownat): Likewise.
16612         * tests/test-fcntl.c (fcntl): Likewise.
16613         * tests/test-fdopendir.c (fdopendir): Likewise.
16614         * tests/test-fflush.c (fflush): Likewise.
16615         * tests/test-flock.c (flock): Likewise.
16616         * tests/test-floorf1.c (floorf): Likewise.
16617         * tests/test-floorl.c (floorl): Likewise.
16618         * tests/test-fnmatch.c (fnmatch): Likewise.
16619         * tests/test-fopen.c (fopen): Likewise.
16620         * tests/test-fprintf-posix.c (fprintf): Likewise.
16621         * tests/test-freopen.c (freopen): Likewise.
16622         * tests/test-frexp.c (frexp): Likewise.
16623         * tests/test-frexpl.c (frexpl): Likewise.
16624         * tests/test-fseek.c (fseek): Likewise.
16625         * tests/test-fseeko.c (fseeko): Likewise.
16626         * tests/test-fstatat.c (fstatat): Likewise.
16627         * tests/test-fsync.c (fsync): Likewise.
16628         * tests/test-ftell.c (ftell): Likewise.
16629         * tests/test-ftello.c (ftello): Likewise.
16630         * tests/test-futimens.c (futimens): Likewise.
16631         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
16632         (gai_strerror): Likewise.
16633         * tests/test-getcwd.c (getcwd): Likewise.
16634         * tests/test-getdelim.c (getdelim): Likewise.
16635         * tests/test-getdtablesize.c (getdtablesize): Likewise.
16636         * tests/test-getgroups.c (getgroups): Likewise.
16637         * tests/test-gethostname.c (gethostname): Likewise.
16638         * tests/test-getline.c (getline): Likewise.
16639         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
16640         Likewise.
16641         * tests/test-gettimeofday.c (gettimeofday): Likewise.
16642         * tests/test-glob.c (glob, globfree): Likewise.
16643         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
16644         * tests/test-inet_ntop.c (inet_ntop): Likewise.
16645         * tests/test-inet_pton.c (inet_pton): Likewise.
16646         * tests/test-isblank.c (isblank): Likewise.
16647         * tests/test-lchown.c (lchown): Likewise.
16648         * tests/test-ldexpl.c (ldexpl): Likewise.
16649         * tests/test-link.c (link): Likewise.
16650         * tests/test-linkat.c (linkat): Likewise.
16651         * tests/test-lseek.c (lseek): Likewise.
16652         * tests/test-lstat.c (lstat): Likewise.
16653         * tests/test-mbrtowc.c (mbrtowc): Likewise.
16654         * tests/test-mbsinit.c (mbsinit): Likewise.
16655         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
16656         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
16657         * tests/test-memchr.c (memchr): Likewise.
16658         * tests/test-memcmp.c (memcmp): Likewise.
16659         * tests/test-memmem.c (memmem): Likewise.
16660         * tests/test-memrchr.c (memrchr): Likewise.
16661         * tests/test-mkdir.c (mkdir): Likewise.
16662         * tests/test-mkdirat.c (mkdirat): Likewise.
16663         * tests/test-mkfifo.c (mkfifo): Likewise.
16664         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
16665         * tests/test-mknod.c (mknod): Likewise.
16666         * tests/test-nanosleep.c (nanosleep): Likewise.
16667         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
16668         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
16669         Likewise.
16670         * tests/test-open.c (open): Likewise.
16671         * tests/test-openat.c (openat): Likewise.
16672         * tests/test-perror.c (perror): Likewise.
16673         * tests/test-pipe2.c (pipe2): Likewise.
16674         * tests/test-poll.c (poll): Likewise.
16675         * tests/test-popen.c (popen, pclose): Likewise.
16676         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
16677         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
16678         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
16679         (posix_spawn_file_actions_destroy)
16680         (posix_spawn_file_actions_addclose)
16681         (posix_spawn_file_actions_addopen)
16682         (posix_spawn_file_actions_adddup2): Likewise.
16683         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
16684         * tests/test-pread.c (pread): Likewise.
16685         * tests/test-printf-posix.c (printf): Likewise.
16686         * tests/test-pty.c (openpty, forkpty): Likewise.
16687         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
16688         (random_r): Likewise.
16689         * tests/test-rawmemchr.c (rawmemchr): Likewise.
16690         * tests/test-readlink.c (readlink): Likewise.
16691         * tests/test-remove.c (remove): Likewise.
16692         * tests/test-rename.c (rename): Likewise.
16693         * tests/test-renameat.c (renameat): Likewise.
16694         * tests/test-rmdir.c (rmdir): Likewise.
16695         * tests/test-round1.c (round): Likewise.
16696         * tests/test-roundf1.c (roundf): Likewise.
16697         * tests/test-roundl.c (roundl): Likewise.
16698         * tests/test-setenv.c (setenv): Likewise.
16699         * tests/test-sigaction.c (sigaction): Likewise.
16700         * tests/test-sleep.c (sleep): Likewise.
16701         * tests/test-snprintf.c (snprintf): Likewise.
16702         * tests/test-sprintf-posix.c (sprintf): Likewise.
16703         * tests/test-stat.c (stat): Likewise.
16704         * tests/test-stpncpy.c (stpncpy): Likewise.
16705         * tests/test-strcasestr.c (strcasestr): Likewise.
16706         * tests/test-strchrnul.c (strchrnul): Likewise.
16707         * tests/test-strerror.c (strerror): Likewise.
16708         * tests/test-strsignal.c (strsignal): Likewise.
16709         * tests/test-strstr.c (strstr): Likewise.
16710         * tests/test-strtod.c (strtod): Likewise.
16711         * tests/test-strverscmp.c (strverscmp): Likewise.
16712         * tests/test-symlink.c (symlink): Likewise.
16713         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
16714         * tests/test-times.c (times): Likewise.
16715         * tests/test-trunc1.c (trunc): Likewise.
16716         * tests/test-truncf1.c (truncf): Likewise.
16717         * tests/test-truncl.c (truncl): Likewise.
16718         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
16719         Likewise.
16720         * tests/test-uname.c (uname): Likewise.
16721         * tests/test-unlink.c (unlink): Likewise.
16722         * tests/test-unlinkat.c (unlinkat): Likewise.
16723         * tests/test-unsetenv.c (unsetenv): Likewise.
16724         * tests/test-usleep.c (usleep): Likewise.
16725         * tests/test-utimensat.c (utimensat): Likewise.
16726         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
16727         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
16728         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
16729         * tests/test-vprintf-posix.c (vprintf): Likewise.
16730         * tests/test-vsnprintf.c (vsnprintf): Likewise.
16731         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
16732         * tests/test-wcrtomb.c (wcrtomb): Likewise.
16733         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
16734         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
16735         * tests/test-wcwidth.c (wcwidth): Likewise.
16736
16737         build: pull in conditional headers during GNULIB_POSIXCHECK
16738         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
16739         definitions from any conditionally-included headers.
16740         * lib/stdlib.in.h (includes): Likewise.
16741         * lib/unistd.in.h (includes): Likewise.
16742
16743 2009-12-24  Bruno Haible  <bruno@clisp.org>
16744
16745         * tests/test-argv-iter.c: Include header file being tested immediately
16746         after config.h.
16747         * tests/test-base64.c: Likewise.
16748         * tests/test-flock.c: Likewise.
16749         * tests/test-fsync.c: Likewise.
16750         * tests/test-getdate.c: Likewise.
16751         * tests/test-getndelim2.c: Likewise.
16752         * tests/test-isfinite.c: Likewise.
16753         * tests/test-isinf.c: Likewise.
16754         * tests/test-strerror.c: Likewise.
16755         * tests/test-strsignal.c: Likewise.
16756
16757 2009-12-23  Eric Blake  <ebb9@byu.net>
16758
16759         unistd: work around cygwin bug
16760         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
16761         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
16762         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
16763
16764 2009-12-23  Bruno Haible  <bruno@clisp.org>
16765
16766         localename: More tests.
16767         * tests/test-localename.c (SIZEOF): New macro.
16768         (categories): New variable.
16769         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
16770         test_locale_name_default): Add test w.r.t. thread locale.
16771         (test_locale_name_thread): New function.
16772         (main): Invoke it.
16773
16774         localename: Make aware of thread locale.
16775         * lib/localename.h (gl_locale_name_thread): New declaration.
16776         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
16777         behaviour with respect to thread locale.
16778         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
16779         <langinfo.h>, glthread/lock.h.
16780         (SIZE_BITS): New macro.
16781         (string_hash): New function.
16782         (struct hash_node): New type.
16783         (HASH_TABLE_SIZE): New macro.
16784         (struniq_hash_table, struniq_lock): New variables.
16785         (struniq): New function.
16786         (gl_locale_name_thread): New function.
16787         (gl_locale_name): Invoke it.
16788         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
16789         * modules/localename (Depends-on): Add lock.
16790         Reported by Mike Gran <spk121@yahoo.com>.
16791
16792 2009-12-23  Eric Blake  <ebb9@byu.net>
16793
16794         va-args: new module
16795         * modules/va-args: New file.
16796         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
16797         * MODULES.html.sh (Core language properties): Mention it.
16798
16799         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
16800         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
16801         named alias for __attribute__((__unused__)).
16802         * lib/chown.c: Update client.
16803         * lib/fchmodat.c: Likewise.
16804         * lib/fts.c: Likewise.
16805         * lib/getdate.y: Likewise.
16806         * lib/getgroups.c: Likewise.
16807         * lib/getopt.c: Likewise.
16808         * lib/getugroups.c: Likewise.
16809         * lib/mkdir.c: Likewise.
16810         * lib/mkfifo.c: Likewise.
16811         * lib/mkfifoat.c: Likewise.
16812         * lib/mknod.c: Likewise.
16813         * lib/mknodat.c: Likewise.
16814         * lib/readlink.c: Likewise.
16815         * lib/se-context.in.h: Likewise.
16816         * lib/se-selinux.in.h: Likewise.
16817         * lib/sockets.c: Likewise.
16818         * lib/symlink.c: Likewise.
16819         * lib/symlinkat.c: Likewise.
16820         * lib/unicodeio.c: Likewise.
16821         * lib/unistr.h: Likewise.
16822         * tests/test-areadlink.c: Likewise.
16823         * tests/test-areadlinkat.c: Likewise.
16824         * tests/test-filenamecat.c: Likewise.
16825         * tests/test-fseeko.c: Likewise.
16826         * tests/test-ftello.c: Likewise.
16827         * tests/test-getdate.c: Likewise.
16828         * tests/test-getgroups.c: Likewise.
16829         * tests/test-gethostname.c: Likewise.
16830         * tests/test-quotearg.c: Likewise.
16831         * tests/test-version-etc.c: Likewise.
16832         * tests/test-xalloc-die.c: Likewise.
16833         * tests/test-xfprintf-posix.c: Likewise.
16834         * tests/test-xprintf-posix.c: Likewise.
16835         * tests/test-xvasprintf.c: Likewise.
16836
16837         tests: avoid compiler warnings
16838         * tests/test-fcntl.c (main): Delete unused parameters.
16839         * tests/test-freopen-safer.c (main): Likewise.
16840         * tests/test-xalloc-die.c (main): Mark unused parameters.
16841         * tests/test-fseeko.c (main): Likewise.
16842         * tests/test-ftello.c (main): Likewise.
16843         * tests/test-nanosleep.c (main): Avoid declaration warning.
16844         * tests/test-sleep.c (main): Likewise.
16845         * tests/test-unsetenv.c (main): Silence warning about string
16846         literal.
16847         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
16848
16849 2009-12-23  Bruno Haible  <bruno@clisp.org>
16850
16851         * tests/test-localename.c (test_locale_name): New function, extracted
16852         from main. Also test mixed situations.
16853         (test_locale_name_posix, test_locale_name_environ,
16854         test_locale_name_default): New functions.
16855         (main): Invoke them all.
16856         * modules/localename-tests (configure.ac): Test for newlocale.
16857
16858 2009-12-23  Bruno Haible  <bruno@clisp.org>
16859
16860         unistd: Ensure getcwd gets declared before being overridden.
16861         * lib/unistd.in.h: Conditionally include <io.h>.
16862
16863 2009-12-22  Bruno Haible  <bruno@clisp.org>
16864
16865         wchar: Diagnose broken combination of glibc and gcc versions and flags.
16866         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
16867         (gl_WCHAR_H): Invoke it.
16868         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
16869         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
16870         Reported by Karl Berry <karl@freefriends.org>.
16871
16872 2009-12-22  Eric Blake  <ebb9@byu.net>
16873
16874         math, unistd: avoid redundant includes
16875         * lib/math.in.h (isnan): No need to re-include <math.h>.
16876         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
16877
16878         getsubopt: work around cygwin bug
16879         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
16880         avoid conflicting with system getsubopt.
16881         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
16882         bug.
16883
16884         getopt: synchronize from glibc
16885         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
16886         parameter order.  Adjust all callers.
16887         (_getopt_internal_r, main): Adjust quoting in error messages.
16888         Drop considerations for outdated POSIX 1003.2 error message.
16889         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
16890         callers.
16891         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
16892
16893         test-getopt: test stderr behavior
16894         * modules/getopt-posix-tests (Depends-on): Add dup2.
16895         * tests/test-getopt.c (ASSERT): Avoid stderr.
16896         (main): Move stderr to a temporary file.
16897         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
16898         Instead, add parameter to inform caller if output occurred.
16899         (test_getopt): Adjust all existing tests to expect silence, and
16900         add new tests of leading ":".
16901         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
16902         glibc shortcomings with leading "-:" or "+:" in optstring.
16903         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16904         Likewise.
16905         * doc/posix-functions/getopt.texi (getopt): Likewise.
16906
16907         test-getopt: enhance test
16908         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
16909         supports optind=0.
16910         * tests/test-getopt.c (OPTIND_MIN): Move...
16911         * tests/test-getopt.h (OPTIND_MIN): ...here.
16912         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
16913         Require that optind=0 works, since modern BSD supports it in
16914         addition to optreset, and since coreutils expects it.
16915         (test_getopt_long_only): New test.
16916         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
16917         glibc shortcomings with 'W;', and enforcement of optind=0.
16918         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16919         Likewise.
16920
16921 2009-12-21  Bruno Haible  <bruno@clisp.org>
16922
16923         localename: Improvements for MacOS X and Cygwin.
16924         * lib/localename.h (gl_locale_name_environ): New declaration.
16925         * lib/localename.c (gl_locale_name_environ): New function, extracted from
16926         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
16927         (gl_locale_name_posix): Invoke it.
16928         (gl_locale_name_default): Add comments. Use Windows native API also on
16929         Cygwin.
16930
16931 2009-12-21  Bruno Haible  <bruno@clisp.org>
16932
16933         Update list of Win32 locale ids.
16934         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
16935         (LANG_SAMI): Renamed from LANG_SAAMI.
16936         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
16937         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
16938         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
16939         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
16940         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
16941         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
16942         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
16943         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
16944         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
16945         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
16946         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
16947         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
16948         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
16949         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
16950         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
16951         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
16952         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
16953         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
16954         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
16955         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
16956         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
16957         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
16958         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
16959         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
16960         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
16961         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
16962         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
16963         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
16964         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
16965         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
16966         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
16967         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
16968         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
16969         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
16970         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
16971         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
16972         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
16973         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
16974         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
16975         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
16976         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
16977         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
16978         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
16979         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
16980         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
16981         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
16982         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
16983         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
16984         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
16985         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
16986         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
16987         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
16988         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
16989         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
16990         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
16991         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
16992         Add more languages and countries for Sami, Sorbian. Add more countries
16993         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
16994         for Pashto. Change country for Syriac, Tswana.
16995
16996 2009-12-21  Eric Blake  <ebb9@byu.net>
16997
16998         test-utimens: avoid spurious failure
16999         * tests/test-chown.h (nap): Factor...
17000         * tests/nap.h: ...into new file.
17001         * tests/test-lchown.h (nap): Avoid duplication.
17002         * tests/test-utimens-common.h (nap): Use shared implementation,
17003         necessary on file systems with 1-second resolution.
17004         * modules/chown-tests (Files): Include new file.
17005         * modules/fdutimensat-tests (Files): Likewise.
17006         * modules/futimens-tests (Files): Likewise.
17007         * modules/lchown-tests (Files): Likewise.
17008         * modules/openat-tests (Files): Likewise.
17009         * modules/utimens-tests (Files): Likewise.
17010         * modules/utimensat-tests (Files): Likewise.
17011
17012 2009-12-19  Eric Blake  <ebb9@byu.net>
17013
17014         futimens, utimensat: work around Linux bug
17015         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
17016         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17017         * lib/utimensat.c (rpl_utimensat): Work around it.
17018         * lib/futimens.c (rpl_futimens): Adjust comment.
17019
17020         utimens: work around Linux ctime bug
17021         * lib/utimens.c (detect_ctime_bug): New helper function.
17022         (update_timespec): Differentiate between workaround needed for
17023         this bug vs. what is needed for systems that lack utimensat.
17024         (fdutimens, lutimens): Work around bug.
17025
17026         utimens: check for ctime update
17027         * tests/test-utimens-common.h (check_ctime): Define.
17028         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
17029         * tests/test-futimens.h (test_futimens): Likewise.
17030         * tests/test-lutimens.h (test_lutimens): Likewise.
17031         * doc/posix-functions/futimens.texi (futimens): Document the bug.
17032         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
17033
17034 2009-12-19  Bruno Haible  <bruno@clisp.org>
17035
17036         dprintf-posix: Check against memory leak fixed on 2009-12-15.
17037         * tests/test-dprintf-posix2.sh: New file.
17038         * tests/test-dprintf-posix2.c: New file.
17039         * modules/dprintf-posix-tests (Files): Add them.
17040         (configure.ac): Check for getrlimit and setrlimit.
17041         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
17042
17043 2009-12-19  Bruno Haible  <bruno@clisp.org>
17044
17045         fprintf-posix: Check against memory leak fixed on 2009-12-15.
17046         * tests/test-fprintf-posix3.sh: New file.
17047         * tests/test-fprintf-posix3.c: New file.
17048         * modules/fprintf-posix-tests (Files): Add them.
17049         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
17050
17051 2009-12-19  Eric Blake  <ebb9@byu.net>
17052
17053         dirfd: fix prototype
17054         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
17055         * lib/dirfd.c (dirfd): Likewise.
17056
17057         canonicalize: reduce memory usage
17058         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
17059         allocation to size.
17060         Reported by Solar Designer <solar@openwall.com>.
17061
17062 2009-12-19  Bruno Haible  <bruno@clisp.org>
17063
17064         New module attribute 'Applicability'.
17065         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
17066         * gnulib-tool: New option --extract-applicability.
17067         (func_usage): Document it.
17068         (sed_extract_prog): Recognize it.
17069         (func_get_applicability): New function.
17070         (func_import): Generalize handling of 'link-warning' module.
17071         * modules/link-warning (Applicability): New section.
17072         * modules/arg-nonnull (Applicability): New section.
17073         Repoted by Simon Josefsson <simon@josefsson.org>.
17074
17075 2009-12-19  Bruno Haible  <bruno@clisp.org>
17076
17077         fflush: tweak
17078         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
17079         * lib/fseeko.c (rpl_fseeko): Likewise.
17080
17081 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
17082
17083         * lib/gl_list.h: Fix typo in comment.
17084
17085 2009-12-16  Eric Blake  <ebb9@byu.net>
17086
17087         fcntl: use to simplify other modules
17088         * modules/cloexec (Depends-on): Add fcntl.
17089         * modules/fchdir (Depends-on): Likewise.
17090         * modules/fd-safer-flag (Depends-on): Likewise.
17091         * modules/unistd-safer (Depends-on): Likewise.
17092         * modules/dup3 (configure.ac): Set module indicator.
17093         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
17094         missing.
17095         * lib/fchdir.c (_gl_register_dup): Fix comment.
17096         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
17097         * lib/dup-safer.c (dup_safer): Likewise.
17098         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
17099         * lib/dup3.c (dup3): Likewise.
17100         * tests/test-fchdir.c (main): Enhance test.
17101         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
17102
17103         fcntl: port portions of fcntl to mingw
17104         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
17105         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
17106         replacement for mingw.
17107         * modules/fcntl (Description): Update.
17108         (Depends-on): Add dup2.
17109         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
17110         * modules/fcntl-h (Makefile.am): Substitute it.
17111         * lib/fcntl.in.h (fcntl): Update declaration.
17112         (F_DUPFD, F_GETFD): New macros, when needed.
17113         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
17114         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
17115         * tests/test-fcntl.c (check_flags, main): Enhance test for items
17116         we now guarantee.
17117
17118         fcntl: work around cygwin bug in F_DUPFD
17119         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
17120         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
17121         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
17122         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
17123         * doc/posix-functions/fcntl.texi (fcntl): Document it.
17124
17125         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
17126         * modules/fcntl (Files): List new files.
17127         (configure.ac): Run a test.
17128         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
17129         * lib/fcntl.c (rpl_fcntl): Likewise.
17130         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
17131         (gl_FCNTL_H): Always replace fcntl.h.
17132         * modules/fcntl-h (Makefile.am): Substitute witnesses.
17133         * lib/fcntl.in.h (fcntl): Declare replacement.
17134         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
17135         needed, plus a witness.
17136         * doc/posix-functions/fcntl.texi (fcntl): Document this.
17137         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
17138         * tests/test-fcntl.c: New file.
17139         * modules/fcntl-tests: Likewise.
17140
17141         binary-io: avoid potential compilation warning
17142         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
17143         directives.
17144
17145         fflush: avoid compilation error on NetBSD
17146         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
17147         between off_t and fpos_t, since the latter is sometimes a struct.
17148         * lib/fseeko.c (rpl_fseeko): Likewise.
17149         Reported by Alexander Nasonov <alnsn@yandex.ru>.
17150
17151 2009-12-15  Eric Blake  <ebb9@byu.net>
17152
17153         fcntl-h, stdio, sys_ioctl: fix declarations
17154         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
17155         function must not take arguments.
17156         * lib/sys_ioctl.in.h (ioctl): Likewise.
17157         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
17158         (open): Add a link warning.
17159
17160 2009-12-15  Jim Meyering  <meyering@redhat.com>
17161
17162         areadlink, areadlink-with-size: relax license to LGPLv2+
17163         * modules/areadlink (License): Relax to LGPLv2+.
17164         * modules/areadlink-with-size (License): Likewise.
17165
17166 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
17167             Bruno Haible  <bruno@clisp.org>
17168
17169         *printf: Fix memory leak.
17170         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
17171         * lib/vfprintf.c (vfprintf): Likewise.
17172         * lib/dprintf.c (dprintf): Likewise.
17173         * lib/vdprintf.c (vdprintf): Likewise.
17174
17175 2009-12-14  Eric Blake  <ebb9@byu.net>
17176
17177         accept4: adjust module dependencies
17178         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
17179
17180         utimens: one more try at avoiding compiler warning
17181         * lib/utimens.c (lutimens): Lower scope of result.
17182
17183 2009-12-13  Bruno Haible  <bruno@clisp.org>
17184
17185         Move the malloc checking from module 'list' to new module 'xlist'.
17186         * modules/xlist: New file.
17187         * lib/gl_xlist.h: New file.
17188         * lib/gl_xlist.c: New file.
17189         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
17190         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
17191         gl_list_add_last, gl_list_add_before, gl_list_add_after,
17192         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
17193         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
17194         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
17195         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
17196         gl_sortedlist_nx_add): New declarations.
17197         (struct gl_list_implementation): Rename and change methods accordingly.
17198         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
17199         (gl_list_nx_create): Renamed from gl_list_create.
17200         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
17201         (gl_list_nx_set_at): Renamed from gl_list_set_at.
17202         (gl_list_nx_add_first): Renamed from gl_list_add_first.
17203         (gl_list_nx_add_last): Renamed from gl_list_add_last.
17204         (gl_list_nx_add_before): Renamed from gl_list_add_before.
17205         (gl_list_nx_add_after): Renamed from gl_list_add_after.
17206         (gl_list_nx_add_at): Renamed from gl_list_add_at.
17207         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
17208         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
17209         gl_list_create_empty.
17210         (gl_list_nx_create): Renamed from gl_list_create.
17211         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
17212         (gl_list_nx_set_at): Renamed from gl_list_set_at.
17213         (gl_list_nx_add_first): Renamed from gl_list_add_first.
17214         (gl_list_nx_add_last): Renamed from gl_list_add_last.
17215         (gl_list_nx_add_before): Renamed from gl_list_add_before.
17216         (gl_list_nx_add_after): Renamed from gl_list_add_after.
17217         (gl_list_nx_add_at): Renamed from gl_list_add_at.
17218         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
17219         * lib/gl_array_list.c: Don't include xalloc.h.
17220         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
17221         NULL upon out-of-memory.
17222         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
17223         out-of-memory.
17224         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
17225         Change return type to 'int'.
17226         (gl_array_nx_set_at): Renamed from gl_array_set_at.
17227         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
17228         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
17229         upon out-of-memory.
17230         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
17231         upon out-of-memory.
17232         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
17233         upon out-of-memory.
17234         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
17235         upon out-of-memory.
17236         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
17237         out-of-memory.
17238         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
17239         Update.
17240         (gl_array_list_implementation): Update.
17241         * lib/gl_carray_list.c: Don't include xalloc.h.
17242         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
17243         Return NULL upon out-of-memory.
17244         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
17245         out-of-memory.
17246         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
17247         Change return type to 'int'.
17248         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
17249         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
17250         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
17251         upon out-of-memory.
17252         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
17253         upon out-of-memory.
17254         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
17255         out-of-memory.
17256         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
17257         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
17258         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
17259         Update.
17260         (gl_carray_list_implementation): Update.
17261         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
17262         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
17263         gl_linked_create_empty. Return NULL upon out-of-memory.
17264         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
17265         out-of-memory.
17266         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
17267         Change return type to 'int'. Return -1 upon out-of-memory.
17268         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
17269         out-of-memory.
17270         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
17271         upon out-of-memory.
17272         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
17273         upon out-of-memory.
17274         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
17275         NULL upon out-of-memory.
17276         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
17277         upon out-of-memory.
17278         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
17279         out-of-memory.
17280         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
17281         Update.
17282         * lib/gl_linked_list.c: Don't include xalloc.h.
17283         (gl_linked_list_implementation): Update.
17284         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
17285         (add_to_bucket): Change return type to 'int'.
17286         (gl_linkedhash_list_implementation): Update.
17287         * lib/gl_anytree_list1.h (free_subtree): New function.
17288         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
17289         gl_tree_create_empty. Return NULL upon out-of-memory.
17290         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
17291         Change return type to 'int'. Return -1 upon out-of-memory.
17292         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
17293         out-of-memory.
17294         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
17295         (gl_tree_remove_node): New function, moved here from
17296         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
17297         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
17298         Update.
17299         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
17300         malloc, not xmalloc. Return NULL upon out-of-memory.
17301         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
17302         out-of-memory.
17303         (gl_tree_remove_node_from_tree): New function, extracted from
17304         gl_tree_remove_node.
17305         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
17306         upon out-of-memory.
17307         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
17308         out-of-memory.
17309         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
17310         upon out-of-memory.
17311         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
17312         upon out-of-memory.
17313         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
17314         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
17315         not xmalloc. Return NULL upon out-of-memory.
17316         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
17317         out-of-memory.
17318         (gl_tree_remove_node_from_tree): New function, extracted from
17319         gl_tree_remove_node.
17320         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
17321         upon out-of-memory.
17322         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
17323         out-of-memory.
17324         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
17325         upon out-of-memory.
17326         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
17327         upon out-of-memory.
17328         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
17329         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
17330         gl_anytree_list1.h before gl_anyavltree_list2.h.
17331         (gl_avltree_list_implementation): Update.
17332         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
17333         gl_anytree_list1.h before gl_anyavltree_list2.h.
17334         (gl_rbtree_list_implementation): Update.
17335         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
17336         Change return type to 'int'. Return -1 upon out-of-memory. Use
17337         __builtin_expect.
17338         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
17339         (gl_avltreehash_list_implementation): Update.
17340         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
17341         (gl_rbtreehash_list_implementation): Update.
17342         * modules/array-list (Depends-on): Remove xalloc.
17343         * modules/carray-list (Depends-on): Likewise.
17344         * modules/linked-list (Depends-on): Likewise.
17345         * modules/linkedhash-list (Depends-on): Likewise.
17346         * modules/avltree-list (Depends-on): Likewise.
17347         * modules/rbtree-list (Depends-on): Likewise.
17348         * modules/avltreehash-list (Depends-on): Likewise.
17349         * modules/rbtreehash-list (Depends-on): Likewise.
17350
17351         * modules/xsublist: New file.
17352         * lib/gl_xsublist.h: New file.
17353         * lib/gl_xsublist.c: New file.
17354         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
17355         (gl_sublist_nx_create): New declaration.
17356         * lib/gl_sublist.c: Don't include xalloc.h.
17357         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
17358         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
17359         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
17360         Change return type to 'int'. Return -1 upon out-of-memory.
17361         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
17362         upon out-of-memory.
17363         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
17364         NULL upon out-of-memory.
17365         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
17366         upon out-of-memory.
17367         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
17368         NULL upon out-of-memory.
17369         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
17370         NULL upon out-of-memory.
17371         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
17372         upon out-of-memory.
17373         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
17374         (gl_sublist_list_implementation): Update.
17375         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
17376         upon out-of-memory.
17377         * modules/sublist (Depends-on): Remove xalloc.
17378
17379         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
17380         * tests/test-carray_list.c: Likewise.
17381         * tests/test-linked_list.c: Likewise.
17382         * tests/test-linkedhash_list.c: Likewise.
17383         * tests/test-avltree_list.c: Likewise.
17384         * tests/test-rbtree_list.c: Likewise.
17385         * tests/test-avltreehash_list.c: Likewise.
17386         * tests/test-rbtreehash_list.c: Likewise.
17387         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
17388         * modules/carray-list-tests (Makefile.am): Likewise.
17389         * modules/linked-list-tests (Makefile.am): Likewise.
17390         * modules/linkedhash-list-tests (Makefile.am): Likewise.
17391         * modules/avltree-list-tests (Makefile.am): Likewise.
17392         * modules/rbtree-list-tests (Makefile.am): Likewise.
17393         * modules/avltreehash-list-tests (Makefile.am): Likewise.
17394         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
17395
17396         * NEWS: Mention the changes.
17397
17398         * lib/clean-temp.c: Include gl_xlist.h.
17399         * modules/clean-temp (Depends-on): Add xlist.
17400
17401         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
17402         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
17403
17404         * tests/test-array_oset.c: Include gl_xlist.h.
17405         * modules/array-oset-tests (Depends-on): Add xlist.
17406
17407         Reported by José E. Marchesi <jemarch@gnu.org>.
17408
17409 2009-12-13  Bruno Haible  <bruno@clisp.org>
17410
17411         Move the malloc checking from module 'oset' to new module 'xoset'.
17412         * modules/xoset: New file.
17413         * lib/gl_xoset.h: New file.
17414         * lib/gl_xoset.c: New file.
17415         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
17416         declarations.
17417         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
17418         (struct gl_oset_implementation): Rename and change methods accordingly.
17419         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
17420         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
17421         'int'. Mark as __warn_unused_result__.
17422         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
17423         gl_oset_create_empty.
17424         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
17425         'int'.
17426         * lib/gl_array_oset.c: Don't include xalloc.h.
17427         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
17428         malloc, not xmalloc.
17429         (grow): Change return type to 'int'. Don't call xalloc_die.
17430         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
17431         to 'int'.
17432         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
17433         'int'.
17434         (gl_array_oset_implementation): Update.
17435         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
17436         gl_tree_create_empty.
17437         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
17438         'int'.
17439         * lib/gl_avltree_oset.c: Don't include xalloc.h.
17440         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
17441         xmalloc.
17442         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
17443         not xmalloc.
17444         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
17445         xmalloc.
17446         (gl_avltree_oset_implementation): Update.
17447         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
17448         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
17449         xmalloc.
17450         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
17451         not xmalloc.
17452         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
17453         xmalloc.
17454         (gl_rbtree_oset_implementation): Update.
17455         * modules/array-oset (Depends-on): Remove xalloc.
17456         * modules/avltree-oset (Depends-on): Likewise.
17457         * modules/rbtree-oset (Depends-on): Likewise.
17458         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
17459         * tests/test-avltree_oset.c: Likewise.
17460         * tests/test-rbtree_oset.c: Likewise.
17461         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
17462         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
17463         * modules/rbtree-oset-tests (Makefile.am): Likewise.
17464         * NEWS: Mention the change.
17465
17466 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
17467
17468         maint.mk: allow a project to override release-prep commands
17469         * top/maint.mk (alpha, beta, stable): Move release-preparatory
17470         commands into a new rule.
17471         (release-prep): New rule.
17472         (release-prep-hook): New overridable variable.
17473
17474 2009-12-13  Bruno Haible  <bruno@clisp.org>
17475
17476         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
17477
17478 2009-12-13  Jim Meyering  <meyering@redhat.com>
17479
17480         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
17481         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
17482
17483 2009-12-12  Bruno Haible  <bruno@clisp.org>
17484
17485         duplocale: Tweak.
17486         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
17487
17488 2009-12-12  Karl Berry  <karl@gnu.org>
17489
17490         * config/srclist.txt (strtoll.c): tab changes, no more sync.
17491
17492 2009-12-12  Bruno Haible  <bruno@clisp.org>
17493
17494         * m4/po.m4: Undo incorrect untabification.
17495
17496 2009-12-12  Bruno Haible  <bruno@clisp.org>
17497
17498         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
17499         * modules/c-strtod (Depends-on): Add locale.
17500         * modules/c-strtold (Depends-on): Likewise.
17501
17502 2009-12-12  Bruno Haible  <bruno@clisp.org>
17503
17504         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
17505
17506 2009-12-11  Eric Blake  <ebb9@byu.net>
17507
17508         setenv: relax requirement in light of POSIX ruling
17509         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
17510         not NULL.
17511         * tests/test-setenv.c (main): Relax test.
17512         * tests/test-unsetenv.c (main): Likewise.
17513         * doc/posix-functions/setenv.texi (setenv): Document this.
17514         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
17515
17516 2009-12-11  Bruno Haible  <bruno@clisp.org>
17517
17518         New module 'fd-safer-flag'.
17519         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
17520         * lib/dup-safer.c (dup_safer_flag): Remove function.
17521         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
17522         * lib/fd-safer.c (fd_safer_flag): Remove function.
17523         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
17524         * modules/cloexec (configure.ac): Drop indicator macro.
17525         * modules/fd-safer-flag: New file.
17526         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
17527         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
17528         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
17529
17530 2009-12-11  Bruno Haible  <bruno@clisp.org>
17531
17532         Tests for module 'nl_langinfo'.
17533         * modules/nl_langinfo-tests: New file.
17534         * tests/test-nl_langinfo.sh: New file.
17535         * tests/test-nl_langinfo.c: New file.
17536
17537         New module 'nl_langinfo'.
17538         * lib/nl_langinfo.c: New file.
17539         * m4/nl_langinfo.m4: New file.
17540         * modules/nl_langinfo: New file.
17541         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
17542
17543 2009-12-11  Bruno Haible  <bruno@clisp.org>
17544
17545         Tests for module 'langinfo'.
17546         * modules/langinfo-tests: New file.
17547         * tests/test-langinfo.c: New file.
17548
17549         New module 'langinfo'.
17550         * lib/langinfo.in.h: New file.
17551         * m4/langinfo_h.m4: New file.
17552         * modules/langinfo: New file.
17553         * doc/posix-headers/langinfo.texi: Mention the new module.
17554
17555 2009-12-11  Bruno Haible  <bruno@clisp.org>
17556
17557         * lib/config.charset: Untabify.
17558
17559 2009-12-11  Bruno Haible  <bruno@clisp.org>
17560
17561         * modules/unistd-safer (configure.ac): Drop indicator macro.
17562
17563 2009-12-11  Bruno Haible  <bruno@clisp.org>
17564
17565         Move pipe2-safer code to its own file.
17566         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
17567         * lib/pipe-safer.c (pipe2_safer): Remove function.
17568         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
17569         (Makefile.am): Add it to lib_SOURCES.
17570
17571 2009-12-10  Bruno Haible  <bruno@clisp.org>
17572
17573         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
17574
17575 2009-12-10  Bruno Haible  <bruno@clisp.org>
17576
17577         Declare which arguments expect non-NULL values, for GCC and clang.
17578         * build-aux/arg-nonnull.h: New file.
17579         * modules/arg-nonnull: New file.
17580         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
17581         (inet_ntop, inet_pton): Use it.
17582         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
17583         (closedir, dirfd, opendir, scandir, alphasort): Use it.
17584         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
17585         (open, openat): Use it.
17586         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
17587         (fnmatch): Use it.
17588         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
17589         (getopt, getopt_long, getopt_long_only): Use it.
17590         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
17591         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
17592         Use it.
17593         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
17594         (iconv_open): Use it.
17595         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
17596         (strtoimax, strtoumax): Use it.
17597         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
17598         (duplocale): Use it.
17599         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
17600         (frexp, frexpl): Use it.
17601         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
17602         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
17603         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
17604         (tsearch, tfind, tdelete, twalk): Use it.
17605         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
17606         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
17607         sigpending): Use it.
17608         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
17609         (posix_spawn, posix_spawnp, posix_spawnattr_init,
17610         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
17611         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
17612         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
17613         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
17614         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
17615         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
17616         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
17617         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
17618         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
17619         Use it.
17620         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
17621         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
17622         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
17623         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
17624         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
17625         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
17626         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
17627         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
17628         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
17629         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
17630         strtoull, unsetenv): Use it.
17631         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
17632         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
17633         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
17634         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
17635         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
17636         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
17637         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
17638         (strcasecmp, strncasecmp): Use it.
17639         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
17640         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
17641         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
17642         rpl_setsockopt): Use it.
17643         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
17644         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
17645         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
17646         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
17647         (gettimeofday): Use it.
17648         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
17649         (times): Use it.
17650         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
17651         (uname): Use it.
17652         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
17653         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
17654         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
17655         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
17656         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
17657         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
17658         unlinkat, write): Use it.
17659         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
17660         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
17661         * lib/argv-iter.h: Include arg-nonnull.h.
17662         (_ATTRIBUTE_NONNULL_): Remove macro.
17663         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
17664         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
17665         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
17666         optimization.
17667         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
17668         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
17669         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
17670         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
17671         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
17672         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
17673         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
17674         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
17675         * modules/arpa_inet (Depends-on): Add arg-nonnull.
17676         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
17677         * modules/dirent (Depends-on): Add arg-nonnull.
17678         (Makefile.am): Insert arg-nonnull.h into dirent.h.
17679         * modules/fcntl-h (Depends-on): Add arg-nonnull.
17680         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
17681         * modules/fnmatch (Depends-on): Add arg-nonnull.
17682         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
17683         * modules/getopt-posix (Depends-on): Add arg-nonnull.
17684         (Makefile.am): Insert arg-nonnull.h into getopt.h.
17685         * modules/glob (Depends-on): Add arg-nonnull.
17686         (Makefile.am): Insert arg-nonnull.h into glob.h.
17687         * modules/iconv_open (Depends-on): Add arg-nonnull.
17688         (Makefile.am): Insert arg-nonnull.h into iconv.h.
17689         * modules/inttypes (Depends-on): Add arg-nonnull.
17690         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
17691         * modules/locale (Depends-on): Add arg-nonnull.
17692         (Makefile.am): Insert arg-nonnull.h into locale.h.
17693         * modules/math (Depends-on): Add arg-nonnull.
17694         (Makefile.am): Insert arg-nonnull.h into math.h.
17695         * modules/netdb (Depends-on): Add arg-nonnull.
17696         (Makefile.am): Insert arg-nonnull.h into netdb.h.
17697         * modules/search (Depends-on): Add arg-nonnull.
17698         (Makefile.am): Insert arg-nonnull.h into search.h.
17699         * modules/signal (Depends-on): Add arg-nonnull.
17700         (Makefile.am): Insert arg-nonnull.h into signal.h.
17701         * modules/spawn (Depends-on): Add arg-nonnull.
17702         (Makefile.am): Insert arg-nonnull.h into spawn.h.
17703         * modules/stdio (Depends-on): Add arg-nonnull.
17704         (Makefile.am): Insert arg-nonnull.h into stdio.h.
17705         * modules/stdlib (Depends-on): Add arg-nonnull.
17706         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
17707         * modules/string (Depends-on): Add arg-nonnull.
17708         (Makefile.am): Insert arg-nonnull.h into string.h.
17709         * modules/strings (Depends-on): Add arg-nonnull.
17710         (Makefile.am): Insert arg-nonnull.h into strings.h.
17711         * modules/sys_socket (Depends-on): Add arg-nonnull.
17712         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
17713         * modules/sys_stat (Depends-on): Add arg-nonnull.
17714         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
17715         * modules/sys_time (Depends-on): Add arg-nonnull.
17716         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
17717         * modules/sys_times (Depends-on): Add arg-nonnull.
17718         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
17719         * modules/sys_utsname (Depends-on): Add arg-nonnull.
17720         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
17721         * modules/time (Depends-on): Add arg-nonnull.
17722         (Makefile.am): Insert arg-nonnull.h into time.h.
17723         * modules/unistd (Depends-on): Add arg-nonnull.
17724         (Makefile.am): Insert arg-nonnull.h into unistd.h.
17725         * modules/wchar (Depends-on): Add arg-nonnull.
17726         (Makefile.am): Insert arg-nonnull.h into wchar.h.
17727         * modules/argv-iter (Depends-on): Add arg-nonnull.
17728         * tests/test-canonicalize.c (null_ptr): New function.
17729         (main): Use it.
17730         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
17731         (main): Use it.
17732         * tests/test-memmem.c (null_ptr): New function.
17733         (main): Use it.
17734         Reported by Jim Meyering.
17735
17736 2009-12-10  Bruno Haible  <bruno@clisp.org>
17737
17738         Use spaces for indentation, not tabs.
17739         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
17740         * m4/*.m4: Untabify.
17741         * build-aux/*.h: Untabify.
17742         * tests/**/*.[hc]: Untabify.
17743         * README: New section "Indent with spaces, not TABs", based on
17744         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
17745         * NEWS: Mention the change.
17746
17747 2009-12-10  Bruno Haible  <bruno@clisp.org>
17748
17749         pty test: Fix link error.
17750         * modules/pty-tests (Makefile.am): Add the default LDADD value to
17751         test_pty_LDADD.
17752
17753 2009-12-07  Simon Josefsson  <simon@josefsson.org>
17754
17755         * modules/pty: New file.
17756         * modules/pty-tests: New file.
17757         * m4/pty.m4: New file.
17758         * tests/test-pty.c: New file.
17759         * doc/glibc-headers/pty.texi: Modified.
17760         * doc/glibc-functions/forkpty.texi: Modified.
17761         * doc/glibc-functions/openpty.texi: Modified.
17762
17763 2009-12-10  Bruno Haible  <bruno@clisp.org>
17764
17765         Avoid syntax error in C++ mode.
17766         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
17767
17768 2009-12-10  Bruno Haible  <bruno@clisp.org>
17769
17770         Use sed with option -e.
17771         * gnulib-tool (func_version, func_emit_copyright_notice,
17772         func_emit_initmacro_end, func_import, func_create_testdir): Pass
17773         option -e to sed.
17774         * modules/link-warning (Makefile.am): Likewise.
17775
17776 2009-12-10  Jim Meyering  <meyering@redhat.com>
17777
17778         mgetgroups: do not write bytes beyond end of malloc'd buffer
17779         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
17780         username, we call getgroups with a one-element-shorter buffer,
17781         but still told it the length was original, max_n_groups.
17782
17783 2009-12-09  Eric Blake  <ebb9@byu.net>
17784
17785         cloexec: relax license
17786         * modules/cloexec (Maintainer): Add myself.
17787         (License): Use LGPL, not GPL.
17788
17789         link-warning: optimize generation
17790         * modules/link-warning (Makefile.am): Reduce process usage.
17791
17792 2009-12-09  Bruno Haible  <bruno@clisp.org>
17793
17794         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
17795         workaround was added on 2009-11-17.
17796
17797 2009-12-09  Jim Meyering  <meyering@redhat.com>
17798             Bruno Haible  <bruno@clisp.org>
17799
17800         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
17801         * modules/link-warning (Makefile.am): Make the comment-removing sed
17802         command more robust in the face of bootstrap-prepended comment lines.
17803
17804 2009-12-09  Bruno Haible  <bruno@clisp.org>
17805
17806         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
17807         most one group.
17808
17809 2009-12-09  Simon Josefsson <simon@josefsson.org>
17810             Bruno Haible  <bruno@clisp.org>
17811
17812         * build-aux/link-warning.h: Add copyright notice.
17813         * modules/link-warning (Makefile.am): Generate link-warning.h from
17814         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
17815         * NEWS: Mention change in link-warning module.
17816         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
17817         * modules/dirent (Makefile.am): Add dependency to dirent.h.
17818         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
17819         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
17820         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
17821         * modules/math (Makefile.am): Add dependency to math.h.
17822         * modules/search (Makefile.am): Add dependency to search.h.
17823         * modules/signal (Makefile.am): Add dependency to signal.h.
17824         * modules/spawn (Makefile.am): Add dependency to spawn.h.
17825         * modules/stdio (Makefile.am): Add dependency to stdio.h.
17826         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
17827         * modules/string (Makefile.am): Add dependency to string.h.
17828         * modules/strings (Makefile.am): Add dependency to strings.h.
17829         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
17830         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
17831         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
17832         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
17833         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
17834         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
17835         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
17836         * modules/unistd (Makefile.am): Add dependency to unistd.h.
17837         * modules/wchar (Makefile.am): Add dependency to wchar.h.
17838
17839 2009-12-09  Bruno Haible  <bruno@clisp.org>
17840
17841         fchdir: Optimize away rpl_fstat when possible.
17842         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
17843         REPLACE_OPEN_DIRECTORY.
17844         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
17845
17846 2009-12-09  Bruno Haible  <bruno@clisp.org>
17847
17848         * lib/fchdir.c: Update comment.
17849
17850 2009-12-09  Bruno Haible  <bruno@clisp.org>
17851
17852         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
17853
17854 2009-12-08  Eric Blake  <ebb9@byu.net>
17855
17856         fchdir: avoid memory leak on re-registration.
17857         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
17858
17859 2009-12-08  Jim Meyering  <meyering@redhat.com>
17860
17861         init.sh: avoid Solaris 10 /bin/sh portability problem
17862         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
17863         sourced script:
17864           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
17865           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
17866           bar
17867         tests/init.sh relied on that, accepting a --set-path=DIR argument,
17868         and two tests used that idiom.
17869         * tests/init.sh: Update suggested usage comments.
17870         (path_prepend_): New function, to be used in place
17871         of the --src-path=DIR option.
17872         (setup_): Move PATH-prepending code into path_prepend_.
17873         * tests/test-pread.sh: Adapt to new usage.
17874         * tests/test-xalloc-die.sh: Likewise.
17875
17876 2009-12-08  Simon Josefsson  <simon@josefsson.org>
17877
17878         * doc/gnulib.texi (Glibc pty.h): Add.
17879         * doc/glibc-functions/forkpty.texi: Add.
17880         * doc/glibc-functions/openpty.texi: Add.
17881         Suggested by Bruno Haible.
17882
17883 2009-12-08  Eric Blake  <ebb9@byu.net>
17884
17885         fchdir: fix logic bugs
17886         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
17887         * tests/test-fchdir.c (main): Enhance test.
17888         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
17889         is in use.
17890
17891         dup2: fix logic bugs
17892         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
17893         REPLACE_DUP2 to decide when rpl_dup2 is needed.
17894         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
17895         exists.
17896         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
17897
17898 2009-12-07  Eric Blake  <ebb9@byu.net>
17899
17900         unlink: fix m4 detection
17901         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
17902
17903         unistd-safer: add unit test
17904         * modules/unistd-safer-tests: New file.
17905         * tests/test-dup-safer.c: Likewise.
17906         * tests/test-cloexec.c (setmode): Avoid compiler warning.
17907         * tests/test-dup2.c (setmode): Likewise.
17908         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
17909
17910         cloexec: preserve text vs. binary across dup_cloexec
17911         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
17912         mode.
17913         * modules/dup2-tests (Depends-on): Add binary-io.
17914         * modules/cloexec-tests (Depends-on): Likewise.
17915         * tests/test-dup2.c (setmode, is_mode): New helpers.
17916         (main): Add tests that translation mode is preserved.
17917         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
17918         Reported by Bruno Haible.
17919
17920         mgetgroups: reduce duplicate listings
17921         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
17922         resulting array.
17923         * tests/test-chown.h (test_chown): Simplify client.
17924         * tests/test-lchown.h (test_lchown): Likewise.
17925
17926 2009-12-06  Bruno Haible  <bruno@clisp.org>
17927
17928         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
17929         value.
17930
17931 2009-12-06  Bruno Haible  <bruno@clisp.org>
17932
17933         * lib/progname.c: Include stdio.h, stdlib.h.
17934         (set_program_name): Reject a NULL argument.
17935
17936 2009-12-05  Eric Blake  <ebb9@byu.net>
17937
17938         pipe2-safer: new module
17939         * modules/pipe2-safer: New file.
17940         * lib/unistd-safer.h (pipe2_safer): New prototype.
17941         * lib/unistd--.h (pipe2): New wrapper.
17942         * lib/pipe-safer.c (pipe2_safer): New function.
17943         * modules/pipe (Depends-on): Add pipe2-safer.
17944         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
17945
17946         stdlib-safer: preserve cloexec flag for mkostemp[s]
17947         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
17948         fd_safer_flag.
17949
17950         unistd-safer: allow preservation of cloexec status via flag
17951         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
17952         prototypes.
17953         * lib/dup-safer.c (dup_safer_flag): New function.
17954         * lib/fd-safer.c (fd_safer_flag): Likewise.
17955         * modules/cloexec (configure.ac): Set witness.
17956
17957         test-dup2: enhance test
17958         * modules/dup2-tests (Depends-on): Add cloexec.
17959         * tests/test-dup2.c (main): Enhance test.
17960
17961         cloexec: add dup_cloexec
17962         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
17963         header and comments.
17964         * lib/cloexec.c (set_cloexec_flag): Add comments.
17965         (dup_cloexec): New function, with mingw implementation borrowed
17966         from...
17967         * lib/w32spawn.h (dup_noinherit): ...here.
17968         * modules/execute (Depends-on): Add cloexec.
17969         * modules/pipe (Depends-on): Likewise.
17970         * modules/cloexec (Depends-on): Add dup2.
17971         * modules/cloexec-tests (Files): New file.
17972         * tests/test-cloexec.c: Likewise.
17973
17974         test-xalloc-die: fix test for mingw
17975         * modules/xalloc-die-tests (Files): Add tests/init.sh.
17976         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
17977         directory and .exe suffix off argv[0] output.
17978
17979         test-fseeko: fix test for mingw
17980         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
17981         than undefining fseek, so test will pass on mingw.
17982
17983 2009-12-05  Bruno Haible  <bruno@clisp.org>
17984
17985         * lib/progname.h (set_program_name): Clarify specification.
17986         * lib/progname.c (set_program_name): Likewise.
17987         Reported by Jim Meyering.
17988
17989 2009-12-05  Jim Meyering  <meyering@redhat.com>
17990
17991         maint.mk: backslash-escape parens in default regexp
17992         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
17993         backslash-escape the literal parentheses.
17994
17995         maint.mk: news-date-check: use grep -E
17996         * top/maint.mk (today): Define a Make variable, not a...
17997         (news-date-check): ...shell variable.
17998         (news-date-regexp): Use the Make variable.
17999         Use grep's -E option.  Change the failing diagnostic to mention
18000         the variable, $(news-date-regexp).
18001
18002 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
18003
18004         maintainer-makefile: allow customization of NEWS entry format
18005         * top/maint.mk (news-date-regexp): New overridable variable.
18006         (news-date-check): Use it.
18007
18008 2009-12-04  Eric Blake  <ebb9@byu.net>
18009
18010         mgetgroups: add xgetgroups, and avoid ENOSYS failures
18011         * lib/mgetgroups.h (xgetgroups): New prototype.
18012         * lib/mgetgroups.c (xgetgroups): New wrapper.
18013         (mgetgroups): Handle ENOSYS.
18014         * modules/mgetgroups (Depends-on): Add realloc.
18015         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
18016
18017         mgetgroups: avoid argument promotion issues with -1
18018         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
18019         for invalid gid_t.
18020         * tests/test-chown.h (getegid, test_chown): Likewise.
18021         * tests/test-lchown.h (getegid, test_lchown): Likewise.
18022
18023 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
18024
18025         exclude: Fix header file problems.
18026         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
18027
18028 2009-12-01  Jim Meyering  <meyering@redhat.com>
18029
18030         fts: fts_open: do not let an empty string cause immediate failure
18031         This is required in support of GNU rm, for which the command
18032         "rm A '' B" must process and remove both A and B, in spite of
18033         the empty string argument.
18034         * lib/fts.c (fts_open): Do not let the presence of an empty string
18035         cause fts_open to fail immediately.  Most fts-using tools must be
18036         able to process all arguments, in order, and can be expected to
18037         diagnose such arguments themselves.
18038
18039 2009-11-30  Eric Blake  <ebb9@byu.net>
18040
18041         utimens: fix compilation error
18042         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
18043         Declare variable at right scope.
18044
18045 2009-11-29  Jim Meyering  <meyering@redhat.com>
18046
18047         bootstrap: handle perl-5.11's changed --version output
18048         * build-aux/bootstrap (get_version): Handle perl separately,
18049         since perl-5.11's --version output is different.
18050
18051 2009-11-28  Jim Meyering  <meyering@redhat.com>
18052
18053         userspec: depend on the inttostr module, too
18054         * modules/userspec (Depends-on): Add inttostr.
18055
18056         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
18057         * lib/userspec.c (parse_with_separator): Do not accept a user ID
18058         number of MAXUID when it evaluates to (uid_t) -1.
18059         Likewise for group ID.  Reported by Matt McCutchen in
18060         <http://savannah.gnu.org/bugs/?28113>
18061
18062         userspec: reformat to use spaces, not TABs
18063         * lib/userspec.c: Expand TABs to spaces.
18064         Add Emacs' "indent-tabs-mode: nil" hint.
18065
18066 2009-11-27  Eric Blake  <ebb9@byu.net>
18067
18068         getopt-gnu: flush out another BSD bug
18069         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
18070         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
18071         flush out BSD bug.
18072         * tests/test-getopt.h (test_getopt): End lists with NULL.
18073         * tests/test-getopt_long.h (test_getopt_long): Likewise.
18074         (test_getopt_long_posix): Enhance test.
18075         * modules/getopt-posix-tests (Depends-on): Add stdbool.
18076         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
18077         getopt-gnu.
18078         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18079         Likewise.
18080
18081 2009-11-27  Simon Josefsson  <simon@josefsson.org>
18082
18083         * modules/idpriv-droptemp-tests (Notice): Fix text.
18084
18085 2009-11-27  Jim Meyering  <meyering@redhat.com>
18086
18087         test-xalloc-die: avoid spurious failure due to libtool argv difference
18088         In a libtool-enabled project, this test would fail due to a difference
18089         in the emitted program name, e.g.,
18090         -test-xalloc-die: memory exhausted
18091         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
18092         Use program to avoid that.
18093         * modules/xalloc-die-tests (Depends-on): Add progname.
18094         * tests/test-xalloc-die.c: Include progname.h".
18095         (program_name): Remove decl.
18096         (main): Call set_program_name.
18097         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
18098
18099 2009-11-26  Richard Jones  <rjones@redhat.com>
18100
18101         w32sock: leave win32 error in place.
18102         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
18103
18104 2009-11-26  Eric Blake  <ebb9@byu.net>
18105
18106         init.sh: suggest to use skip_ and fail_ functions in comments
18107         * tests/init.sh: Add a sentence.
18108
18109 2009-11-25  Bruno Haible  <bruno@clisp.org>
18110
18111         init.sh: add documentation in comments
18112         * tests/init.sh: Add some developer and user documentation.
18113
18114 2009-11-26  Jim Meyering  <meyering@redhat.com>
18115
18116         init.sh: accommodate even those who specify bogus srcdir manually
18117         * tests/init.sh: Normally, srcdir is guaranteed by automake and
18118         configure-time tests to be sanitized, so that there is no need to
18119         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
18120         (with no double quotes) suffices.  However, since tests may be
18121         invoked manually, and since you may explicitly set srcdir to the
18122         name of a directory containing spaces, do quote its uses here.
18123         * tests/test-pread.sh: Likewise.
18124         Suggested by Bruno Haible.
18125
18126         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
18127         * tests/test-pread.sh: Write no data into the pipe, because
18128         test-pread actually reads none.  This avoids a diagnostic,
18129         "bash: echo: write error: Broken pipe", that arises in the unusual
18130         event something is ignoring SIGPIPE, and might be interpreted
18131         as some sort of failure.  Reported by Bruno Haible.
18132
18133 2009-11-25  Jim Meyering  <meyering@redhat.com>
18134
18135         test-pread: cover failure with ESPIPE and EINVAL
18136         * tests/test-pread.c (main): Test for failure, too.
18137         * tests/test-pread.sh: Invoke with stdin on a pipe.
18138         Suggested by Eric Blake.
18139
18140         pread: improvement and fix
18141         * modules/pread (Depends-on): Depend on lseek, for portability to
18142         e.g., mingw.  Suggested by Eric Blake.
18143         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
18144
18145         unistd.in.h: correct declaration of pread
18146         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
18147         Reported by Richard W.M. Jones.
18148
18149         test-pread.sh: distribute the test script
18150         * modules/pread-tests (Files): Include test-pread.sh.
18151
18152         test-pread.sh: clean up
18153         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
18154         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
18155         That is unnecessary, since it's always ".".
18156         Suggestion from Eric Blake.
18157
18158         test-pread.sh: make executable
18159         * tests/test-pread.sh: Set executable bit.
18160         Reported by Eric Blake.
18161
18162         correct typo in test-pread.sh
18163         * tests/test-pread.sh: Add #! line.
18164
18165         test pread
18166         * tests/test-pread.c: New file.
18167         * tests/test-pread.sh: Likewise.
18168         * modules/pread-tests: Likewise.
18169
18170         pread: new module
18171         * modules/pread: New file.
18172         * lib/unistd.in.h (pread): Define/declare.
18173         * lib/pread.c (pread): New file.
18174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
18175         * modules/unistd (Makefile.am): Substitute witnesses.
18176         * doc/posix-functions/pread.texi (pread): Update.
18177         * MODULES.html.sh: Add pread.
18178
18179 2009-11-25  Jim Meyering  <meyering@redhat.com>
18180
18181         tests/init.sh: new file to be used via most *.sh tests
18182         * tests/init.sh: New file.
18183
18184 2009-11-25  Eric Blake  <ebb9@byu.net>
18185
18186         utimens: work around older Linux failure with symlinks
18187         * lib/utimens.c (lutimensat_works_really): New variable.
18188         (fdutimens, lutimens): Use it to manage kernels that support
18189         nanosecond times on files, but not on symlinks.
18190         Reported by OndÅ™ej Vašík.
18191
18192         utimes: fix configure grammar
18193         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
18194
18195 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
18196
18197         regex: Fix fastmap for multibyte character ranges.
18198         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
18199         characters when a multibyte character range is included.
18200
18201 2009-11-22  Andy Wingo  <wingo@pobox.com>
18202
18203         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
18204         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
18205
18206 2009-11-24  Bruno Haible  <bruno@clisp.org>
18207
18208         doc: Most *_l functions exist in MacOS X 10.5.
18209         * doc/posix-functions/duplocale.texi: Update platforms list.
18210         * doc/posix-functions/freelocale.texi: Likewise.
18211         * doc/posix-functions/newlocale.texi: Likewise.
18212         * doc/posix-functions/uselocale.texi: Likewise.
18213         * doc/posix-functions/isalnum_l.texi: Likewise.
18214         * doc/posix-functions/isalpha_l.texi: Likewise.
18215         * doc/posix-functions/isblank_l.texi: Likewise.
18216         * doc/posix-functions/iscntrl_l.texi: Likewise.
18217         * doc/posix-functions/isdigit_l.texi: Likewise.
18218         * doc/posix-functions/isgraph_l.texi: Likewise.
18219         * doc/posix-functions/islower_l.texi: Likewise.
18220         * doc/posix-functions/isprint_l.texi: Likewise.
18221         * doc/posix-functions/ispunct_l.texi: Likewise.
18222         * doc/posix-functions/isspace_l.texi: Likewise.
18223         * doc/posix-functions/isupper_l.texi: Likewise.
18224         * doc/posix-functions/iswalnum_l.texi: Likewise.
18225         * doc/posix-functions/iswalpha_l.texi: Likewise.
18226         * doc/posix-functions/iswblank_l.texi: Likewise.
18227         * doc/posix-functions/iswcntrl_l.texi: Likewise.
18228         * doc/posix-functions/iswctype_l.texi: Likewise.
18229         * doc/posix-functions/iswdigit_l.texi: Likewise.
18230         * doc/posix-functions/iswgraph_l.texi: Likewise.
18231         * doc/posix-functions/iswlower_l.texi: Likewise.
18232         * doc/posix-functions/iswprint_l.texi: Likewise.
18233         * doc/posix-functions/iswpunct_l.texi: Likewise.
18234         * doc/posix-functions/iswspace_l.texi: Likewise.
18235         * doc/posix-functions/iswupper_l.texi: Likewise.
18236         * doc/posix-functions/iswxdigit_l.texi: Likewise.
18237         * doc/posix-functions/isxdigit_l.texi: Likewise.
18238         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
18239         * doc/posix-functions/strcasecmp_l.texi: Likewise.
18240         * doc/posix-functions/strcoll_l.texi: Likewise.
18241         * doc/posix-functions/strfmon_l.texi: Likewise.
18242         * doc/posix-functions/strftime_l.texi: Likewise.
18243         * doc/posix-functions/strncasecmp_l.texi: Likewise.
18244         * doc/posix-functions/strxfrm_l.texi: Likewise.
18245         * doc/posix-functions/tolower_l.texi: Likewise.
18246         * doc/posix-functions/toupper_l.texi: Likewise.
18247         * doc/posix-functions/towctrans_l.texi: Likewise.
18248         * doc/posix-functions/towlower_l.texi: Likewise.
18249         * doc/posix-functions/towupper_l.texi: Likewise.
18250         * doc/posix-functions/wcscoll_l.texi: Likewise.
18251         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
18252         * doc/posix-functions/wctrans_l.texi: Likewise.
18253         * doc/posix-functions/wctype_l.texi: Likewise.
18254         * doc/glibc-functions/strptime_l.texi: Likewise.
18255         * doc/glibc-functions/strtod_l.texi: Likewise.
18256         * doc/glibc-functions/strtof_l.texi: Likewise.
18257         * doc/glibc-functions/strtol_l.texi: Likewise.
18258         * doc/glibc-functions/strtold_l.texi: Likewise.
18259         * doc/glibc-functions/strtoll_l.texi: Likewise.
18260         * doc/glibc-functions/strtoul_l.texi: Likewise.
18261         * doc/glibc-functions/strtoull_l.texi: Likewise.
18262         * doc/glibc-functions/wcsftime_l.texi: Likewise.
18263         * doc/glibc-functions/wcstod_l.texi: Likewise.
18264         * doc/glibc-functions/wcstof_l.texi: Likewise.
18265         * doc/glibc-functions/wcstol_l.texi: Likewise.
18266         * doc/glibc-functions/wcstold_l.texi: Likewise.
18267         * doc/glibc-functions/wcstoll_l.texi: Likewise.
18268         * doc/glibc-functions/wcstoul_l.texi: Likewise.
18269         * doc/glibc-functions/wcstoull_l.texi: Likewise.
18270
18271 2009-11-24  Bruno Haible  <bruno@clisp.org>
18272
18273         duplocale: Fix logic bug.
18274         * lib/duplocale.c: Don't include <langinfo.h>.
18275         (_NL_LOCALE_NAME): Remove macro.
18276         (rpl_duplocale): Use setlocale instead of nl_langinfo.
18277         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
18278
18279 2009-11-23  Jim Meyering  <meyering@redhat.com>
18280
18281         test-update-copyright: don't hard-code /usr/bin/perl
18282         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
18283         perl to print the current year.  Gilles Espinasse reported that
18284         the replaced use of perl was hard-coded as /usr/bin/perl.
18285
18286 2009-11-23  Bruno Haible  <bruno@clisp.org>
18287
18288         duplocale: Add support for glibc 2.3.x.
18289         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
18290
18291 2009-11-22  Bruno Haible  <bruno@clisp.org>
18292
18293         vasnprintf: Tiny optimization.
18294         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
18295         MacOS X.
18296
18297 2009-11-22  Bruno Haible  <bruno@clisp.org>
18298
18299         Tests for module 'duplocale'.
18300         * modules/duplocale-tests: New file.
18301         * tests/test-duplocale.c: New file.
18302
18303         New module 'duplocale'.
18304         * m4/duplocale.m4: New file.
18305         * lib/locale.in.h (duplocale): New declaration.
18306         * lib/duplocale.c: New file.
18307         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
18308         gl_LOCALE_H_DEFAULTS): New macros.
18309         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
18310         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
18311         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
18312         REPLACE_DUPLOCALE.
18313         * modules/duplocale: New file.
18314         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
18315
18316 2009-11-22  Bruno Haible  <bruno@clisp.org>
18317
18318         * modules/locale-tests (configure.ac): Test for newlocale function.
18319         * tests/test-locale.c: When the system has extended locale functions,
18320         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
18321
18322         locale: Make locale_t available when possible.
18323         * lib/locale.in.h: Include <xlocale.h> when it exists.
18324         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
18325         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
18326         * modules/locale (Depends-on): Add extensions.
18327         (Makefile.am): Also substitute HAVE_XLOCALE_H.
18328         * doc/posix-headers/locale.texi: Document the problem with locale_t.
18329
18330 2009-11-22  Bruno Haible  <bruno@clisp.org>
18331
18332         Add comments.
18333         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
18334         invocation.
18335         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
18336         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
18337         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18338
18339 2009-11-22  Bruno Haible  <bruno@clisp.org>
18340
18341         error: account for the possibility of freopen (stdout).
18342         * lib/error.c: Include <unistd.h>.
18343         (flush_stdout): New function, extracted from error and error_at_line.
18344         Determine stdout's fd dynamically.
18345         (error, error_at_line): Invoke flush_stdout.
18346         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
18347         * modules/error (Depends-on): Add unistd.
18348
18349 2009-11-22  Bruno Haible  <bruno@clisp.org>
18350
18351         diffseq: Add comment.
18352         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
18353
18354 2009-11-22  Jim Meyering  <meyering@redhat.com>
18355
18356         c-stack: avoid defining an unused static function
18357         * lib/c-stack.c (find_stack_direction): Do not define this function
18358         when it will not be used.
18359
18360         diffseq: avoid spurious gcc warnings
18361         * lib/diffseq.h (IF_LINT2): Define.
18362         (compareseq): Use it to initialize two members of "part".
18363         This avoids two used-uninitialized warnings.
18364
18365 2009-11-21  Jim Meyering  <meyering@redhat.com>
18366
18367         c-stack: avoid "ignoring return value of `write'" warning
18368         * lib/c-stack.c: Include "ignore-value.h".
18369         (die): Explicitly ignore each write return value.
18370         * modules/c-stack (Depends-on): Add ignore-value.
18371
18372 2009-11-21  Bruno Haible  <bruno@clisp.org>
18373
18374         diffseq: reduce scope of variable 'best'.
18375         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
18376         variable, earlier used for two different purposes.
18377
18378 2009-11-21  Jim Meyering  <meyering@redhat.com>
18379
18380         diffseq: remove useless assignment to "best"
18381         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
18382         assignment.  At that point "best" is already guaranteed to be zero.
18383
18384 2009-11-20  Eric Blake  <ebb9@byu.net>
18385
18386         build: mention ftp redirector in release announcements
18387         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
18388         values that used to come from cfg.mk; mention FTP redirect URL.
18389         * build-aux/announce-gen: Mention the mirror list.
18390         Suggested by Karl Berry.
18391
18392         nanosleep: improve port to mingw
18393         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
18394         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
18395         LIB_NANOSLEEP, but only when needed.
18396         * modules/select (Link): Document LIBSOCKET.
18397         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
18398         enough.
18399
18400         nanosleep: work around cygwin bug
18401         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
18402         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
18403         bug.
18404         (getnow): Delete, not needed.
18405         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
18406         LIB_CLOCK_GETTIME.
18407         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
18408         clock-time, gettime.
18409         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
18410         bug.
18411         * modules/nanosleep-tests: New test.
18412         * tests/test-nanosleep.c: New file.
18413
18414         sleep: work around cygwin bug
18415         * lib/sleep.c (rpl_sleep): Work around the bug.
18416         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
18417         (gl_PREREQ_SLEEP): Delete unused macro.
18418         * modules/sleep (Depends-on): Add verify.
18419         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
18420         * modules/unistd (Makefile.am): Substitute witness.
18421         * lib/unistd.in.h (sleep): Update prototype.
18422         * doc/posix-functions/sleep.texi (sleep): Document the bug.
18423         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
18424         * modules/sleep-tests (Depends-on): Check for alarm.
18425
18426 2009-11-20  Jim Meyering  <meyering@redhat.com>
18427
18428         maint.mk: improve sc_prohibit_magic_number_exit
18429         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
18430         so it does not match uses like System.exit(1).
18431         Add comments showing how to correct all offenders.
18432
18433 2009-11-19  Eric Blake  <ebb9@byu.net>
18434
18435         xalloc-die-tests: add missing library
18436         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
18437
18438         test-xvasprintf: silence compiler warnings
18439         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
18440         empty string from gcc.
18441
18442 2009-11-19  Jim Meyering  <meyering@redhat.com>
18443
18444         xfreopen: new module, from coreutils
18445         * modules/xfreopen: New module.
18446         * lib/xfreopen.c: New file.
18447         * lib/xfreopen.h: New file.
18448         * MODULES.html.sh (File stream based Input/Output"): Add it.
18449
18450 2009-11-19  Eric Blake  <ebb9@byu.net>
18451
18452         manywarnings: depend on warnings
18453         * modules/manywarnings (Depends-on): Add warnings.
18454
18455         build: avoid compiler warnings
18456         * lib/select.c (rpl_select): Delete unused variable.
18457         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
18458
18459 2009-11-18  Eric Blake  <ebb9@byu.net>
18460
18461         tests: avoid false negative with --with-packager
18462         * tests/test-version-etc.sh: Discard packager information.
18463         * tests/test-argp-version-etc-1.sh: Likewise.
18464         Reported by Mike Frysinger.
18465
18466         utimens: fix regression on Solaris
18467         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
18468         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
18469         can only change fd timestamps via futimesat.  Instead, use an
18470         additional witness macro to avoid BSD bug.
18471         Reported by Jim Meyering.
18472
18473 2009-11-17  Eric Blake  <ebb9@byu.net>
18474
18475         usleep: use it to simplify tests
18476         * modules/stat-time-tests (Depends-on): Add usleep.
18477         (configure.ac): Drop usleep check.
18478         * modules/chown-tests (Depends-on, configure.ac): Likewise.
18479         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
18480         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
18481         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
18482         * modules/openat-tests (Depends-on, configure.ac): Likewise.
18483         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
18484         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
18485         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
18486         Likewise.
18487         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
18488         * tests/test-lchown.h (nap): Likewise.
18489         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
18490         * tests/test-stat-time.c (nap): Likewise.
18491         * tests/test-utimens-common.h (nap): Update comments.
18492
18493         usleep: new module
18494         * modules/usleep: New file.
18495         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
18496         * lib/usleep.c (usleep): Likewise.
18497         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
18498         * modules/unistd (Makefile.am): Substitute witnesses.
18499         * lib/unistd.in.h (usleep): Add declaration.
18500         * doc/pastposix-functions/usleep.texi (usleep): Document this.
18501         * MODULES.html.sh (Date and time): Likewise.
18502         * modules/usleep-tests (Depends-on): New test.
18503         * tests/test-usleep.c: New file.
18504
18505         chown: work around OpenBSD bug
18506         * lib/chown.c (rpl_chown): Work around the bug.
18507         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
18508         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
18509         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
18510         * modules/chown (Depends-on): Add stdbool.
18511         * modules/lchown (Depends-on): Likewise.
18512         * doc/posix-functions/chown.texi (chown): Document the bug.
18513         * doc/posix-functions/lchown.texi (lchown): Likewise.
18514         * tests/test-lchown.h (test_chown): Relax test.
18515
18516         mkstemp: avoid conflict with C++ keyword template
18517         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
18518         * lib/mkostemp.c (mkostemp): Likewise.
18519         * lib/mkostemps.c (mkostemps): Likewise.
18520         * lib/mkstemp.c (mkstemp): Likewise.
18521         * lib/mkstemps.c (mkstemps): Likewise.
18522
18523         xalloc-die-tests: optimize
18524         * tests/test-xalloc-die.sh: Reduce number of processes.
18525
18526 2009-11-17  Simon Josefsson  <simon@josefsson.org>
18527
18528         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
18529         patch from ludo@gnu.org (Ludovic Courtès).
18530
18531 2009-11-17  Jim Meyering  <meyering@redhat.com>
18532
18533         version-etc: use proper license string
18534         * modules/version-etc (License): Use LGPL, not LGPLv3+.
18535         * modules/version-etc-fsf: Likewise.
18536
18537 2009-11-17  Simon Josefsson  <simon@josefsson.org>
18538
18539         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
18540         printed to stdout.  Deal with EOL differences.
18541
18542 2009-11-17  Eric Blake  <ebb9@byu.net>
18543
18544         unsetenv: work around Solaris bug
18545         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
18546         * lib/unsetenv.c (rpl_unsetenv): Work around it.
18547         Reported by Jim Meyering.
18548
18549         vasnprintf: avoid compiler warnings
18550         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
18551         variables.
18552         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
18553
18554 2009-11-17  Simon Josefsson  <simon@josefsson.org>
18555
18556         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
18557         settings since xalloc-die is no longer the self test,
18558         xalloc-die.sh is.
18559
18560 2009-11-17  Jim Meyering  <meyering@redhat.com>
18561
18562         test-xalloc-die.sh: make the code agree with the commit log
18563         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
18564         at the end, just in case you happen to have a test-xalloc-die
18565         program in some other PATH directory.
18566
18567         test-xalloc-die.sh: fix a portability bug
18568         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
18569         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
18570         Otherwise, argv[0] (as often seen in diagnostics) would be too
18571         system-dependent, sometimes with, and sometimes without the leading "./".
18572
18573         version-etc-fsf: relax license to LGPLv3+
18574         * modules/version-etc-fsf (License): Relax license.
18575
18576 2009-11-16  Eric Blake  <ebb9@byu.net>
18577
18578         xalloc-die-tests: avoid printing null pointer
18579         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
18580         shell script.
18581         * tests/test-xalloc-die.c (program_name): Declare.
18582         * tests/test-xalloc-die.sh (tmpfiles): New file.
18583
18584         setenv, unsetenv: work around various bugs
18585         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
18586         (setenv) [HAVE_SETENV]: Work around bugs.
18587         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
18588         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
18589         for bugs.
18590         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
18591         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
18592         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
18593         * modules/stdlib (Makefile.am): Update substitutions.
18594         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
18595         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
18596         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
18597         * modules/setenv-tests: New test.
18598         * modules/unsetenv-tests: Likewise.
18599         * tests/test-setenv.c: New file.
18600         * tests/test-unsetenv.c: Likewise.
18601
18602 2009-11-16  Jim Meyering  <meyering@redhat.com>
18603
18604         version-etc: relax license to LGPLv3+
18605         * modules/version-etc (License): Relax license.
18606
18607         better AC_REQUIRE expanded-before-required-warning avoidance
18608         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
18609         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
18610         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
18611         which is no longer needed.
18612
18613 2009-11-16  Eric Blake  <ebb9@byu.net>
18614
18615         test-freading: clean up temporary file
18616         * tests/test-freading.c (main): Remove file on success, and use
18617         ASSERT more liberally.
18618         Reported by Jim Meyering.
18619
18620 2009-11-16  Jim Meyering  <meyering@redhat.com>
18621
18622         avoid new AC_REQUIRE expanded-before-required warnings
18623         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
18624         merely using it.
18625         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
18626         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
18627
18628 2009-11-15  Simon Josefsson  <simon@josefsson.org>
18629
18630         * tests/test-xalloc-die.c: New file.
18631         * modules/xalloc-die-tests: New file.
18632         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
18633         XFAIL_TESTS so it can be appended by modules.
18634
18635 2009-11-15  Simon Josefsson  <simon@josefsson.org>
18636
18637         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
18638         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
18639
18640 2009-11-14  Eric Blake  <ebb9@byu.net>
18641
18642         fnmatch: avoid compiler warning
18643         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
18644         to silence compiler warning about mismatch signedness in ?:.
18645         Reported by Robert Millan.
18646
18647         intprops: add double-inclusion guard
18648         * lib/intprops.h: Allow idempotent includes.
18649         Suggested by Bruce Korb.
18650
18651         openat: detect Solaris fchownat bug
18652         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
18653         penalizing glibc chownat when only lchownat is broken.
18654         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
18655         trailing slash bugs.
18656         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
18657         * modules/openat-tests (Files): Include more files.
18658         (Depends-on): Add mgetgroups, sleep, stat-time.
18659         (configure.ac): Add additional checks.
18660         (Makefile.am): Build new test.
18661         * tests/test-fchownat.c: New file.
18662
18663         lchown: detect Solaris and FreeBSD bug
18664         * lib/lchown.c (rpl_lchown): Work around bug.
18665         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
18666         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18667         * modules/unistd (Makefile.am): Populate it.
18668         * lib/unistd.in.h (lchown): Update declaration.
18669         * doc/posix-functions/lchown.texi (lchown): Document the bug.
18670         * modules/lchown-tests: New file.
18671         * tests/test-lchown.h (test_lchown): Likewise.
18672         * tests/test-lchown.c (main): Likewise.
18673
18674         chown: detect Solaris and FreeBSD bug
18675         * lib/chown.c (rpl_chown): Work around bug.
18676         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
18677         (gl_PREREQ_CHOWN): Delete.
18678         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18679         * modules/unistd (Makefile.am): Populate it.
18680         * lib/unistd.in.h (chown): Update declaration.
18681         * lib/lchown.c (chown): Update client.
18682         * modules/lchown (Depends-on): Add lstat.
18683         * doc/posix-functions/chown.texi (chown): Document the bug.
18684         * doc/posix-functions/getgroups.texi (getgroups): Document
18685         getgroups pitfall.
18686         * modules/chown-tests: New file.
18687         * tests/test-chown.h (test_chown): Likewise.
18688         * tests/test-chown.c (main): Likewise.
18689
18690 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
18691
18692         gnulib-tool: correctly detect absence of m4 directories
18693         * gnulib-tool: Avoid extra newline on data passed to wc -l.
18694
18695 2009-11-14  Jim Meyering  <meyering@redhat.com>
18696
18697         maint.mk: Prohibit inclusion of "xalloc.h" without use.
18698         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
18699
18700 2009-11-14  John W. Eaton  <jwe@gnu.org>
18701
18702         strftime.h: wrap funtion declaration in extern "C" block
18703         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
18704
18705 2009-11-13  Eric Blake  <ebb9@byu.net>
18706
18707         getgroups: avoid compiler warning
18708         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
18709
18710         getgroups: work around FreeBSD bug
18711         * lib/getgroups.c (rpl_getgroups): Work around the bug.
18712         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
18713         * doc/posix-functions/getgroups.texi (getgroups): Document it.
18714         * tests/test-getgroups.c (main): Fix buffer overrun.
18715
18716         getgroups: avoid compilation failure
18717         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
18718         * modules/getgroups (Depends-on): Add stdint.
18719
18720 2009-11-13  Jim Meyering  <meyering@redhat.com>
18721
18722         test-getgroups: avoid compilation failure
18723         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
18724
18725 2009-11-13  Eric Blake  <ebb9@byu.net>
18726
18727         mgetgroups: new module, taken from coreutils
18728         * modules/mgetgroups: New file.
18729         * lib/mgetgroups.h: Likewise.
18730         * lib/mgetgroups.c (mgetgroups): Likewise.
18731         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
18732         * MODULES.html.sh (Users and groups): Mention it.
18733
18734         getgroups: don't expose GETGROUPS_T to user
18735         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
18736         an element at a time if GETGROUPS_T is wrong size.
18737         * lib/getugroups.h (getugroups): Change signature.
18738         * lib/unistd.in.h (getgroups): Likewise.
18739         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
18740         signature needs fixing.
18741         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
18742         AC_TYPE_GETGROUPS.
18743         * modules/group-member (Depends-on): Add getgroups.
18744         * lib/group-member.c (group_info, get_group_info): Use gid_t.
18745         (group_member): Rely on getgroups replacement.
18746         * lib/getugroups.c (getugroups): Use gid_t.
18747         * tests/test-getgroups.c (main): Likewise.
18748         * NEWS: Mention the signature change.
18749         * doc/posix-functions/getgroups.texi (getgroups): Mention the
18750         problem with signature.
18751         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
18752         GETGROUPS_T is still useful for setgroups.
18753
18754         getgroups, getugroups: provide stubs for mingw
18755         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
18756         * lib/getugroups.c (getugroups): Likewise.
18757         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
18758         function.  Modernize replacement scheme.
18759         (gl_PREREQ_GETGROUPS): Delete.
18760         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
18761         * modules/getgroups (configure.ac): Declare witness.
18762         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
18763         * modules/unistd (Depends-on): Substitute witness.
18764         * lib/unistd.in.h (getgroups): Declare replacement.
18765
18766         getgroups: avoid calling exit
18767         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
18768         drop xalloc.
18769         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
18770         dependencies.
18771         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
18772         exiting, in the rare case of malloc failure.
18773
18774         getgroups: fix logic error
18775         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
18776         has more than 20 groups.
18777         * modules/getgroups-tests: New test.
18778         * tests/test-getgroups.c: New file.
18779
18780 2009-11-13  Simon Josefsson  <simon@josefsson.org>
18781
18782         * tests/test-base64.c: Improve.
18783
18784 2009-11-13  Simon Josefsson  <simon@josefsson.org>
18785
18786         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
18787         Blake <ebb9@byu.net>.
18788
18789 2009-11-13  Simon Josefsson  <simon@josefsson.org>
18790
18791         * tests/test-xvasprintf.c: Add %s%s related checks.
18792
18793 2009-11-12  Eric Blake  <ebb9@byu.net>
18794
18795         version-etc: match standards.texi style
18796         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
18797         and use <> only for URLs.
18798
18799 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
18800
18801         fts: do not fail on a submount during traversal
18802         * lib/fts.c (fts_build): Read the stat info again after opening
18803         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
18804         Original report at http://bugzilla.redhat.com/501848.
18805
18806 2009-11-12  Jim Meyering  <meyering@redhat.com>
18807
18808         bootstrap: sync from coreutils
18809         * build-aux/bootstrap (bootstrap_epilogue): New function.
18810         Use git_modules_config in one more place.  This make bootstrap's
18811         --gnulib-srcdir option more useful for testing.
18812
18813         bootstrap: generalize autoheader check
18814         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
18815         AC_CONFIG_HEADERS.
18816
18817 2009-11-11  Eric Blake  <ebb9@byu.net>
18818
18819         mkfifoat: use new modules for Solaris and BSD bugs
18820         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
18821         * lib/mkfifoat.c (mknodat): Split...
18822         * lib/mknodat.c (mknodat): ...into new file.
18823         * modules/mkfifoat (Files): Ship new file.
18824         (Depends-on): Add mkfifo, mknod.
18825         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
18826         (Depends-on): Add symlink.
18827         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
18828         redundant with test_mkfifo.h.
18829         (do_mkfifoat, do_mknodat): New helpers.
18830
18831         mknod: new module
18832         * modules/mknod: New file.
18833         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
18834         * lib/mknod.c (mknod): Likewise.
18835         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
18836         defaults.
18837         * modules/sys_stat (Makefile.am): Substitute them.
18838         * lib/sys_stat.in.h (mknod): Declare replacement.
18839         * MODULES.html.sh (Support for systems lacking POSIX:2008):
18840         Document it.
18841         * doc/posix-functions/mknod.texi (mknod): Likewise.
18842         * modules/mknod-tests: New test.
18843         * tests/test-mknod.c: Likewise.
18844
18845         mkfifo: new module
18846         * modules/mkfifo: New file.
18847         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18848         * lib/mkfifo.c (mkfifo): Likewise.
18849         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
18850         defaults.
18851         * modules/sys_stat (Makefile.am): Substitute them.
18852         * lib/sys_stat.in.h (mkfifo): Declare replacement.
18853         * MODULES.html.sh (Support for systems lacking POSIX:2008):
18854         Document it.
18855         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
18856         * modules/mkfifo-tests: New test.
18857         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
18858         from test-mkfifoat.c.
18859         * tests/test-mkfifo.c: New file.
18860
18861         readlink: detect FreeBSD bug
18862         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
18863         slash on symlink.
18864         * doc/posix-functions/readlink.texi (readlink): Document the bug.
18865         * tests/test-readlink.h (test_readlink): Enhance test.
18866
18867         symlink: detect FreeBSD bug
18868         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
18869         slash on symlink.
18870         * doc/posix-functions/symlink.texi (symlink): Document the bug.
18871         * tests/test-symlink.h (test_symlink): Enhance test.
18872
18873 2009-11-10  Eric Blake  <ebb9@byu.net>
18874
18875         link: detect FreeBSD bug
18876         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
18877         symlink.
18878         * doc/posix-functions/link.texi (link): Document the bug.
18879         * tests/test-link.h (test_link): Enhance test.
18880         * tests/test-linkat.c (main): Update caller.
18881
18882         unlink, remove: detect FreeBSD bug
18883         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
18884         slash on symlink.
18885         * doc/posix-functions/unlink.texi (unlink): Document the bug.
18886         * doc/posix-functions/remove.texi (remove): Likewise.
18887         * tests/test-unlink.h (test_unlink): Enhance test.
18888         * tests/test-remove.c (main): Likewise.
18889
18890 2009-11-09  Eric Blake  <ebb9@byu.net>
18891
18892         rename: detect FreeBSD bug
18893         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
18894         slash on symlink.
18895         * modules/renameat-tests (Depends-on): Add filenamecat.
18896         * tests/test-rename.h (test_rename): Allow one more errno.
18897         * tests/test-renameat.c (main): Likewise.
18898         * doc/posix-functions/rename.texi (rename): Document the bug.
18899
18900         open: detect FreeBSD bug
18901         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
18902         symlink.
18903         * doc/posix-functions/open.texi (open): Document the bug.
18904         * doc/posix-functions/utimes.texi (utimes): Likewise.
18905         * tests/test-open.h (test_open): Add parameters, and test symlink
18906         handling.
18907         * tests/test-open.c (main): Adjust caller.
18908         * tests/test-fcntl-safer.c (main): Likewise.
18909         * modules/open-tests (Depends-on): Add stdbool, symlink.
18910         * modules/fcntl-safer-tests (Depends-on): Likewise.
18911         * tests/test-openat.c (main): Add test-open tests.
18912
18913         stat: detect FreeBSD bug
18914         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
18915         symlink.
18916         * doc/posix-functions/stat.texi (stat): Document the bug.
18917         * tests/test-stat.h (test_stat_func): Add argument.
18918         * tests/test-stat.c (main): Adjust caller.
18919         * tests/test-fstatat.c (main): Likewise.
18920         * modules/stat-tests (Depends-on): Add stdbool, symlink.
18921         Reported by Jim Meyering.
18922
18923 2009-11-09  James Youngman  <jay@gnu.org>
18924
18925         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
18926         * lib/strftime.c: Correct placement of #include "ignore-value.h".
18927
18928 2009-11-08  Jim Meyering  <meyering@redhat.com>
18929
18930         utimens: remove invalid futimesat call
18931         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
18932         It used the file descriptor of the target file as the DIR_FD
18933         parameter and NULL as the file name.  That caused failure with
18934         errno == EFAULT on FreeBSD-8.0-rc2
18935
18936 2009-11-07  Eric Blake  <ebb9@byu.net>
18937
18938         fflush, freadseek: use fseeko, not fseek
18939         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
18940         (clear_ungetc_buffer): Avoid potential problems on large files.
18941         * lib/freadseek.c (freadseek): Likewise.
18942         * modules/freadseek (Depends-on): Add fseeko.
18943         * modules/fseek (configure.ac): Set a witness.
18944         * tests/test-fflush.c (main): Use fseeko.
18945         * tests/test-fpurge.c (fseek): Disable link warning.
18946         * tests/test-freadable.c (fseek): Likewise.
18947         * tests/test-freading.c (fseek): Likewise.
18948         * tests/test-fseeko.c (fseek): Likewise.
18949         * tests/test-ftell.c (fseek): Likewise.
18950         * tests/test-ftello.c (fseek): Likewise.
18951         * tests/test-fwritable.c (fseek): Likewise.
18952         * tests/test-fwriting.c (fseek): Likewise.
18953
18954 2009-11-06  Simon Josefsson  <simon@josefsson.org>
18955
18956         * modules/memchr (Depends-on): Drop getpagesize dependency.
18957
18958 2009-11-06  Simon Josefsson  <simon@josefsson.org>
18959
18960         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
18961         Reported by Ludovic Courtès.
18962         * build-aux/pmccabe2html: Improve example usage.
18963         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
18964
18965 2009-11-06  Jim Meyering  <meyering@redhat.com>
18966
18967         do-release-commit-and-tag: New module.
18968         Automate the release-commit and tag process.
18969         * build-aux/do-release-commit-and-tag: New script, from coreutils.
18970         * modules/do-release-commit-and-tag: New file.
18971         * MODULES.html.sh (Support for maintaining and releasing): Add it.
18972
18973 2009-11-06  Simon Josefsson  <simon@josefsson.org>
18974
18975         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
18976         because test-select.c uses inet_pton.
18977
18978 2009-11-06  Simon Josefsson  <simon@josefsson.org>
18979
18980         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
18981         GETADDRINFO_LIB.  Bump serial number.
18982         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
18983         Suggested by Eric Blake <ebb9@byu.net>.
18984
18985 2009-11-05  Eric Blake  <ebb9@byu.net>
18986
18987         strtod: detect darwin bug
18988         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
18989         Reported by Leo Davis.
18990
18991         freopen-safer: new module
18992         * modules/freopen-safer: New module.
18993         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
18994         * lib/freopen-safer.c (freopen_safer): New file.
18995         * lib/stdio-safer.h (freopen_safer): New declaration.
18996         * lib/stdio--.h (freopen): New override.
18997         * MODULES.html.sh (File stream based Input/Output): Mention it.
18998         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
18999         freopen-safer module.
19000         * doc/posix-functions/stderr.texi (stderr): Likewise.
19001         * doc/posix-functions/stdin.texi (stdin): Likewise.
19002         * doc/posix-functions/stdout.texi (stdout): Likewise.
19003         * modules/freopen-safer-tests: New test.
19004         * tests/test-reopen-safer.c: New file.
19005
19006 2009-11-05  Jim Meyering  <meyering@redhat.com>
19007
19008         maint.mk: Prohibit inclusion of "close-stream.h" without use.
19009         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
19010
19011 2009-11-05  Simon Josefsson  <simon@josefsson.org>
19012
19013         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
19014
19015 2009-11-05  Simon Josefsson  <simon@josefsson.org>
19016
19017         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
19018
19019 2009-11-05  Simon Josefsson  <simon@josefsson.org>
19020
19021         Fix link error.
19022         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
19023         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
19024
19025 2009-11-05  Simon Josefsson  <simon@josefsson.org>
19026
19027         * tests/test-func.c: Also test value of __func__.
19028
19029 2009-11-05  Simon Josefsson  <simon@josefsson.org>
19030
19031         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
19032         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
19033
19034 2009-11-05  Bruno Haible  <bruno@clisp.org>
19035
19036         Fix link error.
19037         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
19038         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
19039         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
19040
19041 2009-11-05  Bruno Haible  <bruno@clisp.org>
19042
19043         Tests for module 'inet_pton'.
19044         * modules/inet_pton-tests: New file.
19045         * tests/test-inet_pton.c: New file.
19046
19047 2009-11-05  Bruno Haible  <bruno@clisp.org>
19048
19049         Tests for module 'inet_ntop'.
19050         * modules/inet_ntop-tests: New file.
19051         * tests/test-inet_ntop.c: New file.
19052
19053 2009-11-04  Eric Blake  <ebb9@byu.net>
19054
19055         stdlib-safer: wrap all mkstemp variants
19056         * modules/mkostemp (configure.ac): Set witness.
19057         * modules/mkostemps (configure.ac): Likewise.
19058         * modules/mkstemps (configure.ac): Likewise.
19059         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
19060         (mkstemps_safer): Wrap more functions.
19061         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
19062         wrapping.
19063         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
19064         (mkstemps_safer): Implement the wrappers.
19065
19066         mkstemps, mkostemps: new modules
19067         * modules/mkostemps: New module.
19068         * modules/mkstemps: Likewise.
19069         * lib/mkostemps.c (mkostemps): New file.
19070         * lib/mkstemps.c (mkstemps): Likewise.
19071         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
19072         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
19073         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
19074         * modules/stdlib (Makefile.am): Substitute them.
19075         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
19076         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
19077         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19078         * doc/gnulib.texi (Glibc stdlib.h): Include them.
19079         * MODULES.html.sh (File system functions): Mention them.
19080
19081         tempname: resync from glibc
19082         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
19083         same values for __GT_FILE as glibc.  Abort even when assertions
19084         are disabled.
19085         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
19086         match its value otherwise.  Allow idempotent inclusion.
19087         * lib/mkdtemp.c (mkdtemp): Adjust caller.
19088         * lib/mkostemp.c (mkostemp): Likewise.
19089         * lib/mkstemp.c (mkstemp): Likewise.
19090         * lib/tmpfile.c (tmpfile): Likewise.
19091         * NEWS: Document this.
19092
19093         utimens: fix use of futimens on older Linux
19094         * lib/utimens.c (fdutimens): Use updated, rather than original,
19095         timespec to avoid bug in older Linux kernel.
19096         Reported by Simon Josefsson.
19097
19098 2009-11-04  Bruno Haible  <bruno@clisp.org>
19099
19100         Make num_processors more flexible and consistent.
19101         * lib/nproc.h (enum nproc_query): New type.
19102         (num_processors): Add a 'query' argument.
19103         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
19104         (num_processors): Add a 'query' argument. Test the value of the
19105         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
19106         mingw, count the number of CPUs available for the current process.
19107         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
19108         Check for sched_getaffinity and sched_getaffinity_np.
19109         * modules/nproc (Depends-on): Add c-ctype, extensions.
19110         * NEWS: Mention the change.
19111
19112 2009-11-03  Bruno Haible  <bruno@clisp.org>
19113
19114         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
19115
19116 2009-11-03  Jim Meyering  <meyering@redhat.com>
19117
19118         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
19119         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
19120         if it is defined.
19121
19122 2009-11-02  Eric Blake  <ebb9@byu.net>
19123
19124         mktime, timegm: share common declaration
19125         * lib/mktime-internal.h: New file.
19126         * lib/mktime.c: Use it rather than open-coding a declaration.
19127         * lib/timegm.c: Likewise.
19128         * modules/mktime (Files): Ship it.
19129         * modules/timegm (Files): Likewise.
19130         Suggested by Bruno Haible.
19131
19132         test-update-copyright: update test to match script changes
19133         * tests/test-update-copyright.sh: Avoid hard-coding perl
19134         location.  Don't update *.bak created by earlier runs.
19135
19136 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
19137             Simon Josefsson  <simon@josefsson.org>
19138             Bruno Haible  <bruno@clisp.org>
19139
19140         Fix link error on Solaris 8.
19141         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
19142         also in libnsl. Define also INET_PTON_LIB.
19143         * modules/inet_pton (Link): New section.
19144
19145 2009-11-02  Simon Josefsson  <simon@josefsson.org>
19146             Bruno Haible  <bruno@clisp.org>
19147
19148         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
19149         * modules/inet_ntop (Link): New section.
19150         Reported by Boyan Kasarov <bkasarov@gmail.com>.
19151
19152 2009-11-02  Eric Blake  <ebb9@byu.net>
19153
19154         maint: avoid compiler warnings in m4 macros
19155         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
19156         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
19157
19158 2009-11-02  Simon Josefsson  <simon@josefsson.org>
19159
19160         * m4/pmccabe2html.m4: Remove file.
19161         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
19162         function.  Change maintainer.
19163         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
19164         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
19165         Courtès).
19166
19167 2009-10-31  Eric Blake  <ebb9@byu.net>
19168
19169         fseeko: fix m4 regression
19170         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
19171         regression from 2009-10-27.
19172         Reported by Ralf Wildenhues.
19173
19174 2009-10-31  Jim Meyering  <meyering@redhat.com>
19175
19176         inttostr: aesthetics and improved (compile-time) safety
19177         Define inttype_is_signed rather than inttype_is_unsigned,
19178         since the sole use is via "#if inttype_is_signed".
19179         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
19180         inttype_is_unsigned.
19181         * lib/offtostr.c (inttype_is_signed): Likewise.
19182         * lib/uinttostr.c (inttype_is_signed): Likewise.
19183         * lib/umaxtostr.c (inttype_is_signed): Likewise.
19184         * lib/inttostr.c (inttostr): Use verify to cross-check the
19185         inttype_is_signed value and the signedness of the actual type.
19186         * modules/inttostr (Depends-on): Add verify.
19187
19188 2009-10-30  Eric Blake  <ebb9@byu.net>
19189
19190         build: avoid compiler warnings
19191         * lib/fchmodat.c (lchmod): Mark unused variables.
19192         * lib/getopt.c (_getopt_initialize): Likewise.
19193         * lib/mktime.c (__mktime_internal): Provide prototype.
19194         * lib/inttostr.c (inttostr): Avoid compiler warning even with
19195         older gcc that do not understand #pragma GCC diagnostic.
19196         * lib/uinttostr.c (inttype_is_unsigned): Define.
19197         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
19198
19199 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
19200
19201         stat: fix compilation on AIX
19202         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
19203         only see struct stat64.
19204
19205 2009-10-30  Eric Blake  <ebb9@byu.net>
19206
19207         exclude: make more robust
19208         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
19209         rather than masking a coding bug.
19210         Suggested by Bruno Haible.
19211
19212 2009-10-30  Jim Meyering  <meyering@redhat.com>
19213
19214         perl scripts: remove #!/usr/bin/perl in favor of more portable...
19215         Rather than putting #!/usr/bin/perl on the first line,
19216         start with a variant of what's recommended by "man perlrun" that
19217         invokes the first "perl" program from your shell's search path.
19218         * build-aux/gitlog-to-changelog: Replace #!... as above.
19219         Add a "Local Variables" perl mode setting.
19220         Prompted by a patch from Ludovic Courtès.
19221         Improved by Eric Blake.
19222         * build-aux/useless-if-before-free: Likewise.
19223         * build-aux/announce-gen: Likewise.
19224         * build-aux/update-copyright: Likewise.
19225
19226 2009-10-29  Eric Blake  <ebb9@byu.net>
19227
19228         filenamecat-lgpl: adjust clients
19229         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
19230         filenamecat.
19231         * modules/renameat (Depends-on): Likewise.
19232
19233         filenamecat: split into filenamecat-lgpl
19234         * modules/filenamecat-lgpl: New module.
19235         * modules/filenamecat (Files): Move library-safe files into
19236         filenamecat-lgpl.
19237         (Depends-on): Add filenamecat-lgpl.
19238         (configure.ac): Declare witness.
19239         * lib/filenamecat.h (file_name_concat): Only declare when using
19240         GPL module.
19241         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
19242         Move...
19243         * lib/filenamecat-lgpl.c: ...into new file.
19244         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
19245         (gl_FILE_NAME_CONCAT): Use it.
19246         * MODULES.html.sh (File system functions): Mention new module.
19247
19248         argp: avoid memory leak
19249         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
19250         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
19251         base_name, since the latter malloc()s and can call exit().
19252         Leak introduced 2006-07-03.
19253
19254         dirname-lgpl: adjust clients that don't need full dirname
19255         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
19256         * modules/filenamecat (Depends-on): Likewise.
19257         * modules/linkat (Depends-on): Likewise.
19258         * modules/mkancesdirs (Depends-on): Likewise.
19259         * modules/mkdir (Depends-on): Likewise.
19260         * modules/openat (Depends-on): Likewise.
19261         * modules/savewd (Depends-on): Likewise.
19262         * modules/rename (Depends-on): Likewise.
19263         (License): Relax license.
19264         * modules/mkdir-tests (Depends-on): Drop progname.
19265         (Makefile.am): Delete unneeded LDADD.
19266         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
19267
19268         dirname: split into dirname-lgpl
19269         * modules/dirname-lgpl: New module.
19270         * modules/dirname (Files): Move library-safe files into
19271         dirname-lgpl.
19272         (Depends-on): Add dirname-lgpl.
19273         (configure.ac): Declare witness.
19274         * modules/double-slash-root (License): Relax license.
19275         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
19276         module.
19277         * lib/dirname.c (dir_len, mdir_name): Move...
19278         * lib/dirname-lgpl.c: ...into new file.
19279         * lib/basename.c (last_component, base_len): Move...
19280         * lib/basename-lgpl.c: ...into new file.
19281         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
19282         (gl_DIRNAME): Use it.
19283         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
19284         Mention new module.
19285         * modules/dirname-tests (Depends-on): Add progname.
19286         * tests/test-dirname.c (program_name): Delete.
19287
19288         mkdir: make safe for libraries
19289         * modules/mkdir (Depends-on): Drop xalloc.
19290         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
19291         exit.
19292
19293         tests: avoid some compiler warnings
19294         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
19295         literals.
19296         * tests/test-memchr.c (main): Avoid type mismatch.
19297         * tests/test-arpa_inet.c (main): Avoid unused parameters.
19298         * tests/test-base64.c (main): Likewise.
19299         * tests/test-getdelim.c (main): Likewise.
19300         * tests/test-gethostname.c (main): Likewise.
19301         * tests/test-getline.c (main): Likewise.
19302         * tests/test-netinet_in.c (main): Likewise.
19303         * tests/test-select.c (open_server_socket, main): Likewise.
19304         * tests/test-select-stdin.c (main): Likewise.
19305         * tests/test-sockets.c (main): Likewise.
19306         * tests/test-strsignal.c (main): Likewise.
19307         * tests/test-sys_select.c (main): Likewise.
19308         * tests/test-sys_socket.c (main): Likewise.
19309         * tests/test-u64.c (main): Likewise.
19310         * tests/test-xfprintf-posix.c (main): Likewise.
19311         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
19312
19313         sockets: avoid compiler warning
19314         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
19315
19316         maint: detect usage(1) and other suspicious exits
19317         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
19318
19319 2009-10-29  Jim Meyering  <meyering@redhat.com>
19320
19321         timespec: long-to-int truncation could make timespec_cmp malfunction
19322         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
19323         a multiple of 2^32 nanoseconds as no difference.
19324
19325 2009-10-28  Jim Meyering  <meyering@redhat.com>
19326
19327         fprintftime: wrap macro code argument in "do {...} while(0)"
19328         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
19329         cpy macro must be a statement that can be followed by a semicolon.
19330         Now that the else clause contains a comment and is hence longer
19331         than one line, I require curly braces.  That in turn requires
19332         that we wrap this code block in the standard do...while(0).
19333
19334         fprintftime: remove stray semicolon from previous change
19335         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
19336
19337         fprintftime: avoid a warning about ignored fwrite return value
19338         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
19339         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
19340         that is unsafe.
19341         * modules/fprintftime (Depends-on): Add ignore-value.
19342
19343         exclude: avoid an unwarranted warning
19344         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
19345
19346 2009-10-27  Eric Blake  <ebb9@byu.net>
19347
19348         fseek: avoid compilation failure when fflush is replaced
19349         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
19350         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
19351         module is in use.
19352         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
19353         module is not in use; since REPLACE_FSEEK worked otherwise.
19354         (GNULIB_FTELLO): Likewise for ftell.
19355         Reported by Ian Beckwith and others.
19356
19357 2009-10-27  Bruno Haible  <bruno@clisp.org>
19358
19359         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
19360         Reported by Jim Meyering.
19361
19362 2009-10-27  Jim Meyering  <jim@meyering.net>
19363             Bruno Haible  <bruno@clisp.org>
19364
19365         Avoid warning despite dropping the return value of fwrite.
19366         * lib/unicodeio.c: Include ignore-value.h.
19367         (fwrite_success_callback): Explicitly ignore fwrite's return value.
19368         * modules/unicodeio (Depends-on): Add ignore-value.
19369
19370 2009-10-26  Eric Blake  <ebb9@byu.net>
19371
19372         areadlinkat: fix fallback path
19373         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
19374         pointer and zero.
19375
19376 2009-10-22  Pádraig Brady  <P@draigBrady.com>
19377
19378         Use a better IO block size for modern systems
19379         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
19380         * lib/md2.c: Likewise.
19381         * lib/md4.c: Likewise.
19382         * lib/md5.c: Likewise.
19383         * lib/sha1.c: Likewise.
19384         * lib/sha256.c: Likewise.
19385         * lib/sha512.c: Likewise.
19386
19387 2009-10-22  Eric Blake  <ebb9@byu.net>
19388
19389         tests: avoid several compiler warnings
19390         * tests/test-getcwd.c (main): Avoid buffer underflow.
19391         * tests/test-getdate.c (main): String literals are not safe with
19392         putenv, so use setenv.  Declare unused argument.
19393         * modules/getdate-tests (Depends-on): Add setenv.
19394         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
19395         problems with string literals in char *.
19396         * tests/test-hash.c (main): Avoid shadowing declaration.
19397         (insert_new): Treat string literals as char const *.
19398         * tests/test-getopt.h (test_getopt): Likewise.
19399         (getopt_loop): Alter types to minimize casting elsewhere.
19400         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
19401         (test_getopt_long_posix): Likewise.
19402         (do_getopt_long): Add wrapper to minimize casting.
19403         * tests/test-atexit.c (clear_temp_file): Use void.
19404         * tests/test-areadlink-with-size.c (main): Declare unused
19405         arguments.
19406         * tests/test-areadlink.c (main): Likewise.
19407         * tests/test-areadlinkat-with-size.c (main): Likewise.
19408         * tests/test-areadlinkat.c (main): Likewise.
19409         * tests/test-canonicalize-lgpl.c (main): Likewise.
19410         * tests/test-canonicalize.c (main): Likewise.
19411         * tests/test-dirent-safer.c (main): Likewise.
19412         * tests/test-dirname.c (main): Likewise.
19413         * tests/test-dup2.c (main): Likewise.
19414         * tests/test-fchdir.c (main): Likewise.
19415         * tests/test-fcntl-h.c (main): Likewise.
19416         * tests/test-fcntl-safer.c (main): Likewise.
19417         * tests/test-fdopendir.c (main): Likewise.
19418         * tests/test-fdutimensat.c (main): Likewise.
19419         * tests/test-fflush.c (main): Likewise.
19420         * tests/test-filenamecat.c (main): Likewise.
19421         * tests/test-filevercmp.c (main): Likewise.
19422         * tests/test-fopen-safer.c (main): Likewise.
19423         * tests/test-fopen.c (main): Likewise.
19424         * tests/test-fpending.c (main): Likewise.
19425         * tests/test-fpurge.c (main): Likewise.
19426         * tests/test-freading.c (main): Likewise.
19427         * tests/test-fstatat.c (main): Likewise.
19428         * tests/test-fsync.c (main): Likewise.
19429         * tests/test-futimens.c (main): Likewise.
19430         * tests/test-getndelim2.c (main): Likewise.
19431         * tests/test-gettimeofday.c (main): Likewise.
19432         * tests/test-getopt.c (main): Likewise.
19433         * tests/test-i-ring.c (main): Likewise.
19434         * tests/test-inttypes.c (main): Likewise.
19435         * tests/test-link.c (main): Likewise.
19436         * tests/test-lstat.c (main): Likewise.
19437         * tests/test-math.c (main): Likewise.
19438         * tests/test-md5.c (main): Likewise.
19439         * tests/test-memchr2.c (main): Likewise.
19440         * tests/test-memrchr.c (main): Likewise.
19441         * tests/test-mkdir.c (main): Likewise.
19442         * tests/test-mkdirat.c (main): Likewise.
19443         * tests/test-mkfifoat.c (main): Likewise.
19444         * tests/test-open.c (main): Likewise.
19445         * tests/test-openat-safer.c (main): Likewise.
19446         * tests/test-openat.c (main): Likewise.
19447         * tests/test-quotearg.c (main): Likewise.
19448         * tests/test-rawmemchr.c (main): Likewise.
19449         * tests/test-readlink.c (main): Likewise.
19450         * tests/test-remove.c (main): Likewise.
19451         * tests/test-rename.c (main): Likewise.
19452         * tests/test-renameat.c (main): Likewise.
19453         * tests/test-rmdir.c (main): Likewise.
19454         * tests/test-sha1.c (main): Likewise.
19455         * tests/test-signal.c (main): Likewise.
19456         * tests/test-sigaction.c (main): Likewise.
19457         * tests/test-stat.c (main): Likewise.
19458         * tests/test-stat-time.c (main): Likewise.
19459         * tests/test-stddef.c (main): Likewise.
19460         * tests/test-stdint.c (main): Likewise.
19461         * tests/test-stdio.c (main): Likewise.
19462         * tests/test-stdlib.c (main): Likewise.
19463         * tests/test-strchrnul.c (main): Likewise.
19464         * tests/test-strerror.c (main): Likewise.
19465         * tests/test-string.c (main): Likewise.
19466         * tests/test-strtod.c (main): Likewise.
19467         * tests/test-strverscmp.c (main): Likewise.
19468         * tests/test-symlink.c (main): Likewise.
19469         * tests/test-symlinkat.c (main): Likewise.
19470         * tests/test-sys_stat.c (main): Likewise.
19471         * tests/test-sys_time.c (main): Likewise.
19472         * tests/test-time.c (main): Likewise.
19473         * tests/test-unistd.c (main): Likewise.
19474         * tests/test-unlink.c (main): Likewise.
19475         * tests/test-unlinkat.c (main): Likewise.
19476         * tests/test-utimens.c (main): Likewise.
19477         * tests/test-utimensat.c (main): Likewise.
19478         * tests/test-version-etc.c (main): Likewise.
19479         * tests/test-wchar.c (main): Likewise.
19480         * tests/test-wctype.c (main): Likewise.
19481         * tests/test-xprintf-posix.c (main): Likewise.
19482         * tests/test-posixtm.c (main): Likewise.
19483         (STREQ): Delete unused macro.
19484         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
19485         shadowed variables.
19486         * tests/test-memchr.c (main): Likewise.
19487
19488 2009-10-21  Eric Blake  <ebb9@byu.net>
19489
19490         areadlinkat: avoid failure on older glibc
19491         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
19492         rather than mis-comparing 0 against FUNC_RESULT of char*.
19493
19494 2009-10-21  Bruno Haible  <bruno@clisp.org>
19495
19496         * modules/stpncpy (License): Relicense under LGPLv2+.
19497         Reported by David Lutterkort <lutter@redhat.com>.
19498
19499 2009-10-20  Eric Blake  <ebb9@byu.net>
19500
19501         utimensat: work around Solaris 9 bug
19502         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
19503         has trailing slash bugs.
19504         * tests/test-lutimens.h (test_lutimens): Enhance test.
19505         * tests/test-utimens.h (test_utimens): Likewise.
19506         * doc/posix-functions/utime.texi (utime): Enhance documentation.
19507         * doc/posix-functions/utimes.texi (utimes): Likewise.
19508         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
19509         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
19510         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
19511         * doc/posix-functions/futimens.texi (futimens): Likewise.
19512
19513         fdutimensat: new module
19514         * modules/fdutimensat: New file.
19515         * lib/fdutimensat.c (fdutimensat): Likewise.
19516         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
19517         * MODULES.html.sh (File system functions): Mention module.
19518         * modules/fdutimensat-tests: New test.
19519         * tests/test-fdutimensat.c: Likewise.
19520
19521         doc: regenerate INSTALL
19522         * doc/INSTALL: Reflect recent autoconf update.
19523         * doc/INSTALL.ISO: Likewise.
19524         * doc/INSTALL.UTF-8: Likewise.
19525
19526 2009-10-20  Pádraig Brady  <P@draigBrady.com>
19527
19528         acl: warn if ACL support is not detected
19529         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
19530
19531 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
19532
19533         * lib/nproc.h: Add extern "C" block for C++.
19534
19535 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
19536             Bruno Haible  <bruno@clisp.org>
19537
19538         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
19539         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
19540         * doc/posix-functions/isalpha.texi: Likewise.
19541         * doc/posix-functions/isblank.texi: Likewise.
19542         * doc/posix-functions/iscntrl.texi: Likewise.
19543         * doc/posix-functions/isdigit.texi: Likewise.
19544         * doc/posix-functions/isgraph.texi: Likewise.
19545         * doc/posix-functions/islower.texi: Likewise.
19546         * doc/posix-functions/isprint.texi: Likewise.
19547         * doc/posix-functions/ispunct.texi: Likewise.
19548         * doc/posix-functions/isspace.texi: Likewise.
19549         * doc/posix-functions/isupper.texi: Likewise.
19550         * doc/posix-functions/isxdigit.texi: Likewise.
19551
19552 2009-10-18  Bruno Haible  <bruno@clisp.org>
19553
19554         Tests for module 'isblank'.
19555         * modules/isblank-tests: New file.
19556         * tests/test-isblank.c: New file.
19557
19558         New module 'isblank'.
19559         * lib/isblank.c: New file.
19560         * m4/isblank.m4: New file.
19561         * modules/isblank: New file.
19562         * doc/posix-functions/isblank.texi: Mention the new module.
19563
19564 2009-10-18  Bruno Haible  <bruno@clisp.org>
19565
19566         New module 'ctype'.
19567         * lib/ctype.in.h: New file.
19568         * m4/ctype.m4: New file.
19569         * modules/ctype: New file.
19570         * doc/posix-headers/ctype.texi: Mention the new module.
19571
19572 2009-10-18  Jim Meyering  <meyering@redhat.com>
19573
19574         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
19575         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
19576         right after its initialization, rather than farther down.
19577         Keeping these in close proximity makes it easier to ensure
19578         that each such variable is initialized.  E.g.,
19579
19580             LIB_CLOCK_GETTIME=
19581             AC_SUBST([LIB_CLOCK_GETTIME])
19582
19583         This change also increments these serial numbers.
19584         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
19585         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
19586         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19587
19588 2009-10-18  Bruno Haible  <bruno@clisp.org>
19589
19590         Don't let environment variables perturb build.
19591         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
19592         (gl_PREREQ_GETHRXTIME): ... not here.
19593
19594 2009-10-18  Bruno Haible  <bruno@clisp.org>
19595
19596         Avoid symlink attack in localcharset module.
19597         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
19598         (O_NOFOLLOW): Define fallback.
19599         (get_charset_aliases): Don't open the file if it is a symbolic link.
19600         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
19601         gl_FCNTL_H.
19602         (gl_FCNTL_H): Require it.
19603         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
19604         * modules/localcharset (Files): Add m4/fcntl_h.m4.
19605         Reported by Fergal Glynn <fglynn@veracode.com>.
19606
19607 2009-10-18  Bruno Haible  <bruno@clisp.org>
19608
19609         Implement nproc for mingw.
19610         * lib/nproc.c: Include <windows.h>
19611         (num_processors): On native Windows platforms, try GetSystemInfo.
19612
19613 2009-10-18  Bruno Haible  <bruno@clisp.org>
19614
19615         Implement nproc for IRIX.
19616         * lib/nproc.c: Include <sys/sysmp.h>.
19617         (num_processors): On IRIX systems, try sysmp.
19618         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
19619
19620 2009-10-18  Bruno Haible  <bruno@clisp.org>
19621
19622         Implement nproc for HP-UX.
19623         * lib/nproc.c: Include <sys/pstat.h>
19624         (num_processors): On HP-UX systems, try pstat_getdynamic.
19625         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
19626         pstat_getdynamic.
19627
19628 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
19629             Bruno Haible  <bruno@clisp.org>
19630
19631         Implement nproc for NetBSD, OpenBSD.
19632         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
19633         (ARRAY_SIZE): New macro.
19634         (num_processors): On BSD systems, try sysctl of HW_NCPU.
19635         * m4/nproc.m4: New file.
19636         * modules/nproc (Files): Add m4/nproc.m4.
19637         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
19638         (Makefile.am): Instead, augment lib_SOURCES.
19639
19640 2009-10-18  Bruno Haible  <bruno@clisp.org>
19641
19642         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
19643         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
19644         sys/param.h.
19645
19646 2009-10-16  Eric Blake  <ebb9@byu.net>
19647
19648         utimensat: new module
19649         * modules/utimensat: New file.
19650         * lib/utimensat.c (utimensat): Likewise.
19651         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19652         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
19653         so we can work around Linux bugs.
19654         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
19655         * modules/sys_stat (Makefile.am): Substitute them.
19656         * lib/sys_stat.in.h (utimensat): Declare it.
19657         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19658         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
19659         * modules/utimensat-tests: New test.
19660         * tests/test-utimensat.c: Likewise.
19661
19662         utimens: let lutimens work on non-symlinks
19663         * lib/utimens.c (lutimens): Fall back to utimens rather than
19664         failing with ENOSYS, when file is not a symlink.
19665         (utimens): Reduce redirection.
19666         * tests/test-lutimens.h (test_lutimens): Update test to cover
19667         non-symlinks.
19668         * tests/test-utimens.h (test_utimens): Update test to cover
19669         symlinks.
19670         * tests/test-utimens.c (main): Update caller.
19671
19672         utimens: cache whether utimensat syscall works
19673         * lib/utimens.c (utimensat_works_really): New cache variable.
19674         (fdutimens, lutimens): Use it to avoid failing syscall.
19675
19676         test-stat-time, test-utimens: improve portability
19677         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
19678         ext4 on alpha, and for cygwin.
19679         * tests/test-utimens-common.h: New file.
19680         (nap): Factor delays into single function.
19681         * tests/test-lutimens.h (test_lutimens): Use new header.
19682         * tests/test-futimens.h (test_futimens): Likewise.
19683         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
19684         timestamps to occur from same machine, as was done previously for
19685         test_utimens.
19686         * modules/utimens-tests (Files): Ship new file.
19687         * modules/futimens-tests (Files): Likewise.
19688         Reported in part by Jim Meyering.
19689
19690         sys_stat: sort replacement declarations
19691         * lib/sys_stat.in.h: Sort declarations.
19692         * lib/futimens.c (futimens): Fix typo.
19693
19694 2009-10-15  Jim Meyering  <meyering@redhat.com>
19695
19696         don't let environment settings perturb build
19697         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
19698         could cause a configure-time and/or build-time malfunction.
19699         Typically, a configure-time function-in-library test is performed
19700         via code like this:
19701
19702           LIB_VAR=
19703           AC_SUBST([LIB_VAR])
19704           prefix_saved_LIBS=$LIBS
19705             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
19706                        [test "$ac_cv_search_FUNC" = "none required" ||
19707                         LIB_VAR=$ac_cv_search_FUNC])
19708           LIBS=$prefix_saved_LIBS
19709
19710         However, in each of the files affected by this change, the LIB_VAR=
19711         initialization was omitted.  Thus, when set in the environment, its
19712         value would propagate into generated Makefiles when FUNC is not found
19713         in LIB_NAME.
19714         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
19715         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
19716         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19717
19718 2009-10-14  Eric Blake  <ebb9@byu.net>
19719
19720         fchdir: avoid infinite recursion in mingw
19721         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
19722         recursing.
19723
19724         test-stat-time: port to mingw
19725         * tests/test-stat-time.c (force_unlink): Return a value.
19726         (test_ctime) [W32]: Fix compilation error.
19727         (nap): Don't call usleep with too large an argument.  Use
19728         force_unlink.
19729         * doc/pastposix-functions/usleep.texi (usleep): Document the
19730         portability issue.
19731
19732 2009-10-13  Jim Meyering  <meyering@redhat.com>
19733
19734         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
19735         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
19736         * modules/pipe-filter-ii: Likewise.
19737         * modules/sys_socket-tests: Likewise.
19738         * modules/tsearch-tests: Likewise.
19739         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
19740         (check): Depend on it.
19741
19742 2009-10-12  Eric Blake  <ebb9@byu.net>
19743
19744         utimens-tests: port to NFS file systems
19745         * tests/test-utimens.h (test_utimens): Refactor utimecmp
19746         comparisons to avoid spurious failures from timestamp drift
19747         between NFS machines.
19748
19749 2009-10-12  Eric Blake  <ebb9@byu.net>
19750
19751         stat-time-tests: minor cleanups
19752         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
19753         * tests/test-stat-time.c (nap): Separate assignment from call.
19754         Suggested by Paolo Bonzini and Bruno Haible.
19755
19756         sys_stat: guarantee struct timespec
19757         * lib/sys_stat.in.h (includes): Always include <time.h>
19758         * modules/sys_stat (Depends-on): Add time.
19759         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
19760         mode_t permission values.
19761         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
19762         get at subsecond timestamps.
19763
19764 2009-10-10  Eric Blake  <ebb9@byu.net>
19765
19766         futimens: new module
19767         * modules/futimens: New file.
19768         * lib/futimens.c (futimens): Likewise.
19769         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
19770         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
19771         we can work around Linux bugs.
19772         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
19773         * modules/sys_stat (Makefile.am): Substitute them.
19774         * lib/sys_stat.in.h (futimens): Declare it.
19775         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19776         * doc/posix-functions/futimens.texi (futimens): Likewise.
19777         * modules/futimens-tests: New test.
19778         * tests/test-futimens.c: Likewise.
19779
19780         utimens: introduce fdutimens
19781         * lib/utimens.h (fdutimens): New prototype.
19782         * lib/utimens.c (gl_futimens): Move guts...
19783         (fdutimens): ...to new interface.
19784         * tests/test-utimens.c (do_fdutimens): Use it.
19785
19786         utimens: add UTIME_NOW and UTIME_OMIT support
19787         * lib/utimens.c (validate_timespec, update_timespec): New helper
19788         functions.
19789         (gl_futimens, lutimens): Use them.
19790         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
19791         stdbool, sys_stat.
19792         (Link): Mention resulting library dependency.
19793         * modules/utimecmp (Link): Likewise.
19794         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
19795         (Makefile.am): Pick up library dependency.
19796         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
19797         definition.
19798         * tests/test-sys_stat.c: Test the definitions.
19799         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
19800         * NEWS: Document library dependency.
19801
19802         utimecmp: support symlink timestamps
19803         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
19804         hashing when possible.  Use pathconf when available.
19805         (SYSCALL_RESOLUTION): Recognize tighter resolution.
19806         * modules/utimecmp (Depends-on): Add lstat.
19807
19808         utimens: add lutimens interface
19809         * lib/utimens.c (lutimens): New function.
19810         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
19811         * lib/utimens.h (lutimens): Declare new interface.
19812         * tests/test-utimens.c (main): Enhance test.
19813         * tests/test-lutimens.h (test_lutimens): New file.
19814         * modules/utimens-tests (Files): Distribute it.
19815         (Depends-on): Add symlink.
19816         (configure.ac): Check for usleep.
19817
19818         utimens: validate futimens usage
19819         * lib/utimens.c (gl_futimens): Require valid fd up front, using
19820         fewer syscalls on failure later on.  Avoid compiler warning on
19821         mingw.
19822         * modules/utimens (Depends-on): Add dup2.
19823
19824         utimens: add test
19825         * modules/utimens-tests: New test.
19826         * tests/test-utimens.h: New file.
19827         * tests/test-futimens.h: Likewise.
19828         * tests/test-utimens.c: Likewise.
19829
19830         doc: mention timestamp portability issues
19831         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
19832         instead.
19833         * doc/posix-functions/utime.texi (utime): Likewise.
19834         * doc/posix-functions/utimes.texi (utimes): Likewise.
19835         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
19836         instead.
19837         * doc/posix-functions/futimens.texi (futimens): Mention utimens
19838         module.
19839         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
19840         Mention weakness with symlink timestamps.
19841         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
19842         to utimensat/futimens instead.
19843         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
19844
19845         test-dup2: enhance test
19846         * tests/test-dup2.c (main): Also check AT_FDCWD.
19847
19848         test-stat-time: avoid more spurious failures
19849         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
19850         xfs; and avoid race if the two timestamps cross quantization edge.
19851
19852         relocatable: prefer 'file system' over 'filesystem'
19853         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
19854         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
19855         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
19856         * doc/relocatable.texi (Enabling Relocatability): Likewise.
19857         * lib/relocatable.c (compute_curr_prefix): Likewise.
19858
19859 2009-10-10  Jim Meyering  <meyering@redhat.com>
19860
19861         stat-time-tests: check for the usleep function
19862         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
19863
19864 2009-10-10  Bruno Haible  <bruno@clisp.org>
19865
19866         * modules/xnanosleep: Put the Link section after the Include section.
19867
19868 2009-10-09  Eric Blake  <ebb9@byu.net>
19869
19870         dup2: work around FreeBSD 6.1 bug
19871         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
19872         * doc/posix-functions/dup2.texi (dup2): Document it.
19873         Reported by Nelson H. F. Beebe and Jim Meyering.
19874
19875         test-stat-time: port to buggy NFS clients
19876         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
19877         (test_ctime): Also skip test if mtime and ctime are skewed.
19878
19879         maint: prefer 'file system' over 'filesystem'
19880         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
19881         * doc/posix-functions/lstat.texi (lstat): Likewise.
19882         * lib/file-has-acl.c (file_has_acl): Likewise.
19883         * lib/fwriteerror.c [TEST]: Likewise.
19884         * tests/test-areadlink.h (test_areadlink): Likewise.
19885         * tests/test-areadlinkat-with-size.c (main): Likewise.
19886         * tests/test-areadlinkat.c (main): Likewise.
19887         * tests/test-canonicalize-lgpl.c (main): Likewise.
19888         * tests/test-canonicalize.c (main): Likewise.
19889         * tests/test-fstatat.c (main): Likewise.
19890         * tests/test-linkat.c (main): Likewise.
19891         * tests/test-lstat.h (test_lstat_func): Likewise.
19892         * tests/test-mkdir.h (test_mkdir): Likewise.
19893         * tests/test-readlink.h (test_readlink): Likewise.
19894         * tests/test-remove.c (main): Likewise.
19895         * tests/test-rename.h (test_rename): Likewise.
19896         * tests/test-renameat.c (main): Likewise.
19897         * tests/test-rmdir.h (test_rmdir_func): Likewise.
19898         * tests/test-symlink.h (test_symlink): Likewise.
19899         * tests/test-symlinkat.c (main): Likewise.
19900         * tests/test-unlink.h (test_unlink_func): Likewise.
19901         * tests/test-unlinkat.c (main): Likewise.
19902
19903         maint: make realtime library usage explicit
19904         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
19905         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
19906         * modules/settime (Link): Likewise.
19907         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
19908
19909         test-stat-time: speed up execution
19910         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
19911         warning on mingw.
19912         (nap): New helper function.
19913         (prepare_test): Use it to reduce sleep time.
19914         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
19915         execution.
19916         * modules/stat-time-tests (configure.ac): Check for usleep.
19917
19918 2009-10-09  Jim Meyering  <meyering@redhat.com>
19919
19920         selinux-h: always use getfilecon wrappers
19921         * lib/getfilecon.c: New file.
19922         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
19923         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
19924         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
19925         (fgetfilecon): Provide a stub.
19926         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
19927         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
19928         file unconditionally.
19929         When <selinux/selinux.h> is found, arrange to use wrappers.
19930         * modules/selinux-h (Files): Add getfilecon.c.
19931         (Makefile.am): Substitute include-next-related bits
19932         into the now-always-generated selinux/selinux.h file.
19933         * doc/glibc-functions/lgetfilecon.texi: New file.
19934         * doc/glibc-functions/fgetfilecon.texi: New file.
19935         * doc/glibc-functions/getfilecon.texi: New file.
19936         * doc/glibc-functions/getfilecon-desc.texi: New file.
19937         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
19938         which to pull in the new files.
19939         * MODULES.html.sh (Misc): Add selinux-h.
19940
19941 2009-10-08  Jim Meyering  <meyering@redhat.com>
19942
19943         unistd: fix comment typo
19944         * lib/unistd.in.h (euidaccess): Fix a comment typo.
19945
19946 2009-10-08  Eric Blake  <ebb9@byu.net>
19947
19948         areadlink: use SIZE_MAX consistently
19949         * modules/areadlink (Depends-on): Add stdint.
19950         * modules/areadlink-with-size (Depends-on): Likewise.
19951         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
19952         gives NULL; drop sys/types, since unistd gives size_t; and add
19953         stdint for SIZE_MAX.
19954         (SIZE_MAX): Rely on headers.
19955         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
19956         and add stdint.
19957         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
19958         (SIZE_MAX): Likewise.
19959         (INITIAL_BUF_SIZE): Turn into enum.
19960         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
19961
19962 2009-10-08  Jim Meyering  <meyering@redhat.com>
19963
19964         areadlinkat: avoid compilation failure
19965         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
19966         Fix typo in comment.
19967
19968 2009-10-07  Eric Blake  <ebb9@byu.net>
19969
19970         areadlinkat-with-size: new module
19971         * modules/areadlinkat-with-size: New module.
19972         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
19973         * lib/areadlink.h (areadlinkat): Declare it.
19974         * MODULES.html.sh (File system functions): Mention it.
19975         * modules/areadlinkat-with-size-tests: New test.
19976         * tests/test-areadlinkat-with-size.c: New file.
19977
19978         xreadlinkat: new module
19979         * modules/xreadlinkat: New module.
19980         * lib/xreadlinkat.c (xreadlinkat): New file.
19981         * lib/xreadlink.h (xreadlinkat): Declare it.
19982         * MODULES.html.sh (File system functions): Mention it.
19983
19984         areadlinkat: new module
19985         * lib/at-func.c (FUNC_FAIL): New define.
19986         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
19987         * modules/areadlinkat: New module.
19988         * lib/linkat.c (areadlinkat): Move...
19989         * lib/areadlinkat.c (areadlinkat): ...to new file.
19990         * lib/areadlink.h (areadlinkat): Declare it.
19991         * modules/linkat (Depends-on): Add areadlinkat.
19992         * MODULES.html.sh (File system functions): Mention it.
19993         * modules/areadlinkat-tests: New test.
19994         * tests/test-areadlinkat.c: New file.
19995
19996         areadlink, areadlink-with-size: add tests
19997         * modules/areadlink-tests: New test.
19998         * modules/areadlink-with-size-tests: Likewise.
19999         * tests/test-areadlink.h: New file.
20000         * tests/test-areadlink.c: Likewise.
20001         * tests/test-areadlink-with-size.c: Likewise.
20002
20003         maint: minor cleanups
20004         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
20005         _UNUSED_PARAMETER_ instead.
20006         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
20007         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
20008         * modules/linkat-tests (Files): Distribute test-link.h.
20009
20010         openat, utimens: whitespace cleanup
20011         * lib/openat.c: Prefer space throughout, rather than mix of 8
20012         spaces vs. tabs.
20013         * lib/at-func.c: Likewise.
20014         * lib/utimens.c: Likewise.
20015
20016         openat: avoid using wrong fd
20017         * lib/openat.c (openat_permissive): Reject user's fd if saving the
20018         working directory chooses same fd.
20019         * lib/at-func.c (AT_FUNC_NAME): Likewise.
20020
20021         mkdir, mkdirat: fix cygwin 1.5.x bug
20022         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
20023         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
20024         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
20025         bug.
20026         (gl_PREREQ_MKDIR): Delete unused macro.
20027         * modules/mkdir (Files): Track file rename.
20028         (configure.ac): Update macro name.
20029         * modules/openat (Depends-on): Add mkdir.
20030         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
20031
20032         mkdir, mkdirat: add tests
20033         * modules/mkdir-tests: New test.
20034         * tests/test-mkdir.h: New file.
20035         * tests/test-mkdir.c: Likewise.
20036         * tests/test-mkdirat.c: Likewise.
20037         * modules/openat-tests (Files): Add new files.
20038         (Makefile.am): Run new test.
20039
20040 2009-10-06  Eric Blake  <ebb9@byu.net>
20041
20042         doc: tweak *at function documentation
20043         * doc/posix-functions/faccessat.texi (faccessat): Mention
20044         known issue with replacement.
20045         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
20046         * doc/posix-functions/linkat.texi (linkat): Likewise.
20047         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
20048         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
20049         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20050         * doc/posix-functions/renameat.texi (renameat): Likewise.
20051         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20052
20053         openat: fix GNU/Hurd bug in unlinkat
20054         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
20055         broken.
20056         * doc/posix-functions/unlink.texi (unlink): Document this.
20057         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
20058
20059         fdopendir: fix GNU/Hurd bug
20060         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
20061         allowing non-directory fds.
20062         * lib/fdopendir.c (rpl_fdopendir): Work around it.
20063         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
20064         * modules/dirent (Makefile.am): Substitute it.
20065         * lib/dirent.in.h (fdopendir): Declare replacement.
20066         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
20067         * tests/test-fdopendir.c (main): Test something other than
20068         /dev/null, since on Hurd that behaves like a directory.
20069
20070         test-symlink: port to GNU/Hurd
20071         * tests/test-symlink.h (test_symlink): Relax expected errno.
20072
20073         doc: tweak more cygwin information
20074         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
20075         now compatible with glibc.
20076         * doc/posix-functions/getopt.texi (getopt): Likewise.
20077
20078         getopt-gnu: add another test
20079         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
20080         guarantee behavior relied on by m4.
20081         * tests/test-getopt.c (main): Use it.
20082         * modules/getopt-posix-tests (Depends-on): Add setenv.
20083         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
20084
20085         getopt: fix compilation on darwin
20086         * lib/getopt.in.h (includes): Leave breadcrumbs during system
20087         include.
20088         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
20089         Reported by Ludovic Courtès.
20090
20091 2009-10-06  Bruno Haible  <bruno@clisp.org>
20092
20093         * modules/size_max (Description): Discourage its use.
20094         Reported by Simon Josefsson.
20095
20096 2009-10-06  Jim Meyering  <meyering@redhat.com>
20097
20098         linkat: avoid compilation failure
20099         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
20100
20101 2009-10-05  Eric Blake  <ebb9@byu.net>
20102
20103         linkat: support Linux 2.6.17
20104         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
20105         linkat on Linux, but allow cache variable override.
20106         * lib/linkat.c (rpl_linkat): Define override.
20107         * modules/linkat (Depends-on): Add symlinkat.
20108         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
20109         * modules/unistd (Makefile.am): Substitute it.
20110         * lib/unistd.in.h (linkat): Declare replacement.
20111         Reported by Pádraig Brady.
20112
20113         quotearg: port test to systems with C.UTF-8 locale
20114         * tests/test-quotearg.c (struct result_strings): Add another
20115         member, differentiating between C.ASCII and C.UTF-8 handling.
20116         (compare_strings): Add parameter.
20117         (main): Adjust all callers.
20118
20119         getopt: avoid clash with FreeBSD _getopt_internal
20120         * lib/getopt.in.h (_getopt_internal): Override the name.
20121         * lib/getopt_int.h (includes): Pick up any overrides.
20122         Reported by Reuben Thomas.
20123
20124         hash: allow C89 compilation
20125         * lib/hash.c (check_tuning): Move declaration before statement.
20126         Reported by Reuben Thomas.
20127
20128 2009-10-05  Karl Berry  <karl@gnu.org>
20129
20130         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
20131
20132 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
20133             Bruno Haible  <bruno@clisp.org>
20134
20135         * lib/uname.c (uname): Use a table-driven algorithm to compute
20136         Windows NT versions.
20137
20138 2009-10-04  Bruno Haible  <bruno@clisp.org>
20139
20140         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
20141         program_invocation_short_name.
20142         * modules/progname (configure.ac): Test for presence of
20143         program_invocation_short_name.
20144         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
20145
20146 2009-10-04  Bruno Haible  <bruno@clisp.org>
20147
20148         * lib/progname.c (set_program_name): Fix comment.
20149         Reported by Jim Meyering.
20150
20151 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
20152             Bruno Haible  <bruno@clisp.org>
20153
20154         * lib/uname.c: Include <string.h>.
20155         (uname): Do only one call to GetVersionEx in the common case.
20156
20157 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
20158             Bruno Haible  <bruno@clisp.org>
20159
20160         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
20161         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
20162         (uname): Add support for Windows CE and various non-x86 CPU types.
20163
20164 2009-10-03  Bruno Haible  <bruno@clisp.org>
20165
20166         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
20167         invocation to tests/configure.ac.
20168         Reported by Ian Beckwith <ianb@erislabs.net>.
20169
20170 2009-10-02  Eric Blake  <ebb9@byu.net>
20171
20172         fchdir: avoid compiler warning
20173         * lib/fchdir.c (canonicalize_file_name)
20174         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
20175
20176         test-open: support mingw errno values
20177         * tests/test-open.h (test_open): Relax test.
20178         * tests/test-fopen.h (test_fopen): Likewise.
20179         * tests/test-openat-safer.c (main): Likewise.
20180
20181         open: fix opening directory on mingw
20182         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
20183
20184         test-open: on GNU/Hurd, /dev/null is a directory
20185         * tests/test-fopen.h (main): Rename...
20186         (test_fopen): ...to this.  Use a guaranteed non-directory when
20187         confirming open behavior on trailing slash.
20188         * tests/test-openat-safer.c (main): Likewise.
20189         * tests/test-open.h (main): Likewise....
20190         (test_open): ...to this.
20191         * tests/test-fopen.c (main): Adjust caller.
20192         * tests/test-fopen-safer.c (main): Likewise.
20193         * tests/test-open.c (main): Likewise.
20194         * tests/test-fcntl-safer.c (main): Likewise.
20195         Reported by Samuel Thibault.
20196
20197         rename, fchdir: don't ignore chdir failure
20198         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
20199         * lib/rename.c (rpl_rename) [W32]: Likewise.
20200         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
20201         an empty destination directory if source cannot be renamed,
20202         although there is still possibility for failure.
20203         * doc/posix-functions/rename.texi (rename): Document the race.
20204         Reported by Jim Meyering.
20205
20206         maint: cleanup whitespace in recent commits
20207         * lib/rename.c (rpl_rename): Remove tabs.
20208         * tests/test-link.h (test_link): Likewise.
20209         * lib/fchdir.c (get_name): Likewise.
20210         Reported by Jim Meyering.
20211
20212 2009-10-02  Ben Pfaff  <blp@gnu.org>
20213
20214         relocatable-prog-wrapper: Add missing dependency on
20215         double-slash-root.
20216         * modules/relocatable-prog-wrapper: Add dependency.
20217         Reported by Ian Beckwith <ianb@erislabs.net>.
20218
20219 2009-10-02  Eric Blake  <ebb9@byu.net>
20220
20221         renameat: fix Solaris bugs
20222         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
20223         needed fixing.
20224         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
20225         * modules/stdio (Makefile.am): Substitute it.
20226         * lib/stdio.in.h (renameat): Declare replacement.
20227         * lib/renameat.c (rpl_renameat): Implement fix.
20228
20229         renameat: new module
20230         * modules/renameat: New file.
20231         * lib/renameat.c (renameat): Likewise.
20232         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
20233         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
20234         * modules/stdio (Makefile.am): Substitute them.
20235         * lib/stdio.in.h (renameat): Declare it.
20236         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20237         * doc/posix-functions/renameat.texi (renameat): Likewise.
20238         * modules/renameat-tests: New test.
20239         * tests/test-renameat.c: Likewise.
20240
20241         rename: fix mingw bugs
20242         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
20243         directory overwrite bugs.
20244
20245         rename: fix another cygwin 1.5 bug
20246         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
20247         checks.
20248         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
20249         unnecessary cygwin workarounds.  Also work around bug with moving
20250         full directory onto an empty one.
20251         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
20252
20253         rename-dest-slash: merge into rename module
20254         * modules/rename-dest-slash (Status): Mark obsolete.
20255         (Depends-on): Add rename.
20256         (Files): Let rename do it all.
20257         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
20258         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
20259         * m4/rename-dest-slash.m4: ...so this file can be deleted.
20260         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
20261         * lib/rename.c (rpl_rename): Update comments.
20262
20263         rename: fix cygwin 1.5.x bugs
20264         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
20265         * lib/rename.c (rpl_rename): Work around them.
20266         * modules/rename (Depends-on): Add same-inode.
20267
20268         rename: fix Solaris 10 bug
20269         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
20270         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
20271         was the only bug.
20272
20273         rename: fix Solaris 9 bug
20274         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
20275         on non-directory.  Avoid calling exit.
20276         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
20277         strdup.
20278         * modules/rename-tests (Depends-on): Drop lstat.
20279         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
20280         (gl_PREREQ_RENAME): Delete unused macro.
20281
20282         rename-dest-slash: fix NetBSD bug
20283         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
20284         links.
20285         * modules/rename-dest-slash (Depends-on): Add same-inode.
20286
20287         rename-tests: new test, exposes several platform bugs
20288         * modules/rename-tests: New file.
20289         * tests/test-rename.h: Likewise.
20290         * tests/test-rename.c: Likewise.
20291         * doc/posix-functions/rename.texi (rename): Improve documentation,
20292         including bugs that will eventually be fixed in gnulib.
20293
20294 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
20295
20296         * lib/uname.c: Include <stdlib.h>
20297         (uname): Assume version info is available.
20298
20299 2009-10-02  Jim Meyering  <meyering@redhat.com>
20300
20301         gnu-web-doc-update: correct --help output
20302         * build-aux/gnu-web-doc-update: Make --help output relevant.
20303
20304         gnu-web-doc-update: add standard options
20305         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
20306
20307         gnu-web-doc-update: New module.
20308         Use this script to automatically update the on-line web documentation
20309         for your GNU project at http://www.gnu.org/software/$pkg/manual/
20310         * modules/gnu-web-doc-update: New file, from coreutils.
20311         * build-aux/gnu-web-doc-update: New script.
20312
20313 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
20314
20315         link: LoadLibrary is not needed.
20316         * lib/link.c: Use GetModuleHandle.
20317
20318 2009-10-01  Eric Blake  <ebb9@byu.net>
20319
20320         getopt: bump serial number
20321         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
20322         change.
20323
20324         tests: tighten link, rmdir, and remove tests
20325         * tests/test-link.h (includes): No need to use <config.h> here.
20326         Clean up if directory hard link was created, otherwise test for
20327         trailing '.'.
20328         * tests/test-linkat.c (main): Simplify.
20329         * tests/test-remove.c (main): Enhance test for trailing '.'.
20330         * tests/test-rmdir.h (test_rmdir_func): Likewise.
20331
20332 2009-10-01  Jim Meyering  <meyering@redhat.com>
20333
20334         maint.mk: requiring "make major" was annoying, for a "minor" release.
20335         What is intended is "stable", to contrast with alpha and beta,
20336         so require "make stable", not "make major".
20337         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
20338         (get_tool_versions): Likewise.
20339         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
20340
20341 2009-09-30  Ben Pfaff  <blp@gnu.org>
20342
20343         Fix broken build of replacement for Windows tmpfile().
20344         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
20345         flags argument added along with the 'mkostemp' module.
20346
20347 2009-09-28  Bruno Haible  <bruno@clisp.org>
20348
20349         Avoid identifier clash with POSIX function 'remove' defined as a macro.
20350         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
20351         to 'remove_elt'.
20352         (gl_list_remove): Update.
20353         * lib/gl_list.c (gl_list_remove): Update.
20354         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
20355         to 'remove_elt'.
20356         (gl_oset_remove): Update.
20357         * lib/gl_list.c (gl_oset_remove): Update.
20358         Reported by Eric Blake.
20359
20360 2009-09-28  Eric Blake  <ebb9@byu.net>
20361
20362         doc: mention yet more cygwin 1.7 status
20363         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
20364         cygwin.
20365         * doc/glibc-functions/execvpe.texi (execvpe): New file.
20366         * doc/gnulib.texi (Glibc unistd.h): Mention it.
20367
20368         argp: fix test failure
20369         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
20370         that are not upper-case.  Pass correct range to tolower.
20371
20372 2009-09-27  Jim Meyering  <meyering@redhat.com>
20373
20374         test-yesno: work around sparc-dash here-document infelicity
20375         Without this change, the literal \177 byte in a here document
20376         would make dash 0.5.5.1-3 access uninitialized memory.
20377         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
20378         Instead, use a marker, "@", and filter through tr to create the desired
20379         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
20380
20381 2009-09-27  Bruno Haible  <bruno@clisp.org>
20382
20383         Disable untested support for new flavours of ACLs on AIX.
20384         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
20385         progress.
20386         * lib/set-mode-acl.c (qset_acl): Likewise.
20387
20388 2008-12-07  Bruno Haible  <bruno@clisp.org>
20389
20390         Add support for new flavours of ACLs on AIX. (Untested.)
20391         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
20392         (file_has_acl): Add support for newer AIX.
20393         * lib/set-mode-acl.c (qset_acl): Likewise.
20394         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
20395         Rainer Tammer <tammer@tammer.net>.
20396
20397 2009-09-26  Eric Blake  <ebb9@byu.net>
20398
20399         argp: fix compilation of getopt
20400         * lib/getopt.in.h (includes): Use different guard than glibc.
20401         Reported by Sergey Poznyakoff.
20402
20403         doc: mention more cygwin 1.7 status
20404         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
20405         bug.
20406         * doc/posix-functions/execl.texi (execl): Likewise.
20407         * doc/posix-functions/execle.texi (execle): Likewise.
20408         * doc/posix-functions/execlp.texi (execlp): Likewise.
20409         * doc/posix-functions/execv.texi (execv): Likewise.
20410         * doc/posix-functions/execve.texi (execve): Likewise.
20411         * doc/posix-functions/execvp.texi (execvp): Likewise.
20412         * doc/glibc-functions/canonicalize_file_name.texi
20413         (canonicalize_file_name): Cygwin 1.7 now provides this.
20414         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
20415         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
20416         on AT_SYMLINK_NOFOLLOW.
20417
20418 2009-09-24  Eric Blake  <ebb9@byu.net>
20419
20420         test-linkat: make test more robust
20421         * tests/test-linkat.c (main): Avoid collision with EEXIST.
20422
20423         getopt: fix inclusion guards for cygwin
20424         * modules/getopt-posix (Depends-on): Add include-next.
20425         (Makefile.am): Substitute more items in replacement header.
20426         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
20427         <getopt.h>.
20428         * lib/getopt.in.h (includes): Use split inclusion guard, and
20429         prefer <getopt.h> over include <unistd.h> when one is present.
20430         (option): Also override name of 'struct option'.
20431
20432         same-inode: revert prior change; it is not yet ready
20433         * NEWS: Undo mention of this change.
20434         * lib/same-inode.h (same-inode.h): Undo tri-state change.
20435         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
20436         * lib/cycle-check.c (cycle_check): Likewise.
20437         * lib/same.c (same_name): Likewise.
20438         * lib/at-func2.c (at_func2): Likewise.
20439
20440 2009-09-23  Eric Blake  <ebb9@byu.net>
20441
20442         linkat: new module
20443         * modules/linkat: New file.
20444         * lib/at-func2.c (at_func2): Likewise.
20445         * lib/linkat.c (linkat): Likewise.
20446         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
20447         * lib/openat-priv.h (at_func2): Add declaration.
20448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
20449         * modules/unistd (Makefile.am): Substitute them.
20450         * lib/unistd.in.h (linkat): Declare it.
20451         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20452         * doc/posix-functions/linkat.texi (linkat): Likewise.
20453         * doc/posix-functions/link.texi (link): Tweak wording.
20454         * tests/test-link.c (main): Move guts...
20455         * tests/test-link.h (test_link): ...into new file.
20456         * modules/linkat-tests: New test.
20457         * tests/test-linkat.c: Likewise.
20458         * modules/link-tests (Files): Ship new file.
20459         (Depends-on): Add stdbool.
20460
20461         dirname: add library-safe mdir_name
20462         * lib/dirname.h (mdir_name): New prototype.
20463         * lib/dirname.c (dir_name): Move guts...
20464         (mdir_name): ...to new function that avoids xalloc_die.
20465
20466         fchdir: another mingw fix
20467         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
20468         * lib/fchdir.c (get_name): New helper method; skips canonicalize
20469         on mingw (where it has not yet been ported), and make it optional
20470         elsewhere.
20471         (_gl_register_fd): Use it.
20472
20473         same-inode: make SAME_INODE tri-state, to port to mingw
20474         * NEWS: Mention this change.
20475         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
20476         st_ino always being 0.
20477         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
20478         * lib/cycle-check.c (cycle_check): Likewise.
20479         * lib/same.c (same_name): Likewise.
20480
20481         lstat: avoid mingw compilation error
20482         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
20483         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
20484         lstat ourselves.
20485         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
20486         was adequate.
20487         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
20488         the checks for lstat.
20489         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
20490
20491         link: fix test failure on Solaris 9
20492         * lib/link.c (rpl_link): Don't assume link will catch bogus
20493         trailing slash on source.
20494
20495         test-symlinkat: enhance test
20496         * tests/test-readlink.c (main): Move guts...
20497         * tests/test-readlink.h (test_readlink): ...into new file.
20498         * tests/test-symlink.c (main): Move guts...
20499         * tests/test-symlink.h (test_symlink): ...into new file.
20500         * tests/test-symlinkat.c (main): Use new files for further
20501         coverage.
20502         (do_symlink, do_readlink): New helper functions.
20503         * modules/symlink-tests (Files): Ship new file.
20504         (Depends-on): Add stdbool.
20505         * modules/readlink-tests (Files): Ship new file.
20506         (Depends-on): Add stdbool.
20507         * modules/symlinkat-tests (Files): Use new files.
20508
20509 2009-09-23  Eric Blake  <ebb9@byu.net>
20510
20511         readlink: document portability issue with symlink length
20512         * doc/posix-functions/lstat.texi (lstat): Mention that some file
20513         systems have bogus st_size on symlinks, and mention the
20514         areadlink-with-size module.
20515         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
20516         * doc/posix-functions/readlink.texi (readlink): Mention the
20517         areadlink module, and ERANGE failure.
20518         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20519         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
20520
20521         readlink: fix Solaris 9 bug with trailing slash
20522         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
20523         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
20524         * doc/posix-functions/readlink.texi (readlink): Document this.
20525         * modules/readlink-tests: New test.
20526         * tests/test-readlink.c: Likewise.
20527
20528         readlink: fix cygwin 1.5.x bug with return type
20529         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
20530         * lib/unistd.in.h (readlink): Use ssize_t.
20531         * lib/readlink.c (readlink): Likewise.
20532         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20533         * modules/unistd (Makefile.am): Substitute it.
20534         * lib/unistd.in.h (readlink): Declare replacement.
20535         * doc/posix-functions/readlink.texi (readlink): Document this.
20536
20537         symlink: use throughout gnulib
20538         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
20539         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
20540         symlink is not used.
20541         * modules/symlinkat (Depends-on): Add symlink.
20542         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
20543         * modules/canonicalize-tests (Depends-on): Likewise.
20544         * modules/lstat-tests (Depends-on): Likewise.
20545         * modules/openat-tests (Depends-on): Likewise.
20546         * modules/remove-tests (Depends-on): Likewise.
20547         * modules/rmdir-tests (Depends-on): Likewise.
20548         * modules/unlink-tests (Depends-on): Likewise.
20549         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
20550         * tests/test-canonicalize.c (symlink): Likewise.
20551         * tests/test-fstatat.c (symlink): Likewise.
20552         * tests/test-lstat.c (symlink): Likewise.
20553         * tests/test-remove.c (symlink): Likewise.
20554         * tests/test-rmdir.c (symlink): Likewise.
20555         * tests/test-unlink.c (symlink): Likewise.
20556         * tests/test-unlinkat.c (symlink): Likewise.
20557
20558         symlink: new module, for Solaris 9 bug
20559         * modules/symlink: New file.
20560         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
20561         * lib/symlink.c: Likewise.
20562         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
20563         * modules/unistd (Makefile.am): Substitute them.
20564         * lib/unistd.in.h (symlink): Declare replacement.
20565         * MODULES.html.sh (File system functions): Mention it.
20566         * doc/posix-functions/symlink.texi (symlink): Likewise.
20567         * modules/symlink-tests: New test.
20568         * tests/test-symlink.c: Likewise.
20569
20570 2009-09-23  Bruno Haible  <bruno@clisp.org>
20571
20572         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
20573         when needed.
20574         Test case: gnulib-tool --import --with-tests atexit inttypes.
20575         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
20576
20577 2009-09-23  Bruno Haible  <bruno@clisp.org>
20578
20579         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
20580         subcommand, not in a subshell.
20581
20582 2009-09-22  Eric Blake  <ebb9@byu.net>
20583
20584         unistd: sort replacement declarations
20585         * lib/unistd.in.h: Sort declarations.
20586
20587         open, openat: minor optimization
20588         * lib/open.c (open): If open succeeded, len is non-zero.
20589         * lib/openat.c (rpl_openat): Likewise.
20590
20591         link-follow: ensure correct result
20592         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
20593         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
20594         distinguish between possible failures.
20595
20596 2009-09-21  Eric Blake  <ebb9@byu.net>
20597
20598         fts: avoid compiler warning
20599         * lib/fts.c (dirent_inode_sort_may_be_useful)
20600         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
20601
20602 2009-09-19  Bruno Haible  <bruno@clisp.org>
20603
20604         * lib/progreloc.c (canonicalize_file_name): New declaration.
20605
20606 2009-09-19  Eric Blake  <ebb9@byu.net>
20607
20608         link: fix quoting
20609         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
20610
20611         openat: fix openat bugs on Solaris 9
20612         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
20613         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
20614         * modules/openat (Depends-on): Add open.
20615         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
20616         * modules/fcntl-h (Makefile.am): Substitute it.
20617         * lib/fcntl.in.h (openat): Declare replacement.
20618         * doc/posix-functions/openat.texi (openat): Document this.
20619
20620         openat: move fstatat and unlinkat into correct files
20621         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
20622         compiled.
20623         * lib/openat.c (fstatat, unlinkat): Move...
20624         * lib/fstatat.c (fstatat): ...into correct files.
20625         * lib/unlinkat.c (unlinkat): Likewise.
20626
20627         openat: fix unlinkat bugs on Solaris 9
20628         * lib/unlinkat.c (unlinkat): New file.
20629         * modules/openat (Depends-on): Add unlink.
20630         (Files): Distribute it.
20631         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
20632         trailing slash behavior is broken.
20633         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20634         * modules/unistd (Makefile.am): Substitute it.
20635         * lib/unistd.in.h (unlinkat): Declare replacement.
20636         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
20637
20638         openat: fix fstatat bugs on Solaris 9
20639         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
20640         stat.
20641         * doc/posix-functions/fstatat.texi (fstatat): Document this.
20642
20643         test-unlinkat: enhance test, to expose Solaris 9 bug
20644         * tests/test-unlink.c (main): Factor guts...
20645         * tests/test-unlink.h (test_rmdir_func): ...into new file.
20646         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
20647         * tests/test-rmdir.c (main): Adjust caller.
20648         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
20649         (unlinker): New helper function.
20650         (rmdirat): Enhance check.
20651         * modules/rmdir-tests (Depends-on): Add stdbool.
20652         * modules/unlink-tests (Depends-on): Likewise.
20653         (Files): Add test-unlink.h.
20654         * modules/openat-tests (Files): Likewise.
20655         (Depends-on): Add unlinkdir.
20656
20657         test-fstatat: new test, to expose Solaris 9 bugs
20658         * tests/test-stat.c (main): Factor guts...
20659         * tests/test-stat.h (test_stat_func): ...into new file.
20660         * tests/test-lstat.c (main): Factor guts...
20661         * tests/test-lstat.h (test_lstat_func): ...into new file.
20662         * tests/test-fstatat.c: New file.
20663         * modules/stat-tests (Files): Add test-stat.h.
20664         * modules/lstat-tests (Files): Add test-lstat.h.
20665         (Depends-on): Add stdbool.
20666         * modules/openat-tests (Depends-on): Add pathmax.
20667         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
20668         (Makefile.am): Run new test.
20669
20670         remove: new module, for mingw and Solaris 9 bugs
20671         * modules/remove: New file.
20672         * lib/remove.c: Likewise.
20673         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
20674         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
20675         * modules/stdio (Makefile.am): Use them.
20676         * lib/stdio.in.h (remove): Declare replacement.
20677         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20678         * doc/posix-functions/remove.texi (remove): Likewise.
20679         * modules/remove-tests: New test.
20680         * tests/test-remove.c: Likewise.
20681
20682         unlink: new module, for Solaris 9 bug
20683         * modules/unlink: New file.
20684         * lib/unlink.c: Likewise.
20685         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
20687         * modules/unistd (Makefile.am): Use them.
20688         * lib/unistd.in.h (stat): Declare replacement.
20689         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20690         * doc/posix-functions/unlink.texi (unlink): Likewise.
20691         * modules/unlink-tests: New test.
20692         * tests/test-unlink.c: Likewise.
20693
20694         lstat: fix Solaris 9 bug
20695         * lib/lstat.c (lstat): Also check for trailing slash on
20696         non-symlink, non-directories.  Use stat module to simplify logic.
20697         * doc/posix-functions/lstat.texi (lstat): Document it.
20698         * modules/lstat-tests (Depends-on): Add errno, same-inode.
20699         (configure.ac): Check for symlink.
20700         * tests/test-lstat.c (main): Add more tests.
20701
20702         stat: add as dependency to other modules
20703         * modules/chown (Depends-on): Add stat.
20704         * modules/euidaccess (Depends-on): Likewise.
20705         * modules/fchdir (Depends-on): Likewise.
20706         * modules/isdir (Depends-on): Likewise.
20707         * modules/link (Depends-on): Likewise.
20708         * modules/lstat (Depends-on): Likewise.
20709         * modules/mkdir-p (Depends-on): Likewise.
20710         * modules/modechange (Depends-on): Likewise.
20711         * modules/open (Depends-on): Likewise.
20712         * modules/readlink (Depends-on): Likewise.
20713         * modules/same (Depends-on): Likewise.
20714
20715         stat: fix Solaris 9 bug
20716         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
20717         slash.
20718         * lib/stat.c (rpl_stat): Work around it.
20719         * doc/posix-functions/stat.texi (stat): Update documentation.
20720
20721         stat: new module, for mingw bug
20722         * modules/stat: New file.
20723         * lib/stat.c: Likewise.
20724         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20725         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
20726         * modules/sys_stat (Makefile.am): Use them.
20727         * lib/sys_stat.in.h (stat): Declare replacement.
20728         * lib/openat.c (fstatat): Deal with lstat and stat being function
20729         macros.
20730         * modules/openat (Depends-on): Add inline.
20731         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20732         * doc/posix-functions/stat.texi (stat): Likewise.
20733         * modules/stat-tests: New test.
20734         * tests/test-stat.c: Likewise.
20735
20736 2009-09-19  Jim Meyering  <meyering@redhat.com>
20737
20738         syntax-check: detect unnecessary inclusion of canonicalize.h
20739         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
20740
20741 2009-09-19  Eric Blake  <ebb9@byu.net>
20742
20743         canonicalize-lgpl: adjust clients to use correct header
20744         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
20745         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
20746         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
20747         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
20748         * lib/progreloc.c (includes): Likewise.
20749
20750 2009-09-19  Jim Meyering  <meyering@redhat.com>
20751
20752         test-posixtm.c: correct a comment
20753         * tests/test-posixtm.c: Correct first-line comment.
20754         Spotted by Eric Blake.
20755
20756 2009-09-16  Jim Meyering  <meyering@redhat.com>
20757
20758         posixtm-tests: make T const-correct; add a test case
20759         * tests/test-posixtm.c (T): Declare const.
20760         Add a test for -(2^31+1).
20761         Remove useless can-succeed-only-in-2002 test.
20762
20763         posixtm-tests: adjust the sole failing test
20764         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
20765         expected output matches what mktime now produces.  Cross-checked via
20766         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
20767
20768         posixtm: move #ifdef'd tests into a new module
20769         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
20770         * tests/test-posixtm.c: ... this new file.
20771         * modules/posixtm-tests: New module.
20772
20773 2009-09-19  Eric Blake  <ebb9@byu.net>
20774
20775         openat: simplify use of at-func.c
20776         * lib/at-func.c (includes): Include prerequisites here, to
20777         simplify requirements on client files.
20778         * lib/openat-priv.h: Add double-inclusion guard.
20779         * lib/faccessat.c (includes): Simplify.
20780         * lib/fchmodat.c (includes): Likewise.
20781         * lib/fchownat.c (includes): Likewise.
20782         * lib/mkdirat.c (includes): Likewise.
20783         * lib/mkfifoat.c (includes): Likewise.
20784         * lib/symlinkat.c (includes): Likewise.
20785
20786         openat: allow return of fd 0
20787         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
20788         * modules/save-cwd (Depends-on): Replace fcntl-safer with
20789         unistd-safer.
20790         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
20791         <fcntl.h>; this module does not leak fds.
20792         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
20793         must be allowed to return 0, leaving openat_safer to add the
20794         safety.
20795         (openat_permissive): Avoid writing to just-opened fd 2 if
20796         restoring the current directory fails.
20797         * lib/openat-die.c (openat_restore_fail): Add comment.
20798         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
20799         (save_cwd): Guarantee safe fd, but without use of open_safer.
20800         * tests/test-openat.c: New test.
20801         * modules/openat-tests (Files, Makefile.am): Distribute and build
20802         new file.
20803
20804         relocatable-prog-wrapper: fix build
20805         * modules/relocatable-prog-wrapper (Files): Update name of
20806         canonicalize m4 file, broken on 2009-09-17.
20807         Reported by emad hajjar <aleppos@hotmail.com>.
20808
20809 2009-09-19  Bruno Haible  <bruno@clisp.org>
20810
20811         * lib/safe-alloc.h: Use the standard header with GPL copyright.
20812         * lib/safe-alloc.c: Likewise.
20813         Reported by Ian Beckwith <ianb@erislabs.net>.
20814
20815 2009-09-18  Bruno Haible  <bruno@clisp.org>
20816
20817         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
20818         Reported by <erobles@sensacd.com.mx>.
20819
20820 2009-09-17  Eric Blake  <ebb9@byu.net>
20821
20822         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
20823         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
20824         slashes when checking if last component is missing.
20825         * tests/test-canonicalize.c (main): Test this.
20826
20827         canonicalize, canonicalize-lgpl: honor // if distinct from /
20828         * modules/canonicalize (Files): Add double-slash-root.m4.
20829         * modules/canonicalize-lgpl (Files): Likewise.
20830         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
20831         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
20832         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
20833         fallback definition.
20834         (canonicalize_filename_mode): Use it to protect //.
20835         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
20836         (__realpath): Likewise.
20837         * tests/test-canonicalize.c (main): Test this.
20838         * tests/test-canonicalize-lgpl.c (main): Likewise.
20839         * modules/canonicalize-tests (Depends-on): Add same-inode.
20840         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
20841
20842         canonicalize-lgpl: fix glibc bug with trailing slash
20843         * m4/canonicalize-lgpl.m4: Move contents...
20844         * m4/canonicalize.m4: ...here.
20845         (gl_CANONICALIZE_LGPL): Factor realpath check...
20846         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
20847         glibc 2.3.5 bug, fixed 2005-04-27.
20848         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
20849         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
20850         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
20851         * modules/canonicalize-lgpl (Files): Manage file rename.
20852         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
20853         * modules/stdlib (Makefile.am): Substitute witness.
20854         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
20855         is needed.
20856         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
20857         replacement is required.
20858         * lib/canonicalize.c (canonicalize_file_name): Likewise.
20859         * doc/glibc-functions/canonicalize_file_name.texi
20860         (canonicalize_file_name): Document this.
20861         * doc/posix-functions/realpath.texi (realpath): Likewise.
20862
20863         canonicalize-lgpl: reject non-directory with trailing slash
20864         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
20865         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
20866         catches failures in glibc 2.3.5.
20867         * tests/test-canonicalize.c (main): Likewise.
20868
20869         canonicalize-lgpl: use native realpath if it works
20870         * lib/canonicalize-lgpl.c (realpath): Guard with
20871         FUNC_REALPATH_WORKS.
20872         * lib/stdlib.in.h (realpath): Make declaration optional based on
20873         HAVE_REALPATH.
20874         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
20875         native realpath works.
20876         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
20877         * modules/stdlib (Makefile.am): Substitute witness.
20878
20879         canonicalize, canonicalize-lgpl: use <stdlib.h>
20880         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
20881         (Include): Mention <stdlib.h>.
20882         (configure.ac): Mention functions we provide.
20883         * modules/canonicalize (configure.ac): Likewise.
20884         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
20885         realpath if canonicalize_file_name is missing.
20886         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
20887         * modules/stdlib (Makefile.am): Substitute witnesses.
20888         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
20889         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
20890         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
20891         * NEWS: Document this.
20892         * doc/glibc-functions/canonicalize_file_name.texi
20893         (canonicalize_file_name): Likewise.
20894         * doc/posix-functions/realpath.texi (realpath): Likewise.
20895         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
20896
20897         test-canonicalize: consolidate into single C program
20898         * tests/test-canonicalize.sh: Delete; move setup into...
20899         * tests/test-canonicalize.c (main): ...the program, making it
20900         easier to run in debugger.  Add some tests.
20901         * modules/canonicalize-tests (Files): Remove unused file.
20902         (Depends-on): Add progname.
20903         (configure.ac, Makefile.am): Simplify.
20904
20905         test-canonicalize-lgpl: consolidate into single C program
20906         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
20907         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
20908         easier to run in debugger.  Add some tests.
20909         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
20910         (configure.ac, Makefile.am): Simplify.
20911
20912         canonicalize: avoid resolvepath
20913         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
20914         unnecessary checks.
20915         * lib/canonicalize.c (includes): Simplify.
20916         (canonicalize_file_name): Drop resolvepath implementation.
20917         * modules/canonicalize (Depends-on): Drop filenamecat.
20918
20919         canonicalize: don't lose errno
20920         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
20921         over calls to free.
20922
20923         canonicalize: simplify errno handling
20924         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
20925         assignment.
20926
20927         canonicalize, canonicalize-lgpl: update module dependencies
20928         * modules/canonicalize (Depends-on): Add extensions, lstat,
20929         pathmax, stdlib.
20930         (Files): Drop pathmax.h.
20931         (configure.ac): Adjust macro name.
20932         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
20933         lstat, stdlib, sys_stat.
20934         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
20935         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
20936         extensions.
20937         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
20938         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
20939         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
20940         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
20941         declaration, if available.
20942         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
20943         we can rely on the readlink module.
20944         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
20945         (includes): Use <unistd.h> unconditionally.
20946
20947 2009-09-17  Eric Blake  <ebb9@byu.net>
20948
20949         maint: make Include sections of modules consistent
20950         * modules/alloca: Use only header name; no need to list #include.
20951         * modules/alloca-opt: Likewise.
20952         * modules/arpa_inet: Likewise.
20953         * modules/canon-host: Likewise.
20954         * modules/configmake: Likewise.
20955         * modules/dirent: Likewise.
20956         * modules/eealloc: Likewise.
20957         * modules/environ: Likewise.
20958         * modules/fchdir: Likewise.
20959         * modules/fcntl: Likewise.
20960         * modules/fcntl-h: Likewise.
20961         * modules/gethrxtime: Likewise.
20962         * modules/gettime: Likewise.
20963         * modules/ignore-value: Likewise.
20964         * modules/inet_ntop: Likewise.
20965         * modules/inet_pton: Likewise.
20966         * modules/inttypes: Likewise.
20967         * modules/isnand-nolibm: Likewise.
20968         * modules/isnanf-nolibm: Likewise.
20969         * modules/mbchar: Likewise.
20970         * modules/mbfile: Likewise.
20971         * modules/mbiter: Likewise.
20972         * modules/mbuiter: Likewise.
20973         * modules/netdb: Likewise.
20974         * modules/netinet_in: Likewise.
20975         * modules/nproc: Likewise.
20976         * modules/pagealign_alloc: Likewise.
20977         * modules/poll: Likewise.
20978         * modules/printf-frexp: Likewise.
20979         * modules/pthread: Likewise.
20980         * modules/putenv: Likewise.
20981         * modules/random_r: Likewise.
20982         * modules/relocatable-prog: Likewise.
20983         * modules/search: Likewise.
20984         * modules/select: Likewise.
20985         * modules/selinux-h: Likewise.
20986         * modules/settime: Likewise.
20987         * modules/signal: Likewise.
20988         * modules/size_max: Likewise.
20989         * modules/socklen: Likewise.
20990         * modules/ssize_t: Likewise.
20991         * modules/stdarg: Likewise.
20992         * modules/stdbool: Likewise.
20993         * modules/stddef: Likewise.
20994         * modules/stdint: Likewise.
20995         * modules/stdio: Likewise.
20996         * modules/stdlib: Likewise.
20997         * modules/string: Likewise.
20998         * modules/strings: Likewise.
20999         * modules/sys_file: Likewise.
21000         * modules/sys_ioctl: Likewise.
21001         * modules/sys_select: Likewise.
21002         * modules/sys_socket: Likewise.
21003         * modules/sys_stat: Likewise.
21004         * modules/sys_time: Likewise.
21005         * modules/sys_times: Likewise.
21006         * modules/sys_utsname: Likewise.
21007         * modules/sys_wait: Likewise.
21008         * modules/sysexits: Likewise.
21009         * modules/time: Likewise.
21010         * modules/times: Likewise.
21011         * modules/tmpfile: Likewise.
21012         * modules/trim: Likewise.
21013         * modules/unistd: Likewise.
21014         * modules/wchar: Likewise.
21015         * modules/wctype: Likewise.
21016
21017 2009-09-17  Bruno Haible  <bruno@clisp.org>
21018
21019         Make getdate.y compile on QNX and NetBSD 5 / i386.
21020         * m4/getdate.m4 (gl_GETDATE): Conditionally define
21021         TIME_T_FITS_IN_LONG_INT.
21022         * lib/getdate.y (long_time_t): New type.
21023         (relative_time): Change type of 'seconds' field to long_time_t.
21024         (get_date): Update types of local variables. Check against overflow
21025         during conversion from long_time_t to time_t.
21026         Reported by Matt Kraai <kraai@ftbfs.org>
21027         and Hasso Tepper <hasso@netbsd.org>.
21028
21029 2009-09-17  Bruno Haible  <bruno@clisp.org>
21030
21031         * modules/COPYING: Update copyright years.
21032         * modules/README: Likeiwse.
21033         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
21034         Reported by Ian Beckwith <ianb@erislabs.net>.
21035
21036 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
21037
21038         * users.txt: Update references for gnuit package.
21039
21040 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
21041
21042         * m4/getdelim.m4: Fix typo in copyright line.
21043
21044 2009-09-17  Bruno Haible  <bruno@clisp.org>
21045
21046         * lib/atoll.c: Use the standard header with GPL copyright.
21047         * lib/argz.in.h: Likewise.
21048         * lib/glob.c: Likewise.
21049         * lib/glob-libc.h: Likewise.
21050         * lib/random_r.c: Likewise.
21051         * lib/siglist.h: Likewise.
21052         * lib/strsignal.c: Likewise.
21053         Reported by Ian Beckwith <ianb@erislabs.net>.
21054
21055 2009-09-17  Eric Blake  <ebb9@byu.net>
21056
21057         rmdir: ensure correct dependency order
21058         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
21059
21060 2009-09-17  Bruno Haible  <bruno@clisp.org>
21061
21062         Disable assertion that fails on NetBSD 5 / i386.
21063         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
21064         Reported by Sam Steingold <sds@gnu.org>
21065         and Hasso Tepper <hasso@netbsd.org>.
21066
21067 2009-09-16  Eric Blake  <ebb9@byu.net>
21068
21069         unlinkdir: port to mingw
21070         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
21071         on which no one can unlink a directory.
21072
21073         stdlib: sort witness names
21074         * modules/stdlib (Makefile.am): Sort replacements.
21075         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
21076         * lib/stdlib.in.h: Likewise.
21077
21078         parse-duration-tests: avoid link failure
21079         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
21080         LIBINTL.
21081         Reported by Tom G. Christensen.
21082
21083         openat-tests: ensure unlinkat behaves like rmdir
21084         * tests/test-rmdir.c (main): Factor guts...
21085         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
21086         * modules/rmdir-tests (Files): Ship new file.
21087         * modules/openat-tests: New test.
21088         * tests/test-unlinkat.c: Likewise.
21089
21090         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
21091         * modules/rmdir-errno (Status, Notice): Now obsolete.
21092
21093         rmdir: work around cygwin 1.5.x and mingw bugs
21094         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
21095         * lib/rmdir.c (rmdir): Work around it.
21096         * modules/rmdir (Status, Notice): No longer obsolete.
21097         (Files): Add dos.m4.
21098         (Depends-on): Add unistd.
21099         (configure.ac): Set witnesses.
21100         (License): Relax to LGPLv2+.
21101         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
21102         * modules/unistd (Makefile.am): Substitute witnesses.
21103         * lib/unistd.in.h (rmdir): Declare replacement.
21104         * doc/posix-functions/rmdir.texi (rmdir): Document this.
21105         * modules/rmdir-tests: New tests.
21106         * tests/test-rmdir.c: Likewise.
21107
21108 2009-09-15  Eric Blake  <ebb9@byu.net>
21109
21110         fchdir: improve use of replacement functions
21111         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
21112         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
21113         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
21114         REPLACE_CLOSEDIR.
21115         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
21116         * modules/sys_stat (Makefile.am): Substitute correct witness.
21117         * modules/dirent (Makefile.am): Likewise.
21118         * modules/unistd (Makefile.am): Likewise.
21119         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
21120         * lib/unistd.in.h (dup): Likewise.
21121         * lib/sys_stat.in.h (fstat): Likewise.
21122
21123         maint: ignore gnulib-tool temp files
21124         * .gitignore: Ignore files created during gnulib-tool --test.
21125
21126 2009-09-13  Jim Meyering  <meyering@redhat.com>
21127
21128         posixtm: don't reject a time that specify "60" as the number of seconds
21129         * lib/posixtm.c (posixtime): The code to reject invalid dates
21130         would also reject a time specified with the .60 suffix.
21131         But POSIX allows that, in order to accommodate leap seconds.
21132         So don't reject it.
21133         (main): Adjust tests accordingly.
21134         * modules/posixtm (Depends-on): Add stpcpy.
21135
21136 2009-09-11  Jim Meyering  <meyering@redhat.com>
21137
21138         announce-gen: include [$release_type] in emitted Subject:
21139         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
21140         e.g., [stable] in the emitted Subject: line.
21141
21142 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21143
21144         Remove obsolete macros from several modules.
21145         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
21146         obsolete Autoconf macros with their modern counterparts.
21147         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
21148         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
21149         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
21150         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
21151         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
21152         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
21153         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
21154         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
21155         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
21156         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
21157         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
21158         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
21159         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
21160         * m4/sockets.m4 (gl_SOCKETS): Likewise.
21161         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
21162         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
21163         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
21164         * m4/time_r.m4 (gl_TIME_R): Likewise.
21165         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
21166         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
21167         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
21168
21169         Fix copyright header in build-aux scripts.
21170         * build-aux/git-version-gen: Fix copyright header to match GPLv3
21171         recommendation.
21172         * build-aux/ncftpput-ftp: Likewise.
21173         * build-aux/update-copyright: Likewise.
21174
21175 2009-09-09  Eric Blake  <ebb9@byu.net>
21176
21177         test-link: allow Linux choice of errno
21178         * tests/test-link.c (main): Relax test for alternate error.
21179
21180         strndup: fix improper m4 caching
21181         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
21182         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
21183         (gl_PREREQ_STRNDUP): Delete.
21184         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
21185         * modules/string (Makefile.am): Substitute it.
21186         * lib/string.in.h (strndup): Modernize prototype.
21187
21188         getcwd: port to mingw
21189         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
21190         different from the POSIX assumptions made throughout the getcwd
21191         module; fortunately, the mingw getcwd does not need replacement.
21192         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
21193         * modules/getcwd-tests: New test.
21194         * tests/test-getcwd.c: Likewise.
21195
21196         link: fix platform bugs
21197         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
21198         * lib/link.c (link): Work around them.  Fix related mingw bug.
21199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
21200         * modules/unistd (Makefile.am): Substitute it.
21201         * lib/unistd.in.h (link): Declare replacement.
21202         * doc/posix-functions/link.texi (link): Document this.
21203         * modules/link (Depends-on): Add strdup-posix, sys_stat.
21204
21205         test-link: consolidate into single C program, test more cases
21206         * tests/test-link.sh: Delete.
21207         * tests/test-link.c: Test more error conditions.  Exposes bugs on
21208         at least Cygwin and Solaris.
21209         * modules/link-tests (Files): Remove unused file.
21210         (Depends-on): Add errno, sys_stat.
21211         (Makefile.am): Simplify.
21212
21213 2009-09-08  Bruno Haible  <bruno@clisp.org>
21214
21215         Work around towlower, towupper bug on mingw.
21216         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
21217         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
21218         * doc/posix-functions/towlower.texi: Mention the mingw bug.
21219         * doc/posix-functions/towupper.texi: Likewise.
21220         Reported by Eric Blake.
21221
21222 2009-09-08  Jim Meyering  <meyering@redhat.com>
21223
21224         build: don't try to run autoheader if we don't use it
21225         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
21226         is not used in configure.ac.
21227
21228 2009-09-08  Eric Blake  <ebb9@byu.net>
21229
21230         euidaccess: fix compilation error
21231         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
21232
21233         rawmemchr: relax license
21234         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
21235         okay.
21236         Reported by Jim Meyering.
21237
21238         mkfifoat: new module
21239         * modules/mkfifoat: New file.
21240         * lib/mkfifoat.c: Likewise.
21241         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
21242         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
21243         * modules/sys_stat (Makefile.am): Use them.
21244         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
21245         * MODULES.html.sh (File system functions): Mention module.
21246         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
21247         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
21248         * modules/mkfifoat-tests: New test.
21249         * tests/test-mkfifoat.c: Likewise.
21250
21251         strchrnul: relax license
21252         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
21253         okay.
21254         Reported by Jim Meyering.
21255
21256 2009-09-08  Eric Blake  <ebb9@byu.net>
21257
21258         fstatat: fix compilation on Solaris
21259         * lib/fstatat.c (includes): Add fcntl.h.
21260         Reported by Pádraig Brady.
21261
21262 2009-09-07  Eric Blake  <ebb9@byu.net>
21263
21264         rename: modernize replacement
21265         * modules/rename (Depends-on): Add stdio.
21266         (configure.ac): Declare witness.
21267         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
21268         stdio take care of replacement.
21269         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
21270         * modules/stdio (Makefile.am): Substitute them.
21271         * lib/stdio.in.h (rename): Declare replacement.
21272         * lib/rename.c (includes): Allow cross-compilation to non-windows
21273         machines.
21274         * doc/posix-functions/rename.texi (rename): Improve
21275         documentation.
21276
21277         stdio: sort witness names
21278         * modules/stdio (Makefile.am): Sort replacements.
21279         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21280         * lib/stdio.in.h: Likewise.
21281
21282         getcwd: minor cleanups
21283         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
21284         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
21285
21286         openat: provide more convenience names
21287         * modules/faccessat (configure.ac): Add C witness.
21288         * lib/unistd.in.h (readlinkat): Fix typo.
21289         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
21290         convenience wrappers.
21291         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
21292         wrappers in syntax checks.
21293
21294 2009-09-06  Eric Blake  <ebb9@byu.net>
21295
21296         doc: fix comments in recent patches
21297         * lib/faccessat.c: Mention correct function.
21298         * lib/fchmodat.c: Likewise.
21299         * lib/fchownat.c: Likewise.
21300         * lib/symlinkat.c: Likewise.
21301         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
21302         constants.
21303
21304         faccessat, symlinkat: continue cleanup of previous patch
21305         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
21306         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
21307         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
21308         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
21309         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
21310         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
21311         set.
21312
21313 2009-09-06  Bruno Haible  <bruno@clisp.org>
21314
21315         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
21316         (fstatat): Declare if GNULIB_FSTATAT is set.
21317         (mkdirat): Declare if GNULIB_MKDIRAT is set.
21318         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
21319         (unlinkat): Declare if GNULIB_UNLINKAT is set.
21320         * modules/fcntl-h (Files): Remove m4/openat.m4.
21321         * modules/sys_stat (Files): Remove m4/openat.m4.
21322         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
21323         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
21324         * modules/unistd (Files): Remove m4/openat.m4.
21325         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
21326         GNULIB_OPENAT.
21327         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
21328         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
21329         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
21330         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
21331         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
21332         gl_OPENAT_DEFAULTS.
21333         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
21334         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
21335         Don't require gl_OPENAT_DEFAULTS.
21336         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
21337         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
21338         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
21339         (gl_OPENAT_DEFAULTS): Remove macro.
21340
21341 2009-09-06  Bruno Haible  <bruno@clisp.org>
21342
21343         * modules/openat (configure.ac): Remove unneeded witness.
21344
21345 2009-09-06  Bruno Haible  <bruno@clisp.org>
21346
21347         Set errno to ENOSYS when a function is entirely unsupported.
21348         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
21349         EOPNOTSUPP.
21350         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
21351         * modules/chown (Depends-on): Remove errno.
21352
21353 2009-09-06  Bruno Haible  <bruno@clisp.org>
21354
21355         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
21356
21357 2009-09-06  Bruno Haible  <bruno@clisp.org>
21358
21359         * lib/sys_stat.in.h: Fix preprocessor command indentation.
21360
21361 2009-09-06  Ben Pfaff  <blp@gnu.org>
21362             Bruno Haible  <bruno@clisp.org>
21363
21364         Work around a glibc bug in strtok_r.
21365         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
21366         Undefine if UNDEFINE_STRTOK_R is set.
21367         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
21368         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21369         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
21370         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
21371         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
21372         UNDEFINE_STRTOK_R.
21373         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
21374
21375 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
21376
21377         exclude: minor fix
21378         * lib/exclude.c: Include wctype.h
21379
21380 2009-09-06  Akim Demaille  <demaille@gostai.com>
21381
21382         bootstrap: improve error message
21383         * build-aux/bootstrap (find_tool): Upon failure, report the list
21384         of candidates.
21385         Honor the initial value of the envvar.
21386
21387 2009-09-05  Eric Blake  <ebb9@byu.net>
21388
21389         symlinkat: new module
21390         * modules/symlinkat: New file.
21391         * lib/symlinkat.c: Likewise.
21392         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
21393         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
21394         * modules/unistd (Makefile.am): Use them.
21395         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
21396         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
21397         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
21398         * MODULES.html.sh (File system functions): Mention module.
21399         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
21400         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21401         * modules/symlinkat-tests: New test.
21402         * tests/test-symlinkat.c: Likewise.
21403
21404         test-openat-safer: add more checks
21405         * tests/test-openat-safer.c (main): Check more code paths.
21406
21407 2009-09-05  Jim Meyering  <meyering@redhat.com>
21408
21409         syntax-check: detect unnecessary inclusion of openat.h
21410         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
21411
21412 2009-09-05  Bruno Haible  <bruno@clisp.org>
21413
21414         Support towlower, towupper.
21415         * doc/posix-functions/towlower.texi: Mention module wctype.
21416         * doc/posix-functions/towupper.texi: Likewise.
21417         * lib/wctype.in.h (towlower, towupper): New functions.
21418         * tests/test-wctype.c: Include stdio.h, stdlib.h.
21419         (ASSERT): New macro.
21420         (e): New variable.
21421         (main): Test also towlower, towupper. Test WEOF argument.
21422         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
21423
21424 2009-09-05  Bruno Haible  <bruno@clisp.org>
21425
21426         Fix conversion behaviour when the input is invalid.
21427         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
21428         mark occurring in first pass of indirect conversion.
21429         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
21430         input.
21431         Found by clang's static analyzer.
21432
21433 2009-09-05  Bruno Haible  <bruno@clisp.org>
21434
21435         * tests/test-striconveh.c (main): Test indirect conversion on platforms
21436         where direct conversion is possible.
21437
21438 2009-09-04  Eric Blake  <ebb9@byu.net>
21439
21440         openat: fail with ENOENT on empty name
21441         * lib/openat-proc.c (openat_proc_name): Special-case the empty
21442         buffer.
21443
21444         link-follow: fix logic bug in prior patch
21445         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
21446         reversed sense of yes and no in prior patch.  Avoid confusing
21447         compilation failure with desired semantics.
21448
21449         link-follow: accomodate mingw and cross-compilation
21450         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
21451         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
21452         cross-compilation results to -1, to make linkat easier to
21453         implement when cross-compiling.  Trivially support mingw.
21454         * modules/link-follow (configure.ac): Call new name.
21455         * NEWS: Mention this.
21456
21457 2009-09-03  Eric Blake  <ebb9@byu.net>
21458
21459         faccessat: compile replacement
21460         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
21461         needed.
21462
21463         fts: fix compilation error
21464         * lib/fts.c (includes): Re-add "openat.h", for
21465         openat_needs_fchdir.
21466
21467         faccessat: new module
21468         * modules/faccessat: New file.
21469         * lib/faccessat.c: Likewise.
21470         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
21471         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21472         * modules/unistd (Makefile.am): Use it.
21473         * lib/unistd.in.h (faccessat): Declare it.
21474         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
21475         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
21476         * MODULES.html.sh (File system functions): Mention it.
21477         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
21478         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
21479
21480         euidaccess: prefer POSIX over non-standard implementation
21481         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
21482         * lib/euidaccess.c (euidaccess): Use it if available.
21483
21484         openat: make template easier to use
21485         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
21486         AT_FUNC_F2 to be undefined.
21487         (VALIDATE_FLAG): New macro; use it to reject bad flags.
21488         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
21489         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
21490         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
21491         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
21492         Likewise.
21493         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
21494         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
21495         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
21496         Likewise.
21497
21498         openat: declare in POSIX headers
21499         * NEWS: Mention this.
21500         * modules/openat (configure.ac): Declare witnesses.
21501         (Depends-on): Add fcntl-h, sys_stat, unistd.
21502         (Include): Mention correct headers.
21503         * modules/fcntl-h (Depends-on): Add link-warning.
21504         (Files): Add openat.m4.
21505         (Makefile.am): Substitute witnesses.
21506         * modules/sys_stat (Files, Makefile.am): Likewise.
21507         * modules/unistd (Files, Makefile.am): Likewise.
21508         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
21509         (gl_OPENAT_DEFAULTS): New macro.
21510         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
21511         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
21512         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
21513         (SYS_STAT_H): Remove unused variable.
21514         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
21515         * lib/fcntl--.h (includes): Remove unneeded header.
21516         * lib/openat-safer.c (includes): Likewise.
21517         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
21518         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
21519         appropriate headers.
21520         (__OPENAT_PREFIX): Delete.
21521         * lib/fcntl.in.h (openat): Provide declaration.
21522         (AT_FDCWD): Fix Solaris bug.
21523         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
21524         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
21525         * lib/fchmodat.c (includes):  Adjust to find declaration.
21526         * lib/fchownat.c (includes): Likewise.
21527         * lib/mkdirat.c (includes): Likewise.
21528         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
21529         still visible.
21530
21531 2009-09-02  Eric Blake  <ebb9@byu.net>
21532
21533         errno: use consistently
21534         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
21535         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
21536         * lib/canonicalize.c (ELOOP): Likewise.
21537         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
21538         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
21539         * lib/lchown.c (EOPNOTSUPP): Likewise.
21540         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
21541         * lib/savewd.c (ESTALE): Likewise.
21542         * lib/settime.c (ENOSYS): Likewise.
21543         * lib/utimens.c (ENOSYS): Likewise.
21544         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
21545         * lib/chdir-safer.c (ELOOP): Likewise.
21546         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
21547         * modules/c-stack (Depends-on): Add errno.
21548         * modules/canonicalize (Depends-on): Likewise.
21549         * modules/chdir-safer (Depends-on): Likewise.
21550         * modules/fdopendir (Depends-on): Likewise.
21551         * modules/inet_ntop (Depends-on): Likewise.
21552         * modules/inet_pton (Depends-on): Likewise.
21553         * modules/lchown (Depends-on): Likewise.
21554         * modules/openat (Depends-on): Likewise.
21555         * modules/savewd (Depends-on): Likewise.
21556         * modules/settime (Depends-on): Likewise.
21557         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
21558
21559         fts: avoid leaking fds
21560         * modules/fts (Depends-on): Add cloexec.
21561         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
21562         flag.
21563
21564         fts: make directory fds more robust
21565         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
21566         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
21567
21568         backupfile, chdir-long, fts, savedir: make safer
21569         * lib/backupfile.c (includes): Use "dirent--.h", since
21570         numbered_backup can write to stderr during readdir.
21571         * lib/savedir.c (includes): Likewise.
21572         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
21573         emulation can write to stderr on failure.
21574         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
21575         * lib/getcwd.c: Document why opendir_safer is unused.
21576         * lib/glob.c: Likewise.
21577         * lib/scandir.c: Likewise.
21578         * lib/openat-proc.c: Likewise, for open_safer.
21579         * modules/backupfile (Depends-on): Add dirent-safer.
21580         * modules/savedir (Depends-on): Likewise.
21581         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
21582         * modules/chdir-long (Depends-on): Add openat-safer.
21583
21584         openat-safer: new module
21585         * modules/openat-safer: New file.
21586         * lib/openat-safer.c: Likewise.
21587         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
21588         * lib/fcntl-safer.h (openat_safer): Declare.
21589         * lib/fcntl--.h (openat): Override.
21590         * MODULES.html.sh (File descriptor based I/O): Mention it.
21591         * lib/openat.h: Add double-inclusion guards.
21592         * lib/openat.c (includes): Only include "fcntl-safer.h", not
21593         "fcntl--.h", so we can implement openat.
21594         * modules/openat-safer-tests: New test.
21595         * tests/test-openat-safer.c: New file.
21596
21597         dirent-safer: new module
21598         * modules/dirent-safer: New file.
21599         * lib/dirent--.h: Likewise.
21600         * lib/dirent-safer.h: Likewise.
21601         * lib/opendir-safer.c: Likewise.
21602         * m4/dirent-safer.m4: Likewise.
21603         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
21604         * modules/dirent-safer-tests: New test.
21605         * tests/test-dirent-safer.c: New file.
21606         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
21607
21608         fdopendir: optimize on mingw
21609         * lib/unistd.in.h (_gl_directory_name): New prototype.
21610         * lib/fchdir.c (_gl_directory_name): Implement it.
21611         (fchdir): Use it to simplify implementation.
21612         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
21613         fchdir, when available, to avoid calling [f]chdir().
21614
21615         fdopendir: split into its own module
21616         * lib/openat.c (fdopendir): Move...
21617         * lib/fdopendir.c: ...into new file.
21618         * modules/fdopendir: New module.
21619         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
21620         * modules/openat (Depends-on): Add fdopendir.
21621         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
21622         fdopendir here.
21623         * modules/savedir (Depends-on): Only need fdopendir, not full
21624         openat.
21625         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
21626         * lib/openat.h (fdopendir): Drop prototype.
21627         * lib/dirent.in.h (fdopendir): Provide prototype.
21628         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
21629         * modules/dirent (Makefile.am): Substitute them.
21630         * MODULES.html.sh (File system functions): Mention it.
21631         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
21632         * modules/fdopendir-tests: New file.
21633         * tests/test-fdopendir.c: Likewise.
21634
21635         fchdir: use more consistent macro convention
21636         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
21637         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
21638         REPLACE_FCHDIR, rather than relying on config.h macros.
21639         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
21640         inside a single make-time REPLACE_FCHDIR block, rather than using
21641         the config.h FCHDIR_REPLACEMENT.
21642         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
21643         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
21644         Manage fstat replacement.
21645         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
21646         REPLACE_FCHDIR.
21647         * modules/sys_stat (Files): Add m4/unistd_h.m4.
21648         (Makefile.am): Substitute REPLACE_FCHDIR.
21649         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
21650         FCHDIR_REPLACEMENT.
21651         * lib/dup-safer.c (dup_safer): Likewise.
21652         * lib/dup2.c (rpl_dup2): Likewise.
21653         * lib/dup3.c (rpl_dup3): Likewise.
21654         * lib/open.c (rpl_open): Likewise.
21655
21656         fchdir: simplify error handling, and support dup3
21657         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
21658         stdbool, malloc-posix, realloc-posix.
21659         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
21660         (ensure_dirs_slot): Return false on allocation failure.
21661         (rpl_dup2): Delete.
21662         (_gl_register_dup): New function.
21663         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
21664         (_gl_register_fd): Close fd on allocation failure.
21665         * lib/fcntl.in.h (_gl_register_fd): Update signature.
21666         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
21667         prototype.
21668         (rpl_dup2_fchdir): Delete prototype.
21669         * lib/open.c (open): Update caller.
21670         * lib/dup2.c (dup2): Track fchdir metadata.
21671         * lib/dup3.c (dup3): Likewise.
21672         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
21673         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
21674
21675 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21676
21677         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
21678         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
21679         don't pass arguments to AC_OUTPUT.
21680
21681 2009-09-02  Bruno Haible  <bruno@clisp.org>
21682
21683         * modules/mkdtemp (License): Relicense under LGPLv2+.
21684         Reported by Paolo Bonzini.
21685
21686 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21687
21688         Replace uses of obsolete autoconf macros in Jim's modules.
21689         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
21690         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
21691         can evoke a warning from autoconf when run with -Wobsolete
21692         enabled.  They were declared obsolete for good reasons (see
21693         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
21694         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
21695         should not continue using the deprecated macros.
21696         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
21697         obsolete Autoconf macros with modern counterparts.
21698         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21699         * m4/dos.m4 (gl_AC_DOS): Likewise.
21700         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
21701         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
21702         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
21703         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
21704         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
21705         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
21706         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
21707         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
21708         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
21709         Likewise.
21710         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
21711         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
21712         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
21713         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
21714         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
21715         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
21716
21717 2009-09-01  Eric Blake  <ebb9@byu.net>
21718
21719         fchdir: fix off-by-one bug in previous patch
21720         * lib/fchdir.c (rpl_fstat): Use correct bounds.
21721         (_gl_unregister_fd): Delete useless if.
21722
21723 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
21724
21725         maint.mk: sort the list of syntax-check rules
21726         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
21727         easier to get a sense of progress when the rules are run sequentially
21728         and take a long time.
21729
21730 2009-09-01  Simon Josefsson  <simon@josefsson.org>
21731
21732         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
21733         * modules/netinet_in: Likewise.
21734         * modules/sys_file: Likewise.
21735         * modules/sys_ioctl: Likewise.
21736         * modules/sys_select: Likewise.
21737         * modules/sys_socket: Likewise.
21738         * modules/sys_stat: Likewise.
21739         * modules/sys_time: Likewise.
21740         * modules/sys_times: Likewise.
21741         * modules/sys_utsname: Likewise.
21742         * modules/sys_wait: Likewise.
21743
21744 2009-09-01  Jim Meyering  <meyering@redhat.com>
21745
21746         fts: help ensure that return values are not ignored
21747         * lib/fts_.h (__GNUC_PREREQ): Define.
21748         (__attribute_warn_unused_result__): Define.
21749         (fts_children, fts_close, fts_open, fts_read): Declare with
21750         __attribute_warn_unused_result__.
21751
21752         fts: fts_close now fails also when closing a dir file descriptor fails
21753         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
21754         and propagate to caller, along with errno.
21755
21756         announce-gen: correct formatting in --help output
21757         * build-aux/announce-gen (usage): Move the one-line description in
21758         --help output "up", to where it belongs, just after Usage:.
21759
21760 2009-08-31  Eric Blake  <ebb9@byu.net>
21761
21762         fchdir: port to mingw
21763         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
21764         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
21765         opened, then use a substitute.
21766         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
21767         replacement.
21768         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
21769         (_gl_register_fd): No need to check stat if open already filters
21770         all directories.
21771         (fchdir): Fix error condition to match POSIX.
21772         * modules/fchdir (Depends-on): Add sys_stat.
21773         * doc/posix-functions/open.texi (open): Document the limitation.
21774         * modules/fchdir-tests: New file.
21775         * tests/test-fchdir.c: Likewise.
21776
21777         canonicalize: allow cross-testing from cygwin to mingw
21778         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
21779         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
21780         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
21781         Likewise.
21782         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
21783         target does not support symlinks.
21784         * tests/test-canonicalize-lgpl.sh: Likewise.
21785
21786         chown: avoid compilation warning on mingw
21787         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
21788         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
21789         mingw.
21790         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
21791         * modules/chown (Depends-on): Add errno.
21792
21793 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21794
21795         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
21796         command.
21797
21798 2009-08-31  Jim Meyering  <meyering@redhat.com>
21799
21800         canonicalize: remove useless initialization
21801         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
21802         initialization of local, "end".
21803
21804 2009-08-30  Bruno Haible  <bruno@clisp.org>
21805
21806         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
21807         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
21808         ENOSYS.
21809
21810 2009-08-30  Bruno Haible  <bruno@clisp.org>
21811
21812         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
21813         /usr/xpg4/bin/tr when it exists.
21814         * tests/test-pipe-filter-gi1.sh: Likewise.
21815
21816 2009-08-30  Bruno Haible  <bruno@clisp.org>
21817
21818         Work around deficient /usr/bin/id program on Solaris.
21819         * tests/test-file-has-acl.sh (ID): New variable.
21820         * tests/test-set-mode-acl.sh (ID): Likewise.
21821         * tests/test-copy-acl.sh (ID): Likewise.
21822         * tests/test-copy-file.sh (ID): Likewise.
21823
21824 2009-08-30  Bruno Haible  <bruno@clisp.org>
21825
21826         New module 'xstriconveh'.
21827         * lib/xstriconveh.h: New file.
21828         * lib/xstriconveh.c: New file.
21829         * modules/xstriconveh: New file.
21830
21831 2009-08-30  Bruno Haible  <bruno@clisp.org>
21832
21833         Make it easier to use mem_cd_iconveh.
21834         * lib/striconveh.h (iconveh_t): New type.
21835         (iconveh_open, iconveh_close): New declarations.
21836         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
21837         with a single 'const iconveh_t *' argument.
21838         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
21839         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
21840         with a single 'const iconveh_t *' argument.
21841         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
21842         * tests/test-striconveh.c (main): Update.
21843         * NEWS: Mention the change.
21844
21845 2009-08-30  Bruno Haible  <bruno@clisp.org>
21846
21847         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
21848         problem.
21849
21850 2009-08-30  Bruno Haible  <bruno@clisp.org>
21851
21852         Work around iconv_open problem on Solaris.
21853         * lib/iconv_open-solaris.gperf: New file.
21854         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
21855         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
21856         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
21857         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
21858         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
21859         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
21860
21861 2009-08-29  Jim Meyering  <meyering@redhat.com>
21862
21863         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
21864         * top/maint.mk (cvs-check): Remove target; it was just an alias
21865         to the better-named vc-diff-check.
21866         (maintainer-distcheck): Remove rule.  It was used only from
21867         the (alpha/beta/major) target, and all of its commands but one
21868         were coreutils-specific.
21869         (vc-dist): Remove rule.
21870         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
21871         Run vc-diff-check, not vc-dist.
21872         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
21873
21874 2009-08-27  Bruno Haible  <bruno@clisp.org>
21875
21876         * tests/test-bitrotate.c (main): Remove test that uses a shift count
21877         of 0.
21878
21879 2009-08-27  Bruno Haible  <bruno@clisp.org>
21880
21881         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
21882         compilers.
21883         * doc/func.texi: Document the SunPRO C bug.
21884
21885 2009-08-27  Bruno Haible  <bruno@clisp.org>
21886
21887         Fix link error on Solaris.
21888         * tests/test-parse-duration.c (xstrdup): Remove function.
21889
21890 2009-08-26  Pádraig Brady  <P@draigbrady.com>
21891
21892         ignore-value: handle pointer types, too
21893         * lib/ignore-value.h (__attribute__): Remove definition.
21894         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
21895         of a more concise and more-often effective "(void) i" statement.
21896         (ignore_ptr): New function to suppress warnings from functions that
21897         return pointers, and to make it explicit that one function doesn't
21898         handle all cases.
21899
21900 2009-08-25  Bruno Haible  <bruno@clisp.org>
21901
21902         dup2: work around a Linux bug.
21903         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
21904         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
21905         * doc/posix-functions/dup2.texi: Mention the Linux bug.
21906         Reported by Simon Josefsson.
21907
21908 2009-08-25  Jim Meyering  <meyering@redhat.com>
21909
21910         libguestfs uses gnulib
21911         * users.txt: Add libguestfs.
21912
21913 2009-08-24  Eric Blake  <ebb9@byu.net>
21914
21915         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
21916         * lib/pipe2.c (includes): Add binary-io.h.
21917         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
21918
21919 2009-08-24  Bruno Haible  <bruno@clisp.org>
21920
21921         Tolerate declared but missing accept4 syscall.
21922         * lib/accept4.c (accept4): Invoke original accept4 function first, if
21923         available.
21924         * lib/sys_socket.in.h (accept4): If the function is already present,
21925         override it.
21926         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
21927         * modules/accept4 (Makefile.am): Compile accept4.c always.
21928         Reported by Paolo Bonzini and Eric Blake.
21929
21930 2009-08-23  Bruno Haible  <bruno@clisp.org>
21931
21932         New module 'accept4'.
21933         * lib/sys_socket.in.h (accept4): New declaration.
21934         * lib/accept4.c: New file.
21935         * m4/accept4.m4: New file.
21936         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
21937         GNULIB_ACCEPT4, HAVE_ACCEPT4.
21938         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
21939         HAVE_ACCEPT4.
21940         * modules/accept4: New file.
21941         * doc/glibc-functions/accept4.texi: Mention the new module.
21942
21943 2009-08-24  Jim Meyering  <meyering@redhat.com>
21944
21945         progname: also set global program_invocation_name, when possible
21946         Before this change, a libtool-enabled program that calls glibc's
21947         error function would report the program name as
21948         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
21949         * modules/progname (configure.ac): Check for a declaration of
21950         program_invocation_name.
21951         * lib/progname.c:  Include <errno.h>.
21952         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
21953         Set program_invocation_name.
21954
21955 2009-08-23  Bruno Haible  <bruno@clisp.org>
21956
21957         * lib/dup3.c: Include <string.h>.
21958
21959 2009-08-23  Bruno Haible  <bruno@clisp.org>
21960
21961         * lib/dup3.c (dup3): Test only once whether the system actually exists.
21962         * lib/pipe2.c (pipe2): Likewise.
21963         Suggested by Eric Blake.
21964
21965 2009-08-23  Bruno Haible  <bruno@clisp.org>
21966
21967         Tolerate declared but missing dup3 syscall.
21968         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
21969         * lib/unistd.in.h (dup3): If the function is already present,
21970         override it.
21971         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
21972         * modules/dup3 (Makefile.am): Compile dup3.c always.
21973         Reported by Paolo Bonzini.
21974
21975 2009-08-23  Bruno Haible  <bruno@clisp.org>
21976
21977         Tolerate declared but missing pipe2 syscall.
21978         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
21979         available.
21980         * lib/unistd.in.h (pipe2): If the function is already present,
21981         override it.
21982         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
21983         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
21984         Reported by Paolo Bonzini.
21985
21986 2009-08-23  Bruno Haible  <bruno@clisp.org>
21987
21988         * lib/pipe2.c (pipe2): Move #ifs inside function.
21989
21990 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
21991
21992         quotearg: document limitations of quote_these_too
21993         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
21994         those limitations are created.
21995         * lib/quotearg.h (set_char_quoting): Document that digits and
21996         letters that are special after backslash are not permitted.
21997         (quotearg_char): Cross-reference set_char_quoting documentation.
21998
21999 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
22000
22001         quotearg: implement custom_quoting_style
22002         * lib/quotearg.c: (struct quoting_options): Add left_quote and
22003         right_quote fields.
22004         (set_custom_quoting): New public function.
22005         (quotearg_buffer_restyled): Add left_quote and right_quote
22006         arguments, handle them very much like locale quoting, and update
22007         all uses.
22008         (quotearg_n_custom): New public function.
22009         (quotearg_n_custom_mem): New public function.
22010         (quotearg_custom): New public function.
22011         (quotearg_custom_mem): New public function.
22012         * lib/quotearg.h: Prototype and document new public functions.
22013         (enum quoting_style): For escape_quoting_style and
22014         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
22015         ignored even though they're otherwise like c_quoting_style.
22016         Add custom_quoting_style member and document with comparison to
22017         clocale_quoting_style.
22018         * tests/test-quotearg.c (custom_quotes): New array.
22019         (custom_results): New array.
22020         (main): Extend to test custom quoting.
22021
22022 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
22023
22024         quotearg: fix right quote escaping when it's in quote_these_too
22025         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
22026         quote, be sure to prepend only one backslash.
22027         * tests/test-quotearg.c (use_quote_double_quotes): New function.
22028         (main): Test it.
22029
22030 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
22031
22032         quotearg-tests: test escaping of embedded locale quotes
22033         * tests/test-quotearg.c (struct result_strings): Add member for
22034         new input.
22035         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
22036         (inputs): Add new input.
22037         (results_g): Add expected results.
22038         (flag_results): Likewise.
22039         (locale_results): Likewise.
22040         (compare_strings): Check those.
22041
22042 2009-08-23  Bruno Haible  <bruno@clisp.org>
22043
22044         Tests for module 'dup3'.
22045         * modules/dup3-tests: New file.
22046         * tests/test-dup3.c: New file.
22047
22048         New module 'dup3'.
22049         * lib/unistd.in.h (dup3): New declaration.
22050         * lib/dup3.c: New file.
22051         * m4/dup3.m4: New file.
22052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
22053         HAVE_DUP3.
22054         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
22055         * modules/dup3: New file.
22056         * doc/glibc-functions/dup3.texi: Mention the new module.
22057
22058 2009-08-23  Bruno Haible  <bruno@clisp.org>
22059
22060         Tweak the dup2 test.
22061         * tests/test-dup2.c (main): Create the test file empty. Verify that an
22062         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
22063         the test file is still empty. Fix argument order of lseek.
22064
22065 2009-08-23  Bruno Haible  <bruno@clisp.org>
22066
22067         Avoid test link errors when the modules getopt-gnu, gettext are used.
22068         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
22069         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22070
22071 2009-08-23  Bruno Haible  <bruno@clisp.org>
22072
22073         Fix getdtablesize() on mingw.
22074         * lib/getdtablesize.c (getdtablesize): Implement differently.
22075         * lib/unistd.in.h (getdtablesize): Improve comment.
22076
22077 2009-08-23  Bruno Haible  <bruno@clisp.org>
22078
22079         New module 'mkostemp'.
22080         Based on Ulrich Drepper's 2007-08-10 change in glibc.
22081         * lib/stdlib.in.h (mksotemp): New declaration.
22082         * lib/mkostemp.c: New file, from glibc with modifications.
22083         * lib/tempname.h (GT_FILE): Remove outdated comment.
22084         (gen_tempname): Add flags argument.
22085         * lib/tempname.c (__GT_BIGFILE): Remove macro.
22086         (__GT_FILE): Map to 1.
22087         (small_open, large_open): Remove macros.
22088         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
22089         * lib/mkstemp.c (mkstemp): Update.
22090         * lib/mkdtemp.c (mkdtemp): Likewise.
22091         * m4/mkostemp.m4: New file.
22092         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
22093         HAVE_MKOSTEMP.
22094         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
22095         HAVE_MKOSTEMP.
22096         * modules/mkostemp: New file, based on modules/mkstemp.
22097         * doc/glibc-functions/mkostemp.texi: Mention the new module.
22098         * NEWS: Mention the change.
22099
22100 2009-08-23  Bruno Haible  <bruno@clisp.org>
22101
22102         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
22103         Reported by Eric Blake.
22104
22105 2009-08-23  Bruno Haible  <bruno@clisp.org>
22106
22107         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
22108         Reported by Eric Blake.
22109
22110 2009-08-23  Bruno Haible  <bruno@clisp.org>
22111
22112         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
22113         * modules/pipe2 (Depends-on): Likewise.
22114
22115 2009-08-23  Eric Blake  <ebb9@byu.net>
22116
22117         fcntl-h: add O_TTY_INIT support
22118         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
22119         * tests/test-fcntl-h.c (o): Test it.
22120         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
22121
22122         fcntl-h: rename from fcntl, in preparation for fcntl(2)
22123         * modules/fcntl: Move <fcntl.h> header replacement...
22124         * modules/fcntl-h: ...to new name, so as not to collide with
22125         like-named function.
22126         * tests/test-fcntl.c: Rename...
22127         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
22128         * modules/fcntl-tests: Rename...
22129         * modules/fcntl-h-tests: ...to this.  Update test file name.
22130         * modules/chdir-long (Depends-on): Update clients.
22131         * modules/chdir-safer (Depends-on): Likewise.
22132         * modules/fcntl-safer (Depends-on): Likewise.
22133         * modules/fts (Depends-on): Likewise.
22134         * modules/mkancesdirs (Depends-on): Likewise.
22135         * modules/mkdir-p (Depends-on): Likewise.
22136         * modules/open (Depends-on): Likewise.
22137         * modules/savewd (Depends-on): Likewise.
22138         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
22139         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
22140
22141 2009-08-22  Bruno Haible  <bruno@clisp.org>
22142
22143         * modules/binary-io (License): Relicense under LGPL.
22144         * modules/pipe2 (License): Likewise.
22145
22146 2009-08-22  Bruno Haible  <bruno@clisp.org>
22147
22148         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
22149         return value.
22150         * lib/pipe-filter-gi.c (filter_init): Likewise.
22151         Reported by Eric Blake.
22152
22153 2009-08-22  Bruno Haible  <bruno@clisp.org>
22154
22155         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
22156         * modules/pipe (Depends-on): Add pipe2.
22157
22158 2009-08-22  Bruno Haible  <bruno@clisp.org>
22159
22160         Tests for module 'pipe2'.
22161         * modules/pipe2-tests: New file.
22162         * tests/test-pipe2.c: New file.
22163
22164         New module 'pipe2'.
22165         * lib/unistd.in.h (pipe2): New declaration.
22166         * lib/pipe2.c: New file.
22167         * m4/pipe2.m4: New file.
22168         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
22169         HAVE_PIPE2.
22170         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
22171         * modules/pipe2: New file.
22172         * doc/glibc-functions/pipe2.texi: Mention the new module.
22173
22174 2009-08-22  Bruno Haible  <bruno@clisp.org>
22175
22176         Reference some new glibc functions.
22177         * doc/glibc-functions/accept4.texi: New file.
22178         * doc/glibc-functions/dup3.texi: New file.
22179         * doc/glibc-functions/mkostemp.texi: New file.
22180         * doc/glibc-functions/pipe2.texi: New file.
22181         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
22182         (Glibc sys/socket.h): Refer to accept4.
22183         (Glibc unistd.h): Refer to dup3, pipe2.
22184         Reported by Eric Blake.
22185
22186 2009-08-22  Jim Meyering  <meyering@redhat.com>
22187             Bruno Haible  <bruno@clisp.org>
22188
22189         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
22190         This makes it so packages using automake-1.11's silent-rules option
22191         can print e.g., a single "GEN    configmake.h" line, rather than
22192         the 30+ statements that perform the job.  If you want to see the
22193         actual commands, you can still run "make V=1".
22194         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
22195         so that make output is abbreviated when those variables are defined
22196         appropriately.
22197         * modules/argz: Likewise.
22198         * modules/arpa_inet: Likewise.
22199         * modules/byteswap: Likewise.
22200         * modules/configmake: Likewise.
22201         * modules/dirent: Likewise.
22202         * modules/errno: Likewise.
22203         * modules/fcntl: Likewise.
22204         * modules/float: Likewise.
22205         * modules/fnmatch: Likewise.
22206         * modules/getopt-posix: Likewise.
22207         * modules/glob: Likewise.
22208         * modules/iconv_open: Likewise.
22209         * modules/inttypes: Likewise.
22210         * modules/localcharset: Likewise.
22211         * modules/locale: Likewise.
22212         * modules/math: Likewise.
22213         * modules/netdb: Likewise.
22214         * modules/netinet_in: Likewise.
22215         * modules/poll: Likewise.
22216         * modules/posix_spawnp-tests: Likewise.
22217         * modules/sched: Likewise.
22218         * modules/search: Likewise.
22219         * modules/selinux-h: Likewise.
22220         * modules/signal: Likewise.
22221         * modules/spawn: Likewise.
22222         * modules/stdarg: Likewise.
22223         * modules/stdbool: Likewise.
22224         * modules/stddef: Likewise.
22225         * modules/stdint: Likewise.
22226         * modules/stdio: Likewise.
22227         * modules/stdlib: Likewise.
22228         * modules/string: Likewise.
22229         * modules/strings: Likewise.
22230         * modules/sys_file: Likewise.
22231         * modules/sys_ioctl: Likewise.
22232         * modules/sys_select: Likewise.
22233         * modules/sys_socket: Likewise.
22234         * modules/sys_stat: Likewise.
22235         * modules/sys_time: Likewise.
22236         * modules/sys_times: Likewise.
22237         * modules/sys_utsname: Likewise.
22238         * modules/sys_wait: Likewise.
22239         * modules/sysexits: Likewise.
22240         * modules/time: Likewise.
22241         * modules/unistd: Likewise.
22242         * modules/wchar: Likewise.
22243         * modules/wctype: Likewise.
22244
22245 2009-08-22  Jim Meyering  <meyering@redhat.com>
22246
22247         announce-gen: detect write failure
22248         * build-aux/announce-gen: Add Coda at end.
22249         Remove equivalent-but-more-verbose block at top.
22250
22251 2009-08-19  Akim Demaille  <demaille@gostai.com>
22252
22253         bootstrap: --help to stdout.
22254         * bootstrap (usage): Don't send --help to stderr.
22255         Use a here doc instead of a long string.
22256
22257 2009-08-21  Eric Blake  <ebb9@byu.net>
22258
22259         test-popen-safer: split from test-popen
22260         * tests/test-popen.c (main): Move...
22261         * tests/test-popen.h: ...into new file.
22262         * tests/test-popen-safer2.c: New file.
22263         * modules/popen-tests (Files): Add test-popen.h.
22264         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
22265         Suggested by Bruno Haible.
22266
22267         test-fcntl-safer: split from test-open
22268         * tests/test-open.c (main): Move...
22269         * tests/test-open.h: ...into new file.
22270         * tests/test-fcntl-safer.c: New file.
22271         * modules/open-tests (Files): Add test-open.h.
22272         * modules/fcntl-safer-tests: New file.
22273         Suggested by Bruno Haible.
22274
22275         test-fopen-safer: split from test-fopen
22276         * tests/test-fopen.c (main): Move...
22277         * tests/test-fopen.h: ...into new file.
22278         * tests/test-fopen-safer.c: New file.
22279         * modules/fopen-tests (Files): Add test-fopen.h.
22280         * modules/fopen-safer-tests: New file.
22281         Suggested by Bruno Haible.
22282
22283 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
22284
22285         popen-safer: test O_CLOEXEC at run-time.
22286         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
22287
22288 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
22289
22290         fcntl: move more flags to the header
22291         * lib/cloexec.c: Do not define FD_CLOEXEC here.
22292         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
22293         * lib/fcntl.in.h: Do both things here.
22294
22295 2009-08-21  Jim Meyering  <meyering@redhat.com>
22296
22297         consistently remove $@-t before redirecting to it
22298         * modules/argz: Remove $@-t and $@ before redirecting to the former.
22299         * modules/alloca-opt: Likewise.
22300         * modules/byteswap: Likewise.
22301         * modules/fnmatch: Likewise.
22302         * modules/getopt-posix: Likewise.
22303         * modules/glob: Likewise.
22304         * modules/poll: Likewise.
22305         * modules/posix_spawnp-tests: Likewise.
22306         * modules/sys_socket: Likewise.
22307         * modules/sysexits: Likewise.
22308
22309 2009-08-21  Eric Blake  <ebb9@byu.net>
22310
22311         popen: simplify access to original popen
22312         * lib/popen.c (rpl_popen): No need to worry about popen being a
22313         macro.
22314         Reported by Bruno Haible.
22315
22316 2009-08-20  Eric Blake  <ebb9@byu.net>
22317
22318         build: avoid some compiler warnings
22319         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
22320         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
22321         type.
22322         (new_exclude_segment, excluded_file_pattern_p)
22323         (excluded_file_name_p): Reduce scope.
22324         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
22325         old-style declaration.
22326
22327 2009-08-20  Simon Josefsson  <simon@josefsson.org>
22328
22329         * tests/test-exclude1.sh: Handle Windows EOL.
22330         * tests/test-exclude2.sh: Likewise.
22331         * tests/test-exclude3.sh: Likewise.
22332         * tests/test-exclude4.sh: Likewise.
22333         * tests/test-exclude5.sh: Likewise.
22334         * tests/test-exclude6.sh: Likewise.
22335         * tests/test-exclude7.sh: Likewise.
22336
22337 2009-08-19  Akim Demaille  <demaille@gostai.com>
22338
22339         bootstrap: find sha1sum when named gsha1sum.
22340         * bootstrap (find_tool): New.
22341         ($SHA1SUM): New.
22342         Use it.
22343
22344 2009-08-20  Jim Meyering  <meyering@redhat.com>
22345
22346         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
22347         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
22348         expression that converts "." in a file name to "\." in the resulting
22349         regexp.  Start with a dummy statement, so that prior shell variable
22350         definitions are expanded portably.  Reported by Simon Josefsson.
22351
22352 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
22353
22354         Fix polling for writeability of a screen buffer.
22355         * lib/poll.c: Distinguish input and screen buffers for the
22356         Win32 implementation.
22357         * lib/select.c: Likewise.
22358
22359 2009-08-19  Eric Blake  <ebb9@byu.net>
22360
22361         popen-safer: prevent popen from clobbering std descriptors
22362         * modules/popen-safer: New file.
22363         * lib/popen-safer.c: Likewise.
22364         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
22365         * lib/stdio--.h (popen): Provide override.
22366         * lib/stdio-safer.h (popen_safer): Provide declaration.
22367         * tests/test-popen.c (includes): Partially test this.
22368         * modules/popen-safer-tests: New file, for more tests.
22369         * tests/test-popen-safer.c: Likewise.
22370         * MODULES.html.sh (file stream based Input/Output): Mention it.
22371
22372         tests: test some of the *-safer modules
22373         * modules/fopen-safer (Depends-on): Add fopen.
22374         * modules/fcntl-safer (Depends-on): Add fcntl.
22375         * modules/stdlib-safer (Depends-on): Add stdlib.
22376         (configure.ac): Set indicator.
22377         * modules/unistd-safer (configure.ac): Likewise.
22378         * modules/tmpfile-safer (configure.ac): Likewise.
22379         (Depends-on): Add tmpfile.
22380         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
22381         active.
22382         * tests/test-fopen.c (includes): Test safer versions when they are
22383         in use.
22384         * tests/test-open.c (includes): Likewise.
22385
22386         popen: fix cygwin 1.5 bug when stdin closed
22387         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
22388         * modules/popen: New file.
22389         * modules/popen-tests: Likewise.
22390         * tests/test-popen.c: Likewise.
22391         * m4/popen.m4: Likewise.
22392         * lib/popen.c: Likewise.
22393         * lib/stdio.in.h (popen): New declaration.
22394         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
22395         * modules/stdio (Makefile.am): Likewise.
22396         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
22397
22398 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
22399
22400         maint.mk: give full control over update-copyright exclusions
22401         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
22402         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
22403         (update-copyright): Don't force inclusion of top-level
22404         ChangeLog.  Don't force exclusion of all COPYING files, but make
22405         them the default exclusion instead.
22406
22407 2009-08-16  Bruno Haible  <bruno@clisp.org>
22408
22409         Fix test failures on Solaris 10.
22410         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
22411         tests when Solaris iconv() is used.
22412         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
22413         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
22414         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
22415         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
22416         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
22417
22418 2009-08-16  Bruno Haible  <bruno@clisp.org>
22419
22420         Fix test failures on Solaris 10.
22421         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
22422         'tr' program and pass it as first argument.
22423         * tests/test-pipe-filter-gi1.sh: Likewise.
22424         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
22425         program as first argument.
22426         * tests/test-pipe-filter-gi1.c (main): Likewise.
22427
22428 2009-08-16  Eric Blake  <ebb9@byu.net>
22429
22430         fpurge: fix previous commits
22431         * modules/fpurge (Makefile.am): Make replacement conditional,
22432         partially reverting 2007-04-29 change; missed in previous
22433         attempt.
22434         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
22435         is missing.
22436
22437 2009-08-16  Bruno Haible  <bruno@clisp.org>
22438
22439         Clarify fpurge's effect on the file position.
22440         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
22441         * tests/test-fpurge.c (main): Make a second pass for checking the file
22442         position.
22443
22444 2009-08-16  Bruno Haible  <bruno@clisp.org>
22445
22446         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
22447         declaration of fpurge is missing.
22448         * tests/test-fpurge.c (main): Check that the file has not more contents
22449         than expected. Close the file before removing it.
22450
22451 2009-08-15  Eric Blake  <ebb9@byu.net>
22452
22453         fpurge: don't wrap working cygwin implementation
22454         * lib/fpurge.c (fpurge): Fix comment typo.
22455         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
22456         1.7 to avoid replacement.
22457         * tests/test-fpurge.c (main): Enhance test.
22458
22459 2009-08-15  Eric Blake  <ebb9@byu.net>
22460         and Jim Meyering  <meyering@redhat.com>
22461
22462         test-update-copyright: skip if perl is insufficient
22463         * tests/test-update-copyright.sh: Failure to run maintainer tool
22464         should not cause testsuite failure on cygwin 1.5.
22465
22466 2009-08-14  Eric Blake  <ebb9@byu.net>
22467
22468         doc: mention more functions added in cygwin 1.7.0
22469         * doc/posix-headers/limits.texi (limits.h): Update for recent
22470         cygwin additions.
22471         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
22472         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
22473         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
22474         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
22475         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
22476
22477 2009-08-14  Eric Blake  <ebb9@byu.net>
22478
22479         maint.mk: simplify update-copyright rule
22480         * top/maint.mk (update-copyright-local): Delete, and document how
22481         to do it in cfg.mk instead.
22482         (update-copyright-exclude-regexp): Delete, and document how to do
22483         it in .x-update-copyright instead.
22484         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
22485         exclude ChangeLog.
22486
22487 2009-08-14  Bruno Haible  <bruno@clisp.org>
22488
22489         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
22490
22491 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
22492
22493         maint.mk: support update-copyright-env
22494         * top/maint.mk (update-copyright-env): Define place-holder.
22495         (update-copyright): Expand $(update-copyright-env) before
22496         invoking update-copyright.
22497
22498 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
22499
22500         update-copyright: implement forced reformatting
22501         * build-aux/update-copyright: Implement and document
22502         UPDATE_COPYRIGHT_FORCE.
22503         * tests/test-update-copyright.sh: Test it.
22504
22505 2009-08-14  Eric Blake  <ebb9@byu.net>
22506         and Bruno Haible  <bruno@clisp.org>
22507
22508         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
22509         * tests/test-locale.c: Revert previous patch related to NULL.
22510         * tests/test-stdio.c: Likewise.
22511         * tests/test-stdlib.c: Likewise.
22512         * tests/test-string.c: Likewise.
22513         * tests/test-unistd.c: Likewise.
22514         * modules/time-tests (Depends-on): Add verify.
22515         * modules/wchar-tests (Depends-on): Likewise.
22516         * tests/test-time.c: Test for NULL compliance.
22517         * tests/test-wchar.c: Likewise.
22518         * modules/locale (Depends-on): Add stddef.
22519         * modules/stdio (Depends-on): Likewise.
22520         * modules/stdlib (Depends-on): Likewise.
22521         * modules/string (Depends-on): Likewise.
22522         * modules/time (Depends-on): Likewise.
22523         * modules/unistd (Depends-on): Likewise.
22524         * modules/wchar (Depends-on): Likewise.
22525         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
22526         * lib/stdlib.in.h (includes): Likewise.
22527         * lib/string.in.h (includes): Likewise.
22528         * lib/time.in.h (includes): Likewise.
22529         * lib/unistd.in.h (includes): Likewise.
22530         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
22531         replaced.
22532         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22533         * m4/stddef_h.m4: New file.
22534         * modules/stddef: Likewise.
22535         * lib/stddef.in.h: Likewise.
22536         * modules/stddef-tests: Likewise.
22537         * tests/test-stddef.c: Likewise.
22538         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
22539         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
22540         * doc/posix-headers/locale.texi (locale.h): Likewise.
22541         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
22542         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
22543         * doc/posix-headers/string.texi (string.h): Likewise.
22544         * doc/posix-headers/time.texi (time.h): Likewise.
22545         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
22546         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
22547
22548 2009-08-14  Eric Blake  <ebb9@byu.net>
22549
22550         doc: improve git diff of texinfo files
22551         * .gitattributes: Add rule for *.texi files, with hint on how to
22552         use it.
22553         Copied from m4, and based on a report by Bruno Haible.
22554
22555 2009-08-14  Bruno Haible  <bruno@clisp.org>
22556
22557         Disable multithread support by default on Cygwin 1.5.x for real.
22558         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
22559
22560 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
22561
22562         update-copyright: much ado about intervals
22563         * build-aux/update-copyright: Implement and document
22564         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
22565         of copyright year intervals.
22566         Also, document UPDATE_COPYRIGHT_YEAR.
22567         * tests/test-update-copyright.sh: Test it.
22568
22569         update-copyright: convert 2-digit to 4-digit years
22570         * build-aux/update-copyright: Implement and document.
22571         * tests/test-update-copyright.sh: Update.
22572
22573 2009-08-14  Jim Meyering  <meyering@redhat.com>
22574
22575         test-exclude: avoid coreutils "make check" failure
22576         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
22577         just as in test-argmatch.c.
22578
22579 2009-08-13  Eric Blake  <ebb9@byu.net>
22580
22581         test-dup2: fix bad assumption
22582         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
22583         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
22584
22585         test-version-etc: fix CRLF portability issue
22586         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
22587         recognize \r.
22588         * tests/test-argp-version-etc-1.sh: Likewise.
22589
22590         getopt: update client modules
22591         * modules/argp (Depends-on): Use getopt-gnu.
22592         * modules/git-merge-changelog (Depends-on): Likewise.
22593         * modules/long-options (Depends-on): Likewise.
22594         * modules/xstrtol (Depends-on): Likewise.
22595
22596 2009-08-13  Simon Josefsson  <simon@josefsson.org>
22597
22598         * tests/test-version-etc.sh: Don't fail on different
22599         project/version.  Don't fail on CRLF differences.  Rewrite to use
22600         multiple -e instead of multiple sed forks, suggested by Eric Blake
22601         <ebb9@byu.net>.
22602         * tests/test-argp-version-etc-1.sh: Likewise.
22603
22604 2009-08-13  Simon Josefsson  <simon@josefsson.org>
22605
22606         * tests/test-version-etc.sh: Don't fail on different
22607         project/version.
22608
22609 2009-08-12  Bruno Haible  <bruno@clisp.org>
22610
22611         Tests for modules 'getopt-posix', 'getopt-gnu'.
22612         * modules/getopt-posix-tests: New file.
22613         * tests/test-getopt.c: New file.
22614         * tests/test-getopt.h: New file.
22615         * tests/test-getopt_long.h: New file.
22616
22617         New modules 'getopt-posix', 'getopt-gnu'.
22618         * modules/getopt-gnu: New file, renamed from modules/getopt.
22619         * modules/getopt-posix: New file.
22620         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
22621         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
22622         (gl_GETOPT): Remove macro.
22623         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
22624         Disable the test against BSD systems that declare optreset. Test
22625         against mingw bug. Test against lack of support of optional arguments
22626         on many platforms.
22627         * doc/glibc-headers/getopt.texi: Update module name and list of
22628         relevant platforms.
22629         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
22630         'getopt-gnu' and more portability problems.
22631         * NEWS: Mention the changes.
22632
22633 2009-08-12  Bruno Haible  <bruno@clisp.org>
22634
22635         Ensure that optarg etc. get declared by <unistd.h>.
22636         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
22637         AC_USE_SYSTEM_EXTENSIONS.
22638         * modules/getopt (Depends-on): Add 'extensions'.
22639
22640 2009-08-12  Bruno Haible  <bruno@clisp.org>
22641
22642         Avoid test link errors.
22643         * modules/pipe-filter-ii-tests (Makefile.am): Define
22644         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
22645         * modules/pipe-filter-gi-tests (Makefile.am): Define
22646         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
22647         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22648
22649 2009-08-12  Bruno Haible  <bruno@clisp.org>
22650
22651         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
22652         gl_GETOPT_SUBSTITUTE before.
22653         (gl_GETOPT): Use it.
22654         * m4/argp.m4 (gl_ARGP): Update.
22655         Reported by Sergey Poznyakoff.
22656
22657         * m4/getopt.m4: Reorder macros.
22658         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
22659         (gl_GETOPT_SUBSTITUTE): Remove macro.
22660
22661 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
22662
22663         Minor improvement in gitlog-to-changelog
22664
22665         * build-aux/gitlog-to-changelog: New option `--format' makes
22666         output format string configurable.
22667
22668 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
22669
22670         Optimize exclude: use hash tables for non-wildcard patterns.
22671
22672         * lib/exclude.c: Include hash.h and mbuiter.h
22673         (struct exclude_pattern, exclude_segment): New data types.
22674         (struct exclude): Rewrite.
22675         (fnmatch_pattern_has_wildcards): New function.
22676         (new_exclude_segment, free_exclude_segment): New functions.
22677         (excluded_file_pattern_p, excluded_file_name_p): New functions.
22678         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
22679         * lib/exclude.h (is_fnmatch_pattern): New prototype.
22680         * modules/exclude: Depend on hash and mbuiter.
22681
22682         * modules/exclude-tests: New file.
22683         * tests/test-exclude.c: New file.
22684         * tests/test-exclude1.sh: New file.
22685         * tests/test-exclude2.sh: New file.
22686         * tests/test-exclude3.sh: New file.
22687         * tests/test-exclude4.sh: New file.
22688         * tests/test-exclude5.sh: New file.
22689         * tests/test-exclude6.sh: New file.
22690         * tests/test-exclude7.sh: New file.
22691
22692 2009-08-12  Bruno Haible  <bruno@clisp.org>
22693
22694         Ensure that getopt() gets declared by <unistd.h>.
22695         * lib/unistd.in.h: Conditionally include getopt.h.
22696         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
22697         Set GNULIB_UNISTD_H_GETOPT.
22698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22699         GNULIB_UNISTD_H_GETOPT.
22700         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
22701
22702 2009-08-12  Bruno Haible  <bruno@clisp.org>
22703
22704         Clarify logic.
22705         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
22706         gl_replace_getopt instead of GETOPT_H.
22707
22708 2009-08-12  Bruno Haible  <bruno@clisp.org>
22709
22710         * m4/getopt.m4: Add comments.
22711
22712 2009-08-12  Bruno Haible  <bruno@clisp.org>
22713
22714         Disable multithread support by default on Cygwin 1.5.x.
22715         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
22716         set gl_use_threads=no if not specified otherwise.
22717
22718 2009-08-11  Bruno Haible  <bruno@clisp.org>
22719
22720         Avoid compilation error on NetBSD 5.0.
22721         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
22722         * tests/test-stdio.c: Likewise.
22723         * tests/test-stdlib.c: Likewise.
22724         * tests/test-string.c: Likewise.
22725         * tests/test-unistd.c: Likewise.
22726         Reported by Greg Troxel <gdt@ir.bbn.com>
22727         at <https://savannah.gnu.org/support/?106973>.
22728
22729 2009-08-11  Bruno Haible  <bruno@clisp.org>
22730
22731         * modules/dup2-tests (Depends-on): Remove close.
22732
22733         Undo 2009-07-19 commit.
22734         * modules/acl-tests (Depends-on): Remove close.
22735         * modules/binary-io-tests (Depends-on): Likewise.
22736         * modules/closein-tests (Depends-on): Likewise.
22737         * modules/flock-tests (Depends-on): Likewise.
22738         * modules/fsync-tests (Depends-on): Likewise.
22739         * modules/lseek-tests (Depends-on): Likewise.
22740         * modules/pipe-tests (Depends-on): Likewise.
22741         * modules/posix_spawn-tests (Depends-on): Likewise.
22742         * modules/posix_spawnp-tests (Depends-on): Likewise.
22743         * modules/stat-time-tests (Depends-on): Likewise.
22744         * modules/yesno-tests (Depends-on): Likewise.
22745
22746 2009-08-10  Bruno Haible  <bruno@clisp.org>
22747
22748         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
22749
22750 2009-08-10  Bruno Haible  <bruno@clisp.org>
22751
22752         Fix a gcc warning.
22753         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
22754
22755 2009-08-10  Bruno Haible  <bruno@clisp.org>
22756
22757         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
22758         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
22759         not only the first time.
22760         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
22761         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
22762         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
22763         is 1, not only the the first time.
22764
22765 2009-08-10  Bruno Haible  <bruno@clisp.org>
22766
22767         Make it possible to use module 'gethostname' without module 'close'.
22768         * lib/unistd.in.h (close): Evoke a link error only if
22769         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
22770         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22771         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22772         * modules/unistd (Makefile.am): Substitute
22773         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22774         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
22775         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
22776         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
22777         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22778         * modules/sys_ioctl (Makefile.am): Substitute
22779         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22780         * modules/socket (configure.ac): On native Windows, set
22781         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
22782         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22783         Reported by Sam Steingold <sds@gnu.org>.
22784
22785 2009-08-10  Bruno Haible  <bruno@clisp.org>
22786
22787         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
22788         * modules/ioctl (configure.ac): Likewise.
22789
22790 2009-08-10  Bruno Haible  <bruno@clisp.org>
22791
22792         Avoid collision between gnulib wrapper and libintl wrapper.
22793         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
22794         already defined in intl/printf.c.
22795         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
22796         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
22797
22798 2009-08-09  Bruno Haible  <bruno@clisp.org>
22799
22800         Make <sys/select.h> really self-contained, also on Solaris 10.
22801         * lib/sys_select.in.h: Include <string.h>.
22802         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
22803         Solaris 10 problem.
22804         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
22805         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
22806         Reported by Jim Meyering.
22807
22808 2009-08-09  Bruno Haible  <bruno@clisp.org>
22809
22810         Avoid warnings from 'aclocal' that are due to a use of macro name
22811         AM_XGETTEXT_OPTION that is not defined in automake.
22812         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
22813         automake.
22814         * modules/error (configure.ac): Likewise.
22815         * modules/propername (configure.ac): Likewise.
22816         * modules/vasprintf (configure.ac): Likewise.
22817         * modules/verror (configure.ac): Likewise.
22818         * modules/xprintf (configure.ac): Likewise.
22819         * modules/xvasprintf (configure.ac): Likewise.
22820
22821 2009-08-08  Bruno Haible  <bruno@clisp.org>
22822
22823         Avoid compilation error in C++ mode.
22824         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
22825         Reported by Sam Steingold <sds@gnu.org>.
22826
22827 2009-08-08  Bruno Haible  <bruno@clisp.org>
22828
22829         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
22830         for the various Unix platforms.
22831         * doc/posix-headers/limits.texi: Update platforms list regarding
22832         HOST_NAME_MAX.
22833         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22834
22835 2009-08-07  Jim Meyering  <meyering@redhat.com>
22836
22837         selinux-at: fix typo in a comment
22838         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
22839         Spotted by Paolo Bonzini.
22840
22841         selinux-at: remove redundant m4 code, add documentation
22842         * modules/selinux-at (configure.ac): Remove redundant code.
22843         LIB_SELINUX is already set via the dependent module, selinux-h.
22844         (Include): Add quotes around selinux-at.h.
22845         * lib/selinux-at.h: Add documentation.
22846         Reported by Bruno Haible in
22847         http://marc.info/?l=gnulib-bug&m=124958988300749
22848
22849 2009-08-07  Bruno Haible  <bruno@clisp.org>
22850
22851         Avoid link error on MacOS X 10.3 and 10.4.
22852         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
22853         on non-ELF systems.
22854         * lib/argp-pv.c (argp_program_version): Likewise.
22855         Reported by Simon Josefsson.
22856
22857 2009-08-07  Simon Josefsson  <simon@josefsson.org>
22858
22859         * tests/test-version-etc.sh: Use $EXEEXT.
22860
22861 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
22862
22863         update-copyright: update documentation to point to maint.mk
22864         * build-aux/update-copyright: Here.
22865
22866 2009-08-06  Jim Meyering  <meyering@redhat.com>
22867
22868         maint.mk: support update-copyright-local
22869         * top/maint.mk (update-copyright-local): Define place-holder.
22870         (update-copyright): Depend on $(update-copyright-local).
22871
22872 2009-08-06  Jim Meyering  <meyering@redhat.com>
22873
22874         selinux-at: new module
22875         Initially written for coreutils, this module will soon be
22876         used by findutils, too.
22877         * MODULES.html.sh [Misc]: Add selinux-at.
22878         * lib/selinux-at.h: New file, from coreutils.
22879         * lib/selinux-at.c: Likewise.
22880         * modules/selinux-at: Likewise.
22881         (License): Change from LGPL to GPL, since it depends
22882         on the GPL'd openat module.
22883
22884         doc: update README
22885         * README: Remove references to cogito.
22886         Remove cvs-repo-updating instructions from 2007.
22887         Don't imply that CVS is better if you have limited disk space.
22888
22889 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22890
22891         update-copyright: support C-style comments
22892         * build-aux/update-copyright: Implement and document.
22893         * tests/test-update-copyright.sh: Test.
22894
22895 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22896
22897         update-copyright: support omitted "(C)"
22898         * build-aux/update-copyright: Implement and document.  Also,
22899         allow variable whitespace before "(C)".
22900         * tests/test-update-copyright.sh: Test.
22901
22902 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22903
22904         update-copyright: don't trip on non-FSF copyright statements
22905         * build-aux/update-copyright: Fix so that the first correctly
22906         formatted FSF copyright statement is recognized no matter what
22907         appears before it.  Update documentation.
22908         * tests/test-update-copyright.sh: Test that.
22909
22910 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22911
22912         update-copyright: clean up code a little
22913         * build-aux/update-copyright: Append "_re" to the name of any
22914         variable holding a regular expression.
22915         Replace "old" and "new" with "stmt" in variable names.
22916         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
22917         handled correctly.
22918         Format code more consistently.
22919
22920 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22921
22922         update-copyright-tests: improve portability
22923         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
22924         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
22925
22926 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
22927
22928         update-copyright: support @copyright{} and &copy;
22929         * build-aux/update-copyright: Implement and document.
22930         * tests/test-update-copyright.sh: Test.
22931
22932 2009-08-04  Jim Meyering  <meyering@redhat.com>
22933
22934         update-copyright-tests: correctly test EOL=\r\n handling
22935         * tests/test-update-copyright.sh: Put \r at the end of some lines
22936         for the dos-eol tests.  Based on a patch by Joel E. Denny.
22937
22938         maint.mk: make update-copyright exclusion list more configurable
22939         * top/maint.mk (update-copyright): Default to excluding COPYING,
22940         but allow an override, in case someone does want to update that file.
22941
22942         maint.mk: don't update copyright date in COPYING
22943         * top/maint.mk (update-copyright): Exclude COPYING.
22944
22945         maint.mk: add a copyright-updating rule
22946         * top/maint.mk (update-copyright): New rule.
22947         Derived from coreutils/Makefile.am.
22948
22949         update-copyright: rename some variables
22950         * build-aux/update-copyright: Rename a few variables for clarity.
22951         Tweak syntax.  List Joel E. Denny as coauthor.
22952
22953 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
22954
22955         update-copyright: fix bug for 2-digit last year and add tests
22956         * build-aux/update-copyright: Fix bug.
22957         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
22958         specified.
22959         * modules/update-copyright-tests: New
22960         * tests/test-update-copyright.sh: New.
22961
22962 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
22963
22964         update-copyright: handle leading tabs in line prefix
22965         * build-aux/update-copyright: Count leading tabs as 8 spaces
22966         when computing margin.  This helps with the formatting of
22967         ChangeLogs, for example.
22968         Fix documentation a little.
22969
22970 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
22971
22972         update-copyright: support EOL=\r\n
22973         * build-aux/update-copyright: Implement that.
22974
22975 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
22976
22977         update-copyright: automatically format copyright statements
22978         * build-aux/update-copyright: Implement that.
22979         Also, be a little more predictable and safer by always failing
22980         when the full copyright format is not perfectly recognized as an
22981         unbroken whole.  Discussed at
22982         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
22983         Rewrite documentation.
22984
22985 2009-08-03  Bruno Haible  <bruno@clisp.org>
22986
22987         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
22988
22989 2009-08-02  Bruno Haible  <bruno@clisp.org>
22990
22991         Tests for module 'uname'.
22992         * modules/uname-tests: New file.
22993         * tests/test-uname.c: New file.
22994
22995         New module 'uname'.
22996         * lib/uname.c: New file.
22997         * m4/uname.m4: New file.
22998         * modules/uname: New file.
22999         * doc/posix-functions/uname.texi: Mention the new module.
23000
23001 2009-08-02  Bruno Haible  <bruno@clisp.org>
23002
23003         Tests for module 'sys_utsname'.
23004         * modules/sys_utsname-tests: New file.
23005         * tests/test-sys_utsname.c: New file.
23006
23007         New module 'sys_utsname'.
23008         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
23009         * m4/sys_utsname_h.m4: New file.
23010         * modules/sys_utsname: New file.
23011         * doc/posix-headers/sys_utsname.texi: Mention the new module.
23012
23013 2009-08-02  Bruno Haible  <bruno@clisp.org>
23014
23015         Implicitly initialize the sockets library.
23016         * lib/gethostname.c: Include sockets.h.
23017         (rpl_gethostname): Invoke gl_sockets_startup.
23018         * lib/socket.c: Include sockets.h.
23019         (rpl_socket): Invoke gl_sockets_startup.
23020         * modules/gethostname (Depends-on): Add sockets.
23021         * modules/socket (Depends-on): Likewise.
23022         * tests/test-poll.c: Don't include sockets.h.
23023         (main): Don't invoke gl_sockets_startup.
23024         * tests/test-select.c: Don't include sockets.h.
23025         (main): Don't invoke gl_sockets_startup.
23026
23027 2009-08-02  Bruno Haible  <bruno@clisp.org>
23028
23029         Allow multiple calls to gl_sockets_startup.
23030         * lib/sockets.c (initialized_sockets_version): New variable.
23031         (gl_sockets_startup): Do nothing if already called for this or a higher
23032         version.
23033         (gl_sockets_cleanup): Reset initialized_sockets_version.
23034
23035 2009-08-03  Simon Josefsson  <simon@josefsson.org>
23036
23037         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
23038         different project/version.
23039
23040 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
23041             Bruno Haible  <bruno@clisp.org>
23042
23043         Tests for module 'pipe-filter-gi'.
23044         * modules/pipe-filter-gi-tests: New file.
23045         * tests/test-pipe-filter-gi1.sh: New file.
23046         * tests/test-pipe-filter-gi1.c: New file.
23047         * tests/test-pipe-filter-gi2.sh: New file.
23048         * tests/test-pipe-filter-gi2-main.c: New file.
23049         * tests/test-pipe-filter-gi2-child.c: New file.
23050
23051         New module 'pipe-filter-gi'.
23052         * lib/pipe-filter-gi.c: New file.
23053         * modules/pipe-filter-gi: New file.
23054
23055 2009-08-02  Bruno Haible  <bruno@clisp.org>
23056             Paolo Bonzini  <bonzini@gnu.org>
23057
23058         Tests for module 'pipe-filter-ii'.
23059         * modules/pipe-filter-ii-tests: New file.
23060         * tests/test-pipe-filter-ii1.sh: New file.
23061         * tests/test-pipe-filter-ii1.c: New file.
23062         * tests/test-pipe-filter-ii2.sh: New file.
23063         * tests/test-pipe-filter-ii2-main.c: New file.
23064         * tests/test-pipe-filter-ii2-child.c: New file.
23065
23066         New module 'pipe-filter-ii'.
23067         * lib/pipe-filter.h: New file.
23068         * lib/pipe-filter-ii.c: New file.
23069         * lib/pipe-filter-aux.h: New file.
23070         * modules/pipe-filter-ii: New file.
23071
23072 2009-08-02  Simon Josefsson  <simon@josefsson.org>
23073
23074         * lib/gc-libgcrypt.c: Change copyright to FSF.
23075         * lib/gc-gnulib.c: Likewise.
23076
23077 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
23078
23079         * lib/gethostname.c: Include limits.h.
23080
23081 2009-08-02  Simon Josefsson  <simon@josefsson.org>
23082             Bruno Haible  <bruno@clisp.org>
23083
23084         Ensure HOST_NAME_MAX as part of the gethostname module.
23085         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
23086         define also HOST_NAME_MAX.
23087         * tests/test-gethostname.c: Include <limits.h>.
23088         (main): Check also HOST_NAME_MAX.
23089         * doc/posix-headers/limits.texi: Document the mingw problem.
23090
23091 2009-08-02  Bruno Haible  <bruno@clisp.org>
23092
23093         * lib/gethostname.c (gethostname): Fix handling of large len argument.
23094         Add comments.
23095
23096 2009-03-31  Simon Josefsson  <simon@josefsson.org>
23097
23098         * lib/gethostname.c: Add Windows wrapper.
23099         * m4/gethostname.m4: Look for gethostname in -lws2_32.
23100         * modules/gethostname: Depend on sys_socket & errno, for also
23101         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
23102         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
23103
23104 2009-07-31  Jim Meyering  <meyering@redhat.com>
23105
23106         getloadavg: fix symbol name in comment
23107         * lib/getloadavg.c: Correct a typo I introduced when adding
23108         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
23109         Matt Kraai spotted the problem.
23110
23111 2009-07-29  Matt Kraai  <mkraai@beckman.com>
23112
23113         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
23114         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
23115         code also if ! defined N_NAME_POINTER.
23116         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
23117         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
23118         but the n_name member is a 12-byte array.
23119
23120 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
23121
23122         update-copyright: generalize comment handling
23123         * build-aux/update-copyright: Handle copyright statements
23124         within more comment styles.
23125         Document usage.
23126         Report any file with an external copyright holder or parse failure.
23127
23128 2009-07-29  Jim Meyering  <meyering@redhat.com>
23129
23130         mktime: correct setting of REPLACE_MKTIME
23131         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
23132
23133         update-copyright: new module
23134         * modules/update-copyright: New file.
23135         * build-aux/update-copyright: New file.
23136         * MODULES.html.sh (maint+release support): Add update-copyright.
23137
23138 2009-07-27  Bruno Haible  <bruno@clisp.org>
23139
23140         Fix compilation error when <ctime> is used and mktime is replaced.
23141         * lib/time.in.h (mktime): New declaration.
23142         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
23143         REPLACE_MKTIME instead of defining mktime in config.h.
23144         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
23145         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
23146         Reported by Ross McFarland <rwmcfa1@neces.com>.
23147
23148 2009-07-27  Bruno Haible  <bruno@clisp.org>
23149
23150         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
23151         Reported by Matt Kraai <mkraai@beckman.com>.
23152
23153 2009-07-25  Jim Meyering  <meyering@redhat.com>
23154
23155         maint.mk: avoid warnings about missing files
23156         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
23157         diagnostic when .prev-version does not exist.
23158         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
23159         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
23160         nonexistent cfg.mk.
23161         Suggestions from Simon Josefsson.
23162
23163 2009-07-25  Bruno Haible  <bruno@clisp.org>
23164
23165         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
23166         defined as macros. Needed on QNX 6.4.1.
23167         Reported by Matt Kraai <mkraai@beckman.com>.
23168
23169 2009-07-23  Jim Meyering  <meyering@redhat.com>
23170
23171         maint.mk: invoke "make dist" with a working value of XZ_OPT
23172         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
23173
23174 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
23175
23176         Make fseeko.c compile on QNX.
23177         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
23178
23179 2009-07-22  Peter Simons  <simons@cryp.to>
23180
23181         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
23182         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
23183         * lib/md4.h: Likewise.
23184         * lib/md5.h: Likewise.
23185         * lib/sha1.h: Likewise.
23186         * lib/sha256.h: Likewise.
23187         * lib/sha512.h: Likewise.
23188
23189         tests-sha1: don't assign literal string to 'char *' variable
23190         * tests/test-sha1.c (main): Declare locals with "const" to match
23191         attributes of the right hand side.
23192
23193 2009-07-21  Eric Blake  <ebb9@byu.net>
23194
23195         dup2: fix more mingw problems
23196         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
23197         fd to itself.
23198         * doc/posix-functions/dup2.texi (dup2): Document the bug.
23199         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
23200         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
23201         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
23202         care of mingw bugs.
23203
23204 2009-07-21  Jim Meyering  <meyering@redhat.com>
23205
23206         vc-list-files: avoid failure when /bin/sh is dash
23207         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
23208         On some Debian based systems, /bin/sh is a symlink to dash, and running
23209         this command would omit the "/" following each 'tests' prefix:
23210           dash -x build-aux/vc-list-files -C . tests
23211         That is because bash and dash work differently:
23212           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
23213           bash ok
23214           dash odd
23215
23216 2009-07-21  Eric Blake  <ebb9@byu.net>
23217
23218         dup2-tests: test previous patch
23219         * modules/dup2-tests: New file.
23220         * tests/test-dup2.c: Likewise.
23221         * tests/test-open.c (main): Avoid unspecified behavior.
23222         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
23223         test.
23224
23225         dup2: work around mingw and cygwin 1.5 bug
23226         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
23227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23228         * modules/unistd (Makefile.am): Substitute it.
23229         * lib/unistd.in.h (dup2): Declare the replacement.
23230         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
23231         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
23232         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
23233         * modules/execute (Depends-on): Add dup2.
23234         * modules/fseterr (Depends-on): Likewise.
23235         * modules/pipe (Depends-on): Likewise.
23236         * modules/posix_spawn-internal (Depends-on): Likewise.
23237
23238 2009-07-21  Bruno Haible  <bruno@clisp.org>
23239
23240         * modules/.gitattributes: New file.
23241
23242 2009-07-20  Bruno Haible  <bruno@clisp.org>
23243
23244         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
23245         (main): Use it.
23246
23247 2009-07-20  Eric Blake  <ebb9@byu.net>
23248
23249         test-pipe: make a bit more robust.
23250         * tests/test-pipe.c (myerr): Allow error messages regardless of
23251         what we do to stderr.
23252         (test_pipe): Rearrange to avoid deadlock.
23253         (child_main): Try a larger read, to ensure we avoided deadlock.
23254         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
23255         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
23256         if misused.
23257
23258 2009-07-19  Jim Meyering  <meyering@redhat.com>
23259
23260         fts: avoid false-positive cycle-detection
23261         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
23262         for each new command line argument.
23263
23264 2009-07-19  Bruno Haible  <bruno@clisp.org>
23265
23266         Fix build error on mingw with the modules sys_select and unistd.
23267         * modules/acl-tests (Depends-on): Add close.
23268         * modules/binary-io-tests (Depends-on): Likewise.
23269         * modules/closein-tests (Depends-on): Likewise.
23270         * modules/flock-tests (Depends-on): Likewise.
23271         * modules/fsync-tests (Depends-on): Likewise.
23272         * modules/lseek-tests (Depends-on): Likewise.
23273         * modules/pipe-tests (Depends-on): Likewise.
23274         * modules/posix_spawn-tests (Depends-on): Likewise.
23275         * modules/posix_spawnp-tests (Depends-on): Likewise.
23276         * modules/stat-time-tests (Depends-on): Likewise.
23277         * modules/yesno-tests (Depends-on): Likewise.
23278
23279 2009-07-19  Bruno Haible  <bruno@clisp.org>
23280
23281         Unify conditionals.
23282         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
23283         macros, not at the compiler macros.
23284         * lib/pipe.c: Likewise.
23285         * lib/execute.c: Likewise.
23286         * lib/spawni.c: Likewise.
23287
23288 2009-07-19  Bruno Haible  <bruno@clisp.org>
23289
23290         Fix handling of closed stdin/stdout/stderr on mingw.
23291         * lib/w32spawn.h: Include unistd.h.
23292         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
23293         file descriptor with O_NOINHERIT flag.
23294         (fd_safer_noinherit): New function, based on fd-safer.c.
23295         (dup_safer_noinherit): New function, based on dup-safer.c.
23296         (undup_safer_noinherit): New function.
23297         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
23298         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
23299         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
23300         instead of fd_safer.
23301         * tests/test-pipe.c: Include <windows.h>.
23302         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
23303
23304         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
23305         from main.
23306         (test_pipe): Pass an extra argument for disambiguation.
23307         (main): Invoke parent_main or child_main.
23308
23309         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
23310         consistently.
23311
23312 2009-07-18  Eric Blake  <ebb9@byu.net>
23313
23314         test-pipe: fix mingw build
23315         * tests/test-pipe.c (main): Avoid fcntl on mingw.
23316
23317 2009-07-18  Bruno Haible  <bruno@clisp.org>
23318
23319         * modules/pipe-tests (Makefile.am): Fix typo.
23320
23321 2009-07-18  Eric Blake  <ebb9@byu.net>
23322
23323         error: fix mingw build
23324         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
23325         Reported by Bruno Haible.
23326
23327         error: avoid undefined use of stdout
23328         * lib/error.c (error, error_at_line): Check that fd 1 is open
23329         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
23330         is handling faults and the close_stdout module wants to report the
23331         detection of closed stdout as an error.
23332
23333 2009-07-17  Eric Blake  <ebb9@byu.net>
23334
23335         pipe: be robust in face of closed fds
23336         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
23337         should cause child to misbehave.
23338         * modules/pipe-tests: New module.
23339         * tests/test-pipe.c: New file.
23340         * tests/test-pipe.sh: New file.
23341         Reported by Akim Demaille.
23342
23343 2009-07-14  Bruno Haible  <bruno@clisp.org>
23344
23345         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
23346         Reported by anonymous kc.
23347
23348 2009-07-07  Jim Meyering  <meyering@redhat.com>
23349
23350         maint.mk: don't look for translatable strings in *.m4 or *.mk
23351         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
23352         when searching for translatable strings.
23353
23354 2009-07-05  Jim Meyering  <meyering@redhat.com>
23355
23356         remove superfluous parentheses in STREQ definition
23357         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
23358         * lib/getugroups.c (STREQ): Likewise.
23359         * lib/fnmatch.c (STREQ): Likewise.
23360         Spotted by Bruno Haible.
23361
23362 2009-07-04  Jim Meyering  <meyering@redhat.com>
23363
23364         argv-iter: new module
23365         * MODULES.html.sh: Add argv-iter.
23366         * lib/argv-iter.c, lib/argv-iter.h: New files.
23367         * modules/argv-iter: New file.
23368         * modules/argv-iter-tests: New file.
23369         * tests/test-argv-iter.c: Test it.
23370
23371 2009-07-04  Bruno Haible  <bruno@clisp.org>
23372
23373         Fix assertion.
23374         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
23375         contains more exact copies of a given entry than file2, leave the extra
23376         copies unpaired rather than aborting.
23377         Reported by Eric Blake.
23378
23379 2009-07-02  Bruno Haible  <bruno@clisp.org>
23380
23381         Speedup git-merge-changelog for git cherry-pick.
23382         * lib/git-merge-changelog.c (struct entries_mapping): New type.
23383         (entries_mapping_get): New function, extracted from compute_mapping.
23384         (entries_mapping_reverse_get): New function.
23385         (compute_mapping): Add a 'full' argument. Return the result in a
23386         'struct entries_mapping'.
23387         (main): Update. Access the mappings through entries_mapping_get.
23388         Reported by Eric Blake.
23389
23390 2009-07-02  Bruno Haible  <bruno@clisp.org>
23391
23392         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
23393         best_i.
23394
23395 2009-07-02  Bruno Haible  <bruno@clisp.org>
23396
23397         Speed up approximate search for matching ChangeLog entries.
23398         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
23399         argument. Call fstrcmp_bounded instead of fstrcmp.
23400         (compute_mapping, try_split_merged_entry, main): Update callers.
23401
23402 2009-07-02  Bruno Haible  <bruno@clisp.org>
23403
23404         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
23405
23406 2009-06-30  Bruno Haible  <bruno@clisp.org>
23407
23408         Reduce the number of uc_is_cased calls.
23409         * lib/unicase.h (casing_suffix_context_t): Add
23410         'first_char_except_ignorable' field.
23411         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
23412         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
23413         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
23414         Update initializer.
23415         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
23416         case-ignorable characters.
23417         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
23418         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
23419         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
23420         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
23421         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
23422
23423 2009-06-30  Bruno Haible  <bruno@clisp.org>
23424
23425         Tests for module 'unicase/ignorable'.
23426         * modules/unicase/ignorable-tests: New file.
23427         * tests/unicase/test-ignorable.c: New file, generated by
23428         gen-uni-tables.
23429
23430         Tests for module 'unicase/cased'.
23431         * modules/unicase/cased-tests: New file.
23432         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
23433         * tests/unicase/test-predicate-part1.h: New file, derived from
23434         tests/unictype/test-predicate-part1.h.
23435         * tests/unicase/test-predicate-part2.h: New file, same as
23436         tests/unictype/test-predicate-part2.h.
23437
23438         Fix evaluation of "Before C" condition of FINAL_SIGMA.
23439         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
23440         (output_casing_properties): New function.
23441         (main): Call it.
23442         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
23443         * lib/unicase/cased.c: Include unictype/bitmap.h.
23444         (uc_is_cased): Define through a bitmap lookup.
23445         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
23446         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
23447         (uc_is_case_ignorable): Define through a bitmap lookup.
23448         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
23449         lib/unictype/bitmap.h.
23450         (Depends-on): Add inline. Clean up.
23451         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
23452         lib/unictype/bitmap.h.
23453         (Depends-on): Add inline. Clean up.
23454         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
23455         recognition.
23456         * tests/unicase/test-u16-tolower.c (main): Likewise.
23457         * tests/unicase/test-u32-tolower.c (main): Likewise.
23458
23459 2009-06-30  Bruno Haible  <bruno@clisp.org>
23460
23461         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
23462         * lib/unicase/u16-casemap.c: Likewise.
23463         * lib/unicase/u32-casemap.c: Likewise.
23464
23465 2009-06-29  Bruno Haible  <bruno@clisp.org>
23466
23467         Define u32_casefold as a wrapper around u32_ct_casefold.
23468         * lib/unicase/u32-casefold.c: Update.
23469         * modules/unicase/u32-casefold (Depends-on): Add
23470         unicase/u32-ct-casefold, unicase/empty-prefix-context,
23471         unicase/empty-suffix-context. Clean up.
23472
23473         Define u16_casefold as a wrapper around u16_ct_casefold.
23474         * lib/unicase/u16-casefold.c: Update.
23475         * modules/unicase/u16-casefold (Depends-on): Add
23476         unicase/u16-ct-casefold, unicase/empty-prefix-context,
23477         unicase/empty-suffix-context. Clean up.
23478
23479         Define u8_casefold as a wrapper around u8_ct_casefold.
23480         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
23481         * lib/unicase/u8-casefold.c: Update.
23482         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
23483         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
23484
23485         Define u32_totitle as a wrapper around u32_ct_totitle.
23486         * lib/unicase/u32-totitle.c: Update.
23487         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
23488         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
23489
23490         Define u16_totitle as a wrapper around u16_ct_totitle.
23491         * lib/unicase/u16-totitle.c: Update.
23492         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
23493         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
23494
23495         Define u8_totitle as a wrapper around u8_ct_totitle.
23496         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
23497         functions.
23498         (FUNC): Delegate to U_CT_TOTITLE.
23499         * lib/unicase/u8-totitle.c: Update.
23500         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
23501         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
23502
23503         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
23504         invocation.
23505         * modules/unicase/u32-tolower (Depends-on): Add
23506         unicase/empty-prefix-context, unicase/empty-suffix-context.
23507
23508         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
23509         invocation.
23510         * modules/unicase/u16-tolower (Depends-on): Add
23511         unicase/empty-prefix-context, unicase/empty-suffix-context.
23512
23513         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
23514         * modules/unicase/u8-tolower (Depends-on): Add
23515         unicase/empty-prefix-context, unicase/empty-suffix-context.
23516
23517         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
23518         invocation.
23519         * modules/unicase/u32-toupper (Depends-on): Add
23520         unicase/empty-prefix-context, unicase/empty-suffix-context.
23521
23522         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
23523         invocation.
23524         * modules/unicase/u16-toupper (Depends-on): Add
23525         unicase/empty-prefix-context, unicase/empty-suffix-context.
23526
23527         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
23528         * modules/unicase/u8-toupper (Depends-on): Add
23529         unicase/empty-prefix-context, unicase/empty-suffix-context.
23530
23531         New module 'unicase/u32-ct-casefold'.
23532         * lib/unicase/u32-ct-casefold.c: New file.
23533         * modules/unicase/u32-ct-casefold: New file.
23534
23535         New module 'unicase/u16-ct-casefold'.
23536         * lib/unicase/u16-ct-casefold.c: New file.
23537         * modules/unicase/u16-ct-casefold: New file.
23538
23539         New module 'unicase/u8-ct-casefold'.
23540         * lib/unicase/u8-ct-casefold.c: New file.
23541         * lib/unicase/u-ct-casefold.h: New file, derived from
23542         lib/unicase/u-casefold.h.
23543         * modules/unicase/u8-ct-casefold: New file.
23544
23545         New module 'unicase/u32-ct-totitle'.
23546         * lib/unicase/u32-ct-totitle.c: New file.
23547         * modules/unicase/u32-ct-totitle: New file.
23548
23549         New module 'unicase/u16-ct-totitle'.
23550         * lib/unicase/u16-ct-totitle.c: New file.
23551         * modules/unicase/u16-ct-totitle: New file.
23552
23553         New module 'unicase/u8-ct-totitle'.
23554         * lib/unicase/u8-ct-totitle.c: New file.
23555         * lib/unicase/u-ct-totitle.h: New file, derived from
23556         lib/unicase/u-totitle.h.
23557         * modules/unicase/u8-ct-totitle: New file.
23558
23559         New module 'unicase/u32-ct-tolower'.
23560         * lib/unicase/u32-ct-tolower.c: New file.
23561         * modules/unicase/u32-ct-tolower: New file.
23562
23563         New module 'unicase/u16-ct-tolower'.
23564         * lib/unicase/u16-ct-tolower.c: New file.
23565         * modules/unicase/u16-ct-tolower: New file.
23566
23567         New module 'unicase/u8-ct-tolower'.
23568         * lib/unicase/u8-ct-tolower.c: New file.
23569         * modules/unicase/u8-ct-tolower: New file.
23570
23571         New module 'unicase/u32-ct-toupper'.
23572         * lib/unicase/u32-ct-toupper.c: New file.
23573         * modules/unicase/u32-ct-toupper: New file.
23574
23575         New module 'unicase/u16-ct-toupper'.
23576         * lib/unicase/u16-ct-toupper.c: New file.
23577         * modules/unicase/u16-ct-toupper: New file.
23578
23579         New module 'unicase/u8-ct-toupper'.
23580         * lib/unicase/u8-ct-toupper.c: New file.
23581         * modules/unicase/u8-ct-toupper: New file.
23582
23583         Add context arguments to u*_casemap functions.
23584         * lib/unicase/unicasemap.h: Include unicase.h.
23585         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
23586         suffix_context arguments.
23587         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
23588         functions.
23589         (FUNC): Add prefix_context and suffix_context arguments. Use
23590         uc_is_cased and uc_is_case_ignorable.
23591         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
23592         * lib/unicase/u16-casemap.c: Likewise.
23593         * lib/unicase/u32-casemap.c: Likewise.
23594         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
23595         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
23596         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
23597         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
23598         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
23599         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
23600
23601         New module 'unicase/u32-suffix-context'.
23602         * lib/unicase/u32-suffix-context.c: New file.
23603         * modules/unicase/u32-suffix-context: New file.
23604
23605         New module 'unicase/u16-suffix-context'.
23606         * lib/unicase/u16-suffix-context.c: New file.
23607         * modules/unicase/u16-suffix-context: New file.
23608
23609         New module 'unicase/u8-suffix-context'.
23610         * lib/unicase/u8-suffix-context.c: New file.
23611         * lib/unicase/u-suffix-context.h: New file.
23612         * modules/unicase/u8-suffix-context: New file.
23613
23614         New module 'unicase/empty-suffix-context'.
23615         * lib/unicase/empty-suffix-context.c: New file.
23616         * modules/unicase/empty-suffix-context: New file.
23617
23618         New module 'unicase/u32-prefix-context'.
23619         * lib/unicase/u32-prefix-context.c: New file.
23620         * modules/unicase/u32-prefix-context: New file.
23621
23622         New module 'unicase/u16-prefix-context'.
23623         * lib/unicase/u16-prefix-context.c: New file.
23624         * modules/unicase/u16-prefix-context: New file.
23625
23626         New module 'unicase/u8-prefix-context'.
23627         * lib/unicase/u8-prefix-context.c: New file.
23628         * lib/unicase/u-prefix-context.h: New file.
23629         * lib/unicase/context.h: New file.
23630         * modules/unicase/u8-prefix-context: New file.
23631
23632         New module 'unicase/empty-prefix-context'.
23633         * lib/unicase/empty-prefix-context.c: New file.
23634         * modules/unicase/empty-prefix-context: New file.
23635
23636         New module 'unicase/ignorable'.
23637         * lib/unicase/ignorable.c: New file.
23638         * modules/unicase/ignorable: New file.
23639
23640         New module 'unicase/cased'.
23641         * lib/unicase/caseprop.h: New file.
23642         * lib/unicase/cased.c: New file.
23643         * modules/unicase/cased: New file.
23644
23645         New functions for case mapping of substrings.
23646         * lib/unicase.h (casing_prefix_context_t): New type.
23647         (unicase_empty_prefix_context): New variable.
23648         (u8_casing_prefix_context, u16_casing_prefix_context,
23649         u32_casing_prefix_context, u8_casing_prefixes_context,
23650         u16_casing_prefixes_context, u32_casing_prefixes_context): New
23651         declarations.
23652         (casing_suffix_context_t): New type.
23653         (unicase_empty_suffix_context): New variable.
23654         (u8_casing_suffix_context, u16_casing_suffix_context,
23655         u32_casing_suffix_context, u8_casing_suffixes_context,
23656         u16_casing_suffixes_context, u32_casing_suffixes_context,
23657         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
23658         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
23659         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
23660         declarations.
23661
23662 2009-06-28  Jim Meyering  <meyering@redhat.com>
23663
23664         boostrap: indent only with spaces
23665         * build-aux/bootstrap: Indent only with spaces, never TABs.
23666
23667         bootstrap: split long lines
23668         * build-aux/bootstrap: Keep line length < 80.
23669
23670         bootstrap: sync from coreutils
23671         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
23672         just as autoreconf does.  Verify a list of prerequisite
23673         package-name,version-number pairs if defined in bootstrap.conf.
23674         Refer to README-prereq, if prerequisites are not satisfied.
23675
23676 2009-06-27  Eric Blake  <ebb9@byu.net>
23677
23678         tests: add test for bogus NULL definition
23679         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
23680         * tests/test-stdlib.c: Likewise.
23681         * tests/test-string.c: Likewise.
23682         * tests/test-locale.c: Likewise.
23683         * tests/test-unistd.c: Likewise.
23684         * modules/stdio-tests (Depends-on): Add verify.
23685         * modules/stdlib-tests (Depends-on): Likewise.
23686         * modules/string-tests (Depends-on): Likewise.
23687         * modules/locale-tests (Depends-on): Likewise.
23688         * modules/unistd-tests (Depends-on): Likewise.
23689
23690 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
23691
23692         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
23693         self-explaining comment.
23694         * m4/selinux-selinux-h: Update serial.
23695         (gl_LIBSELINUX): New macro, adding a warning for missing development
23696         packages to code extracted from...
23697         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
23698         Add warning for missing development packages here, too.
23699
23700 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
23701
23702         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
23703
23704 2009-06-25  Eric Blake  <ebb9@byu.net>
23705
23706         version-etc: fix regression
23707         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
23708         gcc.
23709         (version_etc): Use it, to catch bugs with trailing NULL.
23710         * lib/version-etc.c (version_etc_arn): Delete unused argument.
23711         (version_etc_va): Fix logic bug.
23712         * modules/version-etc-tests: Add test.
23713         * tests/test-version-etc.c: New file.
23714         * tests/test-version-etc.sh: Likewise.
23715
23716 2009-06-25  Sam Steingold  <sds@gnu.org>
23717
23718         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
23719         mbtowc declaration.
23720
23721 2009-06-25  Eric Blake  <ebb9@byu.net>
23722
23723         fpurge: migrate into <stdio.h>
23724         * lib/fpurge.h: Delete...
23725         * lib/stdio.in.h (fpurge): ...and declare here, instead.
23726         * lib/fpurge.c (fpurge): Change declaring header.
23727         * modules/fpurge (Files): Drop deleted file.
23728         (Depends-on): Add stdio.
23729         (configure.ac): Set witness.
23730         * modules/stdio (Makefile.am): Support fpurge macros.
23731         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23732         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
23733         * lib/fflush.c: Update client.
23734         * tests/test-fpurge.c: Likewise.
23735         * NEWS: Mention the change.
23736
23737 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
23738
23739         * lib/argp-version-etc.c (program_authors): Add const
23740         qualifier.
23741         * lib/version-etc.c: Fix typos in the comments.
23742         * modules/argp-version-etc: Depends on version-etc.
23743
23744 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
23745
23746         argp-version-etc: new module.
23747
23748         * lib/argp-version-etc.c: New file.
23749         * lib/argp-version-etc.h: New file.
23750         * modules/argp-version-etc: New file.
23751         * modules/argp-version-etc-tests: New file.
23752         * tests/test-argp-version-etc.c: New test.
23753         * tests/test-argp-version-etc-1.sh: New test.
23754
23755 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
23756
23757         Provide additional interfaces and documentation for version-etc
23758         module.
23759
23760         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
23761         interfaces.
23762         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
23763         prototypes.
23764
23765 2009-06-24  Bruno Haible  <bruno@clisp.org>
23766
23767         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
23768         HAVE_LIB${NAME} macro.
23769         Reported by Sam Steingold <sds@gnu.org>.
23770
23771 2009-06-23  Simon Josefsson  <simon@josefsson.org>
23772
23773         * modules/hash-tests (test_hash_LDADD): Link to libintl when
23774         needed.
23775
23776 2009-06-21  Bruno Haible  <bruno@clisp.org>
23777
23778         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
23779         work.
23780         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
23781         together with LIB${NAME}, LTLIB${NAME}.
23782         Reported by Sam Steingold <sds@gnu.org>.
23783
23784 2009-06-20  Jim Meyering  <meyering@redhat.com>
23785
23786         tests: make sc_require_test_exit_idiom more generic
23787         * top/maint.mk (Exit_witness_file): New overridable variable.
23788         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
23789         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
23790
23791 2009-06-19  Jim Meyering  <meyering@redhat.com>
23792
23793         hash: reverse order of src/dst parameters in an internal interface
23794         * lib/hash.c (transfer_entries): Reverse order of parameters to
23795         put DST before SRC.  Adjust callers.
23796
23797         tests: test-hash: avoid wholesale duplication
23798         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
23799         Instead, use a loop and add a single conditional.
23800
23801         tests: test-hash: allow seed selection via a command line argument
23802         * tests/test-hash.c (get_seed): New function.
23803         (main): Use it.
23804
23805 2009-06-19  Eric Blake  <ebb9@byu.net>
23806
23807         hash: avoid memory leak on allocation failure
23808         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
23809         failure.  Factor repeated algorithm...
23810         (transfer_entries): ...into new helper routine.
23811         (hash_delete): React to hash_rehash return value.
23812
23813         hash: reduce memory pressure in hash_rehash no-op case
23814         * lib/hash.c (next_prime): Avoid overflow.
23815         (hash_initialize): Factor bucket size computation...
23816         (compute_bucket_size): ...into new helper function.
23817         (hash_rehash): Use new function and open coding to reduce memory
23818         pressure, and avoid a memory leak in USE_OBSTACK code.
23819         Reported by Jim Meyering.
23820
23821 2009-06-18  Eric Blake  <ebb9@byu.net>
23822
23823         hash: make rotation more obvious
23824         * modules/hash (Depends-on): Add bitrotate and stdint.
23825         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
23826         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
23827         (SIZE_MAX): Rely on headers for definition.
23828         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
23829         (raw_hasher): Use rotr_sz.
23830         Suggested by Jim Meyering.
23831
23832         hash: fix memory leak in last patch
23833         * lib/hash.c (hash_rehash): Avoid memory leak.
23834
23835         hash: avoid no-op rehashing
23836         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
23837
23838         hash: provide default callback functions
23839         * lib/hash.c (raw_hasher, raw_comparator): New functions.
23840         (hash_initialize): Use them as defaults.
23841         * tests/test-hash.c (main): Test this.
23842
23843         hash: minor optimization
23844         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
23845         when possible.
23846         (hash_initialize): Document this promise.
23847         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
23848         * tests/test-hash.c (hash_compare_strings): Test this.
23849
23850 2009-06-18  Bruno Haible  <bruno@clisp.org>
23851
23852         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
23853         going to be replaced anyway.
23854
23855 2009-06-18  Bruno Haible  <bruno@clisp.org>
23856
23857         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
23858         in one place.
23859         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
23860         be replaced anyway.
23861
23862 2009-06-18  Eric Blake  <ebb9@byu.net>
23863
23864         hash: check for resize before insertion
23865         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
23866         threshold before insertion, so that a pathological hash_rehash
23867         that fills every bucket can still trigger another rehash.
23868
23869 2009-06-18  Jim Meyering  <meyering@redhat.com>
23870
23871         hash-tests: add a loop around the small tests
23872         * tests/test-hash.c (main): Repeat small tests with selected
23873         small initial table sizes.
23874
23875 2009-06-17  Eric Blake  <ebb9@byu.net>
23876
23877         hash: minor cleanups
23878         * lib/hash.h (hash_entry): Make opaque, by moving...
23879         * lib/hash.c (hash_entry): ...here.
23880         (hash_insert): Clarify restrictions on what can be inserted.
23881         (hash_get_next): Clarify when it is safe to remove an element
23882         during traversal.
23883         (check_tuning): Skip verification when tuning is known safe.
23884         (hash_initialize): Clarify restrictions on tuning.
23885
23886 2009-06-17  Jim Meyering  <jim@meyering.net>
23887         and Eric Blake  <ebb9@byu.net>
23888
23889         hash-tests: new module
23890         * modules/hash-tests: New file.
23891         * tests/test-hash.c: New file.
23892
23893 2009-06-17  Eric Blake  <ebb9@byu.net>
23894
23895         strstr-simple: document new module
23896         * MODULES.html.sh: Document new module.
23897
23898         strstr, strcasestr: replace on platforms with broken memchr
23899         * modules/strstr: Split into...
23900         * modules/strstr-simple: ...new module that does not care about
23901         performance, but does care about glibc bug.
23902         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
23903         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
23904         if platform memchr is broken, per Debian bug 521737.
23905         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
23906         memchr.
23907         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
23908         * doc/posix-functions/strstr.texi (strstr): Document the fix.
23909         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
23910         * modules/mountlist (Depends-on): Add strstr-simple.
23911         * modules/gen-uni-tables (Depends-on): Likewise.
23912         * modules/argz (Depends-on): Add strstr.
23913
23914 2009-06-17  Bruno Haible  <bruno@clisp.org>
23915
23916         * modules/posix_spawn-internal (Depends-on): Add errno.
23917
23918 2009-06-17  Bruno Haible  <bruno@clisp.org>
23919
23920         Define missing ESTALE on Interix 3.5.
23921         * lib/errno.in.h (ESTALE): Assign a value if missing.
23922         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
23923         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
23924         missing.
23925         * doc/posix-headers/errno.texi: Mention the Interix bug.
23926         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
23927
23928 2009-06-15  Eric Blake  <ebb9@byu.net>
23929
23930         memchr, memchr2: add valgrind exception
23931         * lib/memchr.valgrind: New file.
23932         * lib/memchr2.valgrind: New file.
23933         * modules/memchr (Files): Distribute valgrind file.
23934         * modules/memchr2 (Files): Likewise.
23935
23936         docs: memchr is no longer obsolete
23937         * MODULES.html.sh: Move memchr from obsolete to string.h section.
23938         * lib/string.in.h (memchr): Simplify logic.
23939
23940 2009-06-14  Jim Meyering  <meyering@redhat.com>
23941
23942         link-follow: fix the "checking..." message to not mention trailing slash
23943         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
23944         never considered trailing slashes.
23945
23946 2009-06-14  Bruno Haible  <bruno@clisp.org>
23947
23948         * m4/memchr.m4: Mention also the bug on IA-64.
23949         * doc/posix-functions/memchr.texi: Likewise.
23950
23951 2009-06-12  Eric Blake  <ebb9@byu.net>
23952
23953         memchr: detect broken x86_64 and alpha implementations
23954         * modules/memchr-tests (Depends-on): Move mmap detection...
23955         * modules/memchr (Depends-on): ...here.
23956         (configure.ac): Set indicator.
23957         * lib/string.in.h (memchr): Declare replacement.
23958         * modules/string (Makefile.am): Trigger replacement.
23959         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
23960         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
23961         bugs.
23962         * doc/posix-functions/memchr.texi (memchr): Document the bug.
23963         * modules/getpagesize (License): Relax license.
23964
23965 2009-06-11  Bruno Haible  <bruno@clisp.org>
23966
23967         * lib/idpriv.h: Add more references.
23968
23969 2009-06-08  Bruno Haible  <bruno@clisp.org>
23970
23971         Tests for module 'idpriv-droptemp'.
23972         * modules/idpriv-droptemp-tests: New file.
23973         * tests/test-idpriv-droptemp.sh: New file.
23974         * tests/test-idpriv-droptemp.su.sh: New file.
23975         * tests/test-idpriv-droptemp.c: New file.
23976
23977         New module 'idpriv-droptemp'.
23978         * lib/idpriv-droptemp.c: New file.
23979         * modules/idpriv-droptemp: New file.
23980
23981 2009-06-08  Bruno Haible  <bruno@clisp.org>
23982
23983         Tests for module 'idpriv-drop'.
23984         * modules/idpriv-drop-tests: New file.
23985         * tests/test-idpriv-drop.sh: New file.
23986         * tests/test-idpriv-drop.su.sh: New file.
23987         * tests/test-idpriv-drop.c: New file.
23988
23989         New module 'idpriv-drop'.
23990         * lib/idpriv.h: New file.
23991         * lib-idpriv-drop.c: New file.
23992         * m4/idpriv.m4: New file.
23993         * modules/idpriv-drop: New file.
23994
23995 2009-06-08  Bruno Haible  <bruno@clisp.org>
23996
23997         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
23998         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23999         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24000         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24001         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24002         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24003         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24004
24005 2009-06-08  Eric Blake  <ebb9@byu.net>
24006
24007         test-strstr: use memory fence, when possible
24008         * tests/test-strstr.c (main): Use memory fence, in order to be
24009         more likely to trigger Debian bug 521737.
24010         * modules/strstr-tests (Files): Pull in additional files.
24011
24012         memchr: no longer obsolete, for wider field testing
24013         * modules/memchr (Status, Notice): Delete, this module is no
24014         longer obsolete.
24015         * modules/vasnprintf (Depends-on): Add memchr.
24016
24017 2009-06-07  Jim Meyering  <meyering@redhat.com>
24018
24019         hash: declare some functions with the warn_unused_result attribute
24020         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
24021
24022 2009-06-07  Bruno Haible  <bruno@clisp.org>
24023
24024         * tests/test-alignof.c: Don't test int64_t if it does not exist.
24025         Reported by Eric Blake.
24026
24027 2009-06-06  Eric Blake  <ebb9@byu.net>
24028
24029         test-alignof: fix typo with long double
24030         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
24031         compiler error.
24032
24033 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
24034
24035         Escape non-texinfo { and }s.
24036         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
24037         markup error.
24038
24039 2009-06-04  Jim Meyering  <meyering@redhat.com>
24040
24041         gitlog-to-changelog: don't infloop on an empty commit log
24042         * build-aux/gitlog-to-changelog: Warn about an empty log message.
24043         Reported by Boris Petersen <transacid@centerim.org>.
24044
24045 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
24046
24047         version-etc: extend for packagers
24048         Add three new configure options, intended for packagers:
24049           --with-packager="packager name"
24050           --with-packager-version="packager-specific version"
24051           --with-packager-bug-reports="packager bug reporting"
24052         An example with coreutils:
24053           $ ./configure \
24054             --with-packager=Gentoo \
24055             --with-packager-bug-report=http://bugs.gentoo.org/ \
24056             --with-packager-version="patchset 1.6"
24057           $ ./src/ls --version | head -n2
24058           ls (GNU coreutils) 7.1-dirty
24059           Packaged by Gentoo (patchset 1.6)
24060         Note that the bug reporting info via --help doesn't show up because
24061         coreutils uses its own custom emit_bug_reporting_address() implementation
24062         in src/system.h.  If it didn't, it'd look like:
24063           $ ./src/ls --help | tail -n4
24064           Report bugs to <bug-coreutils@gnu.org>.
24065           Report Gentoo bugs to <http://bugs.gentoo.org/>.
24066           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
24067           General help using GNU software: <http://www.gnu.org/gethelp/>.
24068         * lib/version-etc.c: Print new information, if provided.
24069         * m4/version-etc.m4: New file.
24070         * modules/version-etc (Files): Add m4/version-etc.m4.
24071         (configure.ac): Add gl_VERSION_ETC.
24072
24073 2009-05-31  Bruno Haible  <bruno@clisp.org>
24074
24075         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
24076         and 'int64_t'.
24077         * modules/alignof-tests (Dependencies): Add stdint.
24078         Reported by Eric Blake.
24079
24080 2009-05-31  Bruno Haible  <bruno@clisp.org>
24081
24082         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
24083         restriction due to compiler bugs.
24084         Reported by Eric Blake.
24085
24086 2009-05-31  Simon Josefsson  <simon@josefsson.org>
24087             Bruno Haible  <bruno@clisp.org>
24088
24089         Fix test-alignof failure.
24090         * lib/alignof.h (alignof_slot): New macro.
24091         (alignof_type): New macro, with the same semantics as the previous
24092         'alignof'.
24093         (alignof): Alias to alignof_slot.
24094         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
24095         check that the results are usable as constant expressions.
24096
24097 2009-05-31  Bruno Haible  <bruno@clisp.org>
24098
24099         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
24100         * tests/test-memchr.c (main): Check that memchr does not read past the
24101         first occurrence of the byte.
24102         * tests/test-strstr.c (main): Update comment.
24103         Suggested by Eric Blake.
24104
24105 2009-05-30  Bruno Haible  <bruno@clisp.org>
24106
24107         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
24108         detail how to use dumpbin.
24109         Reported by David Byron <dbyron@dbyron.com>.
24110
24111 2009-06-02  Simon Josefsson  <simon@josefsson.org>
24112
24113         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
24114
24115 2009-06-02  Simon Josefsson  <simon@josefsson.org>
24116
24117         * m4/manywarnings.m4: Add GCC 4.4 warnings.
24118
24119 2009-05-28  Bruno Haible  <bruno@clisp.org>
24120
24121         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
24122         build-aux/ files.
24123
24124 2009-05-28  Simon Josefsson  <simon@josefsson.org>
24125
24126         * gnulib-tool (func_import): Transform license on build-aux/ files too.
24127
24128 2009-05-27  Simon Josefsson  <simon@josefsson.org>
24129
24130         * gnulib-tool (sed_transform_main_lib_file)
24131         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
24132         regexps.
24133
24134 2009-05-26  Simon Josefsson  <simon@josefsson.org>
24135
24136         * tests/test-strstr.c: Add another self-test.
24137         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
24138         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
24139
24140 2009-05-23  Bruno Haible  <bruno@clisp.org>
24141
24142         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
24143         change.
24144
24145 2009-05-21  Bruno Haible  <bruno@clisp.org>
24146
24147         Simplify use of mode_t varargs.
24148         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
24149         uses 'mode_t' or 'int'.
24150         * lib/openat.c (openat): Likewise.
24151         * lib/open-safer.c (open_safer): Likewise.
24152         * m4/mode_t.m4: New file.
24153         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
24154         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
24155         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
24156         * modules/open (Files): Add m4/mode_t.m4.
24157         * modules/openat (Files): Likewise.
24158         * modules/fcntl-safer (Files): Likewise.
24159         Suggested by Eric Blake.
24160
24161 2009-05-21  Pádraig Brady  <P@draigbrady.com>
24162
24163         * doc/glibc-functions/fallocate.texi: New file.
24164         * doc/gnulib.texi: Include it.
24165
24166 2009-05-21  Eric Blake  <ebb9@byu.net>
24167             Bruno Haible  <bruno@clisp.org>
24168
24169         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
24170         invocations.
24171         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24172
24173 2009-05-21  Eric Blake  <ebb9@byu.net>
24174             Bruno Haible  <bruno@clisp.org>
24175
24176         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
24177         include_next. Fix of 2008-11-20 commit.
24178         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
24179         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
24180         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
24181         NEXT_MATH_H.
24182         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
24183         instead of NEXT_MATH_H.
24184
24185 2009-05-21  Bruno Haible  <bruno@clisp.org>
24186
24187         Avoid redefinition warnings for SIZE_MAX.
24188         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
24189         Reported by Simon Josefsson.
24190
24191 2009-05-21  Bruno Haible  <bruno@clisp.org>
24192
24193         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
24194         AC_CACHE_VAL.
24195
24196 2009-05-20  Bruno Haible  <bruno@clisp.org>
24197
24198         Make zeroptr.h work on mingw.
24199         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
24200         mprotect.
24201         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
24202         * modules/memchr2-tests (configure.ac): Likewise.
24203         * modules/memcmp-tests (configure.ac): Likewise.
24204         * modules/memmem-tests (configure.ac): Likewise.
24205         * modules/memrchr-tests (configure.ac): Likewise.
24206         Reported by Simon Josefsson.
24207
24208 2009-05-20  Simon Josefsson  <simon@josefsson.org>
24209
24210         * tests/test-glob.c: Include string.h for strcmp prototype.
24211
24212 2009-05-20  Simon Josefsson  <simon@josefsson.org>
24213
24214         * modules/getdelim (Depends-on): Add explicit stdint, although it
24215         was implicitly already pulled in via realloc-posix.
24216         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
24217
24218 2009-05-20  Simon Josefsson  <simon@josefsson.org>
24219
24220         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
24221         G. Christensen" <tgc@jupiterrise.com>.
24222         * m4/sys_socket_h.m4: Check for sa_family_t.
24223         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
24224         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
24225         * tests/test-sys_socket.c: Check that sa_family_t works.
24226
24227 2009-05-18  Eric Blake  <ebb9@byu.net>
24228
24229         maint.mk: allow gnulib_dir in VPATH build
24230         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
24231
24232 2009-05-15  Jim Meyering  <meyering@redhat.com>
24233
24234         maint.mk: Give gnulib_dir a default definition.
24235         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
24236         Thus, most packages no longer need to specify this variable in cfg.mk
24237
24238 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
24239
24240         rename.m4: fix typos that would make non-mingw cross-configure fail
24241         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
24242
24243 2009-05-13  Eric Blake  <ebb9@byu.net>
24244
24245         mmap-anon: avoid out-of-order autoconf expansion
24246         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
24247         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
24248         * modules/memchr-tests (Depends-on): Add extensions.
24249         * modules/memchr2-tests (Depends-on): Add extensions.
24250         * modules/memcmp-tests (Depends-on): Add extensions.
24251         * modules/memmem-tests (Depends-on): Add extensions.
24252         * modules/memrchr-tests (Depends-on): Add extensions.
24253
24254 2009-05-13  Bruno Haible  <bruno@clisp.org>
24255
24256         Make some tests ISO C 99 compliant.
24257         * tests/zerosize-ptr.h: New file.
24258         * tests/test-memchr.c: Include zerosize-ptr.h.
24259         (main): Use a zero-size object pointer instead of NULL.
24260         * tests/test-memchr2.c: Include zerosize-ptr.h.
24261         (main): Use a zero-size object pointer instead of NULL.
24262         * tests/test-memcmp.c: Include zerosize-ptr.h.
24263         (main): Use a zero-size object pointer instead of NULL.
24264         * tests/test-memmem.c: Include zerosize-ptr.h.
24265         (main): Use a zero-size object pointer instead of NULL.
24266         * tests/test-memrchr.c: Include zerosize-ptr.h.
24267         (main): Use a zero-size object pointer instead of NULL.
24268         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
24269         m4/mmap-anon.m4.
24270         (Depends-on): Add getpagesize.
24271         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24272         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
24273         m4/mmap-anon.m4.
24274         (Depends-on): Add getpagesize.
24275         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24276         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
24277         m4/mmap-anon.m4.
24278         (Depends-on): Add getpagesize.
24279         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24280         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
24281         m4/mmap-anon.m4.
24282         (Depends-on): Add getpagesize.
24283         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24284         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
24285         m4/mmap-anon.m4.
24286         (Depends-on): Add getpagesize.
24287         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24288
24289 2009-05-12  Bruno Haible  <bruno@clisp.org>
24290
24291         Tests for module 'alignof'.
24292         * modules/alignof-tests: New file.
24293         * tests/test-alignof.c: New file.
24294
24295 2009-05-12  Bruno Haible  <bruno@clisp.org>
24296
24297         Fix alignof macro.
24298         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
24299         vendor compilers that are always correct.
24300
24301 2009-05-12  Bruno Haible  <bruno@clisp.org>
24302
24303         Make the MAP_ANONYMOUS detection work on HP-UX 11.
24304         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
24305         not whether its fully works.
24306
24307 2009-05-12  Bruno Haible  <bruno@clisp.org>
24308
24309         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
24310
24311 2009-05-12  Jim Meyering  <meyering@redhat.com>
24312
24313         * top/maint.mk: Adjust backslash alignment.
24314
24315 2009-05-11  Simon Josefsson  <simon@josefsson.org>
24316
24317         * top/maint.mk: Make $(srcdir)/build-aux configurable.
24318
24319 2009-05-11  Eric Blake  <ebb9@byu.net>
24320
24321         argp: avoid undefined behavior
24322         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
24323         macros.
24324
24325 2009-05-08  Simon Josefsson  <simon@josefsson.org>
24326
24327         * tests/test-vc-list-files-git.sh: Do git config of user.email and
24328         user.name to prevent git commit from complaining.
24329
24330 2009-05-10  Bruno Haible  <bruno@clisp.org>
24331
24332         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
24333         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
24334         it rewrites every file name only once.
24335         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
24336
24337 2009-05-08  Bruno Haible  <bruno@clisp.org>
24338
24339         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
24340         instead of 'max'.
24341
24342 2009-05-08  Simon Josefsson  <simon@josefsson.org>
24343
24344         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
24345         sockaddr_storage test.
24346
24347 2009-05-07  Simon Josefsson  <simon@josefsson.org>
24348
24349         * modules/sys_socket (Makefile.am): Substitute
24350         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
24351         * m4/sys_socket_h.m4: Check for sockaddr_storage.
24352         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
24353         * tests/test-sys_socket.c: Check sockaddr_storage.
24354
24355 2009-05-08  Bruno Haible  <bruno@clisp.org>
24356
24357         New module 'alignof'.
24358         * lib/alignof.h: New file.
24359         * modules/alignof: New file.
24360
24361 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
24362             Bruno Haible  <bruno@clisp.org>
24363
24364         Fix test-file-has-acl on FreeBSD.
24365         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
24366         mask is implicitly added.
24367         * tests/test-file-has-acl.c: Include <signal.h>.
24368         (main): Terminate the test after 5 seconds.
24369         * modules/acl-tests (configure.ac): Check for alarm function.
24370
24371 2009-05-04  Bruno Haible  <bruno@clisp.org>
24372
24373         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
24374         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
24375         * modules/errno (configure.ac): Drop AC_REQUIRE.
24376         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
24377         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
24378
24379 2009-05-04  Simon Josefsson  <simon@josefsson.org>
24380
24381         * modules/glob-tests: New module.
24382         * tests/test-glob.c: Add.
24383
24384 2009-05-04  Simon Josefsson  <simon@josefsson.org>
24385
24386         * modules/fnmatch-tests: New module.
24387         * tests/test-fnmatch.c: Add.
24388
24389 2009-05-04  Eric Blake  <ebb9@byu.net>
24390
24391         maint: make the new no-submodule-changes rule VPATH-safe
24392         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
24393
24394 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
24395             Bruno Haible  <bruno@clisp.org>
24396
24397         acl: Fix infinite loop on FreeBSD.
24398         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
24399         of return value from acl_get_entry.
24400         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
24401         Likewise.
24402
24403 2009-05-03  Bruno Haible  <bruno@clisp.org>
24404
24405         * lib/acl-internal.h (acl_entries): Clarify return value.
24406         * lib/acl_entries.c (acl_entries): Likewise.
24407
24408 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
24409
24410         Bug fix in acl module.
24411         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
24412
24413 2009-05-03  Bruno Haible  <bruno@clisp.org>
24414
24415         Create gperf-generated file in the source dir, not in the build dir.
24416         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
24417         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
24418         * modules/unicase/locale-language (unicase/locale-languages.h):
24419         Likewise.
24420         * modules/unicase/special-casing (unicase/special-casing-table.h):
24421         Likewise.
24422         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
24423         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
24424         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
24425         Reported by Ralf Wildenhues.
24426
24427 2009-05-03  Bruno Haible  <bruno@clisp.org>
24428
24429         * modules/fnmatch (Description, configure.ac): Taken from
24430         fnmatch-posix.
24431         * modules/fnmatch-posix: Turn into a symbolic reference to the
24432         'fnmatch' module, and deprecate.
24433         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
24434
24435 2009-05-03  Bruno Haible  <bruno@clisp.org>
24436
24437         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
24438         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
24439         Reported by Ralf Wildenhues.
24440
24441 2009-05-04  Simon Josefsson  <simon@josefsson.org>
24442
24443         * m4/fnmatch.m4: Fix fnmatch re-define.
24444
24445 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
24446
24447         priv-set: new module and tests; adapt write-any-file
24448         * lib/priv-set.c: New file.
24449         * lib/priv-set.h: New file.
24450         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
24451         * lib/write-any-file.c: Simplify by using priv-set module.
24452         * m4/priv-set.m4: New file.
24453         * modules/priv-set: New file.
24454         * modules/unlinkdir: Add dependency on priv-set module.
24455         * modules/write-any-file: Likewise.
24456
24457         Tests for module 'priv-set'.
24458         * modules/priv-set-tests: New file.
24459         * tests/test-priv-set.c: New file.
24460
24461 2009-05-03  Jim Meyering  <meyering@redhat.com>
24462             Bruno Haible  <bruno@clisp.org>
24463
24464         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
24465         use the converted UTF-8 variant of the name instead.
24466
24467 2009-05-03  Jim Meyering  <meyering@redhat.com>
24468
24469         tests: tighten some getdate tests
24470         * tests/test-getdate.c (main): Tighten tests: require equality,
24471         not just greater than.  Set TZ envvar to UTC0.
24472
24473 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
24474
24475         getdate: correctly interpret "next monday" when run on a Monday
24476         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
24477         that e.g., "next tues" (when run on a tuesday) results in a date
24478         that is one week in the future, and not today's date.
24479         I.e., add a week when the wday is the same as the current one.
24480         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
24481         and earlier by Martin Bernreuther and Jan Minář.
24482         * tests/test-getdate.c (main): Check that "next DAY" is always in
24483         the future and that "last DAY" is always in the past.
24484
24485 2009-05-02  Jim Meyering  <meyering@redhat.com>
24486
24487         build: ensure that a release build fails when a submodule is unclean
24488         * top/maint.mk (no-submodule-changes): New rule.
24489         (alpha beta major): Depend on it.
24490
24491 2009-05-02  Bruno Haible  <bruno@clisp.org>
24492
24493         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
24494         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
24495         shell variable gl_fnmatch_required to detect which variant is
24496         requested.
24497         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
24498         gl_FUNC_FNMATCH_POSIX.
24499         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
24500         exclude fnmatch-posix.
24501
24502 2009-05-02  Bruno Haible  <bruno@clisp.org>
24503
24504         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
24505         * modules/mbsrtowcs (License): Change to LGPLv2+.
24506         * modules/strnlen1 (License): Likewise.
24507         Reported by Simon Josefsson.
24508
24509 2009-05-02  Bruno Haible  <bruno@clisp.org>
24510
24511         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
24512         "cross".
24513         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
24514         gnulib-tool was called with option --source-base=lib.
24515
24516 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24517
24518         Use automake *-local hooks without commands, for extensibility.
24519         * modules/localcharset (Makefile.am): Rename install-exec-local
24520         rule to install-exec-localcharset, and make it a prerequisite of
24521         install-exec-local.  Likewise, rename the uninstall-local rule to
24522         uninstall-localcharset, and make it a prerequisite of the former.
24523
24524 2009-05-01  Bruno Haible  <bruno@clisp.org>
24525
24526         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
24527         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
24528         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
24529         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
24530         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
24531         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
24532         m4/locale-zh.m4, m4/codeset.m4.
24533
24534         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
24535         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
24536         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
24537         m4/locale-zh.m4.
24538
24539         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
24540         REPLACE_WCRTOMB if mbstate_t must be replaced.
24541         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
24542         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
24543
24544 2009-05-01  Bruno Haible  <bruno@clisp.org>
24545
24546         Avoid compiler warnings when redefining macros defined by <libintl.h>.
24547         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
24548         dngettext, dcngettext, textdomain, bindtextdomain,
24549         bind_textdomain_codeset): Undefine before redefining.
24550
24551 2009-04-30  Bruno Haible  <bruno@clisp.org>
24552
24553         Fix bug introduced on 2009-04-25.
24554         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
24555         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
24556         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
24557         is defined.
24558         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
24559         is defined.
24560         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
24561         is defined.
24562         Reported by Elbert_Pol <elbert.pol@gmail.com>.
24563
24564 2009-04-28  Bruno Haible  <bruno@clisp.org>
24565
24566         Comment tweaks.
24567         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
24568         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
24569         * lib/unicase.h (u*_casexfrm): Likewise.
24570         Reported by Paolo Bonzini.
24571
24572 2009-04-28  Bruno Haible  <bruno@clisp.org>
24573
24574         Fix a compilation error.
24575         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
24576         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
24577         Reported by Jim Meyering.
24578
24579 2009-04-27  Bruno Haible  <bruno@clisp.org>
24580
24581         New module 'libunistring'.
24582         * modules/libunistring: New file.
24583         * m4/libunistring.m4: New file.
24584         * MODULES.html.sh (Unicode string functions): Add it.
24585
24586 2009-04-27  Eric Blake  <ebb9@byu.net>
24587
24588         maint.mk: allow package-specific header to provide <config.h>
24589         * top/maint.mk (sc_require_config_h): New variable.
24590         (sc_require_config_h, sc_require_config_h_first): Use it.
24591
24592 2009-04-27  Simon Josefsson  <simon@josefsson.org>
24593
24594         * top/maint.mk (sc_avoid_if_before_free): Except
24595         useless-if-before-free script.
24596
24597 2009-04-27  Eric Blake  <ebb9@byu.net>
24598
24599         maintainer-makefile: depend on all required helper scripts
24600         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
24601         useless-if-before-free.
24602         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
24603         version, rather than assuming gnulib checkout is available.
24604         Reported by Simen Josefsson.
24605
24606 2009-04-26  Bruno Haible  <bruno@clisp.org>
24607
24608         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
24609         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
24610         "../" or "..".
24611
24612 2009-04-26  Bruno Haible  <bruno@clisp.org>
24613
24614         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
24615         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
24616         AC_LIB_HAVE_LINKFLAGS.
24617
24618 2009-04-26  Bruno Haible  <bruno@clisp.org>
24619
24620         Simplify calling convention of u*_conv_from_encoding.
24621         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
24622         u32_conv_from_encoding): Expect a resultbuf argument and return the
24623         result directly as a pointer.
24624         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
24625         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
24626         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
24627         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
24628         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
24629         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
24630         Update.
24631         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
24632         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
24633         * lib/vasnprintf.c (VASNPRINTF): Update.
24634         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
24635         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
24636         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
24637         * NEWS: Mention the change.
24638
24639 2009-04-26  Bruno Haible  <bruno@clisp.org>
24640
24641         Simplify calling convention of u*_conv_to_encoding.
24642         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
24643         u32_conv_to_encoding): Expect a resultbuf argument and return the
24644         result directly as a pointer.
24645         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
24646         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
24647         freeing scaled_offsets if mem_iconveha failed.
24648         * lib/unicase/u-casexfrm.h (FUNC): Update.
24649         * lib/uninorm/u-normxfrm.h (FUNC): Update.
24650         * lib/vasnprintf.c (VASNPRINTF): Update.
24651         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
24652         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
24653         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
24654         * NEWS: Mention the change.
24655
24656 2009-04-26  Bruno Haible  <bruno@clisp.org>
24657
24658         Avoid test failures on AIX and OSF/1.
24659         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
24660         malloc(0).
24661         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
24662         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
24663         Likewise.
24664         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
24665         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
24666         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
24667         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
24668         * doc/posix-functions/malloc.texi: Document the portability problem
24669         related to malloc(0).
24670
24671 2009-04-26  Bruno Haible  <bruno@clisp.org>
24672
24673         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
24674         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
24675         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
24676
24677 2009-04-25  Bruno Haible  <bruno@clisp.org>
24678
24679         Avoid link error when creating a namespace clean library.
24680         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
24681         as macro with arguments if already defined as an alias.
24682         * lib/signbitf.c (gl_signbitf): Don't undefine.
24683         * lib/signbitd.c (gl_signbitd): Don't undefine.
24684         * lib/signbitl.c (gl_signbitl): Don't undefine.
24685
24686 2009-04-25  Jim Meyering  <meyering@redhat.com>
24687
24688         vc-list-files: fix another quoting bug
24689         * build-aux/vc-list-files: Avoid sed backslash expansion
24690         of pathological directory names.
24691
24692 2009-04-25  Eric Blake  <ebb9@byu.net>
24693
24694         vc-list-files: fix shell quoting error
24695         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
24696         timestamp.
24697
24698 2009-04-25  Jim Meyering  <meyering@redhat.com>
24699
24700         vc-list-files: restore lost functionality with subdir argument
24701         * build-aux/vc-list-files: When given a non-"." sub-directory
24702         argument, substitute the $dir/ prefix back onto each resulting name.
24703         Otherwise, coreutils' root_tests check would fail.
24704
24705 2009-04-24  Eric Blake  <ebb9@byu.net>
24706
24707         vc-list-files: ignore git symlinks
24708         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
24709         than ls-files, to ignore git symlinks.
24710
24711         maint.mk: import improvements from m4
24712         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
24713         (move_if_change): Delete unused macro.
24714         (news-date-check, vc-diff-check): Support VPATH builds.
24715         (announcement): Likewise.  Split --bootstrap-tools list...
24716         (boostrap-tools): ...into separate list, which can be overridden
24717         in cfg.mk.
24718         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
24719         requiring dependency on useless-if-before-free module.
24720         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
24721         Support VPATH builds.
24722
24723 2009-04-24  Jim Meyering  <meyering@redhat.com>
24724
24725         maint.mk: remove coreutils-specific rules and variables
24726         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
24727         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
24728         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
24729
24730         maint.mk: remove obsolete rule
24731         * top/maint.mk (rel-check): Remove rule.
24732         (WGET, WGETFLAGS): Remove now-unused variables.
24733
24734 2009-04-24  Simon Josefsson  <simon@josefsson.org>
24735
24736         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
24737         consistency.
24738
24739         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
24740         '$(PATH_SEPARATOR)' instead of ':'.
24741
24742 2009-04-24  Simon Josefsson  <simon@josefsson.org>
24743
24744         * lib/getopt1.c (main): Use 'const' for static array.
24745
24746 2009-04-24  Simon Josefsson  <simon@josefsson.org>
24747
24748         * top/maint.mk: Sync with coreutils.
24749         * NEWS: Explain incompatibilities.
24750
24751 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24752             Bruno Haible  <bruno@clisp.org>
24753
24754         Fix cross-compilation results.
24755         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
24756         statement, as third argument of AC_TRY_RUN.
24757         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
24758         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
24759         Likewise.
24760         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24761         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
24762         Likewise.
24763         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
24764         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
24765         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
24766
24767 2009-04-20  Bruno Haible  <bruno@clisp.org>
24768
24769         Avoid test failure on mingw.
24770         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
24771
24772 2009-04-20  Bruno Haible  <bruno@clisp.org>
24773
24774         Avoid compilation error on mingw.
24775         * modules/localename-tests (Depends-on): Add locale.
24776
24777 2009-04-19  Bruno Haible  <bruno@clisp.org>
24778
24779         Support for building a shared library on Windows platforms.
24780         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
24781         (main): Test the presence of UNINORM_NFC here.
24782         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
24783         (main): Test the presence of UNINORM_NFD here.
24784         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
24785         (main): Test the presence of UNINORM_NFKC here.
24786         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
24787         (main): Test the presence of UNINORM_NFKD here.
24788
24789 2009-04-19  Bruno Haible  <bruno@clisp.org>
24790
24791         Avoid a compiler warning.
24792         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
24793         Change type of variable 'sequence'.
24794
24795 2009-04-19  Bruno Haible  <bruno@clisp.org>
24796
24797         * modules/configmake (Makefile.am): When the contents of configmake.h
24798         does not change, arrange to preserve its modification time.
24799
24800 2009-04-17  Simon Josefsson  <simon@josefsson.org>
24801
24802         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
24803         gettext domain.
24804
24805 2009-04-16  Jim Meyering  <meyering@redhat.com>
24806
24807         useless-if-before-free: improve conversion code
24808         * build-aux/useless-if-before-free: Adjust code-in-comment to match
24809         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
24810
24811 2009-04-14  Bruno Haible  <bruno@clisp.org>
24812
24813         * modules/fcntl (Depends-on): Add extensions.
24814         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
24815
24816 2009-04-12  Ben Pfaff  <blp@gnu.org>
24817
24818         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
24819         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
24820
24821 2009-03-20  Ben Pfaff  <blp@gnu.org>
24822
24823         Make rename replace existing destinations on Windows.
24824         * m4/rename.m4: Add test for Mingw.
24825         * lib/rename.c: Add rename replacement that uses MoveFileEx with
24826         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
24827         * doc/posix-functions/rename.texi: Document.
24828
24829 2009-04-10  Bruno Haible  <bruno@clisp.org>
24830
24831         New include file "iconveh.h".
24832         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
24833         * lib/striconveh.h: Include it.
24834         (enum iconv_ilseq_handler): Remove definition.
24835         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
24836         striconveh.h.
24837         * lib/striconveha.c: Include striconveh.h.
24838         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
24839         * modules/striconveh (Files): Add lib/iconveh.h.
24840         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
24841         lib/striconveh.h.
24842
24843 2009-04-10  Bruno Haible  <bruno@clisp.org>
24844
24845         * lib/uniconv.h: Update comment.
24846
24847 2009-04-10  Bruno Haible  <bruno@clisp.org>
24848
24849         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
24850         always.
24851         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
24852         * lib/unistr/u16-mbtouc-aux.c: Likewise.
24853         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
24854         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
24855         "unistring-notinline.h", so that the function gets defined always.
24856         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
24857         * lib/unistr/u8-uctomb.c: Likewise.
24858         * lib/unistr/u16-mbtouc.c: Likewise.
24859         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
24860         * lib/unistr/u16-uctomb.c: Likewise.
24861         * lib/unistr/u32-mbtouc.c: Likewise.
24862         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
24863         * lib/unistr/u32-uctomb.c: Likewise.
24864
24865 2009-04-10  Bruno Haible  <bruno@clisp.org>
24866
24867         Mark 'utime' obsolete.
24868         * modules/utime (Status, Notice): New sections.
24869         Suggested by Jim Meyering.
24870
24871         Fix cross-compile guess for utime test.
24872         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
24873         autoconf.
24874         * doc/posix-functions/utime.texi: Give more precisions.
24875         Reported by Jan <ipif@ymail.com>.
24876
24877 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
24878
24879         filevercmp: correct today's change
24880         * lib/filevercmp.c: Also handle coreutils' test inputs.
24881         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
24882
24883         Fix regression in 'filevercmp' module. Thanks Sven Joachim
24884         for reporting it.
24885         * lib/filevercmp.c: Special handle for "", "." and "..".
24886         * tests/test-filevercmp.c: Enlarge the set suite.
24887
24888 2009-04-07  Jim Meyering  <meyering@redhat.com>
24889
24890         useless-if-before-free: show how to remove braced useless free, too
24891         * build-aux/useless-if-before-free: still only in a comment, though.
24892
24893 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
24894
24895         maint.mk: import changes to syntax-check macros from coreutils
24896         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
24897         Use them in the relevant macros.
24898
24899 2009-04-06  Bruno Haible  <bruno@clisp.org>
24900
24901         Fix unportable use of bit-fields.
24902         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
24903         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
24904         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
24905
24906 2009-04-06  Bruno Haible  <bruno@clisp.org>
24907
24908         Avoid test failures on AIX and OSF/1.
24909         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
24910         that malloc(0) = NULL.
24911         * tests/unicase/test-u8-tolower.c (check): Likewise.
24912         * tests/unicase/test-u8-totitle.c (check): Likewise.
24913         * tests/unicase/test-u8-toupper.c (check): Likewise.
24914         * tests/unicase/test-u16-casefold.c (check): Likewise.
24915         * tests/unicase/test-u16-tolower.c (check): Likewise.
24916         * tests/unicase/test-u16-totitle.c (check): Likewise.
24917         * tests/unicase/test-u16-toupper.c (check): Likewise.
24918         * tests/unicase/test-u32-casefold.c (check): Likewise.
24919         * tests/unicase/test-u32-tolower.c (check): Likewise.
24920         * tests/unicase/test-u32-totitle.c (check): Likewise.
24921         * tests/unicase/test-u32-toupper.c (check): Likewise.
24922         * tests/uninorm/test-u8-nfc.c (check): Likewise.
24923         * tests/uninorm/test-u8-nfd.c (check): Likewise.
24924         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
24925         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
24926         * tests/uninorm/test-u16-nfc.c (check): Likewise.
24927         * tests/uninorm/test-u16-nfd.c (check): Likewise.
24928         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
24929         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
24930         * tests/uninorm/test-u32-nfc.c (check): Likewise.
24931         * tests/uninorm/test-u32-nfd.c (check): Likewise.
24932         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
24933         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
24934
24935 2009-04-05  Bruno Haible  <bruno@clisp.org>
24936
24937         Work around an autoconf limitation.
24938         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
24939         comment line if it would be longer than 3 KB.
24940
24941 2009-04-05  Bruno Haible  <bruno@clisp.org>
24942
24943         Avoid test failure with libiconv-1.13.
24944         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
24945         of the expected test results.
24946
24947 2009-04-05  Bruno Haible  <bruno@clisp.org>
24948
24949         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
24950         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
24951         that it should be installed.
24952
24953 2009-04-05  Bruno Haible  <bruno@clisp.org>
24954
24955         * gnulib-tool: New option --copy-file.
24956         (func_usage): Document it.
24957         (func_dest_tmpfilename): Moved out of func_import.
24958         (func_add_file, func_update_file): New functions, extracted from
24959         func_import.
24960         (func_import): Update.
24961
24962 2009-04-05  Karl Berry  <karl@gnu.org>
24963
24964         * README: prominently mention gnulib-tool.
24965         Rearrange sections so getting the code is near the top.
24966
24967 2009-04-05  Bruno Haible  <bruno@clisp.org>
24968
24969         * lib/unicase.h: Mention u*_cmp2.
24970         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
24971         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
24972         * lib/unicase/ulc-casecmp.c: Likewise.
24973         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
24974         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
24975         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
24976         unistr/u8-cmp.
24977         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
24978         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
24979         unistr/u16-cmp.
24980         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
24981         unistr/u32-cmp.
24982
24983         * lib/uninorm.h: Mention u*_cmp2.
24984         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
24985         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
24986         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
24987         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
24988         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
24989         unistr/u8-cmp.
24990         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
24991         unistr/u16-cmp.
24992         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
24993         unistr/u32-cmp.
24994
24995         New module 'unistr/u32-cmp2'.
24996         * lib/unistr/u32-cmp2.c: New file.
24997         * modules/unistr/u32-cmp2: New file.
24998
24999         New module 'unistr/u16-cmp2'.
25000         * lib/unistr/u16-cmp2.c: New file.
25001         * modules/unistr/u16-cmp2: New file.
25002
25003         New module 'unistr/u8-cmp2'.
25004         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
25005         * lib/unistr/u8-cmp2.c: New file.
25006         * lib/unistr/u-cmp2.h: New file.
25007         * modules/unistr/u8-cmp2: New file.
25008
25009 2009-04-05  Bruno Haible  <bruno@clisp.org>
25010
25011         * lib/unictype.h (uc_property_is_valid): New macro.
25012         * tests/unictype/test-pr_byname.c (main): Use it.
25013
25014         * lib/unistr.h: Doc fixes.
25015         * lib/uniconv.h: Doc fixes.
25016         * lib/unictype.h: Doc fixes.
25017
25018 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
25019
25020         Port coreutils 7.2 to Solaris 8.
25021
25022         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
25023         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
25024         for Solaris 8.  This is a bit of a hack, as it means it's the
25025         caller's responsibility to add -lnsl if needed, but most likely it
25026         won't be needed since only getaddrinfo uses this and getaddrinfo
25027         isn't needed on Solaris 8.
25028
25029         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
25030         problem to Solaris 8 encountered with coreutils 7.2, which
25031         resulted in a message "fnmatch.c:292: warning: passing argument 4
25032         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
25033         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
25034
25035 2009-04-03  Simon Josefsson  <simon@josefsson.org>
25036
25037         * m4/ld-version-script.m4: Add FIXME comment.
25038
25039 2009-04-02  Simon Josefsson  <simon@josefsson.org>
25040
25041         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
25042         SOVERSION variable.
25043
25044 2009-04-02  Bruno Haible  <bruno@clisp.org>
25045
25046         * Makefile (info, html, dvi, pdf): Combine the rules.
25047         Suggested by Jim Meyering.
25048
25049 2009-04-01  Bruno Haible  <bruno@clisp.org>
25050
25051         * Makefile (info, html, dvi, pdf): New targets.
25052         Reported by Reuben Thomas <rrt@sc3d.org>.
25053
25054 2009-04-01  Bruno Haible  <bruno@clisp.org>
25055
25056         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
25057         can be put into PATH.
25058         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
25059
25060 2009-04-01  Bruno Haible  <bruno@clisp.org>
25061
25062         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
25063
25064 2009-04-01  Bruno Haible  <bruno@clisp.org>
25065
25066         Rename module 'visibility'.
25067         * modules/lib-symbol-visibility: Renamed from modules/visibility.
25068         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
25069         * doc/gnulib.texi: Update.
25070         * MODULES.html.sh (Misc): Update.
25071         * NEWS: Mention the change.
25072
25073 2009-04-01  Simon Josefsson  <simon@josefsson.org>
25074
25075         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
25076         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
25077         Eric Blake <ebb9@byu.net> for review.
25078         * MODULES.html.sh: Add lib-msvc-compat.
25079         * doc/gnulib.texi: Link to new section.
25080         * m4/ld-output-def.m4: New file.
25081         * doc/ld-output-def.texi: New file.
25082
25083 2009-04-01  Simon Josefsson  <simon@josefsson.org>
25084
25085         Rename ld-version-script to lib-symbol-versions.  Suggested by
25086         Bruno Haible <bruno@clisp.org>.
25087         * modules/ld-version-script: Renamed to lib-symbol-versions.
25088         * doc/ld-version-script.texi: Fix module name.
25089         * MODULES.html.sh: Add lib-symbol-versions.
25090
25091 2009-03-31  Simon Josefsson  <simon@josefsson.org>
25092
25093         * modules/u64-tests: New file.
25094         * tests/test-u64.c: New file.
25095
25096 2009-03-04  Simon Josefsson  <simon@josefsson.org>
25097
25098         * MODULES.html.sh: Mention u64.
25099         * modules/u64: New module.
25100         * modules/crypto/sha512: Depend on u64 module instead of providing
25101         u64.h.
25102
25103 2009-03-27  Eric Blake  <ebb9@byu.net>
25104
25105         test-strerror: make debugging EAI_SYSTEM easier
25106         * modules/getaddrinfo-tests (Depends-on): Add strerror.
25107         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
25108         failure was EAI_SYSTEM.
25109
25110 2009-03-25  Bruno Haible  <bruno@clisp.org>
25111
25112         Fix a problem with --enable-relocatable on Solaris 7.
25113         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
25114         since 2008-02-24.
25115
25116 2009-03-25  Eric Blake  <ebb9@byu.net>
25117
25118         test-sockets: avoid gcc warning
25119         * tests/test-sockets.c (main): Silence compiler warning.
25120
25121 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
25122
25123         New modules nproc, pthread, contributed by Glen Lenker.
25124
25125         * MODULES.html.sh: Add pthread, nproc.
25126         * lib/nproc.c: New file.
25127         * lib/nproc.h: New file.
25128         * lib/pthread.in.h: New file.
25129         * m4/pthread.m4: New file.
25130         * modules/nproc: New file.
25131         * modules/pthread: New file.
25132
25133 2009-03-24  Simon Josefsson  <simon@josefsson.org>
25134
25135         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
25136         New variable.
25137
25138 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
25139
25140         filevercmp: handle simple~ and numbered.~3~ backup suffixes
25141         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
25142         * tests/test-filevercmp.c: Add tests for backup suffixes.
25143
25144 2009-03-24  Simon Josefsson  <simon@josefsson.org>
25145
25146         * modules/stdlib (Depends-on): Add stdint, needed when defining
25147         struct random_data on, for example, HP-UX 10.20.  Reported by
25148         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25149
25150 2009-03-24  Simon Josefsson  <simon@josefsson.org>
25151
25152         * lib/readline.c (readline): Call fflush on stdout after printing
25153         prompt.
25154
25155 2009-03-20  Bruno Haible  <bruno@clisp.org>
25156
25157         Remove dependency from 'close' module to -lws2_32 on native Windows.
25158         * lib/close-hook.h: New file.
25159         * lib/close-hook.c: New file.
25160         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
25161         w32sock.h.
25162         (_gl_close_fd_maybe_socket): Remove function.
25163         (rpl_close): Invoke execute_all_close_hooks instead of
25164         _gl_close_fd_maybe_socket.
25165         * lib/sockets.c: Include close-hook.h, w32sock.h.
25166         (close_fd_maybe_socket): New function, essentially from lib/close.c.
25167         (close_sockets_hook): New variable.
25168         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
25169         (gl_sockets_cleanup): Unregister it.
25170         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
25171         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
25172         * modules/close-hook: New file.
25173         * modules/close (Files): Remove lib/w32sock.h.
25174         (Depends-on): Add close-hook.
25175         (Link): Remove section.
25176         * modules/sockets (Files): Add lib/w32sock.h.
25177         (Depends-on): Add close-hook.
25178         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
25179         invocation.
25180         * NEWS: Mention that LIB_CLOSE is gone.
25181
25182 2009-03-23  Eric Blake  <ebb9@byu.net>
25183
25184         signal-tests: test previous patch
25185         * tests/test-signal.c: New file.
25186         * modules/signal-tests: Likewise.
25187
25188         signal.h: always support 'volatile sig_atomic_t'
25189         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
25190         (gl_SIGNAL_H_DEFAULTS): Add a default.
25191         * modules/signal (Makefile.am): Substitute if needed.
25192         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
25193         users can blindly add volatile.
25194         * doc/posix-headers/signal.texi (signal.h): Document it.
25195         Reported by Matthew Woehlke.
25196
25197 2009-03-23  Jim Meyering  <meyering@redhat.com>
25198
25199         pathmax: PATH_MAX: use pathconf only when available
25200         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
25201         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
25202         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
25203         This avoids a link failure in a PSP cross-compilation environment
25204         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
25205
25206         * lib/vasnprintf.c (divide): Fix typo in comment.
25207
25208 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25209
25210         * gnulib-tool (func_filter_filelist): Fix comment.
25211
25212 2009-03-20  Bruno Haible  <bruno@clisp.org>
25213
25214         Make sockets.h self-contained.
25215         * lib/sockets.c: Include sockets.h first.
25216         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
25217
25218 2009-03-19  Eric Blake  <ebb9@byu.net>
25219
25220         doc: mention more functions added in cygwin 1.7.0
25221         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
25222         addition.
25223         * doc/posix-functions/log2f.texi: Likewise.
25224
25225 2009-03-19  Jim Meyering  <meyering@redhat.com>
25226
25227         fsusage: avoid syntax error due to statement-before-declaration
25228         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
25229         after all declarations.  Reported by Matthew Woehlke in
25230         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
25231
25232 2009-03-18  Eric Blake  <ebb9@byu.net>
25233
25234         build-aux/compile: sync from automake
25235         * build-aux/compile: New file, from automake.
25236         * config/srclist.txt: Mention build-aux/compile.
25237
25238 2009-03-17  Bruno Haible  <bruno@clisp.org>
25239
25240         * lib/git-merge-changelog.c: Fix typo in comment.
25241         Reported by Reuben Thomas <rrt@sc3d.org>.
25242
25243 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
25244
25245         * m4/regex.m4: update and improve help for
25246         --without-included-regex.
25247
25248 2009-03-17  Simon Josefsson  <simon@josefsson.org>
25249
25250         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
25251         failure on missing include files.
25252
25253 2009-03-17  Eric Blake  <ebb9@byu.net>
25254
25255         doc: mention more functions added in cygwin 1.7.0
25256         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
25257         addition.
25258         * doc/posix-functions/fwscanf.texi: Likewise.
25259         * doc/posix-functions/swprintf.texi: Likewise.
25260         * doc/posix-functions/swscanf.texi: Likewise.
25261         * doc/posix-functions/vfwprintf.texi: Likewise.
25262         * doc/posix-functions/vfwscanf.texi: Likewise.
25263         * doc/posix-functions/vswprintf.texi: Likewise.
25264         * doc/posix-functions/vswscanf.texi: Likewise.
25265         * doc/posix-functions/vwprintf.texi: Likewise.
25266         * doc/posix-functions/vwscanf.texi: Likewise.
25267         * doc/posix-functions/wcscasecmp.texi: Likewise.
25268         * doc/posix-functions/wcsdup.texi: Likewise.
25269         * doc/posix-functions/wcsftime.texi: Likewise.
25270         * doc/posix-functions/wcsncasecmp.texi: Likewise.
25271         * doc/posix-functions/wprintf.texi: Likewise.
25272         * doc/posix-functions/wscanf.texi: Likewise.
25273         * doc/glibc-functions/gethostbyname2.texi: Likewise.
25274
25275 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25276
25277         maint.mk: really add $(AM_MAKEFLAGS)
25278         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
25279         was inadvertently omitted in the last commit.
25280         Spotted by Bruno Haible.
25281
25282         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
25283         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
25284         $(AM_MAKEFLAGS)' rather than plain `make'.
25285
25286         gnulib-tool: execute $MAKE not make
25287         * gnulib-tool: Default $MAKE to 'make'.
25288         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
25289         than make.  Initialize $MAKE in the do-autobuild script.
25290
25291         gnulib-tool: use $MAKE not make in generated files
25292         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
25293         make, in generated files.  Initialize $MAKE in the do-autobuild
25294         script.
25295
25296         * top/GNUmakefile (_have-git-version-gen): Fix typo.
25297
25298         GNUmakefile: disable parallelism only for multiple, recursive targets
25299         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
25300         additions in the Makefile.
25301         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
25302         by Automake.
25303         (.NOTPARALLEL): Only disable parallel builds if multiple targets
25304         are listed on the command line and at least one of them is
25305         listed in $(ALL_RECURSIVE_TARGETS).
25306
25307 2009-03-14  Bruno Haible  <bruno@clisp.org>
25308
25309         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
25310         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
25311         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
25312         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
25313         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
25314         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
25315         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
25316         unistr/u8-uctomb.
25317         * modules/unistr/u8-strchr (Depends-on): Likewise.
25318         * modules/unistr/u8-strrchr (Depends-on): Likewise.
25319         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
25320         unistr/u16-uctomb.
25321         * modules/unistr/u16-strchr (Depends-on): Likewise.
25322         * modules/unistr/u16-strrchr (Depends-on): Likewise.
25323
25324 2009-03-12  Bruno Haible  <bruno@clisp.org>
25325
25326         Work around select() bug on Interix 3.5.
25327         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
25328         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
25329         * m4/select.m4: New file.
25330         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
25331         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
25332         * modules/select (Files): Add m4/select.m4.
25333         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
25334         * modules/nanosleep (Depends-on): Add select.
25335         * modules/poll (Depends-on): Likewise.
25336         * doc/posix-functions/select.texi: Mention the Interix bug.
25337         Reported by Markus Duft <mduft@gentoo.org>.
25338
25339         * lib/select.c: Renamed from lib/winsock-select.c.
25340         * modules/select (Files): Add lib/select.c, remove
25341         lib/winsock-select.c.
25342         (configure.ac): Update.
25343
25344 2009-03-12  Jim Meyering  <meyering@redhat.com>
25345
25346         avoid gcc warnings about unused macro definitions
25347         * lib/readtokens.c (STREQ): Remove unused definition.
25348         * lib/xmalloc.c (SIZE_MAX): Likewise.
25349         * lib/openat-die.c (N_): Likewise.
25350         * lib/mountlist.c (SIZE_MAX): Remove definition.
25351         Instead, include <stdint.h>.
25352         * lib/readutmp.c: Likewise.
25353         * modules/readutmp (Depends-on): Add stdint.
25354         * modules/mountlist (Depends-on): Add stdint.
25355         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
25356
25357 2009-03-10  Bruno Haible  <bruno@clisp.org>
25358
25359         Tests for module 'mbmemcasecoll'.
25360         * modules/mbmemcasecoll-tests: New file.
25361         * tests/test-mbmemcasecoll1.sh: New file.
25362         * tests/test-mbmemcasecoll2.sh: New file.
25363         * tests/test-mbmemcasecoll3.sh: New file.
25364         * tests/test-mbmemcasecoll.c: New file.
25365
25366         New module 'mbmemcasecoll'.
25367         * lib/mbmemcasecoll.h: New file.
25368         * lib/mbmemcasecoll.c: New file.
25369         * modules/mbmemcasecoll: New file.
25370
25371         * tests/test-mbmemcasecmp.h: New file, extracted from
25372         tests/test-mbmemcasecmp.c.
25373         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
25374         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
25375         (main): Update.
25376         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
25377
25378 2009-03-09  Bruno Haible  <bruno@clisp.org>
25379
25380         Tests for module 'mbmemcasecmp'.
25381         * modules/mbmemcasecmp-tests: New file.
25382         * tests/test-mbmemcasecmp1.sh: New file.
25383         * tests/test-mbmemcasecmp2.sh: New file.
25384         * tests/test-mbmemcasecmp3.sh: New file.
25385         * tests/test-mbmemcasecmp.c: New file.
25386
25387         New module 'mbmemcasecmp'.
25388         * lib/mbmemcasecmp.h: New file.
25389         * lib/mbmemcasecmp.c: New file.
25390         * modules/mbmemcasecmp: New file.
25391
25392 2009-03-09  Bruno Haible  <bruno@clisp.org>
25393
25394         Tests for module 'unicase/ulc-casecoll'.
25395         * modules/unicase/ulc-casecoll-tests: New file.
25396         * tests/unicase/test-ulc-casecoll1.sh: New file.
25397         * tests/unicase/test-ulc-casecoll2.sh: New file.
25398         * tests/unicase/test-ulc-casecoll.c: New file.
25399
25400         New module 'unicase/ulc-casecoll'.
25401         * lib/unicase.h (ulc_casecoll): New declaration.
25402         * lib/unicase/ulc-casecoll.c: New file.
25403         * modules/unicase/ulc-casecoll: New file.
25404
25405         New module 'unicase/ulc-casexfrm'.
25406         * lib/unicase.h (ulc_casexfrm): New declaration.
25407         * lib/unicase/ulc-casexfrm.c: New file.
25408         * modules/unicase/ulc-casexfrm: New file.
25409
25410 2009-03-09  Bruno Haible  <bruno@clisp.org>
25411
25412         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
25413         invocations.
25414
25415         * m4/mbscasecmp.m4: Remove file.
25416         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
25417         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
25418
25419         * m4/mbscasestr.m4: Remove file.
25420         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
25421         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
25422
25423         * m4/mbschr.m4: Remove file.
25424         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
25425         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
25426
25427         * m4/mbscspn.m4: Remove file.
25428         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
25429         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
25430
25431         * m4/mbslen.m4: Remove file.
25432         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
25433         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
25434
25435         * m4/mbsncasecmp.m4: Remove file.
25436         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
25437         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
25438
25439         * m4/mbsnlen.m4: Remove file.
25440         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
25441         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
25442
25443         * m4/mbspbrk.m4: Remove file.
25444         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
25445         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
25446
25447         * m4/mbspcasecmp.m4: Remove file.
25448         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
25449         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
25450
25451         * m4/mbsrchr.m4: Remove file.
25452         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
25453         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
25454
25455         * m4/mbssep.m4: Remove file.
25456         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
25457         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
25458
25459         * m4/mbsspn.m4: Remove file.
25460         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
25461         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
25462
25463         * m4/mbsstr.m4: Remove file.
25464         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
25465         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
25466
25467         * m4/mbstok_r.m4: Remove file.
25468         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
25469         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
25470
25471         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
25472
25473         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
25474         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
25475
25476         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
25477
25478 2009-03-08  Bruno Haible  <bruno@clisp.org>
25479
25480         Tests for module 'unicase/ulc-casecmp'.
25481         * modules/unicase/ulc-casecmp-tests: New file.
25482         * tests/unicase/test-ulc-casecmp1.sh: New file.
25483         * tests/unicase/test-ulc-casecmp2.sh: New file.
25484         * tests/unicase/test-ulc-casecmp.c: New file.
25485
25486         New module 'unicase/ulc-casecmp'.
25487         * lib/unicase.h (ulc_casecmp): New declaration.
25488         * lib/unicase/ulc-casecmp.c: New file.
25489         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
25490         'const SRC_UNIT *'.
25491         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
25492         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
25493         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
25494         * modules/unicase/ulc-casecmp: New file.
25495
25496         Tests for module 'unicase/u32-is-cased'.
25497         * modules/unicase/u32-is-cased-tests: New file.
25498         * tests/unicase/test-u32-is-cased.c: New file.
25499
25500         Tests for module 'unicase/u16-is-cased'.
25501         * modules/unicase/u16-is-cased-tests: New file.
25502         * tests/unicase/test-u16-is-cased.c: New file.
25503
25504         Tests for module 'unicase/u8-is-cased'.
25505         * modules/unicase/u8-is-cased-tests: New file.
25506         * tests/unicase/test-u8-is-cased.c: New file.
25507         * tests/unicase/test-is-cased.h: New file.
25508
25509         New module 'unicase/u32-is-cased'.
25510         * lib/unicase/u32-is-cased.c: New file.
25511         * modules/unicase/u32-is-cased: New file.
25512
25513         New module 'unicase/u16-is-cased'.
25514         * lib/unicase/u16-is-cased.c: New file.
25515         * modules/unicase/u16-is-cased: New file.
25516
25517         New module 'unicase/u8-is-cased'.
25518         * lib/unicase/u8-is-cased.c: New file.
25519         * lib/unicase/u-is-cased.h: New file.
25520         * modules/unicase/u8-is-cased: New file.
25521
25522         Tests for module 'unicase/u32-is-casefolded'.
25523         * modules/unicase/u32-is-casefolded-tests: New file.
25524         * tests/unicase/test-u32-is-casefolded.c: New file.
25525
25526         Tests for module 'unicase/u16-is-casefolded'.
25527         * modules/unicase/u16-is-casefolded-tests: New file.
25528         * tests/unicase/test-u16-is-casefolded.c: New file.
25529
25530         Tests for module 'unicase/u8-is-casefolded'.
25531         * modules/unicase/u8-is-casefolded-tests: New file.
25532         * tests/unicase/test-u8-is-casefolded.c: New file.
25533         * tests/unicase/test-is-casefolded.h: New file.
25534
25535         New module 'unicase/u32-is-casefolded'.
25536         * lib/unicase/u32-is-casefolded.c: New file.
25537         * modules/unicase/u32-is-casefolded: New file.
25538
25539         New module 'unicase/u16-is-casefolded'.
25540         * lib/unicase/u16-is-casefolded.c: New file.
25541         * modules/unicase/u16-is-casefolded: New file.
25542
25543         New module 'unicase/u8-is-casefolded'.
25544         * lib/unicase/u8-is-casefolded.c: New file.
25545         * modules/unicase/u8-is-casefolded: New file.
25546
25547         Tests for module 'unicase/u32-is-titlecase'.
25548         * modules/unicase/u32-is-titlecase-tests: New file.
25549         * tests/unicase/test-u32-is-titlecase.c: New file.
25550
25551         Tests for module 'unicase/u16-is-titlecase'.
25552         * modules/unicase/u16-is-titlecase-tests: New file.
25553         * tests/unicase/test-u16-is-titlecase.c: New file.
25554
25555         Tests for module 'unicase/u8-is-titlecase'.
25556         * modules/unicase/u8-is-titlecase-tests: New file.
25557         * tests/unicase/test-u8-is-titlecase.c: New file.
25558         * tests/unicase/test-is-titlecase.h: New file.
25559
25560         New module 'unicase/u32-is-titlecase'.
25561         * lib/unicase/u32-is-titlecase.c: New file.
25562         * modules/unicase/u32-is-titlecase: New file.
25563
25564         New module 'unicase/u16-is-titlecase'.
25565         * lib/unicase/u16-is-titlecase.c: New file.
25566         * modules/unicase/u16-is-titlecase: New file.
25567
25568         New module 'unicase/u8-is-titlecase'.
25569         * lib/unicase/u8-is-titlecase.c: New file.
25570         * modules/unicase/u8-is-titlecase: New file.
25571
25572         Tests for module 'unicase/u32-is-lowercase'.
25573         * modules/unicase/u32-is-lowercase-tests: New file.
25574         * tests/unicase/test-u32-is-lowercase.c: New file.
25575
25576         Tests for module 'unicase/u16-is-lowercase'.
25577         * modules/unicase/u16-is-lowercase-tests: New file.
25578         * tests/unicase/test-u16-is-lowercase.c: New file.
25579
25580         Tests for module 'unicase/u8-is-lowercase'.
25581         * modules/unicase/u8-is-lowercase-tests: New file.
25582         * tests/unicase/test-u8-is-lowercase.c: New file.
25583         * tests/unicase/test-is-lowercase.h: New file.
25584
25585         New module 'unicase/u32-is-lowercase'.
25586         * lib/unicase/u32-is-lowercase.c: New file.
25587         * modules/unicase/u32-is-lowercase: New file.
25588
25589         New module 'unicase/u16-is-lowercase'.
25590         * lib/unicase/u16-is-lowercase.c: New file.
25591         * modules/unicase/u16-is-lowercase: New file.
25592
25593         New module 'unicase/u8-is-lowercase'.
25594         * lib/unicase/u8-is-lowercase.c: New file.
25595         * modules/unicase/u8-is-lowercase: New file.
25596
25597         Tests for module 'unicase/u32-is-uppercase'.
25598         * modules/unicase/u32-is-uppercase-tests: New file.
25599         * tests/unicase/test-u32-is-uppercase.c: New file.
25600
25601         Tests for module 'unicase/u16-is-uppercase'.
25602         * modules/unicase/u16-is-uppercase-tests: New file.
25603         * tests/unicase/test-u16-is-uppercase.c: New file.
25604
25605         Tests for module 'unicase/u8-is-uppercase'.
25606         * modules/unicase/u8-is-uppercase-tests: New file.
25607         * tests/unicase/test-u8-is-uppercase.c: New file.
25608         * tests/unicase/test-is-uppercase.h: New file.
25609
25610         New module 'unicase/u32-is-uppercase'.
25611         * lib/unicase/u32-is-uppercase.c: New file.
25612         * modules/unicase/u32-is-uppercase: New file.
25613
25614         New module 'unicase/u16-is-uppercase'.
25615         * lib/unicase/u16-is-uppercase.c: New file.
25616         * modules/unicase/u16-is-uppercase: New file.
25617
25618         New module 'unicase/u8-is-uppercase'.
25619         * lib/unicase/u8-is-uppercase.c: New file.
25620         * modules/unicase/u8-is-uppercase: New file.
25621
25622         New module 'unicase/u32-is-invariant'.
25623         * lib/unicase/u32-is-invariant.c: New file.
25624         * modules/unicase/u32-is-invariant: New file.
25625
25626         New module 'unicase/u16-is-invariant'.
25627         * lib/unicase/u16-is-invariant.c: New file.
25628         * modules/unicase/u16-is-invariant: New file.
25629
25630         New module 'unicase/u8-is-invariant'.
25631         * lib/unicase/u8-is-invariant.c: New file.
25632         * lib/unicase/invariant.h: New file.
25633         * lib/unicase/u-is-invariant.h: New file.
25634         * modules/unicase/u8-is-invariant: New file.
25635
25636         Tests for module 'unicase/u32-casecoll'.
25637         * modules/unicase/u32-casecoll-tests: New file.
25638         * tests/unicase/test-u32-casecoll.c: New file.
25639
25640         Tests for module 'unicase/u16-casecoll'.
25641         * modules/unicase/u16-casecoll-tests: New file.
25642         * tests/unicase/test-u16-casecoll.c: New file.
25643
25644         Tests for module 'unicase/u8-casecoll'.
25645         * modules/unicase/u8-casecoll-tests: New file.
25646         * tests/unicase/test-u8-casecoll.c: New file.
25647
25648         New module 'unicase/u32-casecoll'.
25649         * lib/unicase/u32-casecoll.c: New file.
25650         * modules/unicase/u32-casecoll: New file.
25651
25652         New module 'unicase/u16-casecoll'.
25653         * lib/unicase/u16-casecoll.c: New file.
25654         * modules/unicase/u16-casecoll: New file.
25655
25656         New module 'unicase/u8-casecoll'.
25657         * lib/unicase/u8-casecoll.c: New file.
25658         * lib/unicase/u-casecoll.h: New file.
25659         * modules/unicase/u8-casecoll: New file.
25660
25661         New module 'unicase/u32-casexfrm'.
25662         * lib/unicase/u32-casexfrm.c: New file.
25663         * modules/unicase/u32-casexfrm: New file.
25664
25665         New module 'unicase/u16-casexfrm'.
25666         * lib/unicase/u16-casexfrm.c: New file.
25667         * modules/unicase/u16-casexfrm: New file.
25668
25669         New module 'unicase/u8-casexfrm'.
25670         * lib/unicase/u8-casexfrm.c: New file.
25671         * lib/unicase/u-casexfrm.h: New file.
25672         * modules/unicase/u8-casexfrm: New file.
25673
25674         Tests for module 'unicase/u32-casecmp'.
25675         * modules/unicase/u32-casecmp-tests: New file.
25676         * tests/unicase/test-u32-casecmp.c: New file.
25677
25678         Tests for module 'unicase/u16-casecmp'.
25679         * modules/unicase/u16-casecmp-tests: New file.
25680         * tests/unicase/test-u16-casecmp.c: New file.
25681
25682         Tests for module 'unicase/u8-casecmp'.
25683         * modules/unicase/u8-casecmp-tests: New file.
25684         * tests/unicase/test-u8-casecmp.c: New file.
25685         * tests/unicase/test-casecmp.h: New file.
25686
25687         New module 'unicase/u32-casecmp'.
25688         * lib/unicase/u32-casecmp.c: New file.
25689         * modules/unicase/u32-casecmp: New file.
25690
25691         New module 'unicase/u16-casecmp'.
25692         * lib/unicase/u16-casecmp.c: New file.
25693         * modules/unicase/u16-casecmp: New file.
25694
25695         New module 'unicase/u8-casecmp'.
25696         * lib/unicase/u8-casecmp.c: New file.
25697         * lib/unicase/u-casecmp.h: New file.
25698         * modules/unicase/u8-casecmp: New file.
25699
25700         Tests for module 'unicase/u32-casefold'.
25701         * modules/unicase/u32-casefold-tests: New file.
25702         * tests/unicase/test-u32-casefold.c: New file.
25703
25704         Tests for module 'unicase/u16-casefold'.
25705         * modules/unicase/u16-casefold-tests: New file.
25706         * tests/unicase/test-u16-casefold.c: New file.
25707
25708         Tests for module 'unicase/u8-casefold'.
25709         * modules/unicase/u8-casefold-tests: New file.
25710         * tests/unicase/test-u8-casefold.c: New file.
25711
25712         New module 'unicase/u32-casefold'.
25713         * lib/unicase/u32-casefold.c: New file.
25714         * modules/unicase/u32-casefold: New file.
25715
25716         New module 'unicase/u16-casefold'.
25717         * lib/unicase/u16-casefold.c: New file.
25718         * modules/unicase/u16-casefold: New file.
25719
25720         New module 'unicase/u8-casefold'.
25721         * lib/unicase/u8-casefold.c: New file.
25722         * lib/unicase/u-casefold.h: New file.
25723         * modules/unicase/u8-casefold: New file.
25724
25725         New module 'unicase/tocasefold'.
25726         * lib/unicase/casefold.h: New file.
25727         * lib/unicase/tocasefold.c: New file.
25728         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
25729         * modules/unicase/tocasefold: New file.
25730
25731         Tests for module 'unicase/u32-totitle'.
25732         * modules/unicase/u32-totitle-tests: New file.
25733         * tests/unicase/test-u32-totitle.c: New file.
25734
25735         Tests for module 'unicase/u16-totitle'.
25736         * modules/unicase/u16-totitle-tests: New file.
25737         * tests/unicase/test-u16-totitle.c: New file.
25738
25739         Tests for module 'unicase/u8-totitle'.
25740         * modules/unicase/u8-totitle-tests: New file.
25741         * tests/unicase/test-u8-totitle.c: New file.
25742
25743         New module 'unicase/u32-totitle'.
25744         * lib/unicase/u32-totitle.c: New file.
25745         * modules/unicase/u32-totitle: New file.
25746
25747         New module 'unicase/u16-totitle'.
25748         * lib/unicase/u16-totitle.c: New file.
25749         * modules/unicase/u16-totitle: New file.
25750
25751         New module 'unicase/u8-totitle'.
25752         * lib/unicase/u8-totitle.c: New file.
25753         * lib/unicase/u-totitle.h: New file.
25754         * modules/unicase/u8-totitle: New file.
25755
25756         Tests for module 'unicase/u32-tolower'.
25757         * modules/unicase/u32-tolower-tests: New file.
25758         * tests/unicase/test-u32-tolower.c: New file.
25759
25760         Tests for module 'unicase/u16-tolower'.
25761         * modules/unicase/u16-tolower-tests: New file.
25762         * tests/unicase/test-u16-tolower.c: New file.
25763
25764         Tests for module 'unicase/u8-tolower'.
25765         * modules/unicase/u8-tolower-tests: New file.
25766         * tests/unicase/test-u8-tolower.c: New file.
25767
25768         New module 'unicase/u32-tolower'.
25769         * lib/unicase/u32-tolower.c: New file.
25770         * modules/unicase/u32-tolower: New file.
25771
25772         New module 'unicase/u16-tolower'.
25773         * lib/unicase/u16-tolower.c: New file.
25774         * modules/unicase/u16-tolower: New file.
25775
25776         New module 'unicase/u8-tolower'.
25777         * lib/unicase/u8-tolower.c: New file.
25778         * modules/unicase/u8-tolower: New file.
25779
25780         Tests for module 'unicase/u32-toupper'.
25781         * modules/unicase/u32-toupper-tests: New file.
25782         * tests/unicase/test-u32-toupper.c: New file.
25783
25784         Tests for module 'unicase/u16-toupper'.
25785         * modules/unicase/u16-toupper-tests: New file.
25786         * tests/unicase/test-u16-toupper.c: New file.
25787
25788         Tests for module 'unicase/u8-toupper'.
25789         * modules/unicase/u8-toupper-tests: New file.
25790         * tests/unicase/test-u8-toupper.c: New file.
25791
25792         New module 'unicase/u32-toupper'.
25793         * lib/unicase/u32-toupper.c: New file.
25794         * modules/unicase/u32-toupper: New file.
25795
25796         New module 'unicase/u16-toupper'.
25797         * lib/unicase/u16-toupper.c: New file.
25798         * modules/unicase/u16-toupper: New file.
25799
25800         New module 'unicase/u8-toupper'.
25801         * lib/unicase/u8-toupper.c: New file.
25802         * modules/unicase/u8-toupper: New file.
25803
25804         New module 'unicase/u32-casemap'.
25805         * lib/unicase/u32-casemap.c: New file.
25806         * modules/unicase/u32-casemap: New file.
25807
25808         New module 'unicase/u16-casemap'.
25809         * lib/unicase/u16-casemap.c: New file.
25810         * modules/unicase/u16-casemap: New file.
25811
25812         New module 'unicase/u8-casemap'.
25813         * lib/unicase/unicasemap.h: New file.
25814         * lib/unicase/u8-casemap.c: New file.
25815         * lib/unicase/u-casemap.h: New file.
25816         * modules/unicase/u8-casemap: New file.
25817
25818         New module 'unicase/special-casing'.
25819         * lib/unicase/special-casing.h: New file.
25820         * lib/unicase/special-casing.c: New file.
25821         * lib/unicase/special-casing-table.gperf: New file, generated by
25822         gen-uni-tables.c.
25823         * modules/unicase/special-casing: New file.
25824
25825         Tests for module 'unicase/locale-language'.
25826         * modules/unicase/locale-language-tests: New file.
25827         * tests/unicase/test-locale-language.sh: New file.
25828         * tests/unicase/test-locale-language.c: New file.
25829
25830         New module 'unicase/locale-language'.
25831         * lib/unicase/locale-language.c: New file.
25832         * lib/unicase/locale-languages.gperf: New file.
25833         * modules/unicase/locale-language: New file.
25834
25835         Generate more tables for case conversion and case folding.
25836         * lib/gen-uni-tables.c (SCC_*): New enum items.
25837         (struct special_casing_rule): New type.
25838         (casing_rules, num_casing_rules, allocated_casing_rules): New
25839         variables.
25840         (add_casing_rule, fill_casing_rules): New functions.
25841         (struct casefold_rule): New type.
25842         (casefolding_rules, num_casefolding_rules,
25843         allocated_casefolding_rules): New variables.
25844         (fill_casefolding_rules): New function.
25845         (unicode_casefold): New variable.
25846         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
25847         sort_casing_rules, output_casing_rules): New functions.
25848         (main): Accept to more arguments: SpecialCasing.txt and
25849         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
25850         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
25851         Output mapping for casefolding.
25852
25853         * lib/unicase.h: Include stdbool.h, uninorm.h.
25854         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
25855         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
25856         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
25857         arguments.
25858         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
25859         resultp arguments.
25860         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
25861         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
25862         resultp arguments.
25863         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
25864         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
25865         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
25866         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
25867         declarations.
25868         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
25869
25870 2009-03-08  Bruno Haible  <bruno@clisp.org>
25871
25872         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
25873         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
25874         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
25875         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
25876
25877 2009-03-07  Bruno Haible  <bruno@clisp.org>
25878
25879         Adjust u*_normcmp, u*_normcoll API.
25880         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
25881         u16_normcoll, u32_normcoll): Change failure conventions.
25882         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
25883         errno and return -1.
25884         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
25885
25886 2009-03-07  Bruno Haible  <bruno@clisp.org>
25887
25888         Tests for module 'uninorm/u32-normcoll'.
25889         * modules/uninorm/u32-normcoll-tests: New file.
25890         * tests/uninorm/test-u32-normcoll.c: New file.
25891
25892         Tests for module 'uninorm/u16-normcoll'.
25893         * modules/uninorm/u16-normcoll-tests: New file.
25894         * tests/uninorm/test-u16-normcoll.c: New file.
25895
25896         Tests for module 'uninorm/u8-normcoll'.
25897         * modules/uninorm/u8-normcoll-tests: New file.
25898         * tests/uninorm/test-u8-normcoll.c: New file.
25899
25900 2009-03-07  Bruno Haible  <bruno@clisp.org>
25901
25902         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
25903         tests/uninorm/test-u32-normcmp.c.
25904         * tests/uninorm/test-u32-normcmp.c: Include it.
25905         (test_nonascii): New function, extracted from main. Add some more
25906         tests.
25907         (main): Invoke test_ascii and test_nonascii.
25908         * modules/uninorm/u32-normcmp-tests (Files): Add
25909         tests/uninorm/test-u32-normcmp.h.
25910         (Depends-on): Remove uninorm/u32-normcmp.
25911
25912         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
25913         tests/uninorm/test-u16-normcmp.c.
25914         * tests/uninorm/test-u16-normcmp.c: Include it.
25915         (test_nonascii): New function, extracted from main. Add some more
25916         tests.
25917         (main): Invoke test_ascii and test_nonascii.
25918         * modules/uninorm/u16-normcmp-tests (Files): Add
25919         tests/uninorm/test-u16-normcmp.h.
25920         (Depends-on): Remove uninorm/u16-normcmp.
25921
25922         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
25923         tests/uninorm/test-u8-normcmp.c.
25924         * tests/uninorm/test-u8-normcmp.c: Include it.
25925         (test_nonascii): New function, extracted from main. Add some more
25926         tests.
25927         (main): Invoke test_ascii and test_nonascii.
25928         * modules/uninorm/u8-normcmp-tests (Files): Add
25929         tests/uninorm/test-u8-normcmp.h.
25930         (Depends-on): Remove uninorm/u8-normcmp.
25931
25932 2009-03-07  Bruno Haible  <bruno@clisp.org>
25933
25934         New module 'uninorm/u32-normcoll'.
25935         * lib/uninorm/u32-normcoll.c: New file.
25936         * modules/uninorm/u32-normcoll: New file.
25937
25938         New module 'uninorm/u16-normcoll'.
25939         * lib/uninorm/u16-normcoll.c: New file.
25940         * modules/uninorm/u16-normcoll: New file.
25941
25942         New module 'uninorm/u8-normcoll'.
25943         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
25944         declarations.
25945         * lib/uninorm/u8-normcoll.c: New file.
25946         * lib/uninorm/u-normcoll.h: New file.
25947         * modules/uninorm/u8-normcoll: New file.
25948
25949         New module 'uninorm/u32-normxfrm'.
25950         * lib/uninorm/u32-normxfrm.c: New file.
25951         * modules/uninorm/u32-normxfrm: New file.
25952
25953         New module 'uninorm/u16-normxfrm'.
25954         * lib/uninorm/u16-normxfrm.c: New file.
25955         * modules/uninorm/u16-normxfrm: New file.
25956
25957         New module 'uninorm/u8-normxfrm'.
25958         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
25959         declarations.
25960         * lib/uninorm/u8-normxfrm.c: New file.
25961         * lib/uninorm/u-normxfrm.h: New file.
25962         * modules/uninorm/u8-normxfrm: New file.
25963
25964 2009-03-07  Bruno Haible  <bruno@clisp.org>
25965
25966         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
25967         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
25968         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
25969
25970 2009-03-07  Bruno Haible  <bruno@clisp.org>
25971
25972         New module 'memxfrm'.
25973         * lib/memxfrm.h: New file.
25974         * lib/memxfrm.c: New file.
25975         * modules/memxfrm: New file.
25976
25977 2009-03-07  Bruno Haible  <bruno@clisp.org>
25978
25979         New module 'memcmp2'.
25980         * lib/memcmp2.h: New file.
25981         * lib/memcmp2.c: New file.
25982         * modules/memcmp2: New file.
25983
25984 2009-03-07  Bruno Haible  <bruno@clisp.org>
25985
25986         Tests for module 'uninorm/decomposing-form'.
25987         * modules/uninorm/decomposing-form-tests: New file.
25988         * tests/uninorm/test-decomposing-form.c: New file.
25989
25990         New module 'uninorm/decomposing-form'.
25991         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
25992         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
25993         Add 'decomposing_variant' field.
25994         * lib/uninorm/decomposing-form.c: New file.
25995         * lib/uninorm/nfc.c (uninorm_nfc): Update.
25996         * lib/uninorm/nfd.c (uninorm_nfd): Update.
25997         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
25998         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
25999         * modules/uninorm/decomposing-form: New file.
26000         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
26001         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
26002
26003 2009-03-07  Bruno Haible  <bruno@clisp.org>
26004
26005         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
26006         strings.
26007
26008 2009-03-06  Bruno Haible  <bruno@clisp.org>
26009
26010         Tests for module 'uninorm/u32-normcmp'.
26011         * tests/uninorm/test-u32-normcmp.c: New file.
26012         * modules/uninorm/u32-normcmp-tests: New file.
26013
26014         Tests for module 'uninorm/u16-normcmp'.
26015         * tests/uninorm/test-u16-normcmp.c: New file.
26016         * modules/uninorm/u16-normcmp-tests: New file.
26017
26018         Tests for module 'uninorm/u8-normcmp'.
26019         * tests/uninorm/test-u8-normcmp.c: New file.
26020         * modules/uninorm/u8-normcmp-tests: New file.
26021
26022         New module 'uninorm/u32-normcmp'.
26023         * lib/uninorm/u32-normcmp.c: New file.
26024         * modules/uninorm/u32-normcmp: New file.
26025
26026         New module 'uninorm/u16-normcmp'.
26027         * lib/uninorm/u16-normcmp.c: New file.
26028         * modules/uninorm/u16-normcmp: New file.
26029
26030         New module 'uninorm/u8-normcmp'.
26031         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
26032         declarations.
26033         * lib/uninorm/u8-normcmp.c: New file.
26034         * lib/uninorm/u-normcmp.h: New file.
26035         * modules/uninorm/u8-normcmp: New file.
26036
26037 2009-03-06  Bruno Haible  <bruno@clisp.org>
26038
26039         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
26040         Reported by Eric Blake.
26041
26042 2009-03-06  Eric Blake  <ebb9@byu.net>
26043             Bruno Haible  <bruno@clisp.org>
26044
26045         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
26046         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
26047         condition.
26048         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
26049         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
26050         condition.
26051         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
26052
26053 2009-03-06  Eric Blake  <ebb9@byu.net>
26054
26055         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
26056         to avoid compiler warnings.
26057         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
26058
26059 2009-03-05  Bruno Haible  <bruno@clisp.org>
26060
26061         * tests/test-ftell.c (main): Disable test beyond end of file on
26062         FreeMiNT.
26063         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
26064
26065 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
26066
26067         * lib/filevercmp.c: Move hidden files up in ordering.
26068         * tests/test-filevercmp.c: Add tests for hidden files.
26069
26070 2009-03-04  Bruno Haible  <bruno@clisp.org>
26071
26072         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
26073         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
26074         AM_CFLAGS.
26075         Reported by Simon Josefsson.
26076
26077 2009-03-03  Bruno Haible  <bruno@clisp.org>
26078
26079         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
26080         Reported by Simon Josefsson.
26081
26082         * doc/ld-version-script.texi: Update node reference.
26083
26084 2009-03-03  Bruno Haible  <bruno@clisp.org>
26085
26086         * modules/visibility (License): Change to 'unlimited'.
26087         Suggested by Simon Josefsson.
26088
26089 2009-03-03  Jim Meyering  <meyering@redhat.com>
26090
26091         unlinkdir: cannot_unlink_dir may modify process state
26092         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
26093         it's neither thread-safe nor appropriate for use in a library.
26094
26095 2009-03-03  Eric Blake  <ebb9@byu.net>
26096
26097         test-closein: silence test under Darwin
26098         * tests/test-closein.sh: Ignore stderr from cat, since we don't
26099         care if it dies from EPIPE or EBADF.
26100
26101 2009-03-03  Bruno Haible  <bruno@clisp.org>
26102
26103         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
26104         earlier.
26105         * doc/visibility.texi: Fix @node and @section.
26106
26107 2009-03-03  Simon Josefsson  <simon@josefsson.org>
26108
26109         * doc/gnulib.texi: Link to sections for ld version script and
26110         visibility.
26111         * doc/visibility.texi: Add @node and @section.
26112         * modules/ld-version-script: New module.
26113         * m4/ld-version-script.m4: New file.
26114         * doc/ld-version-script.texi: New file.
26115
26116 2009-03-02  David Lutterkort  <lutter@redhat.com>
26117
26118         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
26119         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26120
26121 2009-03-02  Bruno Haible  <bruno@clisp.org>
26122
26123         * doc/visibility.texi: Mention libtool's -export-symbols option.
26124
26125 2009-03-02  Jim Meyering  <meyering@redhat.com>
26126
26127         announce-gen: new option: --no-print-checksums
26128         * build-aux/announce-gen (usage): Describe it.
26129         (print_checksums): Print a newline here, not in the [*] footnote.
26130         (main): Honor it.
26131
26132 2009-03-01  Bruno Haible  <bruno@clisp.org>
26133
26134         Use socklen_t in the native Windows replacements prototypes.
26135         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
26136         instead of 'int'.
26137         * lib/getsockopt.c (rpl_getsockopt): Likewise.
26138         * lib/setsockopt.c (rpl_setsockopt): Likewise.
26139         * modules/getsockopt (Depends-on): Add socklen.
26140         * modules/setsockopt (Depends-on): Add socklen.
26141
26142 2009-03-01  Bruno Haible  <bruno@clisp.org>
26143
26144         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
26145         least 4.2.
26146
26147 2009-03-01  Eric Blake  <ebb9@byu.net>
26148             Bruno Haible  <bruno@clisp.org>
26149
26150         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
26151         error messages.
26152         * lib/wait-process.c (wait_subprocess): Omit error message about
26153         deadly signal sent to the child of termsigp != NULL.
26154
26155 2009-03-01  Eric Blake  <ebb9@byu.net>
26156
26157         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
26158
26159 2009-03-01  Bruno Haible  <bruno@clisp.org>
26160
26161         Avoid a gcc warning.
26162         * tests/test-sched.c (b): Make global.
26163         Reported by Eric Blake.
26164
26165 2009-01-19  Martin Lambers  <marlam@marlam.de>
26166
26167         Provide POSIX semantics for socket timeout options on W32.
26168         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
26169         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
26170         * modules/setsockopt: Depend on sys_time module for struct timeval.
26171         * modules/getsockopt: Depend on sys_time module for struct timeval.
26172
26173 2009-03-01  Simon Josefsson  <simon@josefsson.org>
26174
26175         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
26176         __USE_GNU, for consistency with netdb.in.h.
26177         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26178
26179 2009-03-01  Bruno Haible  <bruno@clisp.org>
26180
26181         More support for FreeMiNT.
26182         * lib/fseeko.c (rpl_fseeko): Complete last commit.
26183         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26184
26185 2009-03-01  Bruno Haible  <bruno@clisp.org>
26186
26187         More support for FreeMiNT.
26188         * lib/fpurge.c (fpurge): Correct last commit.
26189         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26190
26191 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26192
26193         Fix unportable awk script in vc-list-files.
26194         * build-aux/vc-list-files: In the replacement awk script, use
26195         substr with a second argument of 1, not zero.
26196         Report by Simon Josefsson.
26197
26198 2009-02-28  Bruno Haible  <bruno@clisp.org>
26199
26200         More support for FreeMiNT.
26201         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
26202         to FreeMiNT today.
26203         * lib/fwriting.c (fwriting): Likewise.
26204         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
26205
26206 2009-02-28  Bruno Haible  <bruno@clisp.org>
26207
26208         * tests/test-freadseek.c (main): Disable test beyond end of file on
26209         FreeMiNT.
26210         * tests/test-ftello.c (main): Likewise.
26211         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
26212
26213 2009-02-28  Bruno Haible  <bruno@clisp.org>
26214
26215         Add tentative support for FreeMiNT.
26216         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
26217         * lib/fpurge.c (fpurge): Likewise.
26218         * lib/freadable.c (freadable): Likewise.
26219         * lib/freading.c (freading): Likewise.
26220         * lib/freadptr.c (freadptr): Likewise.
26221         * lib/freadseek.c (freadptrinc): Likewise.
26222         * lib/fseeko.c (rpl_fseeko): Likewise.
26223         * lib/fseterr.c (fseterr): Likewise.
26224         * lib/fwritable.c (fwritable): Likewise.
26225         * lib/fwriting.c (fwriting): Likewise.
26226         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
26227         Hourihane.
26228         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26229
26230 2009-02-28  Bruno Haible  <bruno@clisp.org>
26231
26232         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
26233         SIGCHLD.
26234         Reported by Jim Meyering.
26235
26236 2009-02-28  Bruno Haible  <bruno@clisp.org>
26237
26238         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
26239         Mention the results of these tests on various platforms.
26240         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
26241         order.
26242         * doc/posix-functions/printf.texi: Likewise.
26243         * doc/posix-functions/snprintf.texi: Likewise.
26244         * doc/posix-functions/sprintf.texi: Likewise.
26245         * doc/posix-functions/vfprintf.texi: Likewise.
26246         * doc/posix-functions/vprintf.texi: Likewise.
26247         * doc/posix-functions/vsnprintf.texi: Likewise.
26248         * doc/posix-functions/vsprintf.texi: Likewise.
26249         * doc/glibc-functions/obstack_printf.texi: Likewise.
26250         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
26251
26252 2009-02-28  Bruno Haible  <bruno@clisp.org>
26253
26254         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
26255         Reported by Loïc Minier <lool@dooz.org>.
26256
26257 2009-02-27  Bruno Haible  <bruno@clisp.org>
26258
26259         * gnulib-tool (func_import): Make the sed expression used to create the
26260         sed script for updating the .gitignore file POSIX compliant.
26261         Reported by Eric Blake.
26262
26263 2009-02-27  Bruno Haible  <bruno@clisp.org>
26264
26265         * gnulib-tool (sed): Don't alias as "sed --posix".
26266         Reported by Eric Blake.
26267
26268 2009-02-27  Bruno Haible  <bruno@clisp.org>
26269
26270         Avoid test link errors.
26271         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
26272         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
26273         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
26274         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
26275         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26276
26277 2009-02-27  Bruno Haible  <bruno@clisp.org>
26278
26279         Avoid spurious "(cached)" in configure output.
26280         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
26281         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
26282         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26283         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26284         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26285         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26286         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26287         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26288         Reported by Eric Blake.
26289
26290 2009-02-27  Eric Blake  <ebb9@byu.net>
26291
26292         printf: fix regression in previous patch
26293         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
26294
26295 2009-02-27  Bruno Haible  <bruno@clisp.org>
26296
26297         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
26298         value.
26299         * lib/stdint.in.h: Likewise.
26300         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
26301
26302 2009-02-27  Eric Blake  <ebb9@byu.net>
26303
26304         doc: mention more functions added in cygwin 1.7.0
26305         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
26306         addition.
26307         * doc/posix-functions/open_wmemstream.texi: Likewise.
26308         * doc/posix-functions/wcsnlen.texi: Likewise.
26309         * doc/posix-functions/wcsnrtombs.texi: Likewise.
26310         * doc/posix-functions/wcstod.texi: Likewise.
26311         * doc/posix-functions/wcstof.texi: Likewise.
26312         * doc/posix-functions/wcstoimax.texi: Likewise.
26313         * doc/posix-functions/wcstok.texi: Likewise.
26314         * doc/posix-functions/wcstoumax.texi: Likewise.
26315
26316         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
26317         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
26318         * doc/posix-functions/fprintf.texi: Update.
26319         * doc/posix-functions/printf.texi: Update.
26320         * doc/posix-functions/snprintf.texi: Update.
26321         * doc/posix-functions/sprintf.texi: Update.
26322         * doc/posix-functions/vfprintf.texi: Update.
26323         * doc/posix-functions/vprintf.texi: Update.
26324         * doc/posix-functions/vsnprintf.texi: Update.
26325         * doc/posix-functions/vsprintf.texi: Update.
26326         * doc/glibc-functions/obstack_printf.texi: Update.
26327         * doc/glibc-functions/obstack_vprintf.texi: Update.
26328
26329 2009-02-26  Eric Blake  <ebb9@byu.net>
26330
26331         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
26332         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
26333         compilation bug by using runtime conversion.
26334         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
26335         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
26336         * modules/ceill-tests (Files): Use nan.h.
26337         * modules/floorl-tests (Files): Likewise.
26338         * modules/frexpl-tests (Files): Likewise.
26339         * modules/isnanl-tests (Files): Likewise.
26340         * modules/ldexpl-tests (Files): Likewise.
26341         * modules/roundl-tests (Files): Likewise.
26342         * modules/truncl-tests (Files): Likewise.
26343         * tests/test-ceill.c (main): Use a working NaN.
26344         * tests/test-floorl.c (main): Likewise.
26345         * tests/test-frexpl.c (main): Likewise.
26346         * tests/test-isnan.c (test_long_double): Likewise.
26347         * tests/test-isnanl.h (main): Likewise.
26348         * tests/test-ldexpl.h (main): Likewise.
26349         * tests/test-roundl.h (main): Likewise.
26350         * tests/test-truncl.h (main): Likewise.
26351         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
26352
26353 2009-02-26  Eric Blake  <ebb9@byu.net>
26354             Bruno Haible  <bruno@clisp.org>
26355
26356         Work around a *printf bug with %ls on Solaris.
26357         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
26358         precision is specified, sprintf stops converting the wide string
26359         argument when the number of bytes that have been produced by this
26360         conversion equals or exceeds the precision.
26361         * doc/posix-functions/fprintf.texi: Update.
26362         * doc/posix-functions/printf.texi: Update.
26363         * doc/posix-functions/snprintf.texi: Update.
26364         * doc/posix-functions/sprintf.texi: Update.
26365         * doc/posix-functions/vfprintf.texi: Update.
26366         * doc/posix-functions/vprintf.texi: Update.
26367         * doc/posix-functions/vsnprintf.texi: Update.
26368         * doc/posix-functions/vsprintf.texi: Update.
26369         * doc/glibc-functions/obstack_printf.texi: Update.
26370         * doc/glibc-functions/obstack_vprintf.texi: Update.
26371
26372 2009-02-26  Eric Blake  <ebb9@byu.net>
26373
26374         stdlib: favor compiler check of random.h
26375         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
26376         to avoid an ObjC random.h installed by Swarm.
26377
26378 2009-02-26  Bruno Haible  <bruno@clisp.org>
26379
26380         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
26381         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
26382         Reported by Gary V. Vaughan <gary@gnu.org>.
26383
26384 2009-02-26  Bruno Haible  <bruno@clisp.org>
26385
26386         Fix *printf behaviour regarding the %ls directive.
26387         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
26388         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
26389         NEED_PRINTF_DIRECTIVE_LS.
26390         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
26391         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26392         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26393         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
26394         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
26395         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
26396         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
26397         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26398         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26399         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26400         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26401         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
26402         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26403         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26404         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26405         * doc/posix-functions/fprintf.texi: Update.
26406         * doc/posix-functions/printf.texi: Update.
26407         * doc/posix-functions/snprintf.texi: Update.
26408         * doc/posix-functions/sprintf.texi: Update.
26409         * doc/posix-functions/vfprintf.texi: Update.
26410         * doc/posix-functions/vprintf.texi: Update.
26411         * doc/posix-functions/vsnprintf.texi: Update.
26412         * doc/posix-functions/vsprintf.texi: Update.
26413         * doc/glibc-functions/obstack_printf.texi: Update.
26414         * doc/glibc-functions/obstack_vprintf.texi: Update.
26415         Reported by Eric Blake.
26416
26417 2009-02-25  Bruno Haible  <bruno@clisp.org>
26418
26419         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
26420         with known value.
26421         Reported by Gary V. Vaughan <gary@gnu.org>.
26422
26423 2009-02-25  Bruno Haible  <bruno@clisp.org>
26424
26425         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
26426         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
26427         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
26428         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
26429         Reported by Gary V. Vaughan <gary@gnu.org>.
26430
26431 2009-02-25  Bruno Haible  <bruno@clisp.org>
26432
26433         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
26434         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
26435         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
26436         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
26437         Reported by Gary V. Vaughan <gary@gnu.org>.
26438
26439 2009-02-25  Eric Blake  <ebb9@byu.net>
26440
26441         tests: skip fseek/ftell tests if ungetc is broken
26442         * m4/ungetc.m4: New file.
26443         * modules/fseek-tests: Split test, so ungetc dependency is
26444         separate from rest of test.
26445         * modules/fseeko-tests: Likewise.
26446         * modules/ftell-tests: Likewise.
26447         * modules/ftello-tests: Likewise.
26448         * tests/test-fseek.c (main): Isolate ungetc dependency.
26449         * tests/test-fseeko.c (main): Likewise.
26450         * tests/test-ftell.c (main): Likewise.
26451         * tests/test-ftello.c (main): Likewise.
26452         * tests/test-fseek2.sh: New file.
26453         * tests/test-fseeko2.sh: Likewise.
26454         * tests/test-ftell2.sh: Likewise.
26455         * tests/test-ftello2.sh: Likewise.
26456
26457 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
26458
26459         test-getaddrinfo: fix usage of skip return code 77
26460         * tests/test-gettaddrinfo.c: Return skip code 77 only
26461         for first occurance of skip (4x77 is not 77)
26462
26463 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
26464
26465         strtod: avoid C99 decl-after-statement
26466         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
26467
26468 2009-02-24  Eric Blake  <ebb9@byu.net>
26469
26470         strtod: detect HP-UX 11.31 bug
26471         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
26472         Reported by Gary V. Vaughan.
26473
26474 2009-02-23  Bruno Haible  <bruno@clisp.org>
26475
26476         Fix invalid read past end of memory block.
26477         * lib/vasnprintf.c (DCHAR_SET): Define.
26478         (local_wcslen): Define only when needed.
26479         (local_strnlen, local_wcsnlen): New functions.
26480         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
26481         directives that involve a conversion ourselves.
26482         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
26483         wcsnlen, mbrtowc, wcrtomb.
26484         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
26485         * tests/test-vasprintf-posix.c (test_function): Likewise.
26486         * tests/test-snprintf-posix.h (test_function): Likewise.
26487         * tests/test-sprintf-posix.h (test_function): Likewise.
26488         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26489
26490 2009-02-22  Bruno Haible  <bruno@clisp.org>
26491
26492         Implement new clarified decomposition of Hangul syllables.
26493         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
26494         of type LTV, return only a pairwise decomposition.
26495         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
26496         Likewise.
26497         * tests/uninorm/test-decomposition.c (main): Updated expected result.
26498         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
26499         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
26500
26501 2009-02-22  Bruno Haible  <bruno@clisp.org>
26502
26503         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
26504         zero-length results and shrink excess allocated memory.
26505         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
26506         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
26507         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
26508         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
26509         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
26510         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
26511         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
26512         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
26513         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
26514         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
26515         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
26516         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
26517
26518 2009-02-21  Bruno Haible  <bruno@clisp.org>
26519
26520         * doc/gnulib.texi: Include safe-alloc.texi earlier.
26521         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
26522         spaces after a period. Put a space between a macro name and its
26523         argument list. Trivial rewordings.
26524         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
26525         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
26526         (main): Return 0 explicitly.
26527
26528 2009-02-21  Bruno Haible  <bruno@clisp.org>
26529
26530         Tests for module 'uninorm/filter'.
26531         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
26532         * modules/uninorm/filter-tests: New file.
26533
26534         New module 'uninorm/filter'.
26535         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
26536         uninorm_filter_flush, uninorm_filter_free): New declarations.
26537         * lib/uninorm/uninorm-filter.c: New file.
26538         * modules/uninorm/filter: New file.
26539
26540 2009-02-21  Bruno Haible  <bruno@clisp.org>
26541
26542         Tests for module 'uninorm/nfkc'.
26543         * tests/uninorm/test-nfkc.c: New file.
26544         * tests/uninorm/test-u8-nfkc.c: New file.
26545         * tests/uninorm/test-u16-nfkc.c: New file.
26546         * tests/uninorm/test-u32-nfkc.c: New file.
26547         * tests/uninorm/test-u32-nfkc-big.sh: New file.
26548         * tests/uninorm/test-u32-nfkc-big.c: New file.
26549         * modules/uninorm/nfkc-tests: New file.
26550
26551         New module 'uninorm/nfkc'.
26552         * lib/uninorm/nfkc.c: New file.
26553         * modules/uninorm/nfkc: New file.
26554
26555         Tests for module 'uninorm/nfkd'.
26556         * tests/uninorm/test-nfkd.c: New file.
26557         * tests/uninorm/test-u8-nfkd.c: New file.
26558         * tests/uninorm/test-u16-nfkd.c: New file.
26559         * tests/uninorm/test-u32-nfkd.c: New file.
26560         * tests/uninorm/test-u32-nfkd-big.sh: New file.
26561         * tests/uninorm/test-u32-nfkd-big.c: New file.
26562         * modules/uninorm/nfkd-tests: New file.
26563
26564         New module 'uninorm/nfkd'.
26565         * lib/uninorm/nfkd.c: New file.
26566         * modules/uninorm/nfkd: New file.
26567
26568         Tests for module 'uninorm/nfc'.
26569         * tests/uninorm/test-nfc.c: New file.
26570         * tests/uninorm/test-u8-nfc.c: New file.
26571         * tests/uninorm/test-u16-nfc.c: New file.
26572         * tests/uninorm/test-u32-nfc.c: New file.
26573         * tests/uninorm/test-u32-nfc-big.sh: New file.
26574         * tests/uninorm/test-u32-nfc-big.c: New file.
26575         * modules/uninorm/nfc-tests: New file.
26576
26577         New module 'uninorm/nfc'.
26578         * lib/uninorm/nfc.c: New file.
26579         * modules/uninorm/nfc: New file.
26580
26581         Tests for module 'uninorm/nfd'.
26582         * tests/uninorm/test-nfd.c: New file.
26583         * tests/uninorm/test-u8-nfd.c: New file.
26584         * tests/uninorm/test-u16-nfd.c: New file.
26585         * tests/uninorm/test-u32-nfd.c: New file.
26586         * tests/uninorm/test-u32-nfd-big.sh: New file.
26587         * tests/uninorm/test-u32-nfd-big.c: New file.
26588         * tests/uninorm/test-u32-normalize-big.h: New file.
26589         * tests/uninorm/test-u32-normalize-big.c: New file.
26590         * tests/uninorm/NormalizationTest.txt: New file, created from
26591         Unicode 5.1.0 NormalizationTest.txt.
26592         * modules/uninorm/nfd-tests: New file.
26593
26594         New module 'uninorm/nfd'.
26595         * lib/uninorm/nfd.c: New file.
26596         * modules/uninorm/nfd: New file.
26597
26598         New module 'uninorm/u32-normalize'.
26599         * lib/uninorm/u32-normalize.c: New file.
26600         * modules/uninorm/u32-normalize: New file.
26601
26602         New module 'uninorm/u16-normalize'.
26603         * lib/uninorm/u16-normalize.c: New file.
26604         * modules/uninorm/u16-normalize: New file.
26605
26606         New module 'uninorm/u8-normalize'.
26607         * lib/uninorm/u8-normalize.c: New file.
26608         * lib/uninorm/normalize-internal.h: New file.
26609         * lib/uninorm/u-normalize-internal.h: New file.
26610         * modules/uninorm/u8-normalize: New file.
26611
26612         New module 'uninorm/decompose-internal'.
26613         * lib/uninorm/decompose-internal.c: New file.
26614         * modules/uninorm/decompose-internal: New file.
26615
26616         Tests for module 'uninorm/composition'.
26617         * tests/uninorm/test-composition.c: New file.
26618         * modules/uninorm/composition-tests: New file.
26619
26620         New module 'uninorm/composition'.
26621         * lib/uninorm/composition.c: New file.
26622         * lib/uninorm/composition-table.gperf: New file, generated by
26623         gen-uni-tables.
26624         * modules/uninorm/composition: New file.
26625
26626         Tests for module 'uninorm/compat-decomposition'.
26627         * tests/uninorm/test-compat-decomposition.c: New file.
26628         * modules/uninorm/compat-decomposition-tests: New file.
26629
26630         New module 'uninorm/compat-decomposition'.
26631         * lib/uninorm/decompose-internal.h: New file.
26632         * lib/uninorm/compat-decomposition.c: New file.
26633         * modules/uninorm/compat-decomposition: New file.
26634
26635         Tests for module 'uninorm/canonical-decomposition'.
26636         * tests/uninorm/test-canonical-decomposition.c: New file.
26637         * modules/uninorm/canonical-decomposition-tests: New file.
26638
26639         New module 'uninorm/canonical-decomposition'.
26640         * lib/uninorm/canonical-decomposition.c: New file.
26641         * modules/uninorm/canonical-decomposition: New file.
26642
26643         Tests for module 'uninorm/decomposition'.
26644         * tests/uninorm/test-decomposition.c: New file.
26645         * modules/uninorm/decomposition-tests: New file.
26646
26647         New module 'uninorm/decomposition'.
26648         * lib/uninorm/decomposition.c: New file.
26649         * modules/uninorm/decomposition: New file.
26650
26651         New module 'uninorm/decomposition-table'.
26652         * lib/uninorm/decomposition-table.h: New file.
26653         * lib/uninorm/decomposition-table.c: New file.
26654         * lib/uninorm/decomposition-table1.h: New file, generated by
26655         gen-uni-tables.
26656         * lib/uninorm/decomposition-table2.h: New file, generated by
26657         gen-uni-tables.
26658         * modules/uninorm/decomposition-table: New file.
26659
26660         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
26661         (UC_DECOMP_*): New enumeration items.
26662         (get_decomposition): New function.
26663         (struct decomp_table): New type.
26664         (output_decomposition, output_decomposition_tables): New functions.
26665         (unicode_composition_exclusions): New variable.
26666         (fill_composition_exclusions, debug_output_composition_tables): New
26667         functions.
26668         (main): Accept one more argument. Invoke fill_composition_exclusions.
26669         Output decomposition and composition tables.
26670
26671         New module 'uninorm/base'.
26672         * lib/uninorm.h: New file.
26673         * lib/unictype.h: Update comment.
26674         * modules/uninorm/base: New file.
26675
26676 2009-02-21  David Lutterkort  <lutter@redhat.com>
26677
26678         Tests for module 'safe-alloc'.
26679         * tests/test-safe-alloc.c: New file.
26680         * modules/safe-alloc-tests: New file.
26681
26682         New module 'safe-alloc'.
26683         * lib/safe-alloc.h: New file.
26684         * lib/safe-alloc.c: New file.
26685         * m4/safe-alloc.m4: New file.
26686         * modules/safe-alloc: New file.
26687         * doc/safe-alloc.texi: New file.
26688         * doc/gnulib.texi: Include it.
26689         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26690         safe-alloc.
26691
26692 2009-02-18  Bruno Haible  <bruno@clisp.org>
26693
26694         Fix link error on non-glibc systems.
26695         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
26696         variable.
26697         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26698
26699 2009-02-18  Jim Meyering  <meyering@redhat.com>
26700
26701         fts: avoid used-uninitialized error due to recent change
26702         * lib/fts.c (fts_read): Guard uses of the new member,
26703         parent->fts_n_dirs_remaining, since it's not relevant for
26704         the parent of a directory specified on the command-line.
26705
26706 2009-02-17  James Youngman  <jay@gnu.org>
26707             Bruno Haible  <bruno@clisp.org>
26708
26709         * m4/include_next.m4: Reformulate comment.
26710
26711 2009-02-16  Jim Meyering  <meyering@redhat.com>
26712
26713         fts: add #if guards so that the fts_lgpl module still builds
26714         * lib/fts.c: Guard just-added hash-table-using parts with
26715         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
26716         Reported by Simon Josefsson.
26717
26718 2009-02-15  Bruno Haible  <bruno@clisp.org>
26719
26720         * modules/array-mergesort-tests: New file.
26721         * tests/test-array-mergesort.c: New file.
26722
26723         New module 'array-mergesort'.
26724         * modules/array-mergesort: New file.
26725         * lib/array-mergesort.h: New file.
26726
26727 2009-02-15  Bruno Haible  <bruno@clisp.org>
26728
26729         Fix 2009-02-07 commit.
26730         * lib/gen-uni-tables.c (output_predicate, output_category,
26731         output_combclass, output_bidi_category, output_decimal_digit,
26732         output_digit, output_numeric, output_mirror, output_scripts,
26733         output_ident_category, output_simple_mapping): Fix format directives.
26734         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
26735
26736 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
26737
26738         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
26739         fixes are available from IBM.
26740
26741 2009-02-13  Jim Meyering  <meyering@redhat.com>
26742
26743         fts: arrange not to stat non-directories in more cases
26744         This makes GNU find (when it doesn't need to stat each file)
26745         *much* more efficient at traversing reiserfs file systems.
26746         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
26747         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
26748         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
26749         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
26750         (leaf_optimization_applies): New function.
26751         (LCO_hash, LCO_compare): New helper functions.
26752         (link_count_optimize_ok): New function.
26753         (fts_stat): Initialize new member (if dir).
26754         (fts_read): Decrement parent's fts_n_dirs_remaining count if
26755         we've just stat'ed a directory.  Skip the stat call when possible.
26756         ---
26757         Note this AFS-related exchange:
26758         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
26759         and note find's pioctl call in find/fstype.c.
26760         But that is necessary only if you want to enable the
26761         optimization for AFS, and for now, I don't.
26762
26763         fts: move a function definition "up" (no semantic change)
26764         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
26765         "up" to precede upcoming use of a related function.
26766
26767 2009-02-11  Jim Meyering  <meyering@redhat.com>
26768
26769         fts: correct internal computation of nlinks (optimization-related)
26770         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
26771         whether the current entry is a directory, so don't test it.
26772
26773 2009-02-10  Bruno Haible  <bruno@clisp.org>
26774
26775         Tests for module 'uniwbrk/ulc-wordbreaks'.
26776         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
26777         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
26778         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
26779
26780         Tests for module 'uniwbrk/u32-wordbreaks'.
26781         * modules/uniwbrk/u32-wordbreaks-tests: New file.
26782         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
26783
26784         Tests for module 'uniwbrk/u16-wordbreaks'.
26785         * modules/uniwbrk/u16-wordbreaks-tests: New file.
26786         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
26787
26788         Tests for module 'uniwbrk/u8-wordbreaks'.
26789         * modules/uniwbrk/u8-wordbreaks-tests: New file.
26790         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
26791
26792 2009-02-10  Bruno Haible  <bruno@clisp.org>
26793
26794         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
26795         property.
26796         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
26797         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
26798         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
26799
26800 2009-02-10  Simon Josefsson  <simon@josefsson.org>
26801
26802         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
26803         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
26804
26805 2009-02-10  Bruno Haible  <bruno@clisp.org>
26806
26807         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
26808         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
26809         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
26810         * lib/unilbrk/u8-possible-linebreaks.c: Update.
26811         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
26812         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
26813
26814 2009-02-09  Simon Josefsson  <simon@josefsson.org>
26815
26816         * lib/sockets.h (gl_fd_to_handle): New function.
26817
26818         * tests/test-sockets.c: Call gl_fd_to_handle.
26819
26820 2009-02-09  Bruno Haible  <bruno@clisp.org>
26821
26822         * doc/havelib.texi: Document the conventions on bi-arch systems.
26823
26824 2009-02-08  Bruno Haible  <bruno@clisp.org>
26825
26826         Document the AC_LIB_LINKFLAGS macro.
26827         * doc/havelib.texi: New file, mostly written on 2005-05-24.
26828         * doc/gnulib.texi: Include it.
26829
26830 2009-02-08  Bruno Haible  <bruno@clisp.org>
26831
26832         Fix wrong order of sections, compared to TOC.
26833         * doc/gnulib.texi: Include relocatable-maint.texi after the
26834         "Regular expressions" node, not before.
26835
26836 2009-02-08  Bruno Haible  <bruno@clisp.org>
26837
26838         Tests for module 'unicase/totitle'.
26839         * modules/unicase/totitle-tests: New file.
26840
26841         Tests for module 'unicase/tolower'.
26842         * modules/unicase/tolower-tests: New file.
26843
26844         Tests for module 'unicase/toupper'.
26845         * modules/unicase/toupper-tests: New file.
26846         * tests/unicase/test-mapping-part1.h: New file.
26847         * tests/unicase/test-mapping-part2.h: New file.
26848
26849         New module 'unicase/totitle'.
26850         * modules/unicase/totitle: New file.
26851         * lib/unicase/totitle.c: New file.
26852
26853         New module 'unicase/tolower'.
26854         * modules/unicase/tolower: New file.
26855         * lib/unicase/tolower.c: New file.
26856
26857         New module 'unicase/toupper'.
26858         * modules/unicase/toupper: New file.
26859         * lib/unicase/toupper.c: New file.
26860         * lib/unicase/simple-mapping.h: New file.
26861
26862         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
26863         (mapping_table): New structure.
26864         (output_simple_mapping): New function.
26865         (main): Invoke output_simple_mapping_test and output_simple_mapping.
26866         * modules/gen-uni-tables (Description): Update.
26867         * lib/unicase/toupper.h: New file, automatically generated by
26868         gen-uni-tables.
26869         * lib/unicase/tolower.h: New file, automatically generated by
26870         gen-uni-tables.
26871         * lib/unicase/totitle.h: New file, automatically generated by
26872         gen-uni-tables.
26873         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
26874         gen-uni-tables.
26875         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
26876         gen-uni-tables.
26877         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
26878         gen-uni-tables.
26879
26880         New module 'unicase/base'.
26881         * modules/unicase/base: New file.
26882         * lib/unicase.h: New file.
26883
26884 2009-02-08  Bruno Haible  <bruno@clisp.org>
26885
26886         New module 'uniwbrk/ulc-wordbreaks'.
26887         * modules/uniwbrk/ulc-wordbreaks: New file.
26888         * lib/uniwbrk/ulc-wordbreaks.c: New file.
26889
26890         New module 'uniwbrk/u32-wordbreaks'.
26891         * modules/uniwbrk/u32-wordbreaks: New file.
26892         * lib/uniwbrk/u32-wordbreaks.c: New file.
26893
26894         New module 'uniwbrk/u16-wordbreaks'.
26895         * modules/uniwbrk/u16-wordbreaks: New file.
26896         * lib/uniwbrk/u16-wordbreaks.c: New file.
26897
26898         New module 'uniwbrk/u8-wordbreaks'.
26899         * modules/uniwbrk/u8-wordbreaks: New file.
26900         * lib/uniwbrk/u8-wordbreaks.c: New file.
26901         * lib/uniwbrk/u-wordbreaks.h: New file.
26902
26903         New module 'uniwbrk/table'.
26904         * modules/uniwbrk/table: New file.
26905         * lib/uniwbrk/wbrktable.h: New file.
26906         * lib/uniwbrk/wbrktable.c: New file.
26907
26908         New module 'uniwbrk/wordbreak-property'.
26909         * modules/uniwbrk/wordbreak-property: New file.
26910         * lib/uniwbrk/wordbreak-property.c: New file.
26911
26912         * lib/gen-uni-tables.c (WBP_*): New enum items.
26913         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
26914         (unicode_org_wbp): New variable.
26915         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
26916         New functions.
26917         (wbp_table): New structure.
26918         (output_wbp, output_wbrk_tables): New functions.
26919         (main): Accept additional argument. Invoke fill_org_wbp,
26920         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
26921         output_wbrk_tables.
26922         * modules/gen-uni-tables (Description): Update.
26923         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
26924         gen-uni-tables.
26925
26926         New module 'uniwbrk/base'.
26927         * modules/uniwbrk/base: New file.
26928         * lib/uniwbrk.h: New file.
26929
26930 2009-02-08  Bruno Haible  <bruno@clisp.org>
26931
26932         Update to Unicode 5.1.0.
26933         * lib/gen-uni-tables.c (is_property_alphabetic): Include
26934         U+2185..U+2188.
26935         (is_property_default_ignorable_code_point): Don't include characters
26936         of category Cc or Cs and not-a-characters.
26937         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
26938         U+0D79, U+109E, U+109F, U+A60C.
26939         * lib/unictype/bidi_of.h: Regenerated.
26940         * lib/unictype/blocks.h: Regenerated.
26941         * lib/unictype/categ_C.h: Regenerated.
26942         * lib/unictype/categ_Cf.h: Regenerated.
26943         * lib/unictype/categ_Cn.h: Regenerated.
26944         * lib/unictype/categ_L.h: Regenerated.
26945         * lib/unictype/categ_Ll.h: Regenerated.
26946         * lib/unictype/categ_Lm.h: Regenerated.
26947         * lib/unictype/categ_Lo.h: Regenerated.
26948         * lib/unictype/categ_Lu.h: Regenerated.
26949         * lib/unictype/categ_M.h: Regenerated.
26950         * lib/unictype/categ_Mc.h: Regenerated.
26951         * lib/unictype/categ_Me.h: Regenerated.
26952         * lib/unictype/categ_Mn.h: Regenerated.
26953         * lib/unictype/categ_N.h: Regenerated.
26954         * lib/unictype/categ_Nd.h: Regenerated.
26955         * lib/unictype/categ_Nl.h: Regenerated.
26956         * lib/unictype/categ_No.h: Regenerated.
26957         * lib/unictype/categ_P.h: Regenerated.
26958         * lib/unictype/categ_Pd.h: Regenerated.
26959         * lib/unictype/categ_Pe.h: Regenerated.
26960         * lib/unictype/categ_Pf.h: Regenerated.
26961         * lib/unictype/categ_Pi.h: Regenerated.
26962         * lib/unictype/categ_Po.h: Regenerated.
26963         * lib/unictype/categ_Ps.h: Regenerated.
26964         * lib/unictype/categ_S.h: Regenerated.
26965         * lib/unictype/categ_Sk.h: Regenerated.
26966         * lib/unictype/categ_Sm.h: Regenerated.
26967         * lib/unictype/categ_So.h: Regenerated.
26968         * lib/unictype/categ_of.h: Regenerated.
26969         * lib/unictype/combining.h: Regenerated.
26970         * lib/unictype/ctype_alnum.h: Regenerated.
26971         * lib/unictype/ctype_alpha.h: Regenerated.
26972         * lib/unictype/ctype_graph.h: Regenerated.
26973         * lib/unictype/ctype_lower.h: Regenerated.
26974         * lib/unictype/ctype_print.h: Regenerated.
26975         * lib/unictype/ctype_punct.h: Regenerated.
26976         * lib/unictype/ctype_upper.h: Regenerated.
26977         * lib/unictype/decdigit.h: Regenerated.
26978         * lib/unictype/digit.h: Regenerated.
26979         * lib/unictype/mirror.h: Regenerated.
26980         * lib/unictype/numeric.h: Regenerated.
26981         * lib/unictype/pr_alphabetic.h: Regenerated.
26982         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
26983         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
26984         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
26985         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
26986         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
26987         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
26988         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
26989         * lib/unictype/pr_combining.h: Regenerated.
26990         * lib/unictype/pr_dash.h: Regenerated.
26991         * lib/unictype/pr_decimal_digit.h: Regenerated.
26992         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
26993         * lib/unictype/pr_deprecated.h: Regenerated.
26994         * lib/unictype/pr_diacritic.h: Regenerated.
26995         * lib/unictype/pr_extender.h: Regenerated.
26996         * lib/unictype/pr_format_control.h: Regenerated.
26997         * lib/unictype/pr_grapheme_base.h: Regenerated.
26998         * lib/unictype/pr_grapheme_extend.h: Regenerated.
26999         * lib/unictype/pr_grapheme_link.h: Regenerated.
27000         * lib/unictype/pr_id_continue.h: Regenerated.
27001         * lib/unictype/pr_id_start.h: Regenerated.
27002         * lib/unictype/pr_ideographic.h: Regenerated.
27003         * lib/unictype/pr_ignorable_control.h: Regenerated.
27004         * lib/unictype/pr_lowercase.h: Regenerated.
27005         * lib/unictype/pr_math.h: Regenerated.
27006         * lib/unictype/pr_numeric.h: Regenerated.
27007         * lib/unictype/pr_other_alphabetic.h: Regenerated.
27008         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
27009         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
27010         * lib/unictype/pr_other_id_continue.h: Regenerated.
27011         * lib/unictype/pr_other_lowercase.h: Regenerated.
27012         * lib/unictype/pr_other_math.h: Regenerated.
27013         * lib/unictype/pr_punctuation.h: Regenerated.
27014         * lib/unictype/pr_sentence_terminal.h: Regenerated.
27015         * lib/unictype/pr_soft_dotted.h: Regenerated.
27016         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
27017         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
27018         * lib/unictype/pr_unified_ideograph.h: Regenerated.
27019         * lib/unictype/pr_uppercase.h: Regenerated.
27020         * lib/unictype/pr_xid_continue.h: Regenerated.
27021         * lib/unictype/pr_xid_start.h: Regenerated.
27022         * lib/unictype/pr_zero_width.h: Regenerated.
27023         * lib/unictype/scripts.h: Regenerated.
27024         * lib/unictype/scripts_byname.gperf: Regenerated.
27025         * lib/unictype/sy_java_ident.h: Regenerated.
27026         * lib/unilbrk/lbrkprop1.h: Regenerated.
27027         * lib/unilbrk/lbrkprop2.h: Regenerated.
27028         * tests/unictype/test-categ_C.c: Regenerated.
27029         * tests/unictype/test-categ_Cf.c: Regenerated.
27030         * tests/unictype/test-categ_Cn.c: Regenerated.
27031         * tests/unictype/test-categ_L.c: Regenerated.
27032         * tests/unictype/test-categ_Ll.c: Regenerated.
27033         * tests/unictype/test-categ_Lm.c: Regenerated.
27034         * tests/unictype/test-categ_Lo.c: Regenerated.
27035         * tests/unictype/test-categ_Lu.c: Regenerated.
27036         * tests/unictype/test-categ_M.c: Regenerated.
27037         * tests/unictype/test-categ_Mc.c: Regenerated.
27038         * tests/unictype/test-categ_Me.c: Regenerated.
27039         * tests/unictype/test-categ_Mn.c: Regenerated.
27040         * tests/unictype/test-categ_N.c: Regenerated.
27041         * tests/unictype/test-categ_Nd.c: Regenerated.
27042         * tests/unictype/test-categ_Nl.c: Regenerated.
27043         * tests/unictype/test-categ_No.c: Regenerated.
27044         * tests/unictype/test-categ_P.c: Regenerated.
27045         * tests/unictype/test-categ_Pd.c: Regenerated.
27046         * tests/unictype/test-categ_Pe.c: Regenerated.
27047         * tests/unictype/test-categ_Pf.c: Regenerated.
27048         * tests/unictype/test-categ_Pi.c: Regenerated.
27049         * tests/unictype/test-categ_Po.c: Regenerated.
27050         * tests/unictype/test-categ_Ps.c: Regenerated.
27051         * tests/unictype/test-categ_S.c: Regenerated.
27052         * tests/unictype/test-categ_Sk.c: Regenerated.
27053         * tests/unictype/test-categ_Sm.c: Regenerated.
27054         * tests/unictype/test-categ_So.c: Regenerated.
27055         * tests/unictype/test-ctype_alnum.c: Regenerated.
27056         * tests/unictype/test-ctype_alpha.c: Regenerated.
27057         * tests/unictype/test-ctype_graph.c: Regenerated.
27058         * tests/unictype/test-ctype_lower.c: Regenerated.
27059         * tests/unictype/test-ctype_print.c: Regenerated.
27060         * tests/unictype/test-ctype_punct.c: Regenerated.
27061         * tests/unictype/test-ctype_upper.c: Regenerated.
27062         * tests/unictype/test-decdigit.h: Regenerated.
27063         * tests/unictype/test-digit.h: Regenerated.
27064         * tests/unictype/test-numeric.h: Regenerated.
27065         * tests/unictype/test-pr_alphabetic.c: Regenerated.
27066         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
27067         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
27068         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
27069         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
27070         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
27071         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
27072         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
27073         * tests/unictype/test-pr_combining.c: Regenerated.
27074         * tests/unictype/test-pr_dash.c: Regenerated.
27075         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
27076         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
27077         * tests/unictype/test-pr_deprecated.c: Regenerated.
27078         * tests/unictype/test-pr_diacritic.c: Regenerated.
27079         * tests/unictype/test-pr_extender.c: Regenerated.
27080         * tests/unictype/test-pr_format_control.c: Regenerated.
27081         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
27082         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
27083         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
27084         * tests/unictype/test-pr_id_continue.c: Regenerated.
27085         * tests/unictype/test-pr_id_start.c: Regenerated.
27086         * tests/unictype/test-pr_ideographic.c: Regenerated.
27087         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
27088         * tests/unictype/test-pr_lowercase.c: Regenerated.
27089         * tests/unictype/test-pr_math.c: Regenerated.
27090         * tests/unictype/test-pr_numeric.c: Regenerated.
27091         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
27092         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
27093         Regenerated.
27094         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
27095         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
27096         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
27097         * tests/unictype/test-pr_other_math.c: Regenerated.
27098         * tests/unictype/test-pr_punctuation.c: Regenerated.
27099         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
27100         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
27101         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
27102         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
27103         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
27104         * tests/unictype/test-pr_uppercase.c: Regenerated.
27105         * tests/unictype/test-pr_xid_continue.c: Regenerated.
27106         * tests/unictype/test-pr_xid_start.c: Regenerated.
27107         * tests/unictype/test-pr_zero_width.c: Regenerated.
27108
27109         Update to Unicode 5.1.0.
27110         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
27111         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
27112         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
27113         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
27114         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
27115         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
27116         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
27117         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
27118         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
27119         (nonspacing_table_ind): Update.
27120         * tests/uniwidth/test-uc_width2.sh: Update expected result.
27121
27122         Update to Unicode 5.1.0.
27123         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
27124         code transform.
27125         * lib/uniname/uniname.c (unicode_character_name,
27126         unicode_name_character): Add the range 0x1Fxxx to the code transform.
27127         * lib/uniname/uninames.h: Regenerated.
27128         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
27129
27130 2009-02-07  Bruno Haible  <bruno@clisp.org>
27131
27132         Merge gen-ctype and gen-lbrk into a single program.
27133         * lib/gen-uni-tables.c: New file, incorporating
27134         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
27135         Add directory prefixes to the names of the generated files.
27136         * lib/unictype/gen-ctype.c: Remove file.
27137         * lib/unilbrk/gen-lbrk.c: Remove file.
27138         * modules/gen-uni-tables: New file.
27139         * modules/unictype/gen-ctype: Remove file.
27140         * modules/unilbrk/gen-lbrk: Remove file.
27141
27142 2009-02-07  Bruno Haible  <bruno@clisp.org>
27143
27144         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
27145
27146         New module 'unistr/u32-strcoll'.
27147         * modules/unistr/u32-strcoll: New file.
27148         * lib/unistr/u32-strcoll.c: New file.
27149
27150         New module 'unistr/u16-strcoll'.
27151         * modules/unistr/u16-strcoll: New file.
27152         * lib/unistr/u16-strcoll.c: New file.
27153
27154         New module 'unistr/u8-strcoll'.
27155         * modules/unistr/u8-strcoll: New file.
27156         * lib/unistr/u8-strcoll.c: New file.
27157         * lib/unistr/u-strcoll.h: New file.
27158
27159 2009-02-07  Bruno Haible  <bruno@clisp.org>
27160
27161         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
27162         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
27163         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
27164         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
27165         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
27166         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
27167
27168 2009-02-07  Bruno Haible  <bruno@clisp.org>
27169
27170         Make 64-bit clean.
27171         * lib/unictype/gen-ctype.c (output_predicate, output_category,
27172         output_combclass, output_bidi_category, output_decimal_digit,
27173         output_digit, output_numeric, output_mirror, output_scripts,
27174         output_ident_category): Use proper width specifier in format strings.
27175
27176 2009-02-07  Bruno Haible  <bruno@clisp.org>
27177
27178         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
27179         failure behaviour.
27180
27181 2009-02-07  Jim Meyering  <meyering@redhat.com>
27182
27183         regex: avoid compilation failure with upcoming gcc-4.4
27184         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
27185         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
27186         "... error: integer overflow in preprocessor expression".
27187
27188 2009-02-05  Ben Pfaff  <blp@gnu.org>
27189
27190         Fix link errors on Windows when close module is used.
27191         * modules/close: Add $(LIB_CLOSE) to Link section.
27192         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
27193         $(LIB_CLOSE) on Windows.
27194
27195 2009-02-05  Jim Meyering  <meyering@redhat.com>
27196
27197         still avoid unused-parameter warnings, but do it cleanly
27198         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
27199         (get_fs_usage): Cast to void instead.
27200         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
27201         (dev_from_mount_options, read_file_system_list): Cast to void.
27202         Prompted by Bruno Haible.
27203
27204 2009-02-04  Jim Meyering  <meyering@redhat.com>
27205
27206         fsusage.c: correct copyright year
27207         * lib/fsusage.c: Reflect year in which the change is pushed into
27208
27209         avoid misc. warnings
27210         * lib/fsusage.c (UNUSED_PARAM): Define.
27211         (get_fs_usage): Mark parameter "disk" as unused.
27212         * lib/getugroups.c (getgrent): Use "void" in prototype.
27213         * lib/mountlist.c: Mark unused parameters.
27214         (read_file_system_list): Declare a local with "const".
27215         * lib/nanosleep.c (getnow): Declare static.
27216         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
27217
27218         dirfd: set errno upon failure
27219         * lib/dirfd.c: Include <errno.h>.
27220         Set errno to ENOTSUP when returning -1.
27221         * modules/dirfd (Depends-on): Add errno.
27222         Suggested by John Kodis <kodis@comcast.net>.
27223
27224 2009-02-01  Bruno Haible  <bruno@clisp.org>
27225
27226         Don't assume sizeof (long) >= sizeof (void *).
27227         * lib/memcmp.c: Include stdint.h.
27228         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
27229         srcp2 to 'const byte *'.
27230         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
27231         types to uintptr_t.
27232         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
27233         * modules/memcmp (Depends-on): Add stdint.
27234         Reported by Ozkan Sezer <sezeroz@gmail.com>.
27235
27236 2009-01-30  Eric Blake  <ebb9@byu.net>
27237
27238         fix more require-before-expand issues
27239         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
27240         expand, AC_PROG_AWK.
27241         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
27242
27243 2009-01-28  Eric Blake  <ebb9@byu.net>
27244
27245         version-etc: use consistent URL formatting
27246         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
27247         Improve formatting.  Use fputs for string without %.
27248
27249 2009-01-28  Jim Meyering  <meyering@redhat.com>
27250
27251         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
27252         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
27253         "underquoted definition of NAME" from autoconf-2.59.
27254
27255 2009-01-28  Bruno Haible  <bruno@clisp.org>
27256
27257         * doc/gnulib.texi: Add "Obsolete modules" to index.
27258
27259 2009-01-28  Jim Meyering  <meyering@redhat.com>
27260
27261         useless-if-before-free: recognize more variants
27262         * build-aux/useless-if-before-free: Also recognize e.g.,
27263         if (NULL != p) free (p);
27264
27265 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
27266
27267         test-getaddrinfo: skip (don't fail) this test when there's no network
27268         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
27269         on the presumption that it means you lack network access.
27270
27271 2009-01-26  Jim Meyering  <meyering@redhat.com>
27272
27273         fflush: avoid warnings on modern systems
27274         * lib/fflush.c (rpl_fflush): Move declarations of locals,
27275         pos and result, into scopes where they're used.
27276
27277 2009-01-26  Eric Blake  <ebb9@byu.net>
27278
27279         Silence warning reintroduced by recent extensions patch.
27280         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
27281         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
27282         autoconf.
27283
27284         Backport improved autoconf semantics of AC_DEFUN_ONCE.
27285         * m4/00gnulib.m4: New file.
27286         * gnulib-tool (func_get_filelist): Always use it.
27287         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
27288         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
27289
27290 2009-01-25  Bruno Haible  <bruno@clisp.org>
27291
27292         Make test-quotearg work on MacOS X and AIX.
27293         * tests/test-quotearg.sh: New file.
27294         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
27295         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
27296         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
27297         include <libintl.h>.
27298         (fake_locale): Remove variable.
27299         (gettext, dgettext, dcgettext): Remove functions.
27300         (main): Instead of setting a fake locale, set a real locale. Call
27301         textdomain and bindtextdomain.
27302         * modules/quotearg-tests (Files): Add the new files.
27303         (Depends-on): Add gettext, setenv, unsetenv.
27304         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
27305         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
27306         Augment TESTS_ENVIRONMENT.
27307
27308 2009-01-25  Bruno Haible  <bruno@clisp.org>
27309
27310         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
27311         fr_FR.ISO8859-1 locale on MacOS X.
27312         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
27313         ja_JP.eucJP locale on MacOS X.
27314         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
27315         zh_CN.GB18030 locale on MacOS X.
27316
27317 2009-01-25  Bruno Haible  <bruno@clisp.org>
27318
27319         Avoid link errors on MacOS X 10.3.
27320         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
27321         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
27322
27323 2009-01-25  Bruno Haible  <bruno@clisp.org>
27324
27325         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
27326         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
27327         * modules/pipe (Files): Remove m4/posix_spawn.m4.
27328         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
27329         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
27330         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
27331         posix_spawnattr_init, posix_spawnattr_setsigmask,
27332         posix_spawnattr_setflags, posix_spawnattr_destroy.
27333
27334         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
27335         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
27336         * modules/execute (Files): Remove m4/posix_spawn.m4.
27337         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
27338         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
27339         posix_spawnattr_init, posix_spawnattr_setsigmask,
27340         posix_spawnattr_setflags, posix_spawnattr_destroy.
27341
27342 2009-01-25  Bruno Haible  <bruno@clisp.org>
27343
27344         * lib/glthread/threadlib.c: Include <stdlib.h>.
27345
27346 2009-01-25  Bruno Haible  <bruno@clisp.org>
27347
27348         * lib/glthread/threadlib.c (dummy): New declaration.
27349
27350 2009-01-25  Bruno Haible  <bruno@clisp.org>
27351
27352         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
27353         multibyte characters also for the GB18030 encoding. Don't crash when
27354         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
27355
27356 2009-01-25  Bruno Haible  <bruno@clisp.org>
27357
27358         Avoid redefining 'struct random_data' on OSF/1 5.1.
27359         * lib/stdlib.in.h: Include <random.h> if it exists.
27360         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
27361         HAVE_RANDOM_H. Include <random.h> when testing whether
27362         'struct random_data' exists.
27363         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
27364
27365 2009-01-25  Bruno Haible  <bruno@clisp.org>
27366
27367         Don't install charset.alias on MacOS X >= 10.3.
27368         * lib/localcharset.c (DARWIN7): New macro.
27369         (get_charset_aliases): Hardcode the result for Darwin7.
27370         * modules/localcharset (install-exec-local): Don't install
27371         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
27372
27373 2009-01-25  Bruno Haible  <bruno@clisp.org>
27374
27375         Don't install charset.alias on mingw and Cygwin.
27376         * modules/localcharset (install-exec-local): Don't install
27377         charset.alias on mingw and Cygwin, if the file does not yet exist.
27378         The result for these platforms is hardcoded in localcharset.c.
27379
27380 2009-01-25  Bruno Haible  <bruno@clisp.org>
27381
27382         Make it possible again to use AC_GNU_SOURCE together with gnulib.
27383         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
27384         before requiring AC_USE_SYSTEM_EXTENSIONS.
27385
27386 2009-01-25  Jim Meyering  <meyering@redhat.com>
27387
27388         c-strtod: avoid warnings
27389         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
27390         "assignment discards qualifiers from pointer target type" warnings.
27391
27392 2009-01-24  Bruno Haible  <bruno@clisp.org>
27393
27394         Add support for non-UTF-8 locales on MacOS X.
27395         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
27396         canonical encodings. For Darwin 7 and newer, don't map traditional
27397         encodings to UTF-8.
27398         Reported by Vincent Lefevre <vincent@vinc17.org>
27399         at <http://savannah.gnu.org/bugs/?25235>.
27400
27401 2009-01-24  Bruno Haible  <bruno@clisp.org>
27402
27403         * doc/gnulib.texi (Obsolete modules): New section.
27404         Reported by Mike Frysinger <vapier@gentoo.org>.
27405
27406 2009-01-24  Bruno Haible  <bruno@clisp.org>
27407
27408         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
27409         (%.dvi): New rule.
27410
27411 2009-01-24  Bruno Haible  <bruno@clisp.org>
27412
27413         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
27414         Reported by Eric Blake.
27415
27416 2009-01-24  Bruno Haible  <bruno@clisp.org>
27417
27418         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
27419         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
27420         Reported by Gary V. Vaughan <gary@gnu.org>.
27421
27422 2009-01-24  Bruno Haible  <bruno@clisp.org>
27423
27424         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
27425
27426 2009-01-23  Bruno Haible  <bruno@clisp.org>
27427
27428         Make c-strtod, c-strtold usable in libraries.
27429         * lib/c-strtod.c: Include string.h instead of xalloc.h.
27430         (C_STRTOD): Call strdup instead of xstrdup.
27431         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
27432         * modules/c-strtold (Depends-on): Likewise.
27433         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
27434         * NEWS: Mention the change.
27435         Reported by Michael Gold <mgold@ncf.ca>.
27436
27437 2009-01-23  Jim Meyering  <meyering@redhat.com>
27438
27439         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
27440         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
27441         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
27442
27443 2009-01-23  Simon Josefsson  <simon@josefsson.org>
27444
27445         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
27446         GNU CoreUtils.
27447         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
27448         * modules/version-etc (Description): Update.
27449
27450 2009-01-22  Bruno Haible  <bruno@clisp.org>
27451
27452         Cache the C locale object.
27453         * lib/c-strtod.c (c_locale_cache): New variable.
27454         (c_locale): New function.
27455         (C_STRTOD): Use it, and don't call freelocale.
27456         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
27457         Suggested by Paolo Bonzini.
27458
27459 2009-01-21  Bruno Haible  <bruno@clisp.org>
27460
27461         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
27462         conditions other than overflow.
27463
27464 2009-01-21  Bruno Haible  <bruno@clisp.org>
27465
27466         * lib/c-strtod.c: Include errno.h.
27467         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
27468         value from STRTOD_L and STRTOD.
27469
27470 2009-01-21  Bruno Haible  <bruno@clisp.org>
27471         and Jim Meyering  <meyering@redhat.com>
27472
27473         nanosleep: skip configure test (fail it) for apple universal builds
27474         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
27475         universal builds, assume that nanosleep does not work.
27476         * modules/nanosleep (Depends-on): Add multiarch.
27477
27478         mktime: skip configure test (fail it) for apple universal builds
27479         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
27480         universal builds, assume that mktime does not work.
27481         * modules/mktime (Depends-on): Add multiarch.
27482
27483 2009-01-21  Eric Blake  <ebb9@byu.net>
27484
27485         multiarch: avoid expand-before-require warning
27486         * modules/multiarch (configure.ac): Require, rather than expand,
27487         gl_MULTIARCH.
27488         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
27489         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
27490         enforce that all clients require it.  Partial reversion of
27491         2008-12-29 patch.
27492
27493         error: avoid expand-before-require warning
27494         * modules/errno (configure.ac): Require, rather than expand,
27495         gl_HEADER_ERRNO_H.
27496         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
27497         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
27498         enforce that all clients require it.
27499
27500         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
27501         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
27502         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
27503         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
27504
27505 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
27506
27507         Revert:
27508         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
27509
27510         regex: do not depend on obsolete modules.
27511         * modules/regex: Remove memcmp and memmove.
27512
27513 2009-01-20  Bruno Haible  <bruno@clisp.org>
27514
27515         Make the 'link' module link on Windows NT 4.
27516         * lib/link.c (_WIN32_WINNT): Don't define.
27517         (CreateHardLinkFuncType): New type.
27518         (CreateHardLinkFunc, initialized): New variables.
27519         (initialize): New function.
27520         (link): Invoke CreateHardLink indirectly through the function pointer.
27521
27522 2009-01-20  Bruno Haible  <bruno@clisp.org>
27523
27524         Fix compilation failure on mingw.
27525         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
27526
27527 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
27528
27529         * doc/c-strtod.texi: Mention a couple of restrictions.
27530
27531 2009-01-20  Jim Meyering  <meyering@redhat.com>
27532
27533         gettimeofday: move more declarations out of functions
27534         * lib/gettimeofday.c: Move extern declarations of tzset and
27535         gmtime out of containing functions.  Prompted by Bruno Haible.
27536
27537 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
27538
27539         regex: do not depend on obsolete modules.
27540         * modules/regex: Remove memcmp and memmove.
27541
27542 2009-01-19  Bruno Haible  <bruno@clisp.org>
27543
27544         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
27545         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
27546         gl_BIGENDIAN, not AC_C_BIGENDIAN.
27547         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
27548         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
27549
27550 2009-01-19  Bruno Haible  <bruno@clisp.org>
27551
27552         * tests/test-link.c: Include <errno.h>.
27553         (main): Exit with code 77 when a hard link cannot be created due to
27554         the file system.
27555         * tests/test-link.sh: Skip test when a hard link cannot be created due
27556         to the file system.
27557         Suggested by Eric Blake.
27558
27559 2009-01-19  Martin Lambers  <marlam@marlam.de>
27560
27561         * modules/link-tests: New file.
27562         * tests/test-link.sh: New file.
27563         * tests/test-link.c: New file.
27564
27565 2009-01-19  Eric Blake  <ebb9@byu.net>
27566
27567         doc: mention another function added in cygwin 1.7.0
27568         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
27569         Another new function in cygwin 1.7.
27570
27571 2009-01-19  Bruno Haible  <bruno@clisp.org>
27572
27573         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
27574         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
27575         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
27576         gl_BIGENDIAN, not AC_C_BIGENDIAN.
27577         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
27578         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
27579         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27580         * m4/md4.m4 (gl_MD4): Likewise.
27581         * m4/md5.m4 (gl_MD5): Likewise.
27582         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
27583         * m4/sha1.m4 (gl_SHA1): Likewise.
27584         * m4/sha256.m4 (gl_SHA256): Likewise.
27585         * m4/sha512.m4 (gl_SHA512): Likewise.
27586
27587 2009-01-19  Bruno Haible  <bruno@clisp.org>
27588
27589         * modules/uniname/uniname-tests (Depends-on): Add progname.
27590         * tests/uniname/test-uninames.c: Include progname.h.
27591         (main): Call set_program_name.
27592
27593         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
27594         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
27595         (main): Call set_program_name.
27596
27597         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
27598         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
27599         (main): Call set_program_name.
27600
27601         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
27602         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
27603         (main): Call set_program_name.
27604
27605         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
27606         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
27607         (main): Call set_program_name.
27608
27609         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
27610         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
27611         (main): Call set_program_name.
27612
27613         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
27614         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
27615         (main): Call set_program_name.
27616
27617         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
27618         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
27619         (main): Call set_program_name.
27620
27621         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
27622         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
27623         (main): Call set_program_name.
27624
27625 2009-01-19  Eric Blake  <ebb9@byu.net>
27626
27627         test-unistd: test previous patch
27628         * tests/test-unistd.c: Test *_FILENO macros.
27629
27630         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
27631         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
27632         Guarantee a definition.
27633         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
27634         * modules/unistd-safer (Depends-on): Add dependency on unistd.
27635         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
27636         * lib/dup-safer.c (STDERR_FILENO): Likewise.
27637         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
27638         Likewise.
27639         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
27640         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
27641         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
27642         Likewise.
27643         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
27644         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
27645         (STDERR_FILENO): Likewise.
27646         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
27647         (STDERR_FILENO): Likewise.
27648         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
27649         (STDERR_FILENO): Likewise.
27650         Reported by Elbert Pol.
27651
27652 2009-01-19  Eric Blake  <ebb9@byu.net>
27653
27654         doc: mention more functions added in cygwin 1.7.0
27655         * doc/posix-functions/abort.texi (abort): Update wording related
27656         to cygwin.
27657         * doc/posix-functions/daylight.texi (daylight): Likewise.
27658         * doc/posix-functions/optarg.texi (optarg): Likewise.
27659         * doc/posix-functions/optarg.texi (opterr): Likewise.
27660         * doc/posix-functions/optarg.texi (optind): Likewise.
27661         * doc/posix-functions/optarg.texi (optopt): Likewise.
27662         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
27663         worked in 1.5.x, and was withdrawn in 1.7.
27664         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
27665         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
27666         cygwin versions.
27667         * doc/posix-functions/perror.texi (perror): Likewise.
27668         * doc/posix-functions/printf.texi (printf): Likewise.
27669         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
27670         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
27671         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
27672         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
27673         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
27674         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
27675         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
27676         Likewise.
27677         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
27678         Likewise.
27679         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
27680         this function.
27681         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
27682         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
27683         Likewise.
27684         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
27685         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
27686         * doc/posix-functions/confstr.texi (confstr): Likewise.
27687         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
27688         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
27689         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
27690         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
27691         * doc/posix-functions/fputws.texi (fputws): Likewise.
27692         * doc/posix-functions/fwide.texi (fwide): Likewise.
27693         * doc/posix-functions/getwc.texi (getwc): Likewise.
27694         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
27695         * doc/posix-functions/putwc.texi (putwc): Likewise.
27696         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
27697         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
27698         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
27699         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
27700         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
27701         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
27702         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
27703         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
27704         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
27705         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
27706         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
27707
27708 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
27709
27710         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
27711         * lib/ioctl.c: Include <sys/ioctl.h>.
27712
27713 2009-01-19  Simon Josefsson  <simon@josefsson.org>
27714
27715         * modules/getdate-tests (Depends-on): Add progname.
27716         * tests/test-getdate.c: Use progname module, to avoid link errors
27717         on non-glibc systems.
27718
27719 2009-01-18  Simon Josefsson  <simon@josefsson.org>
27720
27721         * modules/filenamecat-tests (Depends-on): Add progname.
27722         * modules/fstrcmp-tests (Depends-on): Likewise.
27723
27724         * tests/test-filenamecat.c: Use progname module, to avoid link
27725         errors on non-glibc systems.
27726         * tests/test-fstrcmp.c: Likewise.
27727
27728 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
27729
27730         gettimeofday: avoid warning: nested extern declaration of 'localtime'
27731         * lib/gettimeofday.c: Move extern declaration out of function.
27732
27733 2009-01-18  Bruno Haible  <bruno@clisp.org>
27734
27735         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
27736         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
27737         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
27738
27739 2009-01-18  Bruno Haible  <bruno@clisp.org>
27740
27741         * lib/strftime.c (MEMPCPY): Remove unused macro.
27742         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
27743
27744 2009-01-18  Martin Lambers  <marlam@marlam.de>
27745
27746         New module 'link'.
27747         * lib/unistd.in.h (link): New declaration.
27748         * lib/link.c: New file.
27749         * m4/link.m4: New file.
27750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
27751         HAVE_LINK.
27752         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
27753         * modules/link: New file.
27754         * doc/posix-functions/link.texi: Mention the new module.
27755
27756 2009-01-18  Bruno Haible  <bruno@clisp.org>
27757
27758         * tests/test-avltree_list.c (main): Call set_program_name.
27759         * tests/test-avltree_oset.c (main): Likewise.
27760         * tests/test-obstack-printf.c: Include progname.h.
27761         (main): Call set_program_name.
27762         * tests/test-quotearg.c: Include progname.h.
27763         (main): Call set_program_name.
27764         * tests/test-xmemdup0.c: Include progname.h.
27765         (main): Call set_program_name.
27766
27767 2009-01-18  Bruno Haible  <bruno@clisp.org>
27768
27769         New module 'alphasort'.
27770         * lib/dirent.in.h (alphasort): New declaration.
27771         * lib/alphasort.c: New file, from glibc with modifications.
27772         * m4/alphasort.m4: New file.
27773         * modules/alphasort: New file.
27774         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
27775         HAVE_ALPHASORT.
27776         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
27777         HAVE_ALPHASORT.
27778         * doc/posix-functions/alphasort.texi: Mention the new module and the
27779         portability problems.
27780
27781 2009-01-18  Bruno Haible  <bruno@clisp.org>
27782
27783         New module 'scandir'.
27784         * lib/dirent.in.h (scandir): New declaration.
27785         * lib/scandir.c: New file, from glibc with modifications.
27786         * m4/scandir.m4: New file.
27787         * modules/scandir: New file.
27788         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
27789         HAVE_SCANDIR.
27790         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
27791         HAVE_SCANDIR.
27792         * doc/posix-functions/scandir.texi: Mention the new module and the
27793         portability problems.
27794
27795 2009-01-17  Bruno Haible  <bruno@clisp.org>
27796
27797         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
27798         Update documentation.
27799         (func_remove_suffix): Escape all dots in the suffix. Update
27800         documentation.
27801         (func_filter_filelist): Update documentation.
27802         Reported by Ralf Wildenhues.
27803
27804 2009-01-17  Bruno Haible  <bruno@clisp.org>
27805
27806         * modules/dprintf-posix-tests: New file.
27807         * tests/test-dprintf-posix.sh: New file.
27808         * tests/test-dprintf-posix.c: New file.
27809
27810         New modules 'dprintf', 'dprintf-posix'.
27811         * lib/stdio.in.h (dprintf): New declaration.
27812         * lib/dprintf.c: New file.
27813         * m4/dprintf.m4: New file.
27814         * m4/dprintf-posix.m4: New file.
27815         * modules/dprintf: New file.
27816         * modules/dprintf-posix: New file.
27817         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
27818         HAVE_DPRINTF, REPLACE_DPRINTF.
27819         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
27820         HAVE_DPRINTF, REPLACE_DPRINTF.
27821         * doc/posix-functions/dprintf.texi: Mention the new modules.
27822
27823 2009-01-17  Bruno Haible  <bruno@clisp.org>
27824
27825         * modules/vdprintf-posix-tests: New file.
27826         * tests/test-vdprintf-posix.sh: New file.
27827         * tests/test-vdprintf-posix.c: New file.
27828
27829         New modules 'vdprintf', 'vdprintf-posix'.
27830         * lib/stdio.in.h (vdprintf): New declaration.
27831         * lib/vdprintf.c: New file.
27832         * m4/vdprintf.m4: New file.
27833         * m4/vdprintf-posix.m4: New file.
27834         * modules/vdprintf: New file.
27835         * modules/vdprintf-posix: New file.
27836         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
27837         HAVE_VDPRINTF, REPLACE_VDPRINTF.
27838         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
27839         HAVE_VDPRINTF, REPLACE_VDPRINTF.
27840         * doc/posix-functions/vdprintf.texi: Mention the new modules.
27841
27842 2009-01-17  Bruno Haible  <bruno@clisp.org>
27843
27844         Fix replacement of fopen on mingw.
27845         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
27846         mingw.
27847
27848 2009-01-17  Bruno Haible  <bruno@clisp.org>
27849
27850         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
27851         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
27852
27853 2009-01-17  Bruno Haible  <bruno@clisp.org>
27854
27855         Avoid test-fflush2.sh failure on mingw.
27856         * tests/test-fflush2.c: Include binary-io.h.
27857         (main): Put standard input into binary mode.
27858         * modules/fflush-tests (Depends-on): Add binary-io.
27859
27860 2009-01-17  Bruno Haible  <bruno@clisp.org>
27861
27862         * lib/wchar.in.h: In another particular situation, include only the
27863         system's <wchar.h> file.
27864         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
27865         Reported by Albert Chin-A-Young <china@thewrittenword.com>
27866         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
27867
27868 2009-01-17  Bruno Haible  <bruno@clisp.org>
27869
27870         Support for stripping executables in --enable-relocatable.
27871         * build-aux/install-reloc: Expect one more argument, or an environment
27872         variable RELOC_STRIP_PROG. If set, strip the destination program and
27873         its wrapper.
27874         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
27875         RELOC_STRIP_PROG.
27876         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
27877         to set RELOCATABLE_STRIP.
27878         * NEWS: Mention the new Makefile requirement.
27879
27880 2009-01-17  Bruno Haible  <bruno@clisp.org>
27881
27882         * build-aux/install-reloc: Remove debugging information left over by
27883         C compiler on MacOS X.
27884
27885 2009-01-17  Bruno Haible  <bruno@clisp.org>
27886
27887         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
27888         * lib/progreloc.c (find_executable): Fix type of pointer passed to
27889         _NSGetExecutablePath.
27890
27891 2009-01-16  Jim Meyering  <meyering@redhat.com>
27892
27893         strerror: avoid warnings about discarding "const"
27894         * lib/strerror.c (rpl_strerror): Instead of returning a const
27895         string from each and every "case", use a variable, and add a single
27896         cast after the switch.
27897
27898 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
27899
27900         * lib/arpa_inet.in.h: Add extern "C" block for C++.
27901
27902 2009-01-16  Bruno Haible  <bruno@clisp.org>
27903
27904         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
27905         array initializer syntax that also works in C++ mode.
27906         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27907
27908 2009-01-16  Jim Meyering  <meyering@redhat.com>
27909
27910         poll: suppress a warning
27911         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
27912         to ignore "...unsigned expression < 0 is always false" warnings.
27913
27914 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
27915
27916         poll: remove declarations of unused variables
27917         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
27918         sockbuf and optlen.
27919
27920 2009-01-15  Bruno Haible  <bruno@clisp.org>
27921
27922         Make fflush-after-ungetc POSIX compliant on BSD systems.
27923         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
27924         (clear_ungetc_buffer): Implement also for other systems.
27925         (rpl_fflush): On glibc systems, invoke
27926         clear_ungetc_buffer_preserving_position. Otherwise, invoke
27927         clear_ungetc_buffer after fetching the stream's position, not before.
27928
27929 2009-01-15  Bruno Haible  <bruno@clisp.org>
27930
27931         Make fflush-after-ungetc POSIX compliant on glibc systems.
27932         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
27933         after ungetc.
27934         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
27935         (rpl_fflush): On glibc systems, simply call the system's fflush
27936         function after clearing the ungetc buffer.
27937         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
27938         Instead, lseek only to the end of file, then use the system's fseeko
27939         for the rest. On glibc systems, reset the EOF indicator bit.
27940
27941 2009-01-15  Jim Meyering  <meyering@redhat.com>
27942
27943         openmp.m4: revert quote-adding change, for portability to older autoconf
27944         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
27945         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
27946         Simon Josefsson noticed the problem when using autoconf-2.61.
27947
27948 2009-01-15  Bruno Haible  <bruno@clisp.org>
27949
27950         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
27951         * tests/test-fflush2.c (ASSERT): Always fail.
27952         (main): Add two tests for fflush() after ungetc(), taking into account
27953         the Austin Group's clarification.
27954         Suggested by Eric Blake.
27955
27956 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
27957
27958         mktime.m4: remove K&R-style function prototypes
27959         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
27960         for the Sun C++ compiler.
27961
27962 2009-01-14  Bruno Haible  <bruno@clisp.org>
27963
27964         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
27965         while including <wchar.h>.
27966         * lib/wchar.in.h: In two particular situations on HP-UX, include only
27967         the system's <wchar.h> file.
27968         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27969
27970 2009-01-14  Bruno Haible  <bruno@clisp.org>
27971
27972         * m4/csharp.m4: Don't mention gettext on the serial number line.
27973         * m4/csharpexec.m4: Likewise.
27974         * m4/eaccess.m4: Likewise.
27975         * m4/javaexec.m4: Likewise.
27976         * m4/sig_atomic_t.m4: Likewise.
27977         * m4/tmpdir.m4: Likewise.
27978         * m4/intldir.m4: Bump gettext version.
27979         * m4/lib-ld.m4: Likewise.
27980
27981 2009-01-14  Bruno Haible  <bruno@clisp.org>
27982
27983         * lib/progname.c (set_program_name): Add more comments.
27984         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
27985
27986 2009-01-14  Simon Josefsson  <simon@josefsson.org>
27987
27988         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
27989         were sys/stat.h does not define it.
27990
27991 2009-01-14  Jim Meyering  <meyering@redhat.com>
27992
27993         many *.m4 files: improve m4 quoting
27994         99% of this change was performed by running the following commands:
27995         git ls-files | grep '\.m4$' | xargs perl -pi \
27996           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
27997           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
27998           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
27999           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
28000         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
28001         The remainder were to add Copyright dates, increment serial numbers,
28002         undo some changes in comments, exclude m4/intl.m4, and add quotes
28003         around the "1" in ",1" where the unusual spacing prohibited the
28004         above regexps from doing the job.  For more details, see
28005         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
28006         * m4/acl.m4: Modified.
28007         * m4/afs.m4: Likewise.
28008         * m4/alloca.m4: Likewise.
28009         * m4/argp.m4: Likewise.
28010         * m4/argz.m4: Likewise.
28011         * m4/atexit.m4: Likewise.
28012         * m4/bison-i18n.m4: Likewise.
28013         * m4/bison.m4: Likewise.
28014         * m4/byteswap.m4: Likewise.
28015         * m4/c-stack.m4: Likewise.
28016         * m4/c-strtod.m4: Likewise.
28017         * m4/calloc.m4: Likewise.
28018         * m4/canonicalize-lgpl.m4: Likewise.
28019         * m4/chown.m4: Likewise.
28020         * m4/clock_time.m4: Likewise.
28021         * m4/codeset.m4: Likewise.
28022         * m4/copy-file.m4: Likewise.
28023         * m4/csharp.m4: Likewise.
28024         * m4/csharpcomp.m4: Likewise.
28025         * m4/csharpexec.m4: Likewise.
28026         * m4/d-ino.m4: Likewise.
28027         * m4/d-type.m4: Likewise.
28028         * m4/dirfd.m4: Likewise.
28029         * m4/double-slash-root.m4: Likewise.
28030         * m4/eaccess.m4: Likewise.
28031         * m4/eealloc.m4: Likewise.
28032         * m4/environ.m4: Likewise.
28033         * m4/errno_h.m4: Likewise.
28034         * m4/euidaccess.m4: Likewise.
28035         * m4/execute.m4: Likewise.
28036         * m4/fatal-signal.m4: Likewise.
28037         * m4/fchdir.m4: Likewise.
28038         * m4/fcntl_h.m4: Likewise.
28039         * m4/fileblocks.m4: Likewise.
28040         * m4/filenamecat.m4: Likewise.
28041         * m4/findprog.m4: Likewise.
28042         * m4/flexmember.m4: Likewise.
28043         * m4/fnmatch.m4: Likewise.
28044         * m4/fopen.m4: Likewise.
28045         * m4/fpending.m4: Likewise.
28046         * m4/fprintf-posix.m4: Likewise.
28047         * m4/free.m4: Likewise.
28048         * m4/frexp.m4: Likewise.
28049         * m4/frexpl.m4: Likewise.
28050         * m4/fsusage.m4: Likewise.
28051         * m4/ftruncate.m4: Likewise.
28052         * m4/gc-camellia.m4: Likewise.
28053         * m4/gc-random.m4: Likewise.
28054         * m4/gc.m4: Likewise.
28055         * m4/getaddrinfo.m4: Likewise.
28056         * m4/getcwd-abort-bug.m4: Likewise.
28057         * m4/getcwd-path-max.m4: Likewise.
28058         * m4/getdate.m4: Likewise.
28059         * m4/getdomainname.m4: Likewise.
28060         * m4/getgroups.m4: Likewise.
28061         * m4/gethostname.m4: Likewise.
28062         * m4/gethrxtime.m4: Likewise.
28063         * m4/getline.m4: Likewise.
28064         * m4/getloadavg.m4: Likewise.
28065         * m4/getndelim2.m4: Likewise.
28066         * m4/getpass.m4: Likewise.
28067         * m4/gettext.m4: Likewise.
28068         * m4/gettime.m4: Likewise.
28069         * m4/gettimeofday.m4: Likewise.
28070         * m4/gnulib-common.m4: Likewise.
28071         * m4/group-member.m4: Likewise.
28072         * m4/host-os.m4: Likewise.
28073         * m4/iconv.m4: Likewise.
28074         * m4/iconv_open.m4: Likewise.
28075         * m4/inet_ntop.m4: Likewise.
28076         * m4/inet_pton.m4: Likewise.
28077         * m4/inline.m4: Likewise.
28078         * m4/intldir.m4: Likewise.
28079         * m4/intlmacosx.m4: Likewise.
28080         * m4/intmax.m4: Likewise.
28081         * m4/intmax_t.m4: Likewise.
28082         * m4/inttypes.m4: Likewise.
28083         * m4/inttypes_h.m4: Likewise.
28084         * m4/inttypes-pri.m4: Likewise.
28085         * m4/isapipe.m4: Likewise.
28086         * m4/isnand.m4: Likewise.
28087         * m4/isnanf.m4: Likewise.
28088         * m4/isnanl.m4: Likewise.
28089         * m4/javacomp.m4: Likewise.
28090         * m4/javaexec.m4: Likewise.
28091         * m4/jm-winsz1.m4: Likewise.
28092         * m4/jm-winsz2.m4: Likewise.
28093         * m4/lchown.m4: Likewise.
28094         * m4/lcmessage.m4: Likewise.
28095         * m4/ldexpl.m4: Likewise.
28096         * m4/lib-ld.m4: Likewise.
28097         * m4/lib-link.m4: Likewise.
28098         * m4/libsigsegv.m4: Likewise.
28099         * m4/link-follow.m4: Likewise.
28100         * m4/localcharset.m4: Likewise.
28101         * m4/locale-fr.m4: Likewise.
28102         * m4/locale-ja.m4: Likewise.
28103         * m4/locale-tr.m4: Likewise.
28104         * m4/locale-zh.m4: Likewise.
28105         * m4/lock.m4: Likewise.
28106         * m4/longlong.m4: Likewise.
28107         * m4/ls-mntd-fs.m4: Likewise.
28108         * m4/lstat.m4: Likewise.
28109         * m4/malloc.m4: Likewise.
28110         * m4/mathl.m4: Likewise.
28111         * m4/mbrtowc.m4: Likewise.
28112         * m4/mbstate_t.m4: Likewise.
28113         * m4/mbswidth.m4: Likewise.
28114         * m4/memchr.m4: Likewise.
28115         * m4/memcmp.m4: Likewise.
28116         * m4/memcpy.m4: Likewise.
28117         * m4/memmem.m4: Likewise.
28118         * m4/memmove.m4: Likewise.
28119         * m4/mempcpy.m4: Likewise.
28120         * m4/memrchr.m4: Likewise.
28121         * m4/memset.m4: Likewise.
28122         * m4/minmax.m4: Likewise.
28123         * m4/mkdir-slash.m4: Likewise.
28124         * m4/mkdtemp.m4: Likewise.
28125         * m4/mktime.m4: Likewise.
28126         * m4/mmap-anon.m4: Likewise.
28127         * m4/mountlist.m4: Likewise.
28128         * m4/nanosleep.m4: Likewise.
28129         * m4/nls.m4: Likewise.
28130         * m4/nocrash.m4: Likewise.
28131         * m4/open.m4: Likewise.
28132         * m4/openat.m4: Likewise.
28133         * m4/openmp.m4: Likewise.
28134         * m4/pathmax.m4: Likewise.
28135         * m4/perl.m4: Likewise.
28136         * m4/physmem.m4: Likewise.
28137         * m4/pipe.m4: Likewise.
28138         * m4/po.m4: Likewise.
28139         * m4/poll.m4: Likewise.
28140         * m4/posixtm.m4: Likewise.
28141         * m4/posixver.m4: Likewise.
28142         * m4/printf-frexp.m4: Likewise.
28143         * m4/printf-frexpl.m4: Likewise.
28144         * m4/printf-posix.m4: Likewise.
28145         * m4/printf-posix-rpl.m4: Likewise.
28146         * m4/printf.m4: Likewise.
28147         * m4/progtest.m4: Likewise.
28148         * m4/putenv.m4: Likewise.
28149         * m4/readline.m4: Likewise.
28150         * m4/readlink.m4: Likewise.
28151         * m4/readutmp.m4: Likewise.
28152         * m4/realloc.m4: Likewise.
28153         * m4/regex.m4: Likewise.
28154         * m4/relocatable.m4: Likewise.
28155         * m4/relocatable-lib.m4: Likewise.
28156         * m4/rename-dest-slash.m4: Likewise.
28157         * m4/rename.m4: Likewise.
28158         * m4/rmdir-errno.m4: Likewise.
28159         * m4/rmdir.m4: Likewise.
28160         * m4/roundf.m4: Likewise.
28161         * m4/roundl.m4: Likewise.
28162         * m4/rpmatch.m4: Likewise.
28163         * m4/save-cwd.m4: Likewise.
28164         * m4/selinux-selinux-h.m4: Likewise.
28165         * m4/setenv.m4: Likewise.
28166         * m4/settime.m4: Likewise.
28167         * m4/sig2str.m4: Likewise.
28168         * m4/sig_atomic_t.m4: Likewise.
28169         * m4/signalblocking.m4: Likewise.
28170         * m4/signbit.m4: Likewise.
28171         * m4/sigpipe.m4: Likewise.
28172         * m4/sockets.m4: Likewise.
28173         * m4/sockpfaf.m4: Likewise.
28174         * m4/st_dm_mode.m4: Likewise.
28175         * m4/stat-time.m4: Likewise.
28176         * m4/stdbool.m4: Likewise.
28177         * m4/stdint.m4: Likewise.
28178         * m4/stdint_h.m4: Likewise.
28179         * m4/stpcpy.m4: Likewise.
28180         * m4/stpncpy.m4: Likewise.
28181         * m4/strcase.m4: Likewise.
28182         * m4/strchrnul.m4: Likewise.
28183         * m4/strcspn.m4: Likewise.
28184         * m4/strdup.m4: Likewise.
28185         * m4/strftime.m4: Likewise.
28186         * m4/strndup.m4: Likewise.
28187         * m4/strnlen.m4: Likewise.
28188         * m4/strpbrk.m4: Likewise.
28189         * m4/strptime.m4: Likewise.
28190         * m4/strsep.m4: Likewise.
28191         * m4/strtod.m4: Likewise.
28192         * m4/strtoimax.m4: Likewise.
28193         * m4/strtok_r.m4: Likewise.
28194         * m4/strtol.m4: Likewise.
28195         * m4/strtoll.m4: Likewise.
28196         * m4/strtoul.m4: Likewise.
28197         * m4/strtoull.m4: Likewise.
28198         * m4/strtoumax.m4: Likewise.
28199         * m4/strverscmp.m4: Likewise.
28200         * m4/threadlib.m4: Likewise.
28201         * m4/timegm.m4: Likewise.
28202         * m4/tm_gmtoff.m4: Likewise.
28203         * m4/tmpdir.m4: Likewise.
28204         * m4/tmpfile.m4: Likewise.
28205         * m4/tzset.m4: Likewise.
28206         * m4/uintmax_t.m4: Likewise.
28207         * m4/unlinkdir.m4: Likewise.
28208         * m4/unlocked-io.m4: Likewise.
28209         * m4/uptime.m4: Likewise.
28210         * m4/userspec.m4: Likewise.
28211         * m4/utimbuf.m4: Likewise.
28212         * m4/utime.m4: Likewise.
28213         * m4/utimes-null.m4: Likewise.
28214         * m4/utimes.m4: Likewise.
28215         * m4/vararrays.m4: Likewise.
28216         * m4/vasnprintf.m4: Likewise.
28217         * m4/vfprintf-posix.m4: Likewise.
28218         * m4/vprintf-posix.m4: Likewise.
28219         * m4/wait-process.m4: Likewise.
28220         * m4/wchar_t.m4: Likewise.
28221         * m4/wint_t.m4: Likewise.
28222         * m4/write-any-file.m4: Likewise.
28223         * m4/yield.m4: Likewise.
28224
28225 2009-01-13  Bruno Haible  <bruno@clisp.org>
28226
28227         Avoid test-copy-file.sh failures when ACL support insufficient.
28228         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
28229         TESTS_ENVIRONMENT.
28230         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
28231         Reported by Jim Meyering.
28232
28233 2009-01-13  Bruno Haible  <bruno@clisp.org>
28234
28235         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
28236         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
28237         * modules/unistdio/u8-printf-parse (Files): Likewise.
28238         * modules/unistdio/u32-printf-parse (Files): Likewise.
28239         * modules/unistdio/ulc-printf-parse (Files): Likewise.
28240
28241 2009-01-13  Simon Josefsson  <simon@josefsson.org>
28242
28243         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
28244         and m4/inttypes_h.m4 too.
28245
28246 2009-01-12  Eric Blake  <ebb9@byu.net>
28247
28248         tests: IRIX 6.2 cc can't compile -0.0 into .data
28249         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
28250         rather than at compile-time.
28251         * tests/test-floorl.c (minus_zero): Likewise.
28252         * tests/test-frexpl.c (minus_zero): Likewise.
28253         * tests/test-isnan.c (minus_zerol): Likewise.
28254         * tests/test-isnanl.h (minus_zero): Likewise.
28255         * tests/test-ldexpl.c (minus_zero): Likewise.
28256         * tests/test-roundl.c (minus_zero): Likewise.
28257         * tests/test-signbit.c (minus_zerol): Likewise.
28258         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
28259         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
28260         * tests/test-truncl.c (minus_zero): Likewise.
28261         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
28262         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
28263         Reported by Tom G. Christensen and Nelson H. F. Beebe.
28264
28265 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
28266
28267         regex: fix glibc bug 9697
28268         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
28269         handling.
28270
28271 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
28272
28273         regex: fix glibc bug 697
28274         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
28275         being NULL also if there are no backreferences.
28276
28277 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
28278
28279         regex: merge glibc changes
28280         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
28281         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
28282         re_string_skip_chars, re_string_reconstruct): Likewise.
28283         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
28284
28285 2009-01-07  Jim Meyering  <meyering@redhat.com>
28286
28287         poll: filter through cppi
28288         * lib/poll.c: Indent cpp directives to reflect nesting.
28289
28290 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
28291
28292         poll: don't return uninitialized
28293         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
28294
28295 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
28296
28297         avoid compile failure on AIX 6.1
28298         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
28299         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
28300
28301 2009-01-04  Jim Meyering  <meyering@redhat.com>
28302
28303         remove duplicate inclusion of <stdio.h>
28304         * tests/test-fprintf-posix.c: Likewise.
28305         * tests/test-printf-posix.c: Likewise.
28306         * tests/test-snprintf-posix.c: Likewise.
28307         * tests/test-sprintf-posix.c: Likewise.
28308         * tests/test-vasprintf-posix.c: Likewise.
28309         * tests/test-vfprintf-posix.c: Likewise.
28310         * tests/test-vprintf-posix.c: Likewise.
28311         * tests/test-vsnprintf-posix.c: Likewise.
28312         * tests/test-vsprintf-posix.c: Likewise.
28313
28314 2009-01-03  Jim Meyering  <meyering@redhat.com>
28315
28316         gnulib-tool: fix sed-based filtering
28317         * gnulib-tool (func_filter_filelist): Remove extra backslash
28318         in sed_fff_filter definition.
28319
28320 2009-01-02  Jim Meyering  <meyering@redhat.com>
28321
28322         strftime: avoid compilation failure on Solaris 2.6
28323         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
28324         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
28325         Don't #define mbrlen or mbsinit, since now they're guaranteed to
28326         be available.  Reported by Tom G. Christensen.  Details in
28327         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
28328
28329 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28330             Bruno Haible  <bruno@clisp.org>
28331
28332         Speed up gnulib-tool by doing more string processing through shell
28333         built-ins.
28334         * gnulib-tool (fast_func_append): New variable.
28335         (func_remove_prefix, func_remove_suffix): New functions.
28336         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
28337         (func_filter_filelist): New function.
28338         (func_get_dependencies): Use func_remove_suffix instead of sed.
28339         (func_get_automake_snippet): Use func_filter_filelist instead of a
28340         subshell and sed invocation.
28341
28342 2009-01-01  Bruno Haible  <bruno@clisp.org>
28343
28344         Fix a security bug.
28345         * gnulib-tool (func_import, import, update): Don't allow the characters
28346         '"', '$', '`', '\' in macro arguments that become part of commands that
28347         are evaluated.
28348
28349 2009-01-01  Bruno Haible  <bruno@clisp.org>
28350
28351         * gnulib-tool (func_reset_sigpipe): Add more comments.
28352
28353 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28354
28355         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
28356         func_emit_tests_Makefile_am, func_import): Abort loops early if we
28357         already know the answer.
28358
28359 2009-01-01  Jim Meyering  <meyering@redhat.com>
28360
28361         * lib/version-etc.c (version_etc_va): Update copyright year.
28362
28363 2008-12-30  Bruno Haible  <bruno@clisp.org>
28364
28365         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
28366         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
28367         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
28368
28369 2008-12-29  Eric Blake  <ebb9@byu.net>
28370
28371         multiarch: avoid autoconf AC_REQUIRE bug
28372         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
28373         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
28374         2.63 and older.
28375         Reported by Bruno Haible, and analyzed in
28376         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
28377
28378 2008-12-29  Bruno Haible  <bruno@clisp.org>
28379
28380         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
28381         files in subdirectories correctly.
28382         Reported by Ralf Wildenhues.
28383
28384 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28385
28386         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
28387         rather than 'join FILE -', for Solaris join.
28388
28389 2008-12-29  Bruno Haible  <bruno@clisp.org>
28390
28391         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
28392         quoting.
28393         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
28394         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
28395         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
28396         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
28397         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
28398         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
28399         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
28400         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
28401         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
28402         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
28403         * m4/nls.m4 (AM_NLS): Likewise.
28404         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
28405         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
28406         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
28407         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
28408         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
28409         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
28410         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
28411         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
28412         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
28413         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
28414         * m4/xsize.m4 (gl_XSIZE): Likewise.
28415         Suggested by Jim Meyering.
28416
28417 2008-11-17  Bruce Korb  <bkorb@gnu.org>
28418
28419         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
28420         * lib/parse-duration.c: use a switch instead of cascading if's.
28421
28422 2008-12-29  Eric Blake  <ebb9@byu.net>
28423
28424         wchar.h: supply WEOF on Irix 5.3
28425         * lib/wchar.in.h (wint_t): Also supply WEOF.
28426         * lib/wctype.in.h (wint_t): Likewise.
28427         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
28428         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
28429         Reported by Tom G. Christensen.
28430
28431 2008-12-26  Bruno Haible  <bruno@clisp.org>
28432
28433         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
28434         i486, i586, i686.
28435
28436 2008-12-26  Bruno Haible  <bruno@clisp.org>
28437
28438         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
28439
28440 2008-12-26  Bruno Haible  <bruno@clisp.org>
28441
28442         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
28443         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
28444         not __STDC_CONSTANT_MACROS.
28445         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
28446
28447 2008-12-25  Bruno Haible  <bruno@clisp.org>
28448
28449         Add support for universal builds to vasnprintf.
28450         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
28451         universal builds, guess no.
28452         * modules/vasnprintf-posix (Depends-on): Add multiarch.
28453         * modules/vasprintf-posix (Depends-on): Likewise.
28454         * modules/fprintf-posix (Depends-on): Likewise.
28455         * modules/vfprintf-posix (Depends-on): Likewise.
28456         * modules/snprintf-posix (Depends-on): Likewise.
28457         * modules/vsnprintf-posix (Depends-on): Likewise.
28458         * modules/sprintf-posix (Depends-on): Likewise.
28459         * modules/vsprintf-posix (Depends-on): Likewise.
28460         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28461         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28462         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28463         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28464         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28465         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28466         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28467
28468         Add support for universal builds to <inttypes.h>.
28469         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
28470         _SCNu64_PREFIX): In Apple
28471         universal builds, define directly, using _LP64.
28472         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
28473         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
28474         * modules/inttypes (Depends-on): Add multiarch.
28475         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
28476
28477         Add support for universal builds to <stdint.h>.
28478         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
28479         universal builds, define directly, using _LP64.
28480         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
28481         Apple universal builds, don't test for the size and suffix of ptrdiff_t
28482         and size_t.
28483         * modules/stdint (Depends-on): Add multiarch.
28484         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
28485
28486         New module 'multiarch'.
28487         * modules/multiarch: New file.
28488         * m4/multiarch.m4: New file.
28489
28490 2008-12-25  Bruno Haible  <bruno@clisp.org>
28491
28492         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
28493
28494 2008-12-25  Bruno Haible  <bruno@clisp.org>
28495
28496         * modules/btowc (License): Relicense under LGPLv2+.
28497         * modules/mbsinit (License): Likewise.
28498         * modules/mbrtowc (License): Likewise.
28499         * modules/wcrtomb (License): Likewise.
28500         * modules/streq (License): Likewise.
28501         Reported by David Lutterkort <lutter@redhat.com>.
28502
28503 2008-12-23  Bruno Haible  <bruno@clisp.org>
28504
28505         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
28506
28507 2008-12-23  Bruno Haible  <bruno@clisp.org>
28508
28509         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
28510         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
28511         GETADDRINFO_LIB, not in LIBS.
28512         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
28513         * modules/canon-host (Link): Likewise.
28514         * NEWS: Mention the change.
28515         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
28516         GETADDRINFO_LIB.
28517
28518 2008-12-22  Bruno Haible  <bruno@clisp.org>
28519
28520         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
28521         * doc/posix-functions/iswalpha_l.texi: Likewise.
28522         * doc/posix-functions/iswblank_l.texi: Likewise.
28523         * doc/posix-functions/iswcntrl_l.texi: Likewise.
28524         * doc/posix-functions/iswctype_l.texi: Likewise.
28525         * doc/posix-functions/iswdigit_l.texi: Likewise.
28526         * doc/posix-functions/iswgraph_l.texi: Likewise.
28527         * doc/posix-functions/iswlower_l.texi: Likewise.
28528         * doc/posix-functions/iswprint_l.texi: Likewise.
28529         * doc/posix-functions/iswpunct_l.texi: Likewise.
28530         * doc/posix-functions/iswspace_l.texi: Likewise.
28531         * doc/posix-functions/iswupper_l.texi: Likewise.
28532         * doc/posix-functions/iswxdigit_l.texi: Likewise.
28533         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
28534         * doc/posix-functions/open_wmemstream.texi: Likewise.
28535         * doc/posix-functions/swscanf.texi: Likewise.
28536         * doc/posix-functions/towctrans_l.texi: Likewise.
28537         * doc/posix-functions/towlower.texi: Likewise.
28538         * doc/posix-functions/towlower_l.texi: Likewise.
28539         * doc/posix-functions/towupper.texi: Likewise.
28540         * doc/posix-functions/towupper_l.texi: Likewise.
28541         * doc/posix-functions/vfwprintf.texi: Likewise.
28542         * doc/posix-functions/vfwscanf.texi: Likewise.
28543         * doc/posix-functions/vswscanf.texi: Likewise.
28544         * doc/posix-functions/vwprintf.texi: Likewise.
28545         * doc/posix-functions/vwscanf.texi: Likewise.
28546         * doc/posix-functions/wcpcpy.texi: Likewise.
28547         * doc/posix-functions/wcpncpy.texi: Likewise.
28548         * doc/posix-functions/wcscasecmp.texi: Likewise.
28549         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
28550         * doc/posix-functions/wcscoll_l.texi: Likewise.
28551         * doc/posix-functions/wcsdup.texi: Likewise.
28552         * doc/posix-functions/wcsncasecmp.texi: Likewise.
28553         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
28554         * doc/posix-functions/wcsnlen.texi: Likewise.
28555         * doc/posix-functions/wcsnrtombs.texi: Likewise.
28556         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
28557         * doc/posix-functions/wctrans_l.texi: Likewise.
28558         * doc/posix-functions/wctype_l.texi: Likewise.
28559         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
28560         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
28561         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
28562         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
28563         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
28564         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
28565         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
28566         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
28567         * doc/glibc-functions/wcschrnul.texi: Likewise.
28568         * doc/glibc-functions/wcsftime_l.texi: Likewise.
28569         * doc/glibc-functions/wcstod_l.texi: Likewise.
28570         * doc/glibc-functions/wcstof_l.texi: Likewise.
28571         * doc/glibc-functions/wcstol_l.texi: Likewise.
28572         * doc/glibc-functions/wcstold_l.texi: Likewise.
28573         * doc/glibc-functions/wcstoll_l.texi: Likewise.
28574         * doc/glibc-functions/wcstoq.texi: Likewise.
28575         * doc/glibc-functions/wcstoul_l.texi: Likewise.
28576         * doc/glibc-functions/wcstoull_l.texi: Likewise.
28577         * doc/glibc-functions/wcstouq.texi: Likewise.
28578         * doc/glibc-functions/wmempcpy.texi: Likewise.
28579
28580 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
28581             Eric Blake  <ebb9@byu.net>
28582             Paolo Bonzini  <bonzini@gnu.org>
28583             Bruno Haible  <bruno@clisp.org>
28584
28585         Make c-stack work on Haiku.
28586         * lib/c-stack.c (SA_ONSTACK): Define fallback.
28587         (c_stack_action): Use SA_ONSTACK flag.
28588
28589 2008-12-22  Bruno Haible  <bruno@clisp.org>
28590
28591         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
28592
28593 2008-12-22  Bruno Haible  <bruno@clisp.org>
28594
28595         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
28596         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
28597         being overridden.
28598         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
28599         New macros.
28600         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
28601         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
28602         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
28603         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
28604
28605 2008-12-22  Bruno Haible  <bruno@clisp.org>
28606
28607         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
28608         from test code.
28609
28610 2008-12-22  Eric Blake  <ebb9@byu.net>
28611
28612         Avoid gcc warnings on cygwin.
28613         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
28614         Avoid unused variable.
28615         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
28616         Likewise.
28617
28618 2008-12-22  Bruno Haible  <bruno@clisp.org>
28619
28620         Remove HAVE_MBRTOWC conditionals.
28621         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
28622         (mbscasecmp): Assume mbrtowc function.
28623         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
28624         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
28625         * lib/mbschr.c: Include mbuiter.h unconditionally.
28626         (mbschr): Assume mbrtowc function.
28627         * lib/mbscspn.c: Include mbuiter.h unconditionally.
28628         (mbscspn): Assume mbrtowc function.
28629         * lib/mbslen.c: Include mbuiter.h unconditionally.
28630         (mbslen): Assume mbrtowc function.
28631         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
28632         (mbsncasecmp): Assume mbrtowc function.
28633         * lib/mbsnlen.c: Include mbiter.h unconditionally.
28634         (mbsnlen): Assume mbrtowc function.
28635         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
28636         (mbspbrk): Assume mbrtowc function.
28637         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
28638         (mbspcasecmp): Assume mbrtowc function.
28639         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
28640         (mbsrchr): Assume mbrtowc function.
28641         * lib/mbssep.c: Include mbuiter.h unconditionally.
28642         (mbssep): Assume mbrtowc function.
28643         * lib/mbsspn.c: Include mbuiter.h unconditionally.
28644         (mbsspn): Assume mbrtowc function.
28645         * lib/mbsstr.c: Include mbuiter.h unconditionally.
28646         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
28647         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
28648         (mbstok_r): Assume mbrtowc function.
28649         * lib/propername.c: Include mbuiter.h unconditionally.
28650         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
28651         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
28652         (trim2): Assume mbrtowc function.
28653         * lib/mbswidth.c (mbsinit): Remove fallback definition.
28654         (mbsnwidth): Assume mbrtowc function.
28655         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
28656         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
28657         fallback definitions.
28658         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
28659
28660 2008-12-22  Bruno Haible  <bruno@clisp.org>
28661
28662         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
28663
28664 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
28665
28666         * modules/regex: Request emulations for the mb*/wc* functions we need.
28667         * m4/regex.m4: Don't look for those functions here.
28668         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
28669
28670 2008-12-22  Bruno Haible  <bruno@clisp.org>
28671
28672         * modules/fnmatch (Depends-on): Remove duplicated dependency.
28673
28674 2008-12-21  Bruno Haible  <bruno@clisp.org>
28675
28676         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
28677         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
28678         (Include): Remove conditionalization.
28679         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
28680         (Include): Remove conditionalization.
28681         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
28682         (Include): Remove conditionalization.
28683         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
28684         * m4/mbfile.m4 (gl_MBFILE): Likewise.
28685         * NEWS: Mention the change.
28686         Reported by Alan Hourihane <alanh@fairlite.co.uk>
28687         via Sergey Poznyakoff <gray@gnu.org.ua>.
28688
28689 2008-12-21  Bruno Haible  <bruno@clisp.org>
28690
28691         * MODULES.html.sh (Extended multibyte and wide character utilities
28692         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
28693         wcrtomb, wcsrtombs.
28694         (Support for systems lacking POSIX:2008): Add accept, bind, close,
28695         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
28696         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
28697         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
28698
28699 2008-12-21  Bruno Haible  <bruno@clisp.org>
28700
28701         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
28702
28703 2008-12-21  Bruno Haible  <bruno@clisp.org>
28704
28705         * modules/wcsnrtombs-tests: New file.
28706         * tests/test-wcsnrtombs1.sh: New file.
28707         * tests/test-wcsnrtombs2.sh: New file.
28708         * tests/test-wcsnrtombs3.sh: New file.
28709         * tests/test-wcsnrtombs4.sh: New file.
28710         * tests/test-wcsnrtombs.c: New file.
28711
28712         New module 'wcsnrtombs'.
28713         * lib/wchar.in.h (wcsnrtombs): New declaration.
28714         * lib/wcsnrtombs.c: New file.
28715         * lib/wcsrtombs-state.c: New file.
28716         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
28717         (internal_state): Remove variable.
28718         * m4/wcsnrtombs.m4: New file.
28719         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
28720         compilation units.
28721         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
28722         HAVE_WCSNRTOMBS.
28723         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
28724         HAVE_WCSNRTOMBS.
28725         * modules/wcsnrtombs: New file.
28726         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
28727         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
28728
28729 2008-12-21  Bruno Haible  <bruno@clisp.org>
28730
28731         * modules/wcsrtombs-tests: New file.
28732         * tests/test-wcsrtombs1.sh: New file.
28733         * tests/test-wcsrtombs2.sh: New file.
28734         * tests/test-wcsrtombs3.sh: New file.
28735         * tests/test-wcsrtombs4.sh: New file.
28736         * tests/test-wcsrtombs.c: New file.
28737
28738         New module 'wcsrtombs'.
28739         * lib/wchar.in.h (wcsrtombs): New declaration.
28740         * lib/wcsrtombs.c: New file.
28741         * m4/wcsrtombs.m4: New file.
28742         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
28743         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
28744         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
28745         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
28746         * modules/wcsrtombs: New file.
28747         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
28748         bugs.
28749
28750 2008-12-21  Bruno Haible  <bruno@clisp.org>
28751
28752         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
28753         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
28754         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
28755         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
28756         if not correct.
28757         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
28758         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
28759         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
28760         m4/locale-zh.m4, m4/codeset.m4.
28761         * doc/posix-functions/wcrtomb.texi: Document the bug.
28762
28763 2008-12-21  Bruno Haible  <bruno@clisp.org>
28764
28765         Work around a btowc() bug on IRIX 6.5.
28766         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
28767         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
28768         REPLACE_WTOBC if not.
28769         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
28770         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
28771         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
28772
28773 2008-12-21  Bruno Haible  <bruno@clisp.org>
28774
28775         * modules/wcrtomb-tests: New file.
28776         * tests/test-wcrtomb.sh: New file.
28777         * tests/test-wcrtomb.c: New file.
28778
28779         New module 'wcrtomb'.
28780         * lib/wchar.in.h (wcrtomb): New declaration.
28781         * lib/wcrtomb.c: New file.
28782         * m4/wcrtomb.m4: New file.
28783         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
28784         HAVE_WCRTOMB.
28785         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
28786         HAVE_WCRTOMB.
28787         * modules/wcrtomb: New file.
28788         * doc/posix-functions/wcrtomb.texi: Mention the new module.
28789
28790 2008-12-21  Bruno Haible  <bruno@clisp.org>
28791
28792         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
28793         * modules/mbsrtowcs (Files): Likewise.
28794         * modules/wctob (Files): Likewise.
28795         * modules/c-strcase-tests (Files): Likewise.
28796         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
28797         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
28798         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
28799         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
28800         * modules/vasnprintf-posix-tests (Files): Likewise.
28801
28802 2008-12-21  William Pursell  <bill.pursell@gmail.com>
28803
28804         gitlog-to-changelog: pass all command-line arguments to git-log
28805         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
28806         it is sometimes convenient to filter the commits in various ways.
28807         gitlog-to-changelog only allows --since to specify a start date,
28808         but git-log itself supports many other filtering mechanisms.
28809         At the moment, I want to filter by branch name.  Rather than
28810         adding a --branch option to gitlog-to-changelog, it seems more
28811         flexible to simply pass all options directly to git-log and let
28812         git do the work.  Notice that this effectively makes --since a
28813         redundant option for gitlog-to-changelog, but removing it would
28814         require current usage to change since calls would then require
28815         an additional '--'.
28816
28817 2008-12-21  Bruno Haible  <bruno@clisp.org>
28818
28819         * modules/mbsnrtowcs-tests: New file.
28820         * tests/test-mbsnrtowcs1.sh: New file.
28821         * tests/test-mbsnrtowcs2.sh: New file.
28822         * tests/test-mbsnrtowcs3.sh: New file.
28823         * tests/test-mbsnrtowcs4.sh: New file.
28824         * tests/test-mbsnrtowcs.c: New file.
28825
28826         New module 'mbsnrtowcs'.
28827         * lib/wchar.in.h (mbsnrtowcs): New declaration.
28828         * lib/mbsnrtowcs.c: New file.
28829         * lib/mbsrtowcs-state.c: New file.
28830         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
28831         (internal_state): Remove variable.
28832         * m4/mbsnrtowcs.m4: New file.
28833         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
28834         compilation units.
28835         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
28836         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
28837         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
28838         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
28839         * modules/mbsnrtowcs: New file.
28840         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
28841         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
28842         portability problem.
28843
28844 2008-12-21  Bruno Haible  <bruno@clisp.org>
28845
28846         Work around mbsrtowcs bug.
28847         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
28848         (gl_FUNC_MBSRTOWCS): Invoke it.
28849         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
28850         m4/locale-zh.m4.
28851         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
28852
28853 2008-12-21  Bruno Haible  <bruno@clisp.org>
28854
28855         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
28856
28857 2008-12-21  Bruno Haible  <bruno@clisp.org>
28858
28859         Update doc for AIX.
28860         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
28861         16-bit wchar_t type.
28862         * doc/posix-functions/btowc.texi: Likewise.
28863         * doc/posix-functions/fgetwc.texi: Likewise.
28864         * doc/posix-functions/fgetws.texi: Likewise.
28865         * doc/posix-functions/fputwc.texi: Likewise.
28866         * doc/posix-functions/fputws.texi: Likewise.
28867         * doc/posix-functions/fwide.texi: Likewise.
28868         * doc/posix-functions/fwprintf.texi: Likewise.
28869         * doc/posix-functions/fwscanf.texi: Likewise.
28870         * doc/posix-functions/getwchar.texi: Likewise.
28871         * doc/posix-functions/getwc.texi: Likewise.
28872         * doc/posix-functions/iswalnum.texi: Likewise.
28873         * doc/posix-functions/iswalpha.texi: Likewise.
28874         * doc/posix-functions/iswblank.texi: Likewise.
28875         * doc/posix-functions/iswcntrl.texi: Likewise.
28876         * doc/posix-functions/iswctype.texi: Likewise.
28877         * doc/posix-functions/iswdigit.texi: Likewise.
28878         * doc/posix-functions/iswgraph.texi: Likewise.
28879         * doc/posix-functions/iswlower.texi: Likewise.
28880         * doc/posix-functions/iswprint.texi: Likewise.
28881         * doc/posix-functions/iswpunct.texi: Likewise.
28882         * doc/posix-functions/iswspace.texi: Likewise.
28883         * doc/posix-functions/iswupper.texi: Likewise.
28884         * doc/posix-functions/iswxdigit.texi: Likewise.
28885         * doc/posix-functions/mbrtowc.texi: Likewise.
28886         * doc/posix-functions/mbsrtowcs.texi: Likewise.
28887         * doc/posix-functions/mbstowcs.texi: Likewise.
28888         * doc/posix-functions/mbtowc.texi: Likewise.
28889         * doc/posix-functions/putwchar.texi: Likewise.
28890         * doc/posix-functions/putwc.texi: Likewise.
28891         * doc/posix-functions/swprintf.texi: Likewise.
28892         * doc/posix-functions/tolower.texi: Likewise.
28893         * doc/posix-functions/toupper.texi: Likewise.
28894         * doc/posix-functions/towctrans.texi: Likewise.
28895         * doc/posix-functions/ungetwc.texi: Likewise.
28896         * doc/posix-functions/vswprintf.texi: Likewise.
28897         * doc/posix-functions/wcrtomb.texi: Likewise.
28898         * doc/posix-functions/wcscat.texi: Likewise.
28899         * doc/posix-functions/wcschr.texi: Likewise.
28900         * doc/posix-functions/wcscmp.texi: Likewise.
28901         * doc/posix-functions/wcscoll.texi: Likewise.
28902         * doc/posix-functions/wcscpy.texi: Likewise.
28903         * doc/posix-functions/wcscspn.texi: Likewise.
28904         * doc/posix-functions/wcsftime.texi: Likewise.
28905         * doc/posix-functions/wcslen.texi: Likewise.
28906         * doc/posix-functions/wcsncat.texi: Likewise.
28907         * doc/posix-functions/wcsncmp.texi: Likewise.
28908         * doc/posix-functions/wcsncpy.texi: Likewise.
28909         * doc/posix-functions/wcspbrk.texi: Likewise.
28910         * doc/posix-functions/wcsrchr.texi: Likewise.
28911         * doc/posix-functions/wcsrtombs.texi: Likewise.
28912         * doc/posix-functions/wcsspn.texi: Likewise.
28913         * doc/posix-functions/wcsstr.texi: Likewise.
28914         * doc/posix-functions/wcstod.texi: Likewise.
28915         * doc/posix-functions/wcstof.texi: Likewise.
28916         * doc/posix-functions/wcstoimax.texi: Likewise.
28917         * doc/posix-functions/wcstok.texi: Likewise.
28918         * doc/posix-functions/wcstold.texi: Likewise.
28919         * doc/posix-functions/wcstoll.texi: Likewise.
28920         * doc/posix-functions/wcstol.texi: Likewise.
28921         * doc/posix-functions/wcstombs.texi: Likewise.
28922         * doc/posix-functions/wcstoull.texi: Likewise.
28923         * doc/posix-functions/wcstoul.texi: Likewise.
28924         * doc/posix-functions/wcstoumax.texi: Likewise.
28925         * doc/posix-functions/wcswidth.texi: Likewise.
28926         * doc/posix-functions/wcsxfrm.texi: Likewise.
28927         * doc/posix-functions/wctob.texi: Likewise.
28928         * doc/posix-functions/wctomb.texi: Likewise.
28929         * doc/posix-functions/wctrans.texi: Likewise.
28930         * doc/posix-functions/wctype.texi: Likewise.
28931         * doc/posix-functions/wcwidth.texi: Likewise.
28932         * doc/posix-functions/wmemchr.texi: Likewise.
28933         * doc/posix-functions/wmemcmp.texi: Likewise.
28934         * doc/posix-functions/wmemcpy.texi: Likewise.
28935         * doc/posix-functions/wmemmove.texi: Likewise.
28936         * doc/posix-functions/wmemset.texi: Likewise.
28937         * doc/posix-functions/wprintf.texi: Likewise.
28938         * doc/posix-functions/wscanf.texi: Likewise.
28939
28940 2008-12-21  Bruno Haible  <bruno@clisp.org>
28941
28942         Update doc for HP-UX 11.11.
28943         * doc/posix-functions/btowc.texi: Clarify that the function is missing
28944         in HP-UX version 11.00, not in all versions of HP-UX 11.
28945         * doc/posix-functions/fwide.texi: Likewise.
28946         * doc/posix-functions/fwprintf.texi: Likewise.
28947         * doc/posix-functions/fwscanf.texi: Likewise.
28948         * doc/posix-functions/inet_ntop.texi: Likewise.
28949         * doc/posix-functions/inet_pton.texi: Likewise.
28950         * doc/posix-functions/mbrlen.texi: Likewise.
28951         * doc/posix-functions/mbrtowc.texi: Likewise.
28952         * doc/posix-functions/mbsinit.texi: Likewise.
28953         * doc/posix-functions/mbsrtowcs.texi: Likewise.
28954         * doc/posix-functions/swprintf.texi: Likewise.
28955         * doc/posix-functions/swscanf.texi: Likewise.
28956         * doc/posix-functions/towctrans.texi: Likewise.
28957         * doc/posix-functions/vfwprintf.texi: Likewise.
28958         * doc/posix-functions/vswprintf.texi: Likewise.
28959         * doc/posix-functions/vwprintf.texi: Likewise.
28960         * doc/posix-functions/wcrtomb.texi: Likewise.
28961         * doc/posix-functions/wcsrtombs.texi: Likewise.
28962         * doc/posix-functions/wcsstr.texi: Likewise.
28963         * doc/posix-functions/wctob.texi: Likewise.
28964         * doc/posix-functions/wctrans.texi: Likewise.
28965         * doc/posix-functions/wmemchr.texi: Likewise.
28966         * doc/posix-functions/wmemcmp.texi: Likewise.
28967         * doc/posix-functions/wmemcpy.texi: Likewise.
28968         * doc/posix-functions/wmemmove.texi: Likewise.
28969         * doc/posix-functions/wmemset.texi: Likewise.
28970         * doc/posix-functions/wprintf.texi: Likewise.
28971         * doc/posix-functions/wscanf.texi: Likewise.
28972
28973 2008-12-21  Bruno Haible  <bruno@clisp.org>
28974
28975         Work around a portability problem.
28976         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
28977         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
28978
28979 2008-12-20  Bruno Haible  <bruno@clisp.org>
28980
28981         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
28982         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
28983         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
28984         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
28985         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
28986
28987         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
28988         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
28989         set.
28990         (GNULIB_defined_mbstate_t): New macro.
28991         (mbsinit): Redefine if REPLACE_MBSINIT is set.
28992         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
28993         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
28994         reuses the system's mbrtowc function but works around the bugs.
28995         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
28996         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
28997         macros.
28998         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
28999         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
29000         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
29001         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
29002         REPLACE_MBSINIT if mbsinit needs to be overridden.
29003         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
29004         REPLACE_MBSINIT, REPLACE_MBRTOWC.
29005         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
29006         REPLACE_MBSINIT, REPLACE_MBRTOWC.
29007         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
29008         m4/locale-zh.m4.
29009         (Depends): Add mbsinit.
29010         * modules/mbsinit (Depends): Add mbrtowc.
29011         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
29012
29013 2008-12-20  Bruno Haible  <bruno@clisp.org>
29014
29015         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
29016         so that there are no conversion errors on AIX.
29017         * tests/test-mbsrtowcs.c (main): LIkewise.
29018
29019 2008-12-20  Bruno Haible  <bruno@clisp.org>
29020
29021         Work around wctob bug on Solaris <= 9.
29022         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
29023         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
29024         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
29025         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
29026         * modules/wctob (Files): Add m4/locale-fr.m4.
29027         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
29028
29029 2008-12-20  Bruno Haible  <bruno@clisp.org>
29030
29031         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
29032         /dev/null.
29033         * tests/test-select-in.sh: Likewise.
29034         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29035
29036 2008-12-20  Bruno Haible  <bruno@clisp.org>
29037
29038         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
29039         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
29040         Cygwin 1.5.x.
29041
29042 2008-12-20  Bruno Haible  <bruno@clisp.org>
29043
29044         Ensure mbstate_t is defined on HP-UX 11.11.
29045         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
29046         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
29047         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
29048         AC_USE_SYSTEM_EXTENSIONS.
29049         * modules/fnmatch (Depends-on): Add extensions.
29050         * modules/mbrlen (Depends-on): Likewise.
29051         * modules/mbrtowc (Depends-on): Likewise.
29052         * modules/mbsinit (Depends-on): Likewise.
29053         * modules/mbsrtowcs (Depends-on): Likewise.
29054         * modules/mbswidth (Depends-on): Likewise.
29055         * modules/quotearg (Depends-on): Likewise.
29056         * modules/strftime (Depends-on): Likewise.
29057
29058 2008-12-20  Bruno Haible  <bruno@clisp.org>
29059
29060         Ensure wctob is declared on IRIX 6.5.
29061         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
29062         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
29063         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
29064         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
29065         of HAVE_WCTOB.
29066         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
29067         HAVE_WCTOB.
29068         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
29069
29070 2008-12-19  Bruno Haible  <bruno@clisp.org>
29071
29072         * modules/mbsrtowcs-tests: New file.
29073         * tests/test-mbsrtowcs1.sh: New file.
29074         * tests/test-mbsrtowcs2.sh: New file.
29075         * tests/test-mbsrtowcs3.sh: New file.
29076         * tests/test-mbsrtowcs4.sh: New file.
29077         * tests/test-mbsrtowcs.c: New file.
29078
29079         New module 'mbsrtowcs'.
29080         * lib/wchar.in.h (mbsrtowcs): New declaration.
29081         * lib/mbsrtowcs.c: New file.
29082         * m4/mbsrtowcs.m4: New file.
29083         * modules/mbsrtowcs: New file.
29084         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
29085         HAVE_MBSRTOWCS.
29086         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
29087         HAVE_MBSRTOWCS.
29088         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
29089
29090 2008-12-19  Bruno Haible  <bruno@clisp.org>
29091
29092         New module 'mbrlen'.
29093         * lib/wchar.in.h (mbrlen): New declaration.
29094         * lib/mbrlen.c: New file.
29095         * m4/mbrlen.m4: New file.
29096         * modules/mbrlen: New file.
29097         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
29098         HAVE_MBRLEN.
29099         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
29100         HAVE_MBRLEN.
29101         * doc/posix-functions/mbrlen.texi: Document the new module.
29102
29103 2008-12-19  Bruno Haible  <bruno@clisp.org>
29104
29105         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
29106         * modules/mbrtowc (Depends-on): Add verify.
29107         Suggested by Paul Eggert.
29108
29109 2008-12-18  Bruno Haible  <bruno@clisp.org>
29110
29111         * modules/mbsinit-tests: New file.
29112         * tests/test-mbsinit.sh: New file.
29113         * tests/test-mbsinit.c: New file.
29114
29115 2008-12-18  Bruno Haible  <bruno@clisp.org>
29116
29117         * modules/mbrtowc-tests: New file.
29118         * tests/test-mbrtowc1.sh: New file.
29119         * tests/test-mbrtowc2.sh: New file.
29120         * tests/test-mbrtowc3.sh: New file.
29121         * tests/test-mbrtowc4.sh: New file.
29122         * tests/test-mbrtowc.c: New file.
29123
29124         New module 'mbrtowc'.
29125         * lib/wchar.in.h (mbstate_t): Override when the system does not have
29126         mbsinit and mbrtowc.
29127         (mbrtowc): New declaration.
29128         * lib/mbrtowc.c: New file.
29129         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
29130         * modules/mbrtowc: New file.
29131         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
29132         HAVE_MBRTOWC.
29133         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
29134         HAVE_MBRTOWC.
29135         * doc/posix-functions/mbrtowc.texi: Document the new module.
29136
29137 2008-12-18  Bruno Haible  <bruno@clisp.org>
29138
29139         New module 'wctob'.
29140         * lib/wchar.in.h (wctob): New declaration.
29141         * lib/wctob.c: New file.
29142         * m4/wctob.m4: New file.
29143         * modules/wctob: New file.
29144         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
29145         HAVE_WCTOB.
29146         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
29147         * doc/posix-functions/wctob.texi: Document the new module.
29148
29149 2008-12-18  Bruno Haible  <bruno@clisp.org>
29150
29151         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
29152         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
29153
29154 2008-12-18  Simon Josefsson  <simon@josefsson.org>
29155
29156         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
29157         G. Christensen" <tgc@jupiterrise.com>.
29158
29159         * lib/flock.c: Need to include errno.h.  Reported by "Tom
29160         G. Christensen" <tgc@jupiterrise.com>.
29161
29162         * lib/flock.c: Need to include string.h.  Reported by "Tom
29163         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
29164         <ebb9@byu.net>.
29165
29166 2008-12-18  Bruno Haible  <bruno@clisp.org>
29167
29168         * m4/locale-ja.m4: New file, from GNU gettext.
29169
29170 2008-12-17  Bruno Haible  <bruno@clisp.org>
29171
29172         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
29173         Suggested by Eric Blake.
29174
29175 2008-12-17  Bruno Haible  <bruno@clisp.org>
29176
29177         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
29178
29179 2008-12-17  Bruno Haible  <bruno@clisp.org>
29180
29181         * lib/mbsinit.c: Include verify.h. Verify an assumption.
29182         * modules/mbsinit (Depends-on): Add verify.
29183         Suggested by Paul Eggert.
29184
29185 2008-12-17  Bruno Haible  <bruno@clisp.org>
29186
29187         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
29188         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
29189         gl_FUNC_MBRTOWC.
29190         * m4/mbiter.m4 (gl_MBITER): LIkewise.
29191         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
29192         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
29193         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
29194         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
29195         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
29196         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
29197         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
29198         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
29199         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
29200         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
29201         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
29202         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
29203         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
29204         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
29205         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
29206         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
29207         * modules/trim (configure.ac): Likewise.
29208
29209 2008-12-17  Bruno Haible  <bruno@clisp.org>
29210
29211         * modules/btowc-tests: New file.
29212         * tests/test-btowc1.sh: New file.
29213         * tests/test-btowc2.sh: New file.
29214         * tests/test-btowc.c: New file.
29215
29216         New module 'btowc'.
29217         * lib/wchar.in.h (btowc): New declaration.
29218         * lib/btowc.c: New file.
29219         * m4/btowc.m4: New file.
29220         * modules/btowc: New file.
29221         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
29222         HAVE_BTOWC.
29223         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
29224         * doc/posix-functions/btowc.texi: Document the new module.
29225
29226 2008-12-17  Bruno Haible  <bruno@clisp.org>
29227
29228         New module 'mbsinit'.
29229         * lib/wchar.in.h (mbsinit): New declaration.
29230         * lib/mbsinit.c: New file.
29231         * m4/mbsinit.m4: New file.
29232         * modules/mbsinit: New file.
29233         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
29234         HAVE_MBSINIT.
29235         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
29236         HAVE_MBSINIT.
29237         * doc/posix-functions/mbsinit.texi: Document the new module.
29238
29239 2008-12-16  Bruno Haible  <bruno@clisp.org>
29240
29241         * lib/unistd.in.h: Add comment.
29242         * tests/test-environ.c: Don't include <stdlib.h>.
29243
29244 2008-12-16  Bruno Haible  <bruno@clisp.org>
29245
29246         * lib/parse-duration.h (parse_duration): Document return value
29247         convention.
29248         * lib/parse-duration.c: Include specification header first. Add
29249         comments.
29250         (_): Remove macro.
29251         (parse_year_month_day, parse_hour_minute_second): Move side effects
29252         outside of strchr call.
29253         (parse_non_iso8601): Move side effects outside of isspace call.
29254         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
29255         call.
29256
29257 2008-12-16  Bruno Haible  <bruno@clisp.org>
29258
29259         * tests/test-parse-duration.sh: Produce no output when the test
29260         succeeds.
29261
29262 2008-12-16  Bruno Haible  <bruno@clisp.org>
29263
29264         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
29265         expressions.
29266
29267 2008-12-15  Bruno Haible  <bruno@clisp.org>
29268
29269         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
29270         * doc/glibc-functions/flistxattr.texi: Likewise.
29271         * doc/glibc-functions/fopencookie.texi: Likewise.
29272         * doc/glibc-functions/fremovexattr.texi: Likewise.
29273         * doc/glibc-functions/fsetxattr.texi: Likewise.
29274         * doc/glibc-functions/getxattr.texi: Likewise.
29275         * doc/glibc-functions/lgetxattr.texi: Likewise.
29276         * doc/glibc-functions/listxattr.texi: Likewise.
29277         * doc/glibc-functions/llistxattr.texi: Likewise.
29278         * doc/glibc-functions/lremovexattr.texi: Likewise.
29279         * doc/glibc-functions/lsetxattr.texi: Likewise.
29280         * doc/glibc-functions/removexattr.texi: Likewise.
29281         * doc/glibc-functions/setxattr.texi: Likewise.
29282         * doc/posix-functions/open_memstream.texi: Likewise.
29283
29284 2008-12-15  Eric Blake  <ebb9@byu.net>
29285
29286         Update doc for cygwin 1.7.
29287         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
29288         functions.
29289         * doc/posix-functions/fchmodat.texi: Likewise.
29290         * doc/posix-functions/fchownat.texi: Likewise.
29291         * doc/posix-functions/fdopendir.texi: Likewise.
29292         * doc/posix-functions/fmemopen.texi: Likewise.
29293         * doc/posix-functions/freeaddrinfo.texi: Likewise.
29294         * doc/posix-functions/fstatat.texi: Likewise.
29295         * doc/posix-functions/futimens.texi: Likewise.
29296         * doc/posix-functions/gai_strerror.texi: Likewise.
29297         * doc/posix-functions/getaddrinfo.texi: Likewise.
29298         * doc/posix-functions/getnameinfo.texi: Likewise.
29299         * doc/posix-functions/if_freenameindex.texi: Likewise.
29300         * doc/posix-functions/if_indextoname.texi: Likewise.
29301         * doc/posix-functions/if_nameindex.texi: Likewise.
29302         * doc/posix-functions/if_nametoindex.texi: Likewise.
29303         * doc/posix-functions/insque.texi: Likewise.
29304         * doc/posix-functions/linkat.texi: Likewise.
29305         * doc/posix-functions/llrint.texi: Likewise.
29306         * doc/posix-functions/llrintf.texi: Likewise.
29307         * doc/posix-functions/llrintl.texi: Likewise.
29308         * doc/posix-functions/lockf.texi: Likewise.
29309         * doc/posix-functions/lrintl.texi: Likewise.
29310         * doc/posix-functions/mkdirat.texi: Likewise.
29311         * doc/posix-functions/mkfifoat.texi: Likewise.
29312         * doc/posix-functions/mknodat.texi: Likewise.
29313         * doc/posix-functions/mq_close.texi: Likewise.
29314         * doc/posix-functions/mq_getattr.texi: Likewise.
29315         * doc/posix-functions/mq_notify.texi: Likewise.
29316         * doc/posix-functions/mq_open.texi: Likewise.
29317         * doc/posix-functions/mq_receive.texi: Likewise.
29318         * doc/posix-functions/mq_send.texi: Likewise.
29319         * doc/posix-functions/mq_setattr.texi: Likewise.
29320         * doc/posix-functions/mq_timedreceive.texi: Likewise.
29321         * doc/posix-functions/mq_timedsend.texi: Likewise.
29322         * doc/posix-functions/mq_unlink.texi: Likewise.
29323         * doc/posix-functions/open_memstream.texi: Likewise.
29324         * doc/posix-functions/openat.texi: Likewise.
29325         * doc/posix-functions/posix_fadvise.texi: Likewise.
29326         * doc/posix-functions/posix_fallocate.texi: Likewise.
29327         * doc/posix-functions/posix_madvise.texi: Likewise.
29328         * doc/posix-functions/posix_memalign.texi: Likewise.
29329         * doc/posix-functions/posix_openpt.texi: Likewise.
29330         * doc/posix-functions/readlinkat.texi: Likewise.
29331         * doc/posix-functions/remque.texi: Likewise.
29332         * doc/posix-functions/renameat.texi: Likewise.
29333         * doc/posix-functions/rintl.texi: Likewise.
29334         * doc/posix-functions/sem_unlink.texi: Likewise.
29335         * doc/posix-functions/shm_open.texi: Likewise.
29336         * doc/posix-functions/shm_unlink.texi: Likewise.
29337         * doc/posix-functions/signgam.texi: Likewise.
29338         * doc/posix-functions/sigset.texi: Likewise.
29339         * doc/posix-functions/stpcpy.texi: Likewise.
29340         * doc/posix-functions/stpncpy.texi: Likewise.
29341         * doc/posix-functions/strerror.texi: Likewise.
29342         * doc/posix-functions/strtod.texi: Likewise.
29343         * doc/posix-functions/symlinkat.texi: Likewise.
29344         * doc/posix-functions/unlinkat.texi: Likewise.
29345         * doc/posix-functions/utimensat.texi: Likewise.
29346         * doc/glibc-functions/bindresvport.texi: Likewise.
29347         * doc/glibc-functions/dn_expand.texi: Likewise.
29348         * doc/glibc-functions/exp10.texi: Likewise.
29349         * doc/glibc-functions/exp10f.texi: Likewise.
29350         * doc/glibc-functions/fgetxattr.texi: Likewise.
29351         * doc/glibc-functions/flistxattr.texi: Likewise.
29352         * doc/glibc-functions/fopencookie.texi: Likewise.
29353         * doc/glibc-functions/freeifaddrs.texi: Likewise.
29354         * doc/glibc-functions/fremovexattr.texi: Likewise.
29355         * doc/glibc-functions/fsetxattr.texi: Likewise.
29356         * doc/glibc-functions/getifaddrs.texi: Likewise.
29357         * doc/glibc-functions/getxattr.texi: Likewise.
29358         * doc/glibc-functions/lgetxattr.texi: Likewise.
29359         * doc/glibc-functions/listxattr.texi: Likewise.
29360         * doc/glibc-functions/llistxattr.texi: Likewise.
29361         * doc/glibc-functions/lremovexattr.texi: Likewise.
29362         * doc/glibc-functions/lsetxattr.texi: Likewise.
29363         * doc/glibc-functions/pow10.texi: Likewise.
29364         * doc/glibc-functions/pow10f.texi: Likewise.
29365         * doc/glibc-functions/rcmd_af.texi: Likewise.
29366         * doc/glibc-functions/removexattr.texi: Likewise.
29367         * doc/glibc-functions/res_init.texi: Likewise.
29368         * doc/glibc-functions/res_mkquery.texi: Likewise.
29369         * doc/glibc-functions/res_query.texi: Likewise.
29370         * doc/glibc-functions/res_querydomain.texi: Likewise.
29371         * doc/glibc-functions/res_send.texi: Likewise.
29372         * doc/glibc-functions/rresvport_af.texi: Likewise.
29373         * doc/glibc-functions/setxattr.texi: Likewise.
29374         * doc/glibc-functions/strcasestr.texi: Likewise.
29375
29376 2008-12-15  Bruno Haible  <bruno@clisp.org>
29377
29378         Fix compilation error on OSF/1 4.0.
29379         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
29380         <sys/time.h>, simply delegate to the system header.
29381         Reported by Daniel Richard G. <oss@teragram.com>.
29382
29383 2008-12-15  Bruno Haible  <bruno@clisp.org>
29384
29385         * doc/posix-functions/openat.texi: Mention the 'openat' module.
29386         * doc/posix-functions/fchmodat.texi: Likewise.
29387         * doc/posix-functions/fchownat.texi: Likewise.
29388         * doc/posix-functions/fdopendir.texi: Likewise.
29389         * doc/posix-functions/fstatat.texi: Likewise.
29390         * doc/posix-functions/mkdirat.texi: Likewise.
29391         * doc/posix-functions/unlinkat.texi: Likewise.
29392
29393 2008-12-14  Bruno Haible  <bruno@clisp.org>
29394
29395         Update doc for POSIX:2008.
29396         * doc/posix-functions/faccessat.texi: New file.
29397         * doc/posix-functions/fchmodat.texi: New file.
29398         * doc/posix-functions/fchownat.texi: New file.
29399         * doc/posix-functions/fdopendir.texi: New file.
29400         * doc/posix-functions/fstatat.texi: New file.
29401         * doc/posix-functions/futimens.texi: New file.
29402         * doc/posix-functions/linkat.texi: New file.
29403         * doc/posix-functions/mkdirat.texi: New file.
29404         * doc/posix-functions/mkfifoat.texi: New file.
29405         * doc/posix-functions/mknodat.texi: New file.
29406         * doc/posix-functions/open_wmemstream.texi: New file.
29407         * doc/posix-functions/openat.texi: New file.
29408         * doc/posix-functions/psiginfo.texi: New file.
29409         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
29410         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
29411         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
29412         * doc/posix-functions/readlinkat.texi: New file.
29413         * doc/posix-functions/renameat.texi: New file.
29414         * doc/posix-functions/strerror_l.texi: New file.
29415         * doc/posix-functions/symlinkat.texi: New file.
29416         * doc/posix-functions/unlinkat.texi: New file.
29417         * doc/posix-functions/utimensat.texi: New file.
29418         * doc/gnulib.texi (Function Substitutes): Add these subsections.
29419
29420 2008-12-14  Bruno Haible  <bruno@clisp.org>
29421
29422         Update doc for POSIX:2008.
29423         * doc/posix-functions/alphasort.texi: Renamed from
29424         doc/glibc-functions/alphasort.texi.
29425         * doc/posix-functions/dirfd.texi: Renamed from
29426         doc/glibc-functions/dirfd.texi.
29427         * doc/posix-functions/dprintf.texi: Renamed from
29428         doc/glibc-functions/dprintf.texi.
29429         * doc/posix-functions/duplocale.texi: Renamed from
29430         doc/glibc-functions/duplocale.texi.
29431         * doc/posix-functions/fexecve.texi: Renamed from
29432         doc/glibc-functions/fexecve.texi.
29433         * doc/posix-functions/fmemopen.texi: Renamed from
29434         doc/glibc-functions/fmemopen.texi.
29435         * doc/posix-functions/freelocale.texi: Renamed from
29436         doc/glibc-functions/freelocale.texi.
29437         * doc/posix-functions/getdate_err.texi: Renamed from
29438         doc/glibc-functions/getdate_err.texi.
29439         * doc/posix-functions/isalnum_l.texi: Renamed from
29440         doc/glibc-functions/isalnum_l.texi.
29441         * doc/posix-functions/isalpha_l.texi: Renamed from
29442         doc/glibc-functions/isalpha_l.texi.
29443         * doc/posix-functions/isblank_l.texi: Renamed from
29444         doc/glibc-functions/isblank_l.texi.
29445         * doc/posix-functions/iscntrl_l.texi: Renamed from
29446         doc/glibc-functions/iscntrl_l.texi.
29447         * doc/posix-functions/isdigit_l.texi: Renamed from
29448         doc/glibc-functions/isdigit_l.texi.
29449         * doc/posix-functions/isgraph_l.texi: Renamed from
29450         doc/glibc-functions/isgraph_l.texi.
29451         * doc/posix-functions/islower_l.texi: Renamed from
29452         doc/glibc-functions/islower_l.texi.
29453         * doc/posix-functions/isprint_l.texi: Renamed from
29454         doc/glibc-functions/isprint_l.texi.
29455         * doc/posix-functions/ispunct_l.texi: Renamed from
29456         doc/glibc-functions/ispunct_l.texi.
29457         * doc/posix-functions/isspace_l.texi: Renamed from
29458         doc/glibc-functions/isspace_l.texi.
29459         * doc/posix-functions/isupper_l.texi: Renamed from
29460         doc/glibc-functions/isupper_l.texi.
29461         * doc/posix-functions/iswalnum_l.texi: Renamed from
29462         doc/glibc-functions/iswalnum_l.texi.
29463         * doc/posix-functions/iswalpha_l.texi: Renamed from
29464         doc/glibc-functions/iswalpha_l.texi.
29465         * doc/posix-functions/iswblank_l.texi: Renamed from
29466         doc/glibc-functions/iswblank_l.texi.
29467         * doc/posix-functions/iswcntrl_l.texi: Renamed from
29468         doc/glibc-functions/iswcntrl_l.texi.
29469         * doc/posix-functions/iswctype_l.texi: Renamed from
29470         doc/glibc-functions/iswctype_l.texi.
29471         * doc/posix-functions/iswdigit_l.texi: Renamed from
29472         doc/glibc-functions/iswdigit_l.texi.
29473         * doc/posix-functions/iswgraph_l.texi: Renamed from
29474         doc/glibc-functions/iswgraph_l.texi.
29475         * doc/posix-functions/iswlower_l.texi: Renamed from
29476         doc/glibc-functions/iswlower_l.texi.
29477         * doc/posix-functions/iswprint_l.texi: Renamed from
29478         doc/glibc-functions/iswprint_l.texi.
29479         * doc/posix-functions/iswpunct_l.texi: Renamed from
29480         doc/glibc-functions/iswpunct_l.texi.
29481         * doc/posix-functions/iswspace_l.texi: Renamed from
29482         doc/glibc-functions/iswspace_l.texi.
29483         * doc/posix-functions/iswupper_l.texi: Renamed from
29484         doc/glibc-functions/iswupper_l.texi.
29485         * doc/posix-functions/iswxdigit_l.texi: Renamed from
29486         doc/glibc-functions/iswxdigit_l.texi.
29487         * doc/posix-functions/isxdigit_l.texi: Renamed from
29488         doc/glibc-functions/isxdigit_l.texi.
29489         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
29490         doc/glibc-functions/mbsnrtowcs.texi.
29491         * doc/posix-functions/mkdtemp.texi: Renamed from
29492         doc/glibc-functions/mkdtemp.texi.
29493         * doc/posix-functions/newlocale.texi: Renamed from
29494         doc/glibc-functions/newlocale.texi.
29495         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
29496         doc/glibc-functions/nl_langinfo_l.texi.
29497         * doc/posix-functions/open_memstream.texi: Renamed from
29498         doc/glibc-functions/open_memstream.texi.
29499         * doc/posix-functions/opterr.texi: Renamed from
29500         doc/glibc-functions/opterr.texi.
29501         * doc/posix-functions/optind.texi: Renamed from
29502         doc/glibc-functions/optind.texi.
29503         * doc/posix-functions/optopt.texi: Renamed from
29504         doc/glibc-functions/optopt.texi.
29505         * doc/posix-functions/psignal.texi: Renamed from
29506         doc/glibc-functions/psignal.texi.
29507         * doc/posix-functions/scandir.texi: Renamed from
29508         doc/glibc-functions/scandir.texi.
29509         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
29510         doc/glibc-functions/sched_get_priority_min.texi.
29511         * doc/posix-functions/signgam.texi: Renamed from
29512         doc/glibc-functions/signgam.texi.
29513         * doc/posix-functions/stpcpy.texi: Renamed from
29514         doc/glibc-functions/stpcpy.texi.
29515         * doc/posix-functions/stpncpy.texi: Renamed from
29516         doc/glibc-functions/stpncpy.texi.
29517         * doc/posix-functions/strcasecmp_l.texi: Renamed from
29518         doc/glibc-functions/strcasecmp_l.texi.
29519         * doc/posix-functions/strcoll_l.texi: Renamed from
29520         doc/glibc-functions/strcoll_l.texi.
29521         * doc/posix-functions/strfmon_l.texi: Renamed from
29522         doc/glibc-functions/strfmon_l.texi.
29523         * doc/posix-functions/strftime_l.texi: Renamed from
29524         doc/glibc-functions/strftime_l.texi.
29525         * doc/posix-functions/strncasecmp_l.texi: Renamed from
29526         doc/glibc-functions/strncasecmp_l.texi.
29527         * doc/posix-functions/strndup.texi: Renamed from
29528         doc/glibc-functions/strndup.texi.
29529         * doc/posix-functions/strnlen.texi: Renamed from
29530         doc/glibc-functions/strnlen.texi.
29531         * doc/posix-functions/strsignal.texi: Renamed from
29532         doc/glibc-functions/strsignal.texi.
29533         * doc/posix-functions/strxfrm_l.texi: Renamed from
29534         doc/glibc-functions/strxfrm_l.texi.
29535         * doc/posix-functions/timer_gettime.texi: Renamed from
29536         doc/glibc-functions/timer_gettime.texi.
29537         * doc/posix-functions/tolower_l.texi: Renamed from
29538         doc/glibc-functions/tolower_l.texi.
29539         * doc/posix-functions/toupper_l.texi: Renamed from
29540         doc/glibc-functions/toupper_l.texi.
29541         * doc/posix-functions/towctrans_l.texi: Renamed from
29542         doc/glibc-functions/towctrans_l.texi.
29543         * doc/posix-functions/towlower_l.texi: Renamed from
29544         doc/glibc-functions/towlower_l.texi.
29545         * doc/posix-functions/towupper_l.texi: Renamed from
29546         doc/glibc-functions/towupper_l.texi.
29547         * doc/posix-functions/uselocale.texi: Renamed from
29548         doc/glibc-functions/uselocale.texi.
29549         * doc/posix-functions/vdprintf.texi: Renamed from
29550         doc/glibc-functions/vdprintf.texi.
29551         * doc/posix-functions/wcpcpy.texi:
29552         Renamed from doc/glibc-functions/wcpcpy.texi.
29553         * doc/posix-functions/wcpncpy.texi: Renamed from
29554         doc/glibc-functions/wcpncpy.texi.
29555         * doc/posix-functions/wcscasecmp.texi: Renamed from
29556         doc/glibc-functions/wcscasecmp.texi.
29557         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
29558         doc/glibc-functions/wcscasecmp_l.texi.
29559         * doc/posix-functions/wcscoll_l.texi: Renamed from
29560         doc/glibc-functions/wcscoll_l.texi.
29561         * doc/posix-functions/wcsdup.texi: Renamed from
29562         doc/glibc-functions/wcsdup.texi.
29563         * doc/posix-functions/wcsncasecmp.texi: Renamed from
29564         doc/glibc-functions/wcsncasecmp.texi.
29565         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
29566         doc/glibc-functions/wcsncasecmp_l.texi.
29567         * doc/posix-functions/wcsnlen.texi: Renamed from
29568         doc/glibc-functions/wcsnlen.texi.
29569         * doc/posix-functions/wcsnrtombs.texi: Renamed from
29570         doc/glibc-functions/wcsnrtombs.texi.
29571         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
29572         doc/glibc-functions/wcsxfrm_l.texi.
29573         * doc/posix-functions/wctrans_l.texi: Renamed from
29574         doc/glibc-functions/wctrans_l.texi.
29575         * doc/posix-functions/wctype_l.texi: Renamed from
29576         doc/glibc-functions/wctype_l.texi.
29577         * doc/gnulib.texi (Function Substitutes): Add these subsections.
29578         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
29579         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
29580         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
29581         these subsections.
29582         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
29583         Remove sections.
29584
29585 2008-12-14  Bruno Haible  <bruno@clisp.org>
29586
29587         Update doc for POSIX:2008.
29588         * doc/posix-functions/*.texi: Update URL of POSIX specification.
29589
29590 2008-12-14  Bruno Haible  <bruno@clisp.org>
29591
29592         Update doc for POSIX:2008.
29593         * doc/pastposix-functions/bcmp.texi: Renamed from
29594         doc/posix-functions/bcmp.texi.
29595         * doc/pastposix-functions/bcopy.texi: Renamed from
29596         doc/posix-functions/bcopy.texi.
29597         * doc/pastposix-functions/bsd_signal.texi: Renamed from
29598         doc/posix-functions/bsd_signal.texi.
29599         * doc/pastposix-functions/bzero.texi: Renamed from
29600         doc/posix-functions/bzero.texi.
29601         * doc/pastposix-functions/ecvt.texi: Renamed from
29602         doc/posix-functions/ecvt.texi.
29603         * doc/pastposix-functions/fcvt.texi: Renamed from
29604         doc/posix-functions/fcvt.texi.
29605         * doc/pastposix-functions/ftime.texi: Renamed from
29606         doc/posix-functions/ftime.texi.
29607         * doc/pastposix-functions/gcvt.texi: Renamed from
29608         doc/posix-functions/gcvt.texi.
29609         * doc/pastposix-functions/getcontext.texi: Renamed from
29610         doc/posix-functions/getcontext.texi.
29611         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
29612         doc/posix-functions/gethostbyaddr.texi.
29613         * doc/pastposix-functions/gethostbyname.texi: Renamed from
29614         doc/posix-functions/gethostbyname.texi.
29615         * doc/pastposix-functions/getwd.texi: Renamed from
29616         doc/posix-functions/getwd.texi.
29617         * doc/pastposix-functions/h_errno.texi: Renamed from
29618         doc/posix-functions/h_errno.texi.
29619         * doc/pastposix-functions/index.texi: Renamed from
29620         doc/posix-functions/index.texi.
29621         * doc/pastposix-functions/makecontext.texi: Renamed from
29622         doc/posix-functions/makecontext.texi.
29623         * doc/pastposix-functions/mktemp.texi: Renamed from
29624         doc/posix-functions/mktemp.texi.
29625         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
29626         doc/posix-functions/pthread_attr_getstackaddr.texi.
29627         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
29628         doc/posix-functions/pthread_attr_setstackaddr.texi.
29629         * doc/pastposix-functions/rindex.texi: Renamed from
29630         doc/posix-functions/rindex.texi.
29631         * doc/pastposix-functions/scalb.texi: Renamed from
29632         doc/posix-functions/scalb.texi.
29633         * doc/pastposix-functions/setcontext.texi: Renamed from
29634         doc/posix-functions/setcontext.texi.
29635         * doc/pastposix-functions/swapcontext.texi: Renamed from
29636         doc/posix-functions/swapcontext.texi.
29637         * doc/pastposix-functions/ualarm.texi: Renamed from
29638         doc/posix-functions/ualarm.texi.
29639         * doc/pastposix-functions/usleep.texi: Renamed from
29640         doc/posix-functions/usleep.texi.
29641         * doc/pastposix-functions/vfork.texi: Renamed from
29642         doc/posix-functions/vfork.texi.
29643         * doc/pastposix-functions/wcswcs.texi: Renamed from
29644         doc/posix-functions/wcswcs.texi.
29645         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
29646         (Function Substitutes): Update.
29647
29648 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29649
29650         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
29651         m4/strerror.m4.
29652
29653 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29654             Bruno Haible  <bruno@clisp.org>
29655
29656         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
29657
29658 2008-12-13  Bruno Haible  <bruno@clisp.org>
29659
29660         * modules/strtoull (Depends-on): Remove unistd.
29661
29662 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29663
29664         * modules/strtoull (Depends-on): Add stdlib.
29665
29666 2008-12-11  Simon Josefsson  <simon@josefsson.org>
29667
29668         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
29669
29670 2008-12-10  Jim Meyering  <meyering@redhat.com>
29671
29672         gl_ASSERT: don't say assertions are disabled when they're not
29673         * m4/assert.m4 (gl_ASSERT): Do not make configure report
29674         "checking whether to enable assertions... no", when they are in
29675         fact enabled.  This is solely a bug in the output of configure.
29676         In spite of saying "no", NDEBUG was not defined in that case.
29677         Also, as noted by Eric Blake, leave assertions enabled upon
29678         --enable-assert=INVALID.
29679
29680 2008-12-10  Bruno Haible  <bruno@clisp.org>
29681
29682         Change MODULES.html to refer to POSIX:2008 where possible.
29683         * MODULES.html.sh (POSIX2008_URL): New variable.
29684         (posix_headers): Remove sys/timeb, ucontext.
29685         (posix2001_headers): New variable.
29686         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
29687         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
29688         index, makecontext, mktemp, pthread_attr_getstackaddr,
29689         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
29690         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
29691         (posix2001_functions): New variable.
29692         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
29693         otherwise.
29694
29695 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29696
29697         add missing include to parse-duration.c
29698         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
29699         * modules/parse-duration (Depends-on): Add xalloc.
29700
29701         fix sed script reading maint.mk
29702         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
29703         (syntax-check-rules): Use it.
29704
29705 2008-12-09  Bruno Haible  <bruno@clisp.org>
29706
29707         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
29708         MacOS X 10.4/PowerPC.
29709         Reported by Simon Josefsson.
29710
29711 2008-12-08  Jim Meyering  <meyering@redhat.com>
29712
29713         work around mingw's lack of some S_IF definitions
29714         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
29715         Reported by Simon Josefsson.
29716
29717 2008-12-08  Bruno Haible  <bruno@clisp.org>
29718
29719         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
29720         applied to variables. Needed on MacOS X 10.4/PowerPC.
29721         Reported by Simon Josefsson.
29722
29723 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
29724         and Eric Blake  <ebb9@byu.net>
29725
29726         assert: honor --enable-assert
29727         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
29728         order to honor --enable-assert, rather than treating it as a
29729         synonym for --disable-assert.
29730
29731 2008-12-08  Jim Meyering  <meyering@redhat.com>
29732
29733         * lib/posixtm.c: Remove now-useless declaration of mktime.
29734
29735         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
29736
29737 2008-12-07  Bruno Haible  <bruno@clisp.org>
29738
29739         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
29740         test_once): Mark functions as static.
29741         * tests/test-tls.c (test_tls): Likewise.
29742
29743 2008-12-07  Bruno Haible  <bruno@clisp.org>
29744
29745         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
29746         iconv_register_autodetect.
29747
29748 2008-12-07  Jim Meyering  <meyering@redhat.com>
29749
29750         posixtm.c: avoid a warning
29751         * lib/posixtm.c (posixtime): Don't initialize tm0.
29752         It's no longer needed to placate gcc4's -Wuninitialized,
29753         and the attempt to placate would elicit a new warning.
29754
29755         unicodeio.c: mark unused parameters
29756         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
29757         (fallback_failure_callback): Likewise.
29758
29759 2008-12-07  Bruno Haible  <bruno@clisp.org>
29760
29761         * gnulib-tool (func_create_testdir): When building the tests
29762         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
29763         Reported by Simon Josefsson.
29764
29765 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29766
29767         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
29768
29769 2008-12-06  Bruno Haible  <bruno@clisp.org>
29770
29771         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
29772         Suggested by Eric Blake.
29773
29774 2008-12-06  Bruno Haible  <bruno@clisp.org>
29775
29776         Fix a c-stack test failure on MacOS X.
29777         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
29778         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
29779         handler for SIGBUS as well.
29780         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
29781         install a signal handler for SIGBUS as well.
29782         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
29783
29784 2008-12-06  Bruno Haible  <bruno@clisp.org>
29785
29786         Advocacy documentation.
29787         * doc/gnulib-intro.texi (Benefits): New section.
29788         * doc/gnulib.texi: Update.
29789
29790 2008-12-06  Bruno Haible  <bruno@clisp.org>
29791
29792         Document the 'manywarnings' module.
29793         * doc/manywarnings.texi: New file.
29794         * doc/gnulib.texi: Include it.
29795
29796 2008-12-05  Eric Blake  <ebb9@byu.net>
29797
29798         tests: silence some gcc warnings
29799         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
29800         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
29801         type mismatches.
29802
29803 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29804             Bruno Haible  <bruno@clisp.org>
29805
29806         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
29807
29808 2008-11-29  Jim Meyering  <meyering@redhat.com>
29809
29810         unicodeio.c: mark unused parameters
29811         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
29812         (fallback_failure_callback): Likewise.
29813
29814         fts: fix a thinko
29815         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
29816         (set_stat_type): Return S_IF*-valued "type" directly.
29817         Prompted by James Youngman's spotting a related bug.
29818         Confirmed by further testing through find.
29819
29820         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
29821         * lib/fts.c (D_TYPE): Define.
29822         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
29823         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
29824         (s_ifmt_shift_bits): New function.
29825         (set_stat_type): New function.
29826         (fts_build): When not calling fts_stat, call set_stat_type
29827         to propagate dirent.d_type info to fts_read caller.
29828         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
29829         fts_statp->st_mode type information may be valid.
29830
29831 2008-11-28  Simon Josefsson  <simon@josefsson.org>
29832
29833         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
29834         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
29835         <sds@gnu.org>.
29836
29837 2008-11-20  Bruno Haible  <bruno@clisp.org>
29838
29839         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
29840         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
29841         INCLUDE_NEXT.
29842         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
29843         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
29844         * modules/math (Makefile.am): Substitute
29845         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
29846         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29847
29848 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
29849             Bruno Haible  <bruno@clisp.org>
29850
29851         * lib/stdint.in.h: Define all type macros so that their expansion is
29852         a single typedef'ed token. Fixes a compilation failure in Boost which
29853         does "using ::int8_t;".
29854
29855 2008-11-18  Simon Josefsson  <simon@josefsson.org>
29856
29857         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
29858         gl_MANYWARN_ALL_GCC.
29859         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
29860         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
29861         * modules/manywarnings: New file.
29862         * MODULES.html.sh: Mention manywarnings module.
29863
29864 2008-11-18  Bruno Haible  <bruno@clisp.org>
29865
29866         * doc/gnulib-tool.texi (Unit tests): New section.
29867
29868 2008-11-18  Simon Josefsson  <simon@josefsson.org>
29869
29870         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
29871         paths like 'lib/po/foo.po'.
29872
29873 2008-11-17  Simon Josefsson  <simon@josefsson.org>
29874
29875         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
29876         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
29877
29878 2008-11-17  Simon Josefsson  <simon@josefsson.org>
29879
29880         * m4/warnings.m4: Use CPPFLAGS to really check whether the
29881         parameter works.
29882
29883 2008-11-17  Simon Josefsson  <simon@josefsson.org>
29884
29885         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
29886
29887 2008-11-17  Bruce Korb  <bkorb@gnu.org>
29888
29889         * modules/parse-duration-tests: New file.
29890         * tests/test-parse-duration.sh: New file.
29891         * tests/test-parse-duration.c: New file.
29892
29893         New module 'parse-duration'.
29894         * lib/parse-duration.h: New file.
29895         * lib/parse-duration.c: New file.
29896         * modules/parse-duration: New file.
29897
29898 2008-11-17  Bruno Haible  <bruno@clisp.org>
29899
29900         * tests/test-select-out.sh: Comment out the first pipe test.
29901         Reported by Simon Josefsson.
29902
29903 2008-11-17  Bruno Haible  <bruno@clisp.org>
29904
29905         * modules/getaddrinfo (Depends-on): Add servent, hostent.
29906         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
29907         gl_HOSTENT.
29908
29909 2008-11-17  Bruno Haible  <bruno@clisp.org>
29910
29911         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
29912         -lnetwork and -lnet. Needed for Haiku and BeOS.
29913
29914 2008-11-16  Bruno Haible  <bruno@clisp.org>
29915
29916         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
29917
29918 2008-11-16  Bruno Haible  <bruno@clisp.org>
29919
29920         Avoid test failure on Haiku.
29921         * tests/test-fsync.c: Include <errno.h>.
29922         (main): Don't require that fsync (0) fails.
29923
29924 2008-11-15  Bruno Haible  <bruno@clisp.org>
29925
29926         New module 'hostent'.
29927         * modules/hostent: New file.
29928         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
29929
29930 2008-11-15  Bruno Haible  <bruno@clisp.org>
29931
29932         New module 'servent'.
29933         * modules/servent: New file.
29934         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
29935
29936 2008-11-15  Bruno Haible  <bruno@clisp.org>
29937
29938         Avoid generating same test program with two different rules.
29939         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
29940         test-frexp to test-frexp-nolibm.
29941         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
29942         test-frexpl to test-frexpl-nolibm.
29943
29944 2008-11-15  Bruno Haible  <bruno@clisp.org>
29945
29946         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
29947         $(FREXPL_LIBM).
29948
29949 2008-11-15  Bruno Haible  <bruno@clisp.org>
29950
29951         * lib/netdb.in.h: Activate the definitions also when the system's
29952         <netdb.h> has 'struct addrinfo'.
29953         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
29954         EAI_OVERFLOW or AI_NUMERICSERV.
29955         * doc/posix-headers/netdb.texi: Document the problem.
29956
29957 2008-11-15  Bruno Haible  <bruno@clisp.org>
29958
29959         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
29960
29961         Make the 'sched' module work on platforms where <sched.h> exists but
29962         is incomplete (such as Haiku).
29963         * lib/sched.in.h; Include the system's <sched.h> if it exists.
29964         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
29965         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
29966         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
29967         HAVE_STRUCT_SCHED_PARAM.
29968         * modules/sched (Depends-on): Add include_next.
29969         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
29970         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
29971         * doc/posix-headers/sched.texi: Document the issue.
29972
29973 2008-11-13  Jim Meyering  <meyering@redhat.com>
29974
29975         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
29976         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
29977         test would fail due to the difference in the Report bugs to ...
29978         line.  The expected address is empty, "<>", while the actual
29979         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
29980
29981 2008-11-12  Bruno Haible  <bruno@clisp.org>
29982
29983         lstat: don't compile lstat.c on systems lacking lstat
29984         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
29985         which don't have lstat; this is handled by lib/sys_stat.in.h already.
29986         Reported by Daniel P. Berrange via Jim Meyering.
29987
29988 2008-11-12  Jim Meyering  <meyering@redhat.com>
29989
29990         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
29991
29992 2008-11-12  Simon Josefsson  <simon@josefsson.org>
29993
29994         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
29995         instead.
29996
29997 2008-11-12  Bruno Haible  <bruno@clisp.org>
29998
29999         * lib/unicodeio.c: Include unistr.h.
30000         (utf8_wctomb): Remove function.
30001         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
30002
30003 2008-11-12  Simon Josefsson  <simon@josefsson.org>
30004
30005         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
30006         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
30007         <bruno@clisp.org>.
30008         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
30009
30010 2008-11-12  Simon Josefsson  <simon@josefsson.org>
30011
30012         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
30013         * doc/gnulib.texi: Add section for warnings.
30014
30015 2008-11-11  Bruno Haible  <bruno@clisp.org>
30016
30017         * lib/sockets.h: Add a comment.
30018
30019 2008-11-11  Karl Berry  <karl@gnu.org>
30020
30021         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
30022
30023 2008-11-11  Eric Blake  <ebb9@byu.net>
30024
30025         fdl.texi: avoid git symlinks
30026         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
30027
30028 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
30029
30030         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
30031
30032 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
30033
30034         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
30035         (gl_WARN_ADD): Substitute $2 if literal.
30036
30037 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
30038
30039         * m4/warning.m4: Remove.
30040
30041 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
30042
30043         * m4/warnings.m4: Almost complete rewrite. :-)
30044
30045 2008-11-10  Simon Josefsson  <simon@josefsson.org>
30046
30047         * modules/warnings: New module.
30048         * m4/warnings.m4: New file.
30049         * MODULES.html.sh: Mention warnings module.
30050         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
30051         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30052
30053 2008-11-10  Eric Blake  <ebb9@byu.net>
30054
30055         fdl.texi: make a symlink to the latest version
30056         * doc/standards.texi: Revert today's earlier change.
30057         * doc/fdl-1.2.texi: Rename from old fdl.texi...
30058         * doc/fdl.texi: ...and replace this with a symlink to the newer
30059         fdl-1.3.texi.
30060
30061 2008-11-10  Bruno Haible  <bruno@clisp.org>
30062
30063         * tests/test-select-fd.c (main): Accept the result file name as fourth
30064         argument.
30065         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
30066         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
30067
30068 2008-11-10  Bruno Haible  <bruno@clisp.org>
30069
30070         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
30071         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
30072         as autoconf-substituted macros.
30073         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
30074         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
30075         gl_NETDB_H_DEFAULTS. Set these variables.
30076         * modules/netdb (Makefile.am): Substitute these variables.
30077
30078 2008-11-10  Eric Blake  <ebb9@byu.net>
30079
30080         standards.texi: include correct file for FDL 1.3
30081         * doc/standards.texi (GNU Free Documentation License): Change
30082         include file to pull in FDL 1.3, not 1.2.
30083
30084         fdl.texi: revert accidental change to license
30085         * doc/fdl.texi: This is FDL 1.2, not 1.3.
30086
30087 2008-11-10  Bruno Haible  <bruno@clisp.org>
30088
30089         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
30090         cross-compiling guesses also when the native compile gives no result.
30091
30092 2008-11-10  Bruno Haible  <bruno@clisp.org>
30093
30094         * lib/spawni.c (__spawni): Force variable into the stack.
30095
30096 2008-11-10  Bruno Haible  <bruno@clisp.org>
30097
30098         Add support for Haiku.
30099         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
30100         glibc and BeOS, but also on Haiku.
30101         * lib/fpurge.c (fpurge): Likewise.
30102         * lib/freadable.c (freadable): Likewise.
30103         * lib/freadahead.c (freadahead): Likewise.
30104         * lib/freading.c (freading): Likewise.
30105         * lib/freadptr.c (freadptr): Likewise.
30106         * lib/freadseek.c (freadptrinc): Likewise.
30107         * lib/fseeko.c (rpl_fseeko): Likewise.
30108         * lib/fseterr.c (fseterr): Likewise.
30109         * lib/fwritable.c (fwritable): Likewise.
30110         * lib/fwriting.c (fwriting): Likewise.
30111         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
30112
30113 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
30114
30115         * lib/config.charset: Treat Haiku like BeOS.
30116
30117 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
30118
30119         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
30120         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
30121
30122 2008-11-08  Bruno Haible  <bruno@clisp.org>
30123
30124         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
30125         AC_CACHE_CHECK.
30126
30127 2008-11-08  Bruno Haible  <bruno@clisp.org>
30128
30129         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
30130
30131 2008-11-08  Bruno Haible  <bruno@clisp.org>
30132
30133         * tests/test-select-fd.c: New file.
30134         * tests/test-select-in.sh: New file.
30135         * tests/test-select-out.sh: New file.
30136         * tests/test-select-stdin.c: New file.
30137         * modules/select-tests (Files): Add the new files.
30138         (Depends-on): Add gettimeofday.
30139         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
30140         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
30141         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
30142
30143 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
30144             Bruno Haible  <bruno@clisp.org>
30145
30146         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
30147
30148 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
30149
30150         * build-aux/pmccabe2html: Added support for C++ source files.
30151
30152 2008-11-05  Ben Pfaff  <blp@gnu.org>
30153
30154         Fix lib/close.c build on Windows.
30155         * modules/close (Files): Add lib/w32sock.h.
30156
30157 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
30158
30159         Accept Bison's NEWS format.
30160         * build-aux/announce-gen (print_news_deltas): Tweak
30161         $re_prefix.
30162
30163 2008-11-04  Bruno Haible  <bruno@clisp.org>
30164
30165         * modules/random_r (Maintainer): Add glibc.
30166
30167 2008-11-04  Simon Josefsson  <simon@josefsson.org>
30168
30169         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
30170         by karl@freefriends.org (Karl Berry).
30171         * doc/alloca.texi: Likewise.
30172         * doc/c-ctype.texi: Likewise.
30173         * doc/c-strcase.texi: Likewise.
30174         * doc/c-strcaseeq.texi: Likewise.
30175         * doc/c-strcasestr.texi: Likewise.
30176         * doc/c-strstr.texi: Likewise.
30177         * doc/c-strtod.texi: Likewise.
30178         * doc/c-strtold.texi: Likewise.
30179         * doc/ctime.texi: Likewise.
30180         * doc/error.texi: Likewise.
30181         * doc/fdl.texi: Likewise.
30182         * doc/gcd.texi: Likewise.
30183         * doc/getdate.texi: Likewise.
30184         * doc/gnulib-intro.texi: Likewise.
30185         * doc/gnulib-tool.texi: Likewise.
30186         * doc/gnulib.texi: Likewise.
30187         * doc/inet_ntoa.texi: Likewise.
30188         * doc/maintain.texi: Likewise.
30189         * doc/make-stds.texi: Likewise.
30190         * doc/quote.texi: Likewise.
30191         * doc/regexprops-generic.texi: Likewise.
30192         * doc/standards.texi: Likewise.
30193         * doc/verify.texi: Likewise.
30194         * doc/visibility.texi: Likewise.
30195         * doc/gnulib.texi (GNU Free Documentation License): Include
30196         fdl-1.3.texi instead of fdl.texi.
30197
30198 2008-11-04  Simon Josefsson  <simon@josefsson.org>
30199
30200         * doc/fdl-1.3.texi: New file, from
30201         <http://www.gnu.org/licenses/fdl-1.3.texi>.
30202         * modules/fdl-1.3: Add.
30203         * MODULES.html.sh: Add fdl-1.3.
30204
30205 2008-11-03  Bruno Haible  <bruno@clisp.org>
30206
30207         Make determination of absolute name of header file work with AIX xlc.
30208         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
30209         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
30210         preprocessing.
30211         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30212         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
30213
30214 2008-11-03  Simon Josefsson  <simon@josefsson.org>
30215
30216         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
30217         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
30218         <ludo@gnu.org>.
30219
30220 2008-11-02  Bruno Haible  <bruno@clisp.org>
30221
30222         Mark 'strpbrk' obsolete.
30223         * modules/strpbrk (Status, Notice): New sections.
30224         * modules/strtok_r (Depends-on): Add strpbrk.
30225
30226 2008-11-02  Bruno Haible  <bruno@clisp.org>
30227
30228         Mark 'strdup' obsolete.
30229         * modules/strdup (Status, Notice): New sections.
30230         * modules/findprog (Depends-on): Add strdup.
30231         * modules/getaddrinfo (Depends-on): Likewise.
30232         * modules/localename (Depends-on): Likewise.
30233         * modules/relocatable-lib (Depends-on): Likewise.
30234         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
30235         * modules/relocatable-prog (Depends-on): Likewise.
30236         * modules/trim (Depends-on): Likewise.
30237         * modules/unictype/gen-ctype (Depends-on): Likewise.
30238         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
30239
30240 2008-11-02  Bruno Haible  <bruno@clisp.org>
30241
30242         Mark 'strcspn' obsolete.
30243         * modules/strcspn (Status, Notice): New sections.
30244
30245 2008-11-02  Bruno Haible  <bruno@clisp.org>
30246
30247         Mark 'rmdir' obsolete.
30248         * modules/rmdir (Status, Notice): New sections.
30249         * modules/clean-temp (Depends-on): Add rmdir.
30250         * modules/openat (Depends-on): Likewise.
30251
30252 2008-11-02  Bruno Haible  <bruno@clisp.org>
30253
30254         Mark 'raise' obsolete.
30255         * modules/raise (Status, Notice): New sections.
30256         (Include): Specify <signal.h>.
30257         * modules/stdio (Depends-on): Add raise.
30258         * modules/write (Depends-on): Likewise.
30259
30260 2008-11-02  Bruno Haible  <bruno@clisp.org>
30261
30262         Mark 'memset' obsolete.
30263         * modules/memset (Status, Notice): New sections.
30264
30265 2008-11-02  Bruno Haible  <bruno@clisp.org>
30266
30267         Mark 'memmove' obsolete.
30268         * modules/memmove (Status, Notice): New sections.
30269         * modules/argp (Depends-on): Add memmove.
30270         * modules/argz (Depends-on): Likewise.
30271         * modules/canonicalize (Depends-on): Likewise.
30272         * modules/canonicalize-lgpl (Depends-on): Likewise.
30273         * modules/fts (Depends-on): Likewise.
30274         * modules/getcwd (Depends-on): Likewise.
30275         * modules/human (Depends-on): Likewise.
30276         * modules/regex (Depends-on): Likewise.
30277         * modules/striconveh (Depends-on): Likewise.
30278         * modules/trim (Depends-on): Likewise.
30279         * modules/unistr/u8-move (Depends-on): Likewise.
30280         * modules/unistr/u16-move (Depends-on): Likewise.
30281         * modules/unistr/u32-move (Depends-on): Likewise.
30282
30283 2008-11-02  Bruno Haible  <bruno@clisp.org>
30284
30285         Mark 'memcpy' obsolete.
30286         * modules/memcpy (Status, Notice): New sections.
30287
30288 2008-11-02  Bruno Haible  <bruno@clisp.org>
30289
30290         Mark 'memcmp' obsolete.
30291         * modules/memcmp (Status, Notice): New sections.
30292         * modules/argmatch (Depends-on): Add memchr.
30293         * modules/backupfile (Depends-on): Likewise.
30294         * modules/c-strcasestr (Depends-on): Likewise.
30295         * modules/crypto/des (Depends-on): Likewise.
30296         * modules/csharpcomp (Depends-on): Likewise.
30297         * modules/fnmatch (Depends-on): Likewise.
30298         * modules/git-merge-changelog (Depends-on): Likewise.
30299         * modules/isnand (Depends-on): Likewise.
30300         * modules/isnand-nolibm (Depends-on): Likewise.
30301         * modules/isnanf (Depends-on): Likewise.
30302         * modules/isnanf-nolibm (Depends-on): Likewise.
30303         * modules/isnanl (Depends-on): Likewise.
30304         * modules/isnanl-nolibm (Depends-on): Likewise.
30305         * modules/mbchar (Depends-on): Likewise.
30306         * modules/memcoll (Depends-on): Likewise.
30307         * modules/quotearg (Depends-on): Likewise.
30308         * modules/regex (Depends-on): Likewise.
30309         * modules/relocatable-prog (Depends-on): Likewise.
30310         * modules/same (Depends-on): Likewise.
30311         * modules/signbit (Depends-on): Likewise.
30312         * modules/strcasestr-simple (Depends-on): Likewise.
30313         * modules/unictype/gen-ctype (Depends-on): Likewise.
30314         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
30315         * modules/uniname/uniname (Depends-on): Likewise.
30316         * modules/unistr/u8-cmp (Depends-on): Likewise.
30317
30318 2008-11-02  Bruno Haible  <bruno@clisp.org>
30319
30320         Mark 'memchr' obsolete.
30321         * modules/memchr (Status, Notice): New sections.
30322         * modules/argp (Depends-on): Add memchr.
30323         * modules/base64 (Depends-on): Likewise.
30324         * modules/c-strcasestr (Depends-on): Likewise.
30325         * modules/chdir-long (Depends-on): Likewise.
30326         * modules/fnmatch (Depends-on): Likewise.
30327         * modules/getsubopt (Depends-on): Likewise.
30328         * modules/git-merge-changelog (Depends-on): Likewise.
30329         * modules/glob (Depends-on): Likewise.
30330         * modules/strcasestr-simple (Depends-on): Likewise.
30331         * modules/strnlen (Depends-on): Likewise.
30332
30333 2008-11-02  Bruno Haible  <bruno@clisp.org>
30334
30335         Mark 'atexit' obsolete.
30336         * modules/atexit (Status, Notice): New sections.
30337         * modules/chdir-long (Depends-on): Add atexit.
30338         * modules/wait-process (Depends-on): Likewise.
30339
30340 2008-11-02  Bruno Haible  <bruno@clisp.org>
30341
30342         * gnulib-tool: New option --with-obsolete.
30343         (func_usage): Document it.
30344         (func_modules_transitive_closure): Drop obsolete dependencies if
30345         incobsolete is not true.
30346         (func_import): Read and save the incobsolete variable to the cache.
30347
30348 2008-11-02  Bruno Haible  <bruno@clisp.org>
30349
30350         * modules/TEMPLATE-EXTENDED: New field 'Status'.
30351         * gnulib-tool: New option --extract-status.
30352         (func_usage): Document it.
30353         (sed_extract_prog): Recognize it.
30354         (func_get_status): New function.
30355
30356 2008-10-30  Simon Josefsson  <simon@josefsson.org>
30357
30358         * modules/sockets (License): Change from LGPL to LGPLv2+.
30359
30360 2008-10-28  Simon Josefsson  <simon@josefsson.org>
30361
30362         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
30363
30364 2008-10-28  Simon Josefsson  <simon@josefsson.org>
30365
30366         * MODULES.html.sh (Support for systems lacking POSIX:2001):
30367         Mention times and sys_times.
30368         * modules/sys_times, modules/sys_times-tests: New modules.
30369         * modules/times, modules/times-tests: Likewise
30370         * m4/sys_times_h.m4: New file.
30371         * lib/sys_times.in.h: Likewise
30372         * lib/times.c: Likewise.
30373         * tests/test-sys_times.c: Likewise.
30374         * tests/test-times.c: Likewise.
30375         * doc/posix-headers/sys_times.texi: Update.
30376         * doc/posix-functions/times.texi: Update.
30377
30378 2008-10-28  Jim Meyering  <meyering@redhat.com>
30379
30380         * modules/tempname (Depends-on): Add lstat.
30381
30382         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
30383
30384 2008-10-28  Simon Josefsson  <simon@josefsson.org>
30385
30386         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
30387         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
30388         using idiom used elsewhere in gnulib.
30389
30390 2008-10-27  Jim Meyering  <meyering@redhat.com>
30391
30392         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
30393
30394 2008-10-27  Simon Josefsson  <simon@josefsson.org>
30395
30396         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
30397         TESTS_ENVIRONMENT, for shell scripts that needs to call built
30398         programs.
30399         * tests/test-argp-2.sh: Use $EXEEXT when needed.
30400
30401 2008-10-27  Simon Josefsson  <simon@josefsson.org>
30402
30403         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
30404
30405 2008-10-27  Bruno Haible  <bruno@clisp.org>
30406
30407         * tests/test-lstat.c: Include <stdio.h>.
30408
30409 2008-10-27  Simon Josefsson  <simon@josefsson.org>
30410
30411         * modules/lstat-tests: New module.
30412         * tests/test-lstat.c: New file.
30413
30414 2008-10-26  Jim Meyering  <meyering@redhat.com>
30415
30416         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
30417
30418 2008-10-26  Simon Josefsson  <simon@josefsson.org>
30419             Bruno Haible  <bruno@clisp.org>
30420
30421         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
30422         * modules/configmake (Include): Add a note that the include must come
30423         after all system headers.
30424         * lib/javaversion.c: Include configmake.h after all other includes.
30425
30426 2008-10-26  Bruno Haible  <bruno@clisp.org>
30427
30428         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
30429         HAVE_STRUCT_RANDOM_DATA to 1.
30430         (gl_STDLIB_H): Simplify.
30431
30432 2008-10-26  Simon Josefsson  <simon@josefsson.org>
30433
30434         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
30435         substitute HAVE_STRUCT_RANDOM_DATA.
30436         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
30437         random_data.
30438         * modules/stdlib (Makefile.am): Substitute
30439         HAVE_STRUCT_RANDOM_DATA.
30440
30441 2008-10-26  Simon Josefsson  <simon@josefsson.org>
30442
30443         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
30444         * doc/gnulib-intro.texi (Copyright): Likewise.
30445
30446 2008-10-26  Simon Josefsson  <simon@josefsson.org>
30447
30448         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
30449         findings.
30450
30451 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
30452             Bruno Haible  <bruno@clisp.org>
30453
30454         * lib/unistd.in.h: Include <winsock2.h>.
30455         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
30456         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
30457         Provide dummy declarations.
30458         (gethostname): Override.
30459         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
30460         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
30461         gl_PREREQ_SYS_H_WINSOCK2.
30462         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
30463         * doc/posix-functions/gethostname.texi: More details.
30464
30465 2008-10-25  Bruno Haible  <bruno@clisp.org>
30466
30467         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
30468         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
30469         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
30470
30471         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
30472         here ...
30473         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
30474         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
30475         gl_UNISTD_H_DEFAULTS.
30476
30477 2008-10-25  Eric Blake  <ebb9@byu.net>
30478
30479         signbit: avoid spurious compiler failure
30480         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
30481         declarations inside function.
30482
30483 2008-10-24  Simon Josefsson  <simon@josefsson.org>
30484             Bruno Haible  <bruno@clisp.org>
30485
30486         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
30487         * modules/random_r (Depends-on): Add stdint.
30488
30489 2008-10-24  Bruno Haible  <bruno@clisp.org>
30490
30491         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
30492         Eggert.
30493         * modules/strerror (License): Likewise.
30494
30495 2008-10-24  Jim Meyering  <meyering@redhat.com>
30496
30497         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
30498         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
30499
30500 2008-10-24  Eric Blake  <ebb9@byu.net>
30501
30502         getgroups: fix compilation when getgroups is available
30503         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
30504         but with <config.h> override of getgroups disabled.
30505
30506 2008-10-24  Simon Josefsson  <simon@josefsson.org>
30507
30508         * doc/gnulib.texi (Header files): Add note about C++ problems.
30509         Explained by Bruno Haible <bruno@clisp.org>.
30510
30511 2008-10-23  Bruno Haible  <bruno@clisp.org>
30512
30513         Define a dummy SA_NODEFER macro on Interix.
30514         * lib/signal.in.h (SA_NODEFER): Define fallback.
30515         Reported by Aleksey Cheusov <cheusov@tut.by> via
30516         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
30517
30518 2008-10-23  Bruno Haible  <bruno@clisp.org>
30519
30520         * modules/freadahead (License): Change to LGPLv2+.
30521         Suggested by Simon Josefsson.
30522
30523 2008-10-23  Jim Meyering  <meyering@redhat.com>
30524
30525         random_r: new module
30526         * modules/random_r: New file.
30527         * m4/random_r.m4: New file.
30528         * lib/random_r.c: New file, from glibc.
30529         * modules/random_r-tests: New file.
30530         * tests/test-random_r.c: New file.
30531         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
30532          Declare.
30533         (RAND_MAX): Define.
30534         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
30535         * modules/stdlib: Substitute them, too.
30536         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
30537         * doc/glibc-functions/initstate_r.texi: Mention the new module.
30538         * doc/glibc-functions/random_r.texi: Likewise.
30539         * doc/glibc-functions/setstate_r.texi: Likewise.
30540         * doc/glibc-functions/srandom_r.texi: Likewise.
30541         * config/srclist.txt: Mention it.
30542
30543 2008-10-23  David Lutterkort  <lutter@redhat.com>
30544
30545         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
30546         link requirement
30547
30548 2008-10-23  Jim Meyering  <meyering@redhat.com>
30549
30550         selinux-h: mark parameters of stub functions as intentionally unused
30551         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
30552         * lib/se-context.in.h: Likewise.
30553
30554 2008-10-22  Simon Josefsson  <simon@josefsson.org>
30555
30556         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
30557
30558 2008-10-22  Simon Josefsson  <simon@josefsson.org>
30559
30560         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
30561
30562 2008-10-22  Eric Blake  <ebb9@byu.net>
30563
30564         glthread/thread: avoid compiler warning
30565         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
30566         Add unreachable abort to silence compiler.
30567
30568 2008-10-22  Eric Blake  <ebb9@byu.net>
30569
30570         netdb: also supply struct addrinfo for cygwin 1.5.x
30571         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
30572         older cygwin.
30573         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
30574         cygwin.
30575         * doc/posix-headers/netdb.texi (netdb.h): Document this.
30576
30577 2008-10-22  Bruno Haible  <bruno@clisp.org>
30578
30579         * users.txt: Update entry about pspp.
30580
30581 2008-10-21  Bruno Haible  <bruno@clisp.org>
30582
30583         Simplification.
30584         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
30585         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
30586
30587         Simplification.
30588         * lib/ioctl.c (ioctl): Don't undefine.
30589         * lib/socket.c (socket): Don't undefine.
30590
30591         Remove unused module indicator macros.
30592         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
30593         GNULIB_$1 as a C macro.
30594
30595         * doc/posix-functions/close.texi: Undo last change.
30596         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
30597         Windows platforms.
30598
30599 2008-10-21  Bruno Haible  <bruno@clisp.org>
30600
30601         Add gethostname() declaration to <unistd.h>.
30602         * lib/unistd.in.h (gethostname): New declaration.
30603         * lib/gethostname.c: Include <unistd.h>.
30604         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
30605         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
30606         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
30607         and HAVE_GETHOSTNAME.
30608         * modules/gethostname (Depends-on): Add unistd.
30609         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30610         (Include): Specify <unistd.h>.
30611         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
30612         HAVE_GETHOSTNAME.
30613         * tests/test-gethostname.c: Include <unistd.h> first.
30614
30615 2008-10-21  Bruno Haible  <bruno@clisp.org>
30616
30617         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
30618         * modules/select-tests (Depends-on): Likewise.
30619         Reported by Simon Josefsson.
30620
30621 2008-10-21  Simon Josefsson  <simon@josefsson.org>
30622
30623         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
30624         * lib/accept.c: New file, based on winsock.c.
30625         * lib/bind.c: New file, based on winsock.c.
30626         * lib/connect.c: New file, based on winsock.c.
30627         * lib/getpeername.c: New file, based on winsock.c.
30628         * lib/getsockname.c: New file, based on winsock.c.
30629         * lib/getsockopt.c: New file, based on winsock.c.
30630         * lib/ioctl.c: New file, based on winsock.c.
30631         * lib/listen.c: New file, based on winsock.c.
30632         * lib/recv.c: New file, based on winsock.c.
30633         * lib/recvfrom.c: New file, based on winsock.c.
30634         * lib/send.c: New file, based on winsock.c.
30635         * lib/sendto.c: New file, based on winsock.c.
30636         * lib/setsockopt.c: New file, based on winsock.c.
30637         * lib/shutdown.c: New file, based on winsock.c.
30638         * lib/socket.c: New file, based on winsock.c.
30639         * lib/w32sock.h: New file, based on winsock.c.
30640         * lib/winsock.c: Remove file.
30641         * modules/accept: Likewise.
30642         * modules/bind: Likewise.
30643         * modules/connect: Likewise.
30644         * modules/getpeername: Likewise.
30645         * modules/getsockname: Likewise.
30646         * modules/getsockopt: Likewise.
30647         * modules/ioctl: Likewise.
30648         * modules/listen: Likewise.
30649         * modules/recv: Likewise.
30650         * modules/recvfrom: Likewise.
30651         * modules/send: Likewise.
30652         * modules/sendto: Likewise.
30653         * modules/setsockopt: Likewise.
30654         * modules/shutdown: Likewise.
30655         * modules/socket: Use socket.c instead of winsock.c.
30656         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
30657         * doc/posix-functions/accept.texi: Doc fix.
30658         * doc/posix-functions/bind.texi: Doc fix.
30659         * doc/posix-functions/close.texi: Doc fix.
30660         * doc/posix-functions/connect.texi: Doc fix.
30661         * doc/posix-functions/getpeername.texi: Doc fix.
30662         * doc/posix-functions/getsockname.texi: Doc fix.
30663         * doc/posix-functions/getsockopt.texi: Doc fix.
30664         * doc/posix-functions/ioctl.texi: Doc fix.
30665         * doc/posix-functions/listen.texi: Doc fix.
30666         * doc/posix-functions/recv.texi: Doc fix.
30667         * doc/posix-functions/recvfrom.texi: Doc fix.
30668         * doc/posix-functions/send.texi: Doc fix.
30669         * doc/posix-functions/sendto.texi: Doc fix.
30670         * doc/posix-functions/setsockopt.texi: Doc fix.
30671         * doc/posix-functions/shutdown.texi: Doc fix.
30672         * doc/posix-functions/socket.texi: Doc fix.
30673
30674 2008-10-20  Bruno Haible  <bruno@clisp.org>
30675
30676         Take into account the role of SIGABRT_COMPAT on Windows 2008.
30677         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
30678         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
30679         as an alias for SIGABRT.
30680         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
30681         (sigaction): Map it to SIGABRT.
30682         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
30683
30684 2008-10-20  Bruno Haible  <bruno@clisp.org>
30685
30686         * lib/fts.c: Don't include lstat.h.
30687         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
30688
30689         Move the lstat() declaration to <sys/stat.h>.
30690         * lib/lstat.h: Remove file.
30691         * lib/sys_stat.in.h: Add special invocation convention.
30692         (lstat): New declaration.
30693         * lib/lstat.c (orig_lstat): New function.
30694         (rpl_lstat): Use orig_lstat instead of lstat.
30695         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
30696         AC_C_INLINE. Set REPLACE_LSTAT.
30697         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
30698         and REPLACE_LSTAT.
30699         * modules/lstat (Files): Remove lib/lstat.h.
30700         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
30701         (Include): Specify <sys/stat.h> instead of lstat.h.
30702         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
30703         REPLACE_LSTAT.
30704         * NEWS: Mention the change.
30705
30706 2008-10-20  Bruno Haible  <bruno@clisp.org>
30707
30708         * modules/posix_spawn-tests: New file.
30709         * tests/test-posix_spawn3.c: New file.
30710
30711 2008-10-20  Bruno Haible  <bruno@clisp.org>
30712
30713         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
30714         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
30715         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
30716         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
30717         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
30718
30719 2008-10-20  Bruno Haible  <bruno@clisp.org>
30720
30721         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
30722         of posix_spawn on AIX 5.3.
30723
30724 2008-10-20  Bruno Haible  <bruno@clisp.org>
30725
30726         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
30727
30728 2008-10-20  Bruno Haible  <bruno@clisp.org>
30729
30730         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
30731         of AC_LANG_PROGRAM.
30732
30733 2008-10-20  Simon Josefsson  <simon@josefsson.org>
30734
30735         * lib/netdb.in.h: Don't define GNU specific constants until they
30736         are supported or needed.  Reported by Bruno Haible
30737         <bruno@clisp.org>.
30738
30739 2008-10-20  Simon Josefsson  <simon@josefsson.org>
30740
30741         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
30742
30743 2008-10-20  Simon Josefsson  <simon@josefsson.org>
30744
30745         * lib/getaddrinfo.h: Remove file.
30746         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
30747         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
30748         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
30749         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
30750         * modules/netdb: Substitute GNULIB_GETADDRINFO.
30751         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
30752         * tests/test-getaddrinfo.c: Likewise.
30753         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
30754         * NEWS: Mention change.
30755
30756 2008-10-19  Bruno Haible  <bruno@clisp.org>
30757
30758         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
30759
30760 2008-10-19  Bruno Haible  <bruno@clisp.org>
30761
30762         * lib/wait-process.c: Include simply <sys/wait.h>.
30763         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
30764         WIFSTOPPED): Remove fallback definitions.
30765         * modules/wait-process (Depends-on): Add sys_wait.
30766
30767         New module 'sys_wait'.
30768         * modules/sys_wait: New file.
30769         * lib/sys_wait.in.h: New file, partially copied from
30770         lib/wait-process.c.
30771         * m4/sys_wait_h.m4: New file.
30772         * doc/posix-headers/sys_wait.texi: Mention the new module.
30773
30774 2008-10-19  Bruno Haible  <bruno@clisp.org>
30775
30776         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
30777
30778 2008-10-19  Bruno Haible  <bruno@clisp.org>
30779
30780         Assume that waitpid() fills an 'int' status, not a 'union wait'.
30781         * lib/wait-process.c (WAIT_T): Remove type.
30782         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
30783         (wait_subprocess): Update.
30784
30785 2008-10-19  Bruno Haible  <bruno@clisp.org>
30786
30787         New module 'atoll'.
30788         * modules/atoll: New file.
30789         * lib/stdlib.in.h (atoll): New declaration.
30790         * lib/atoll.c: New file, from glibc with modifications.
30791         * m4/atoll.m4: New file.
30792         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
30793         HAVE_ATOLL.
30794         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
30795         * doc/posix-functions/atoll.texi: Mention the new module.
30796
30797 2008-10-19  Bruno Haible  <bruno@clisp.org>
30798
30799         Add strtoull() declaration to <stdlib.h>.
30800         * lib/stdlib.in.h (strtoull): New declaration.
30801         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
30802         Set HAVE_STRTOULL.
30803         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
30804         HAVE_STRTOULL.
30805         * modules/strtoull (Depends-on): Add stdlib.
30806         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30807         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
30808         HAVE_STRTOULL.
30809
30810 2008-10-19  Bruno Haible  <bruno@clisp.org>
30811
30812         Add strtoll() declaration to <stdlib.h>.
30813         * lib/stdlib.in.h (strtoll): New declaration.
30814         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
30815         Set HAVE_STRTOLL.
30816         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
30817         HAVE_STRTOLL.
30818         * modules/strtoll (Depends-on): Add stdlib.
30819         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30820         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
30821
30822 2008-10-19  Bruno Haible  <bruno@clisp.org>
30823
30824         * modules/bcopy (Depends-on): Add strings.
30825         (Include): Specify <strings.h>.
30826
30827 2008-10-19  Bruno Haible  <bruno@clisp.org>
30828
30829         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
30830
30831 2008-10-19  Bruno Haible  <bruno@clisp.org>
30832
30833         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
30834         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
30835         mingw.
30836
30837 2008-10-19  Bruno Haible  <bruno@clisp.org>
30838
30839         * lib/atanl.c: Don't include isnanl.h.
30840         * lib/cosl.c: Likewise.
30841         * lib/ldexpl.c: Likewise.
30842         * lib/logl.c: Likewise.
30843         * lib/sinl.c: Likewise.
30844         * lib/sqrtl.c: Likewise.
30845         * lib/tanl.c: Likewise.
30846
30847         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
30848         * lib/isnanf.h: Remove file.
30849         * lib/isnand.h: Remove file.
30850         * lib/isnanl.h: Remove file.
30851         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
30852         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
30853         macros.
30854         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
30855         HAVE_ISNANF, don't define it as a C macro.
30856         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
30857         HAVE_ISNAND, don't define it as a C macro.
30858         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
30859         HAVE_ISNANL, don't define it as a C macro.
30860         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
30861         HAVE_ISNAN[FDL].
30862         * modules/isnanf (Files): Remove lib/isnanf.h.
30863         (Depends-on): Add math.
30864         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
30865         (Include): Specify <math.h> instead of isnanf.h.
30866         * modules/isnand (Files): Remove lib/isnand.h.
30867         (Depends-on): Add math.
30868         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
30869         (Include): Specify <math.h> instead of isnand.h.
30870         * modules/isnanl (Files): Remove lib/isnanl.h.
30871         (Depends-on): Add math.
30872         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
30873         (Include): Specify <math.h> instead of isnanl.h.
30874         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
30875         HAVE_ISNAN[FDL].
30876         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
30877         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
30878         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
30879         * NEWS: Mention the change.
30880
30881 2008-10-18  Bruno Haible  <bruno@clisp.org>
30882
30883         Add getusershell(), setusershell(), endusershell() declarations to
30884         <unistd.h>.
30885         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
30886         declarations.
30887         * lib/getusershell.c: Include unistd.h.
30888         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
30889         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
30890         HAVE_GETUSERSHELL.
30891         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
30892         and HAVE_GETUSERSHELL.
30893         * modules/getusershell (Depends-on): Add unistd, extensions.
30894         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30895         (Include): Specify <unistd.h>.
30896         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
30897         HAVE_GETUSERSHELL.
30898
30899 2008-10-18  Bruno Haible  <bruno@clisp.org>
30900
30901         Add a getloadavg() declaration to <stdlib.h>.
30902         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
30903         getloadavg declaration.
30904         (getloadavg): New declaration.
30905         * lib/getloadavg.c: Include <stdlib.h> first.
30906         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
30907         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
30908         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
30909         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
30910         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
30911         * modules/getloadavg (Depends-on): Add stdlib, extensions.
30912         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30913         (Include): Specify <stdlib.h>.
30914         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
30915         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
30916
30917 2008-10-18  Bruno Haible  <bruno@clisp.org>
30918
30919         * lib/dirchownmod.c: Don't include lchmod.h.
30920
30921         Move the lchmod() declaration to <sys/stat.h>.
30922         * lib/lchmod.h: Remove file.
30923         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
30924         (lchmod): New declaration, moved here from lib/lchown.h.
30925         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
30926         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
30927         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
30928         and HAVE_LCHMOD.
30929         * modules/lchmod (Files): Remove lib/lchmod.h.
30930         (Depends-on): Add sys_stat, extensions.
30931         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
30932         (Include): Specify <sys/stat.h> instead of lchmod.h.
30933         * modules/sys_stat (Depends-on): Add link-warning.
30934         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
30935         definition of GL_LINK_WARNING.
30936         * NEWS: Mention the change.
30937
30938 2008-10-18  Bruno Haible  <bruno@clisp.org>
30939
30940         * lib/fchdir.c: Don't include dirfd.h.
30941         * lib/fts.c: Likewise.
30942         * lib/getcwd.c: Likewise.
30943         * lib/glob.c: Likewise.
30944
30945         Move the dirfd() declaration to <dirent.h>.
30946         * lib/dirfd.h: Remove file.
30947         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
30948         (dirfd): New declaration.
30949         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
30950         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
30951         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
30952         HAVE_DECL_DIRFD.
30953         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
30954         HAVE_DECL_DIRFD.
30955         * modules/dirfd (Files): Remove lib/dirfd.h.
30956         (Depends-on): Add dirent, extensions.
30957         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
30958         (Include): Specify <dirent.h> instead of dirfd.h.
30959         * modules/dirent (Depends-on): Add link-warning.
30960         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
30961         definition of GL_LINK_WARNING.
30962         * NEWS: Mention the change.
30963
30964 2008-10-18  Bruno Haible  <bruno@clisp.org>
30965
30966         Move the euidaccess() declaration to <unistd.h>.
30967         * lib/euidaccess.h: Remove file.
30968         * lib/unistd.in.h (euidaccess): New declaration.
30969         * lib/euidaccess.c: Don't include euidaccess.h.
30970         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
30971         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
30972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
30973         and HAVE_EUIDACCESS.
30974         * modules/euidaccess (Files): Remove lib/euidaccess.h.
30975         (Depends-on): Add unistd.
30976         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30977         (Include): Specify <unistd.h> instead of euidaccess.h.
30978         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
30979         HAVE_EUIDACCESS.
30980         * NEWS: Mention the change.
30981
30982 2008-10-18  Bruno Haible  <bruno@clisp.org>
30983
30984         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
30985
30986         Move the getdomainname() declaration to <unistd.h>.
30987         * lib/getdomainname.h: Remove file.
30988         * lib/unistd.in.h (getdomainname): New declaration.
30989         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
30990         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
30991         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
30992         HAVE_GETDOMAINNAME.
30993         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30994         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
30995         * modules/getdomainname (Files): Remove lib/getdomainname.h.
30996         (Depends-on): Add unistd, extensions.
30997         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30998         (Includes): Specify <unistd.h> instead of getdomainname.h.
30999         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
31000         HAVE_GETDOMAINNAME.
31001         * NEWS: Mention the change.
31002
31003 2008-10-18  Bruno Haible  <bruno@clisp.org>
31004
31005         * modules/dirent: New file.
31006         * m4/dirent_h.m4: New file.
31007         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
31008         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
31009         * modules/fchdir (Files): Remove lib/dirent.in.h.
31010         (Depends-on): Add dirent.
31011         (Makefile.am): Move rules to modules/dirent.
31012         * doc/posix-headers/dirent.texi: Mention the new module.
31013
31014 2008-10-18  Bruno Haible  <bruno@clisp.org>
31015
31016         Avoid -Wunused-parameter warnings in public gnulib header files.
31017         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
31018         macro.
31019         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
31020
31021 2008-10-18  Bruno Haible  <bruno@clisp.org>
31022
31023         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
31024         * doc/glibc-functions/error.texi: Mention the module 'error'.
31025         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
31026         * doc/glibc-functions/getdomainname.texi: Mention the module
31027         'getdomainname'.
31028         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
31029         * doc/glibc-functions/getpagesize.texi: Mention the module
31030         'getpagesize'.
31031         * doc/glibc-functions/getusershell.texi: Mention the module
31032         'getusershell'.
31033         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
31034         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
31035         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
31036         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
31037         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
31038         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
31039         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
31040         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
31041         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
31042         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
31043         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
31044         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
31045         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
31046         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
31047
31048 2008-10-17  Bruno Haible  <bruno@clisp.org>
31049
31050         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
31051         HP-UX and IRIX, use -0.0L.
31052         * tests/test-ceill.c (minus_zero): Likewise.
31053         * tests/test-floorl.c (minus_zero): Likewise.
31054         * tests/test-frexpl.c (minus_zero): Likewise.
31055         * tests/test-isnan.c (minus_zerol): Likewise.
31056         * tests/test-isnanl.h (minus_zero): Likewise.
31057         * tests/test-ldexpl.c (minus_zero): Likewise.
31058         * tests/test-roundl.c (minus_zero): Likewise.
31059         * tests/test-signbit.c (minus_zerol): Likewise.
31060         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
31061         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
31062         * tests/test-truncl.c (minus_zero): Likewise.
31063         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
31064         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
31065         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
31066         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
31067
31068 2008-10-17  Bruno Haible  <bruno@clisp.org>
31069
31070         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
31071         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
31072         that it gets activated only for gcc >= 3.0.
31073         * lib/dirent.in.h: Likewise.
31074         * lib/errno.in.h: Likewise.
31075         * lib/fcntl.in.h: Likewise.
31076         * lib/float.in.h: Likewise.
31077         * lib/iconv.in.h: Likewise.
31078         * lib/inttypes.in.h: Likewise.
31079         * lib/locale.in.h: Likewise.
31080         * lib/math.in.h: Likewise.
31081         * lib/netdb.in.h: Likewise.
31082         * lib/netinet_in.in.h: Likewise.
31083         * lib/search.in.h: Likewise.
31084         * lib/signal.in.h: Likewise.
31085         * lib/spawn.in.h: Likewise.
31086         * lib/stdarg.in.h: Likewise.
31087         * lib/stdint.in.h: Likewise.
31088         * lib/stdio.in.h: Likewise.
31089         * lib/stdlib.in.h: Likewise.
31090         * lib/string.in.h: Likewise.
31091         * lib/strings.in.h: Likewise.
31092         * lib/sys_file.in.h: Likewise.
31093         * lib/sys_ioctl.in.h: Likewise.
31094         * lib/sys_select.in.h: Likewise.
31095         * lib/sys_socket.in.h: Likewise.
31096         * lib/sys_stat.in.h: Likewise.
31097         * lib/sys_time.in.h: Likewise.
31098         * lib/sysexits.in.h: Likewise.
31099         * lib/time.in.h: Likewise.
31100         * lib/unistd.in.h: Likewise.
31101         * lib/wchar.in.h: Likewise.
31102         * lib/wctype.in.h: Likewise.
31103         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31104
31105 2008-10-17  Jim Meyering  <meyering@redhat.com>
31106
31107         ignore-value: don't depend on inline module
31108         * modules/ignore-value (Depends-on): Remove 'inline'.
31109         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
31110         Suggestion from Bruno Haible.
31111
31112 2008-10-17  Bruno Haible  <bruno@clisp.org>
31113
31114         New implementation of condition variables for Win32.
31115         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
31116         (gl_linked_waitqueue_t): New type.
31117         (gl_cond_t): Use it.
31118         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
31119         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
31120         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
31121         (glthread_cond_init_func, glthread_cond_wait_func,
31122         glthread_cond_timedwait_func, glthread_cond_signal_func,
31123         glthread_cond_broadcast_func, glthread_cond_destroy_func):
31124         Reimplemented on the basis of gl_linked_waitqueue_t.
31125         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
31126         gl_waitqueue_t.
31127         (gl_rwlock_t): Update.
31128         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
31129
31130 2008-10-17  Simon Josefsson  <simon@josefsson.org>
31131
31132         * modules/recvfrom (Depends-on): Add dependency on getpeername.
31133         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
31134
31135 2008-10-17  Jim Meyering  <meyering@redhat.com>
31136
31137         ignore-value: new module
31138         * modules/ignore-value: New file.
31139         * lib/ignore-value.h: New file.
31140         * MODULES.html.sh (Compiler warning management): New section,
31141         just for this module.  More to come.
31142
31143 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
31144
31145         open-safer.c: avoid 'signed and unsigned in conditional...' warning
31146         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
31147         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
31148
31149 2008-10-16  Jim Meyering  <meyering@redhat.com>
31150
31151         openat-die.c: avoid 'no previous prototype' warning
31152         * lib/openat-die.c: Include "openat.h".
31153         Reported by Reuben Thomas <rrt@sc3d.org>.
31154
31155 2008-10-16  Simon Josefsson  <simon@josefsson.org>
31156
31157         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
31158         * lib/netdb.in.h: Fix typo.
31159         Reported by Bruno Haible  <bruno@clisp.org>
31160
31161         * lib/netdb.in.h: Include sys/socket.h for platforms without
31162         netdb.h, to get structures like hostent on MinGW.
31163         * modules/netdb (Depends-on): Add sys_socket.
31164
31165 2008-10-15  Simon Josefsson  <simon@josefsson.org>
31166
31167         * modules/netdb, modules/netdb-tests: New file.
31168         * m4/netdb_h.m4: New file.
31169         * lib/netdb.in.h: Add, currently just an empty file pending
31170         definitions.
31171         * tests/test-netdb.c: New file.
31172         * doc/posix-headers/netdb.texi: Mention that we replace it if
31173         needed.
31174         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31175         netdb.
31176
31177 2008-10-15  Simon Josefsson  <simon@josefsson.org>
31178
31179         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
31180         with code.
31181
31182 2008-10-13  Bruno Haible  <bruno@clisp.org>
31183
31184         * lib/glthread/cond.c (glthread_cond_wait_func,
31185         glthread_cond_timedwait_func): Add a comment.
31186
31187 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
31188
31189         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
31190         * tests/test-select.c: Likewise,
31191
31192 2008-10-13  Bruno Haible  <bruno@clisp.org>
31193
31194         * lib/glthread/cond.c (glthread_cond_wait_func,
31195         glthread_cond_timedwait_func): Fix variable name.
31196         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
31197
31198 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
31199
31200         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
31201         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
31202         struct sockaddr.sa_len.
31203         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
31204
31205 2008-10-13  Simon Josefsson  <simon@josefsson.org>
31206
31207         * build-aux/pmccabe2html: Add css and css_url parameters.
31208
31209 2008-10-12  Bruno Haible  <bruno@clisp.org>
31210
31211         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
31212         calling aclx_get.
31213         Reported by Rainer Tammer <tammer@tammer.net>.
31214
31215 2008-10-12  Bruno Haible  <bruno@clisp.org>
31216
31217         Use msvcrt aware primitives for creation/termination of Win32 threads.
31218         * lib/glthread/thread.c: Include <process.h>.
31219         (glthread_create_func): Use _beginthreadex instead of CreateThread.
31220         (wrapper_func): Update signature.
31221         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
31222
31223 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
31224             Bruno Haible  <bruno@clisp.org>
31225
31226         Provide a Win32 implementation of the 'cond' module.
31227         * lib/glthread/cond.h [USE_WIN32]: New implementation.
31228         * lib/glthread/cond.c (glthread_cond_init_func,
31229         glthread_cond_wait_func, glthread_cond_timedwait_func,
31230         glthread_cond_signal_func, glthread_cond_broadcast_func,
31231         glthread_cond_destroy_func) [USE_WIN32]: New functions.
31232         * modules/cond (Dependencies): Add gettimeofday.
31233
31234 2008-10-11  Bruno Haible  <bruno@clisp.org>
31235
31236         Make sleep work on older versions of mingw.
31237         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
31238         only whether it exists.
31239         * doc/posix-functions/sleep.texi: Mention the problem with older
31240         versions of mingw.
31241
31242 2008-10-11  Bruno Haible  <bruno@clisp.org>
31243
31244         New module 'shutdown'.
31245         * modules/shutdown: New file.
31246         * lib/sys_socket.in.h (shutdown): New declaration.
31247         * lib/winsock.c (shutdown): New function.
31248         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
31249         GNULIB_SHUTDOWN.
31250         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
31251         * doc/posix-functions/shutdown.texi: Document the new module.
31252
31253 2008-10-11  Jim Meyering  <meyering@redhat.com>
31254
31255         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
31256
31257 2008-10-11  Bruno Haible  <bruno@clisp.org>
31258
31259         New module 'fclose'.
31260         * modules/fclose: New file.
31261         * lib/stdio.in.h (fclose): New declaration.
31262         * lib/fclose.c: New file.
31263         * m4/fclose.m4: New file.
31264         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
31265         REPLACE_FCLOSE.
31266         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
31267         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
31268         REPLACE_FCLOSE.
31269         * modules/close (Depends-on): fclose.
31270         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
31271
31272 2008-10-11  Bruno Haible  <bruno@clisp.org>
31273
31274         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
31275         set errno and don't call _close.
31276
31277 2008-10-10  Bruno Haible  <bruno@clisp.org>
31278
31279         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
31280         ACL, not afterwards. Fixes test failure on Cygwin.
31281
31282 2008-10-09  Ben Pfaff  <blp@gnu.org>
31283
31284         * build-aux/announce-gen: Fix gnulib version related part of usage
31285         message.  Die with a useful error message if no tarballs are
31286         found.
31287
31288 2008-10-10  Jim Meyering  <meyering@redhat.com>
31289
31290         bootstrap: use git's --depth=N option only if it's supported
31291         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
31292         recognize the --depth option.  Reported by Pádraig Brady.
31293
31294 2008-10-09  Bruno Haible  <bruno@clisp.org>
31295
31296         New module 'ioctl'.
31297         * modules/ioctl: New file.
31298         * lib/sys_socket.in.h (ioctl): Remove declaration.
31299         * lib/winsock.c: Include <sys/ioctl.h>.
31300         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
31301         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
31302         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
31303         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
31304         * doc/posix-functions/ioctl.texi: Mention the new module.
31305
31306 2008-10-09  Bruno Haible  <bruno@clisp.org>
31307
31308         New module 'sys_ioctl'.
31309         * lib/sys_ioctl.in.h: New file.
31310         * m4/sys_ioctl_h.m4: New file.
31311         * modules/sys_ioctl: New file.
31312         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
31313
31314 2008-10-09  Bruno Haible  <bruno@clisp.org>
31315
31316         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
31317         * lib/winsock.c: Include <stdarg.h>.
31318         (rpl_ioctl): Change to second argument 'int' and then varargs.
31319
31320 2008-10-09  Bruno Haible  <bruno@clisp.org>
31321
31322         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
31323         when the sys_socket module is present and the system has <winsock2.h>.
31324
31325 2008-10-09  Bruno Haible  <bruno@clisp.org>
31326
31327         * doc/posix-functions/close.texi: Mention module 'close' instead of
31328         module 'sys_socket'.
31329
31330 2008-10-09  Bruno Haible  <bruno@clisp.org>
31331
31332         * doc/glibc-headers/sys_ioctl.texi: New file.
31333         * doc/gnulib.texi: Include it.
31334
31335 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31336             Bruno Haible  <bruno@clisp.org>
31337
31338         Combine the two replacements of 'close'.
31339         * lib/sys_socket.in.h (close): Define to a reminder to include
31340         <unistd.h>.
31341         (_gl_close_fd_maybe_socket): New declaration.
31342         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
31343         * lib/winsock.c (close): Remove undefinition.
31344         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
31345         needed for the gnulib module 'close'.
31346         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
31347         define to an error symbol or to a warning, if suitable.
31348         * lib/close.c: Include <sys/socket.h>.
31349         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
31350         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
31351         UNISTD_H_HAVE_WINSOCK2_H.
31352         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
31353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31354         UNISTD_H_HAVE_WINSOCK2_H.
31355         * modules/sys_socket (Files): Add m4/unistd_h.m4.
31356         (configure.ac): Set a module indicator.
31357         (Makefile.am): Substitute GNULIB_CLOSE.
31358         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
31359         * modules/poll-tests (Depends-on): Add close.
31360         * modules/select-tests (Depends-on): Likewise.
31361
31362 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31363             Bruno Haible  <bruno@clisp.org>
31364
31365         New module 'close'.
31366         * modules/close: New file.
31367         * lib/unistd.in.h (close): Move declaration out of the
31368         FCHDIR_REPLACEMENT scope.
31369         (_gl_unregister_fd): New declaration.
31370         * lib/close.c: New file.
31371         * lib/fchdir.c (rpl_close): Remove function.
31372         * m4/close.m4: New file.
31373         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
31374         close.
31375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
31376         REPLACE_CLOSE.
31377         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
31378         REPLACE_CLOSE.
31379         * modules/fchdir (Depends-on): Add close.
31380
31381 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31382             Bruno Haible  <bruno@clisp.org>
31383
31384         * lib/fcntl.in.h (open): Simplify conditionals.
31385         (_gl_register_fd): New declaration.
31386         * lib/fchdir.c (rpl_open): Remove function.
31387         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
31388         also.
31389         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
31390         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
31391         open.
31392
31393 2008-10-09  Jim Meyering  <meyering@redhat.com>
31394
31395         GNUmakefile: use the more name-space-friendly "_version"
31396         * top/GNUmakefile (_dummy): Update.
31397         (_version): Rename from "version".
31398
31399 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31400             Bruno Haible  <bruno@clisp.org>
31401
31402         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
31403         rpl_close.
31404         (_gl_register_fd): New function, extracted from rpl_open.
31405         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
31406         (rpl_open, rpl_opendir): Use _gl_register_fd.
31407
31408 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31409
31410         Fix organization of 'open' replacement.
31411         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
31412         (gl_FUNC_OPEN): Use it.
31413         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
31414
31415 2008-10-08  Bruno Haible  <bruno@clisp.org>
31416
31417         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
31418
31419 2008-10-08  Simon Josefsson  <simon@josefsson.org>
31420
31421         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
31422         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
31423         listen).
31424
31425 2008-10-08  Eric Blake  <ebb9@byu.net>
31426
31427         GNUmakefile: add 'make version' target
31428         * top/GNUmakefile (_curr-ver): Split version update rules...
31429         (version): ...into a target.
31430
31431 2008-10-07  Bruno Haible  <bruno@clisp.org>
31432
31433         Use a more portable replacement expression for -0.0L.
31434         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
31435         instead of -0.0L. Fix m4 quotation.
31436
31437         * tests/test-signbit.c: Include <float.h>.
31438         (minus_zero): New variable.
31439         (test_signbitl): Use minus_zero instead of -zero.
31440         * modules/signbit-tests (Depends-on): Add float.
31441
31442         * tests/test-ceill.c: Include <float.h>.
31443         (zero): Remove variable.
31444         (minus_zero): New variable.
31445         (main): Use minus_zero instead of -zero.
31446         * modules/ceill-tests (Depends-on): Add float.
31447
31448         * tests/test-floorl.c: Include <float.h>.
31449         (zero): Remove variable.
31450         (minus_zero): New variable.
31451         (main): Use minus_zero instead of -zero.
31452         * modules/floorl-tests (Depends-on): Add float.
31453
31454         * tests/test-roundl.c: Include <float.h>.
31455         (zero): Remove variable.
31456         (minus_zero): New variable.
31457         (main): Use minus_zero instead of -zero.
31458         * modules/roundl-tests (Depends-on): Add float.
31459
31460         * tests/test-truncl.c: Include <float.h>.
31461         (zero): Remove variable.
31462         (minus_zero): New variable.
31463         (main): Use minus_zero instead of -zero.
31464         * modules/truncl-tests (Depends-on): Add float.
31465
31466         * tests/test-frexpl.c (zero): Remove variable.
31467         (minus_zero): New variable.
31468         (main): Use minus_zero instead of -zero.
31469         * modules/frexpl-tests (Depends-on): Add float.
31470
31471         * tests/test-isnan.c (zerol): Remove variable.
31472         (minus_zerol): New variable.
31473         (test_long_double): Use minus_zerol instead of -zerol.
31474         * modules/isnan-tests (Depends-on): Add float.
31475
31476         * tests/test-isnanl.h (zero): Remove variable.
31477         (minus_zero): New variable.
31478         (main): Use minus_zero instead of -zero.
31479         * modules/isnanl-nolibm-tests (Depends-on): Add float.
31480         * modules/isnanl-tests (Depends-on): Add float.
31481
31482         * tests/test-ldexpl.c (zero): Remove variable.
31483         (minus_zero): New variable.
31484         (main): Use minus_zero instead of -zero.
31485         * modules/ldexpl-tests (Depends-on): Add float.
31486
31487         * tests/test-snprintf-posix.h (zerol): Remove variable.
31488         (minus_zerol): New variable.
31489         (test_function): Use minus_zerol instead of -zerol.
31490         * modules/snprintf-posix-tests (Depends-on): Add float.
31491         * modules/vsnprintf-posix-tests (Depends-on): Add float.
31492
31493         * tests/test-sprintf-posix.h (zerol): Remove variable.
31494         (minus_zerol): New variable.
31495         (test_function): Use minus_zerol instead of -zerol.
31496         * modules/sprintf-posix-tests (Depends-on): Add float.
31497         * modules/vsprintf-posix-tests (Depends-on): Add float.
31498
31499         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
31500         (minus_zerol): New variable.
31501         (test_function): Use minus_zerol instead of -zerol.
31502         * modules/vasnprintf-posix-tests (Depends-on): Add float.
31503
31504         * tests/test-vasprintf-posix.c (zerol): Remove variable.
31505         (minus_zerol): New variable.
31506         (test_function): Use minus_zerol instead of -zerol.
31507         * modules/vasprintf-posix-tests (Depends-on): Add float.
31508
31509 2008-10-07  Simon Josefsson  <simon@josefsson.org>
31510
31511         * MODULES.html.sh (Support for building documentation): Mention
31512         pmccabe2html.  Sort entries.
31513
31514         Add pmccabe2html module, from gnupdf.
31515         * build-aux/pmccabe.css: New file.
31516         * build-aux/pmccabe2html: New file.
31517         * m4/pmccabe2html.m4: New file.
31518         * modules/pmccabe2html: New file.
31519
31520 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
31521
31522         flock: new module
31523         * MODULES.html.sh: Add to list of modules.
31524         * lib/flock.c: flock implementation for Windows and Unix systems
31525         which have fcntl.
31526         * doc/glibc-functions/flock.texi: Update documentation.
31527         * lib/sys_file.in.h: <sys/file.h> header file.
31528         * m4/flock.m4: M4 macros.
31529         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
31530         * modules/flock: flock module.
31531         * modules/flock-tests: flock tests module.
31532         * modules/sys_file: sys/file.h module.
31533         * tests/test-flock.c: test suite for flock.
31534
31535 2008-10-06  Jim Meyering  <meyering@redhat.com>
31536
31537         bootstrap: check for LT_INIT more portably still ;-)
31538         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
31539         Spotted by Bruno Haible.
31540
31541 2008-10-06  Eric Blake  <ebb9@byu.net>
31542
31543         test-signbit: avoid tripping Irix cc bug on -0.0L
31544         * tests/test-signbit.c (minus_zerol): Delete, and replace with
31545         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
31546         entire testsuite consistent and avoids an Irix 6.2 bug.
31547
31548 2008-10-05  Bruno Haible  <bruno@clisp.org>
31549             Jim Meyering  <jim@meyering.net>
31550
31551         Add an option for ignoring EPIPE during close_stdout.
31552         * lib/closeout.h: Include <stdbool.h>.
31553         (close_stdout_set_ignore_EPIPE): New declaration.
31554         * lib/closeout.c: Include <stdbool.h>.
31555         (ignore_EPIPE): New variable.
31556         (close_stdout_set_ignore_EPIPE): New function.
31557         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
31558         * lib/close-stream.c (close_stream): Mention the possible EPIPE
31559         failure.
31560         * modules/closeout (Depends-on): Add stdbool.
31561
31562 2008-10-05  Bruno Haible  <bruno@clisp.org>
31563
31564         * modules/accept: New file.
31565         * modules/bind: New file.
31566         * modules/connect: New file.
31567         * modules/getpeername: New file.
31568         * modules/getsockname: New file.
31569         * modules/getsockopt: New file.
31570         * modules/listen: New file.
31571         * modules/recv: New file.
31572         * modules/recvfrom: New file.
31573         * modules/send: New file.
31574         * modules/sendto: New file.
31575         * modules/setsockopt: New file.
31576         * modules/socket: New file.
31577         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
31578         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
31579         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
31580         the particular module is requested. Add a link warning when the
31581         particular module is not requested.
31582         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
31583         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
31584         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
31585         the particular module is requested.
31586         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
31587         gl_SYS_SOCKET_H_DEFAULTS): New macros.
31588         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
31589         * modules/sys_socket (Depends-on): Add link-warning.
31590         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
31591         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
31592         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
31593         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
31594         GL_LINK_WARNING.
31595         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
31596         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
31597         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
31598         * doc/posix-functions/getpeername.texi: Mention the new module
31599         'getpeername'.
31600         * doc/posix-functions/getsockname.texi: Mention the new module
31601         'getsockname'.
31602         * doc/posix-functions/getsockopt.texi: Mention the new module
31603         'getsockopt'.
31604         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
31605         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
31606         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
31607         * doc/posix-functions/send.texi: Mention the new module 'send'.
31608         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
31609         * doc/posix-functions/setsockopt.texi: Mention the new module
31610         'setsockopt'.
31611         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
31612         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
31613         listen, connect, accept.
31614         * modules/select-tests (Depends-on): Likewise.
31615
31616 2008-10-05  Bruno Haible  <bruno@clisp.org>
31617
31618         * lib/winsock.c (strerror): Remove unused #undef.
31619         (rpl_close): Remove unused local variable.
31620
31621         * modules/sys_socket (Depends-on); Add errno.
31622
31623 2008-10-05  Bruno Haible  <bruno@clisp.org>
31624
31625         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
31626         (select): Add a link warning when the 'select' module is not used.
31627         * modules/sys_select (Depends-on): Add link-warning.
31628         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
31629         Suggested by Paolo Bonzini.
31630
31631 2008-10-05  Jim Meyering  <meyering@redhat.com>
31632
31633         bootstrap: check for LT_INIT more portably
31634         * build-aux/bootstrap: Avoid using grep -E, since it's not
31635         portable enough.  Suggestion from Bruno Haible.
31636
31637 2008-10-05  Bruno Haible  <bruno@clisp.org>
31638
31639         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
31640         as being fixed by gnulib.
31641
31642 2008-10-05  Bruno Haible  <bruno@clisp.org>
31643
31644         * modules/select-tests: New file, mostly copied from
31645         modules/sys_select-tests.
31646         * tests/test-select.c: New file, mostly copied from
31647         tests/test-sys_select.c.
31648         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
31649         * modules/sys_select-tests (Depends-on): Remove all dependencies.
31650         (Makefile.am): Remove test_sys_select_LDADD.
31651
31652         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
31653         to an undefined symbol, for an error message.
31654         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
31655         (gl_SYS_SELECT_H_DEFAULTS): New macro.
31656         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
31657         winsock-select.c here.
31658         * modules/sys_select (Files): Remove lib/winsock-select.c.
31659         (Depends-on): Remove alloca.
31660         (Makefile.am): Substitute GNULIB_SELECT.
31661         * modules/select: New file.
31662         * doc/posix-functions/select.texi: Update.
31663
31664 2008-10-05  Bruno Haible  <bruno@clisp.org>
31665
31666         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
31667         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
31668         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
31669         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
31670         getdtablesize.
31671         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
31672         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
31673
31674 2008-10-05  Bruno Haible  <bruno@clisp.org>
31675
31676         * modules/getdtablesize-tests: New file.
31677         * tests/test-getdtablesize.c: New file.
31678
31679         New module 'getdtablesize'.
31680         * lib/unistd.in.h (getdtablesize): New declaration.
31681         * lib/getdtablesize.c: New file.
31682         * m4/getdtablesize.m4: New file.
31683         * modules/getdtablesize: New file.
31684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31685         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
31686         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
31687         HAVE_GETDTABLESIZE.
31688         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
31689
31690 2008-10-05  Bruno Haible  <bruno@clisp.org>
31691
31692         * modules/sched (Makefile.am): Fix typo.
31693         Reported by Simon Josefsson.
31694
31695 2008-10-05  Jim Meyering  <meyering@redhat.com>
31696
31697         bootstrap: check for LT_INIT, too
31698         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
31699         are deprecated.  Suggestion from Ralf Wildenhues.
31700
31701 2008-10-05  Bruno Haible  <bruno@clisp.org>
31702
31703         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
31704         overriding them by ours.
31705         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
31706
31707 2008-10-05  Jim Meyering  <meyering@redhat.com>
31708
31709         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
31710         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
31711         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
31712
31713 2008-10-04  Bruno Haible  <bruno@clisp.org>
31714
31715         * modules/dup2 (License): Change to LGPLv2+.
31716         * modules/sleep (License): Likewise.
31717         * modules/perror (License): Likewise.
31718         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
31719         Blake.
31720         * modules/signal (License): Likewise.
31721         * modules/sigprocmask (License): Likewise.
31722         * modules/raise (License): Change to LGPLv2+, with approval by Jim
31723         Meyering.
31724
31725 2008-10-04  Bruno Haible  <bruno@clisp.org>
31726
31727         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
31728         Reported by Rainer Tammer <tammer@tammer.net>.
31729
31730 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
31731             Bruno Haible  <bruno@clisp.org>
31732
31733         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
31734         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
31735         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
31736
31737 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
31738
31739         filevercmp: new module
31740         * lib/filevercmp.h: New function filevercmp comparing version strings.
31741         * lib/filevercmp.c: Implementation of filevercmp function.
31742         * modules/filevercmp: Module metadata.
31743         * tests/test-filevercmp.c: Unit test for new module.
31744         * modules/filevercmp-tests: Unit test metadata.
31745         * MODULES.html.sh: Add filevercmp module.
31746
31747 2008-10-03  Bruno Haible  <bruno@clisp.org>
31748
31749         * lib/c-ctype.h: Add comment.
31750         Reported by Jim Meyering.
31751
31752 2008-10-02  Bruno Haible  <bruno@clisp.org>
31753
31754         * modules/posix_spawn-internal (Depends-on): Add 'open'.
31755
31756 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
31757
31758         * build-aux/bootstrap: Allow renaming bootstrap, and change the
31759         name of bootstrap.conf accordingly.
31760
31761 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
31762
31763         * build-aux/bootstrap: Install git-merge-changelog configuration
31764         items into .gitconfig if needed.
31765
31766 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
31767
31768         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
31769         git repository, and initialize/update it accordingly.
31770
31771 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
31772
31773         * modules/fsync-tests: New file.
31774         * tests/test-fsync.c: New file.
31775
31776         New module 'fsync'.
31777         * lib/fsync.c: New file.
31778         * m4/fsync.m4: New file.
31779         * modules/fsync: New file.
31780         * lib/unistd.in.h (fsync): New declaration.
31781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
31782         GNULIB_FSYNC and HAVE_FSYNC.
31783         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
31784         * MODULES.html.sh (posix_functions): Add fsync.
31785         * doc/posix-functions/fsync.texi: Mention the new module.
31786
31787 2008-10-02  Jim Meyering  <meyering@redhat.com>
31788
31789         fts.c: sync with similar code from coreutils' remove.c
31790         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
31791         Guard also with "#if defined __linux__", since for now at least,
31792         this code is Linux-kernel-specific.
31793
31794 2008-10-02  Jim Meyering  <meyering@redhat.com>
31795
31796         fts: bug fixes
31797         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
31798         Include <sys/vfs.h>, not <sys/statfs.h>.
31799
31800         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
31801         Include <sys/vfs.h>, not <sys/statfs.h>.
31802
31803 2008-10-01  Bruno Haible  <bruno@clisp.org>
31804
31805         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
31806         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
31807         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
31808         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
31809         * doc/posix-functions/posix_spawnp.texi: Likewise.
31810         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
31811         whether posix_spawn actually works.
31812         * m4/pipe.m4 (gl_PIPE): Likewise.
31813         * modules/execute (Files): Add m4/posix_spawn.m4.
31814         * modules/pipe (Files): Add m4/posix_spawn.m4.
31815         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
31816
31817 2008-10-01  Jim Meyering  <meyering@redhat.com>
31818
31819         remove trailing spaces
31820         * NEWS: Likewise.
31821         * lib/poll.c (poll): Likewise.
31822         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
31823         * lib/winsock.c (rpl_close): Likewise.
31824         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
31825         * modules/yield: Likewise.
31826         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
31827         * tests/test-sys_select.c (connect_to_socket): Likewise.
31828
31829         fts.c: adjust a new interface to be more generally useful
31830         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
31831         (fts_build): Adjust caller.
31832
31833 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31834
31835         * modules/cond-tests: New file.
31836         * tests/test-cond.c: New file.
31837
31838 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31839             Bruno Haible  <bruno@clisp.org>
31840
31841         * modules/cond (Dependencies): Add errno, time.
31842         * lib/glthread/cond.h: Include <time.h>.
31843         (gl_cond_define, gl_cond_define_initialized): Use the same definition
31844         across platforms.
31845
31846 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31847             Bruno Haible  <bruno@clisp.org>
31848
31849         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
31850
31851 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31852             Bruno Haible  <bruno@clisp.org>
31853
31854         * modules/tls-tests (Depends-on): Add thread, yield.
31855         (configure.ac): Remove all checks.
31856         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
31857         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
31858         gl_thread_self): Remove definitions. Include glthread/thread.h and
31859         glthread/yield.h instead.
31860         (test_tls): Pass an additional NULL argument to gl_thread_join.
31861
31862 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31863             Bruno Haible  <bruno@clisp.org>
31864
31865         * modules/lock-tests (Depends-on): Add thread, yield.
31866         (configure.ac): Remove all checks.
31867         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
31868         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
31869         gl_thread_self): Remove definitions. Include glthread/thread.h and
31870         glthread/yield.h instead.
31871         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
31872         additional NULL argument to gl_thread_join.
31873
31874 2008-09-30  Bruno Haible  <bruno@clisp.org>
31875
31876         Fix the Win32 implementation of the 'thread' module.
31877         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
31878         pointer type.
31879         (gl_thread_self): Invoke gl_thread_self_func.
31880         (gl_thread_self_func): New declaration.
31881         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
31882         (do_init_self_key, init_self_key): New functions.
31883         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
31884         Remove some fields.
31885         (running_threads, running_lock): Remove variables.
31886         (get_current_thread_handle): New function.
31887         (gl_thread_self_func, wrapper_func, glthread_create_func,
31888         glthread_join_func, gl_thread_exit_func): Largely rewritten and
31889         simplified.
31890
31891 2008-09-30  Bruno Haible  <bruno@clisp.org>
31892
31893         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
31894         files.
31895
31896 2008-09-30  Jim Meyering  <meyering@redhat.com>
31897
31898         fts.m4: correct the test for statfs.f_type
31899         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
31900         when checking for statfs.f_type.
31901
31902 2008-09-15  Simon Josefsson  <simon@josefsson.org>
31903
31904         tests: avoid some compiler warnings
31905         * tests/test-memchr.c (main): Pass NULL indirectly.
31906         * tests/test-getdate.c (main): Remove unused variable 'ret'.
31907
31908 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
31909
31910         getdate.y: disallow countable dayshifts like "4 yesterday ago"
31911         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
31912         exactly specified dayshifts.
31913         (dayshift): New rule.
31914         (rel): Add dayshift.
31915         (relative_time_table) [tomorrow, yesterday, today, now]:
31916         Use tDAY_SHIFT in place of tDAY_UNIT.
31917         * tests/test-getdate.c: Add tests for now-disallowed countable
31918         dayshifts, e.g., "4 yesterday ago".
31919
31920 2008-09-29  Bruno Haible  <bruno@clisp.org>
31921
31922         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
31923         * tests/test-posix_spawn1.in.sh: Renamed from
31924         tests/test-posix_spawn.in.sh.
31925         * tests/test-posix_spawn2.c: New file.
31926         * tests/test-posix_spawn2.in.sh: New file.
31927         * modules/posix_spawnp-tests (Files): Update.
31928         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
31929
31930 2008-09-29  Bruno Haible  <bruno@clisp.org>
31931
31932         Propagate effects of putenv/setenv/unsetenv to child processes.
31933         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
31934         * lib/pipe.c (create_pipe): Likewise.
31935
31936 2008-09-29  Bruno Haible  <bruno@clisp.org>
31937
31938         Enable use of shell scripts as executables in mingw.
31939         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
31940         run the program as a shell script.
31941         * lib/pipe.c (create_pipe): Likewise.
31942         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
31943         resulting array.
31944
31945 2008-09-29  Eric Blake  <ebb9@byu.net>
31946
31947         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
31948
31949 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
31950
31951         * doc/posix-functions/accept.texi: Update mingw problems.
31952         * doc/posix-functions/bind.texi: Update mingw problems.
31953         * doc/posix-functions/close.texi: Update mingw problems.
31954         * doc/posix-functions/connect.texi: Update mingw problems.
31955         * doc/posix-functions/getpeername.texi: Update mingw problems.
31956         * doc/posix-functions/getsockname.texi: Update mingw problems.
31957         * doc/posix-functions/getsockopt.texi: Update mingw problems.
31958         * doc/posix-functions/ioctl.texi: Update mingw problems.
31959         * doc/posix-functions/listen.texi: Update mingw problems.
31960         * doc/posix-functions/recv.texi: Update mingw problems.
31961         * doc/posix-functions/recvfrom.texi: Update mingw problems.
31962         * doc/posix-functions/select.texi: Update mingw problems.
31963         * doc/posix-functions/send.texi: Update mingw problems.
31964         * doc/posix-functions/sendto.texi: Update mingw problems.
31965         * doc/posix-functions/setsockopt.texi: Update mingw problems.
31966         * doc/posix-functions/socket.texi: Update mingw problems.
31967
31968 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
31969             Bruno Haible  <bruno@clisp.org>
31970
31971         * lib/sys_select.in.h: Include sys/time.h.
31972         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
31973         * modules/sys_select: Depend on sys_time.
31974         * tests/test-sys_select.c: Test that sys/select.h defines struct
31975         timeval fully.
31976
31977 2008-09-29  Bruno Haible  <bruno@clisp.org>
31978
31979         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
31980         * lib/sys_select.in.h: Likewise.
31981
31982 2008-09-29  Bruno Haible  <bruno@clisp.org>
31983
31984         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
31985
31986 2008-09-29  Bruno Haible  <bruno@clisp.org>
31987
31988         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
31989         Set LIBSOCKET instead of augmenting LIBS.
31990         * modules/sockets (Link): New section.
31991         * modules/sockets-tests (test_sockets_LDADD): New variable.
31992         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
31993         * modules/poll-tests (test_poll_LDADD): New variable.
31994         * NEWS: Document the change.
31995
31996 2008-09-29  Bruno Haible  <bruno@clisp.org>
31997
31998         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
31999         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
32000         ARPA_INET_H directly.
32001         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32002
32003 2008-09-28  Bruno Haible  <bruno@clisp.org>
32004
32005         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
32006         from gl_HEADER_SYS_SOCKET.
32007         (gl_HEADER_SYS_SOCKET): Invoke it.
32008         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32009
32010 2008-09-28  Bruno Haible  <bruno@clisp.org>
32011
32012         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
32013         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
32014         Needed on OSF/1 4.0.
32015
32016 2008-09-28  Bruno Haible  <bruno@clisp.org>
32017
32018         Override open more carefully.
32019         * lib/open.c (orig_open): New function.
32020         (rpl_open): Use orig_open instead of open.
32021         * lib/fcntl.in.h: Add special invocation convention.
32022         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
32023         (gl_FUNC_OPEN): Invoke it.
32024
32025         Override freopen more carefully.
32026         * lib/freopen.c (orig_freopen): New function.
32027         (rpl_freopen): Use orig_freopen instead of freopen.
32028         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
32029         (gl_FUNC_FREOPEN): Invoke it.
32030
32031         Override fopen more carefully.
32032         * lib/fopen.c (orig_fopen): New function.
32033         (rpl_fopen): Use orig_fopen instead of fopen.
32034         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
32035         (gl_FUNC_FOPEN): Invoke it.
32036         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
32037
32038 2008-09-28  Bruno Haible  <bruno@clisp.org>
32039
32040         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
32041         SIGPIPE.
32042
32043 2008-09-28  Bruno Haible  <bruno@clisp.org>
32044
32045         * tests/test-sigaction.c (handler, main): Disable the check whether
32046         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
32047         glibc systems with LinuxThreads.
32048
32049 2008-09-28  Bruno Haible  <bruno@clisp.org>
32050
32051         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
32052
32053         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
32054         with AIX xlc.
32055         * lib/fcntl.in.h (open): Likewise.
32056         Reported by Rainer Tammer <tammer@tammer.net>.
32057
32058 2008-09-28  Bruno Haible  <bruno@clisp.org>
32059
32060         * modules/posix_spawnp-tests: New file.
32061         * tests/test-posix_spawn.c: New file.
32062         * tests/test-posix_spawn.in.sh: New file.
32063
32064         New module 'posix_spawnp'.
32065         * modules/posix_spawnp: New file.
32066         * lib/spawnp.c: New file, from GNU libc with modifications.
32067         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
32068
32069         New module 'posix_spawn'.
32070         * modules/posix_spawn: New file.
32071         * lib/spawn.c: New file, from GNU libc with modifications.
32072         * doc/posix-functions/posix_spawn.texi: Mention the new module.
32073
32074         New module 'posix_spawnattr_destroy'.
32075         * modules/posix_spawnattr_destroy: New file.
32076         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
32077         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
32078         module.
32079
32080         New module 'posix_spawnattr_setsigmask'.
32081         * modules/posix_spawnattr_setsigmask: New file.
32082         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
32083         modifications.
32084         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
32085         new module.
32086
32087         New module 'posix_spawnattr_getsigmask'.
32088         * modules/posix_spawnattr_getsigmask: New file.
32089         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
32090         modifications.
32091         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
32092         new module.
32093
32094         New module 'posix_spawnattr_setsigdefault'.
32095         * modules/posix_spawnattr_setsigdefault: New file.
32096         * lib/spawnattr_setdefault.c: New file, from GNU libc with
32097         modifications.
32098         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
32099         new module.
32100
32101         New module 'posix_spawnattr_getsigdefault'.
32102         * modules/posix_spawnattr_getsigdefault: New file.
32103         * lib/spawnattr_getdefault.c: New file, from GNU libc with
32104         modifications.
32105         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
32106         new module.
32107
32108         New module 'posix_spawnattr_setschedpolicy'.
32109         * modules/posix_spawnattr_setschedpolicy: New file.
32110         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
32111         modifications.
32112         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
32113         new module.
32114
32115         New module 'posix_spawnattr_getschedpolicy'.
32116         * modules/posix_spawnattr_getschedpolicy: New file.
32117         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
32118         modifications.
32119         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
32120         new module.
32121
32122         New module 'posix_spawnattr_setschedparam'.
32123         * modules/posix_spawnattr_setschedparam: New file.
32124         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
32125         modifications.
32126         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
32127         new module.
32128
32129         New module 'posix_spawnattr_getschedparam'.
32130         * modules/posix_spawnattr_getschedparam: New file.
32131         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
32132         modifications.
32133         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
32134         new module.
32135
32136         New module 'posix_spawnattr_setpgroup'.
32137         * modules/posix_spawnattr_setpgroup: New file.
32138         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
32139         modifications.
32140         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
32141         module.
32142
32143         New module 'posix_spawnattr_getpgroup'.
32144         * modules/posix_spawnattr_getpgroup: New file.
32145         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
32146         modifications.
32147         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
32148         module.
32149
32150         New module 'posix_spawnattr_setflags'.
32151         * modules/posix_spawnattr_setflags: New file.
32152         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
32153         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
32154         module.
32155
32156         New module 'posix_spawnattr_getflags'.
32157         * modules/posix_spawnattr_getflags: New file.
32158         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
32159         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
32160         module.
32161
32162         New module 'posix_spawnattr_init'.
32163         * modules/posix_spawnattr_init: New file.
32164         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
32165         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
32166         module.
32167
32168         New module 'posix_spawn_file_actions_destroy'.
32169         * modules/posix_spawn_file_actions_destroy: New file.
32170         * lib/spawn_faction_destroy.c: New file, from GNU libc with
32171         modifications.
32172         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
32173         the new module.
32174
32175         New module 'posix_spawn_file_actions_addopen'.
32176         * modules/posix_spawn_file_actions_addopen: New file.
32177         * lib/spawn_faction_addopen.c: New file, from GNU libc with
32178         modifications.
32179         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
32180         the new module.
32181
32182         New module 'posix_spawn_file_actions_adddup2'.
32183         * modules/posix_spawn_file_actions_adddup2: New file.
32184         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
32185         modifications.
32186         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
32187         the new module.
32188
32189         New module 'posix_spawn_file_actions_addclose'.
32190         * modules/posix_spawn_file_actions_addclose: New file.
32191         * lib/spawn_faction_addclose.c: New file, from GNU libc with
32192         modifications.
32193         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
32194         the new module.
32195
32196         New module 'posix_spawn_file_actions_init'.
32197         * modules/posix_spawn_file_actions_init: New file.
32198         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
32199         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
32200         new module.
32201
32202         New module 'posix_spawn-internal'.
32203         * modules/posix_spawn-internal: New file.
32204         * lib/spawn_int.h: New file, from GNU libc with modifications.
32205         * lib/spawni.c: New file, from GNU libc with modifications.
32206         * m4/posix_spawn.m4: New file.
32207
32208         New module 'spawn'.
32209         * modules/spawn: New file.
32210         * lib/spawn.in.h: New file, from GNU libc with modifications.
32211         * m4/spawn_h.m4: New file.
32212         * doc/posix-headers/spawn.texi: Mention the new module.
32213
32214 2008-09-28  Bruno Haible  <bruno@clisp.org>
32215
32216         * modules/sched-tests: New file.
32217         * tests/test-sched.c: New file.
32218
32219         New module 'sched'.
32220         * modules/sched: New file.
32221         * lib/sched.in.h: New file.
32222         * m4/sched_h.m4: New file.
32223         * doc/posix-headers/sched.texi: Mention the new module.
32224
32225 2008-09-27  Eric Blake  <ebb9@byu.net>
32226
32227         Fix previous patch, and tweak references to $0.
32228         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
32229         (func_version, func_gnulib_dir): Don't call this program
32230         gnulib-tool.
32231         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
32232         with using $0 in function.
32233         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
32234         (func_fatal_error): Reuse the name the user invoked us with.
32235
32236 2008-09-27  Bruno Haible  <bruno@clisp.org>
32237
32238         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
32239         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
32240         (gl_ICONV_H): Not here.
32241         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
32242         instead of assigning ICONV_H directly.
32243
32244         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
32245         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
32246         WCHAR_H directly.
32247
32248 2008-09-27  Bruno Haible  <bruno@clisp.org>
32249
32250         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
32251         * modules/arpa_inet (Depends-on): Add link-warning.
32252         (Makefile.am): Insert the definition of GL_LINK-WARNING.
32253         * modules/unistd (Makefile.am): Likewise.
32254
32255 2008-09-26  Bruno Haible  <bruno@clisp.org>
32256
32257         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
32258         variables.
32259         (func_version): Essentially copied from gnulib-tool.
32260         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
32261         func_readlink): Copied from gnulib-tool.
32262
32263 2008-09-26  Bruno Haible  <bruno@clisp.org>
32264
32265         * gnulib-tool (func_version): Change directory to $gnulib_dir before
32266         invoking git-version-gen.
32267
32268 2008-09-26  Bruno Haible  <bruno@clisp.org>
32269
32270         * posix-modules: Update to directory names changed on 2008-01-19.
32271         Remove commas in output before splitting into words. No more need to
32272         avoid 'ftruncate' since 2007-02-19.
32273
32274 2008-09-26  Bruno Haible  <bruno@clisp.org>
32275
32276         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
32277
32278 2008-09-26  Bruno Haible  <bruno@clisp.org>
32279
32280         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
32281         * modules/fwriteerror (Depends-on): Add errno.
32282
32283 2008-09-26  Bruno Haible  <bruno@clisp.org>
32284
32285         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
32286         * tests/test-vc-list-files-cvs.sh: Likewise.
32287
32288 2008-09-26  Bruno Haible  <bruno@clisp.org>
32289
32290         * doc/posix-headers/sys_resource.texi: Reorder items.
32291
32292 2008-09-26  Jim Meyering  <meyering@redhat.com>
32293
32294         fts: tweak inode comparison function
32295         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
32296         inode numbers, as documented.
32297
32298         fts: sort dirent entries on inode number before traversing
32299         This avoids a quadratic, seek-related performance penalty when
32300         operating on a directory containing many entries (measurable at 10k;
32301         3.5 hours at 2 million entries with a cold cache) on certain types
32302         of file systems, including ext3 and ext4, but not tmpfs.
32303         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
32304         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
32305         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
32306         (fs_handles_readdir_ordered_dirents_efficiently): New function.
32307         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
32308         (fts_build): Set the stat.st_ino member from D_INO.
32309         If it is likely to be useful, sort dirent entries on inode number.
32310
32311         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
32312         and the struct statfs.f_type member.
32313         * modules/fts (Depends-on): Add d-ino.
32314
32315 2008-09-26  Bruno Haible  <bruno@clisp.org>
32316
32317         * modules/sigpipe-die (Depends-on): Add sigpipe.
32318
32319         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
32320         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
32321         and GNULIB_STDIO_H_SIGPIPE are set.
32322         * lib/stdio-write.c: New file.
32323         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
32324         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
32325         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
32326         REPLACE_STDIO_WRITE_FUNCS.
32327         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
32328         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
32329         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
32330         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
32331         * modules/stdio (Files): Add lib/stdio-write.c.
32332         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
32333         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
32334         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
32335         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
32336         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
32337         REPLACE_FPRINTF_POSIX.
32338         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
32339         REPLACE_PRINTF_POSIX.
32340         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
32341         REPLACE_VFPRINTF_POSIX.
32342         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
32343         REPLACE_VPRINTF_POSIX.
32344         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
32345         SIGPIPE issue.
32346         * doc/posix-functions/fputc.texi: Likewise.
32347         * doc/posix-functions/fputs.texi: Likewise.
32348         * doc/posix-functions/fwrite.texi: Likewise.
32349         * doc/posix-functions/printf.texi: Likewise.
32350         * doc/posix-functions/putc.texi: Likewise.
32351         * doc/posix-functions/putchar.texi: Likewise.
32352         * doc/posix-functions/puts.texi: Likewise.
32353         * doc/posix-functions/vfprintf.texi: Likewise.
32354         * doc/posix-functions/vprintf.texi: Likewise.
32355
32356         * modules/safe-write (Depends-on): Add write.
32357
32358         * modules/sigpipe-tests: New file.
32359         * tests/test-sigpipe.c: New file.
32360         * tests/test-sigpipe.sh: New file.
32361
32362         * modules/write: New file.
32363         * lib/unistd.in.h: Include <sys/types.h>.
32364         (write): New declaration.
32365         * lib/write.c: New file.
32366         * m4/write.m4: New file.
32367         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32368         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
32369         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
32370         GNULIB_WRITE, REPLACE_WRITE.
32371         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
32372         and the SIGPIPE issue.
32373
32374         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
32375         (raise): New declaration.
32376         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
32377         (ext_signal): New function.
32378         (rpl_raise): New function.
32379         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
32380         GNULIB_SIGNAL_H_SIGPIPE.
32381         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
32382         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
32383
32384         * modules/sigpipe: New file.
32385         * m4/sigpipe.m4: New file.
32386
32387 2008-09-25  Derek Price  <derek@ximbiot.com>
32388             Bruno Haible  <bruno@clisp.org>
32389
32390         * gnulib-tool (func_import): Report all license incompatibilities, not
32391         just the first one.
32392
32393 2008-09-25  Bruno Haible  <bruno@clisp.org>
32394
32395         * gnulib-tool (func_import): When computing the edits, consider not
32396         only the Makefile.ams that exist but also those that will be generated.
32397
32398 2008-09-25  Simon Josefsson  <simon@josefsson.org>
32399
32400         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
32401         fixes gnulib-tool --test warning about duplicate dependency.
32402
32403 2008-09-25  Bruno Haible  <bruno@clisp.org>
32404
32405         * gnulib-tool: Don't ask the user to perform edits in the generated
32406         Makefile.ams.
32407         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
32408         apply to the Makefile.am being generated.
32409         (func_emit_tests_Makefile_am): Execute edits that apply to the
32410         Makefile.am being generated.
32411         (func_import): Setup list of Makefile.am edits before emitting the
32412         Makefile.ams, not at the end.
32413         (func_create_testdir): Update.
32414         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32415
32416 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32417
32418         * gnulib-tool (func_import): Store the --tests-base option in the
32419         comment in gnulib-cache.m4.
32420
32421 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
32422
32423         * NEWS: Document increased portability that sys_select now provides.
32424
32425         * lib/sys_select.in.h: Install select wrapper.
32426         * lib/sys_socket.in.h: Use more descriptive name when there is no
32427         select wrapper.
32428         * lib/winsock-select.c: New.
32429         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
32430         Require gl_HEADER_SYS_SOCKET.
32431         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
32432         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
32433         * tests/test-sys_select.c: Add functional tests.
32434
32435 2008-09-24  Eric Blake  <ebb9@byu.net>
32436
32437         open, fopen: close fd leak in last patch
32438         * lib/open.c (rpl_open): Close fd before returning error.
32439         * lib/fopen.c (rpl_fopen): Close fd before returning error.
32440         * doc/posix-functions/open.texi (open): Document that Irix also
32441         has the bug.
32442         * doc/posix-functions/fopen.texi (fopen): Likewise.
32443         Reported by Paolo Bonzini.
32444
32445 2008-09-24  Bruno Haible  <bruno@clisp.org>
32446
32447         Ensure that a filename ending in a slash cannot be used to access a
32448         non-directory.
32449         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
32450         to check whether it's really a directory.
32451         * lib/fopen.c: Include fcntl.h, unistd.h.
32452         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
32453         and fdopen().
32454         * modules/fopen (Depends-on): Add unistd.
32455         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
32456         * tests/test-fopen.c (main): Likewise.
32457         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
32458         * doc/posix-functions/fopen.texi: Likewise.
32459         Reported by Eric Blake.
32460
32461 2008-09-23  Eric Blake  <ebb9@byu.net>
32462
32463         c-stack: avoid compiler optimizations when provoking overflow
32464         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
32465         recursion harder to optimize, to ensure a stack overflow occurs.
32466         * tests/test-c-stack.c (recurse): Likewise.
32467         Borrowed from libsigsegv.
32468
32469         c-stack: work around Irix sigaltstack bug
32470         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
32471         whether sigaltstack uses wrong end of stack_t (copied in part from
32472         libsigsegv).
32473         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
32474         Irix bug, without requiring an over-allocation.
32475         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
32476         bug.
32477
32478         fopen: document mingw bug on directories
32479         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
32480         not allowing a stream visiting a directory, even though reading
32481         from such a stream is not portable.
32482
32483 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
32484
32485         * lib/poll.c: Rewrite.
32486         * modules/poll: Depend on alloca.
32487
32488 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
32489
32490         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
32491         instead define prototypes for a full set of wrappers.  Ensure
32492         that Cygwin does not use the compatibility code, which is only
32493         for MinGW.
32494         * lib/winsock.c: New.
32495         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
32496         * modules/sys_socket: Add lib/winsock.c.
32497
32498         * modules/poll-tests: Add errno and perror.
32499         * tests/test-poll.c: Use ioctl, not ioctlsocket.
32500
32501 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
32502
32503         * tests/test-poll.c: Downgrade minimum needed Winsock version.
32504
32505 2008-09-23  Bruno Haible  <bruno@clisp.org>
32506
32507         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
32508         * doc/glibc-functions/*: Likewise.
32509
32510 2008-09-23  Simon Josefsson  <simon@josefsson.org>
32511
32512         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
32513         success.
32514
32515 2008-09-22  Eric Blake  <ebb9@byu.net>
32516             Bruno Haible  <bruno@clisp.org>
32517
32518         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
32519         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
32520         supply %A but mishandle pseudo-NaN.
32521         Reported by Simon Josefsson.
32522
32523 2008-09-21  Bruno Haible  <bruno@clisp.org>
32524
32525         * tests/test-lock.c (main): Tweak skip message.
32526         * tests/test-tls.c (main): Likewise.
32527
32528 2008-09-21  Bruno Haible  <bruno@clisp.org>
32529
32530         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
32531         whether 'struct sigaction' has sa_sigaction here...
32532         (gl_PREREQ_SIG_HANDLER_H): ... not here.
32533         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
32534
32535 2008-09-21  Bruno Haible  <bruno@clisp.org>
32536
32537         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
32538         section.
32539         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
32540         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
32541         the new section.
32542         (Support for obsolete systems lacking POSIX:2001): New section.
32543         (String handling <string.h>): Move strdup to the new section.
32544         Suggested by Simon Josefsson and Paolo Bonzini.
32545
32546 2008-09-21  Bruno Haible  <bruno@clisp.org>
32547
32548         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
32549         exponents in %e and %g results on 'long double'. Needed for mingw's
32550         improved *printf functions.
32551         * tests/test-vasprintf-posix.c (test_function): Likewise.
32552         * tests/test-snprintf-posix.h (test_function): Likewise.
32553         * tests/test-sprintf-posix.h (test_function): Likewise.
32554         Reported by Eric Blake.
32555
32556 2008-09-21  Bruno Haible  <bruno@clisp.org>
32557
32558         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
32559         * tests/test-sprintf-posix.h (test_function): Likewise.
32560
32561 2008-09-21  Bruno Haible  <bruno@clisp.org>
32562
32563         * modules/getpass (Depends-on): Add strdup-posix.
32564
32565         New module 'strdup-posix'.
32566         * modules/strdup-posix: New file.
32567         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
32568         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
32569         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32570         REPLACE_STRDUP.
32571         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
32572         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
32573         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32574         strdup-posix.
32575
32576         * modules/strdup (Depends-on): Remove malloc-posix.
32577
32578 2008-09-20  Bruno Haible  <bruno@clisp.org>
32579
32580         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
32581         Wildenhues.
32582
32583 2008-09-20  Bruno Haible  <bruno@clisp.org>
32584
32585         Ensure that wint_t gets defined on IRIX 5.3.
32586         * lib/wchar.in.h (wint_t): Define if not defined by the system.
32587         * lib/wctype.in.h (wint_t): Likewise.
32588         (__wctype_wint_t): Remove type.
32589         (isw*): Use wint_t instead of __wctype_wint_t.
32590         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
32591         * modules/wchar (Files): Add m4/wint_t.m4.
32592         (Makefile.am): Substitute HAVE_WINT_T.
32593         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
32594         * tests/test-wctype.c: Check that wint_t is defined.
32595         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
32596         * doc/posix-headers/wctype.texi: Likewise.
32597         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32598
32599 2008-09-18  Bruno Haible  <bruno@clisp.org>
32600
32601         * gnulib-tool (func_exit): Update comment.
32602
32603 2008-09-18  Simon Josefsson  <simon@josefsson.org>
32604
32605         * modules/getaddrinfo (Depends-on): Remove strdup, this module
32606         assumes strdup exists and does not depend on strdup to return
32607         ENOMEM on out of memory conditions.
32608
32609 2008-09-18  Bruno Haible  <bruno@clisp.org>
32610
32611         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
32612         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
32613         digits for the exponent.
32614
32615 2008-09-18  Jim Meyering  <meyering@redhat.com>
32616             Bruno Haible  <bruno@clisp.org>
32617
32618         * lib/vasnprintf.c (decimal_point_char): Define also if
32619         NEED_PRINTF_INFINITE_LONG_DOUBLE.
32620
32621 2008-09-16  Bruno Haible  <bruno@clisp.org>
32622         and Eric Blake  <ebb9@byu.net>
32623
32624         vasnprintf: support Irix 5.3
32625         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
32626         that mishandle long double infinity.
32627         Reported by Tom G. Christensen.
32628
32629 2008-09-16  Bruno Haible  <bruno@clisp.org>
32630
32631         * doc/glibc-functions/scandir.texi: Mention the function is missing on
32632         Solaris 9.
32633         * doc/glibc-functions/alphasort.texi: Likewise.
32634         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
32635
32636 2008-09-16  Jim Meyering  <meyering@redhat.com>
32637
32638         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
32639         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
32640         a umask modification leak out of a subshell.  Otherwise, the
32641         opensolaris /bin/sh would be accepted and thus cause unwarranted
32642         failures in the coreutils test suite.
32643
32644 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
32645
32646         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
32647         to succeed.
32648
32649 2008-09-16  Jim Meyering  <meyering@redhat.com>
32650
32651         avoid spurious test failure when library is built without ACL support
32652         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
32653         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
32654         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
32655         * tests/test-copy-acl.sh: Likewise.
32656
32657 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32658
32659         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
32660         based on character occurrence counts.
32661
32662 2008-09-15  Eric Blake  <ebb9@byu.net>
32663
32664         tests: avoid some compiler warnings
32665         * tests/test-memchr.c (main): Pass NULL indirectly.
32666         * tests/test-closein.c (main): Avoid unused variable.
32667
32668 2008-09-15  Bruno Haible  <bruno@clisp.org>
32669
32670         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
32671         are missing on OpenBSD 4.0 individually.
32672         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32673
32674 2008-09-15  Bruno Haible  <bruno@clisp.org>
32675
32676         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
32677         * doc/posix-functions/strerror.texi: Mention also Cygwin.
32678         * doc/posix-functions/perror.texi: Likewise.
32679         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
32680         is missing.
32681         Reported by Eric Blake.
32682
32683         * lib/errno.in.h: Use replacement values >= 2000.
32684         Reported by Eric Blake.
32685
32686 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32687
32688         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
32689         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
32690         limit.
32691         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
32692         compareseq was aborted.
32693
32694 2008-09-14  Bruno Haible  <bruno@clisp.org>
32695
32696         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
32697         yvec_edit_count.
32698         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
32699         (fstrcmp_bounded): Simplify result computation accordingly.
32700
32701 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32702
32703         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
32704         (fstrcmp): Define in terms of fstrcmp_bounded.
32705         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
32706         lower_bound argument.
32707         Return quickly if the result is certainly < lower_bound.
32708         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
32709
32710 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32711
32712         * lib/diffseq.h (EARLY_ABORT): New macro.
32713         (compareseq): Change return type to bool. Return true when EARLY_ABORT
32714         evaluates to true.
32715
32716 2008-09-14  Bruno Haible  <bruno@clisp.org>
32717
32718         * modules/perror-tests: New file.
32719         * tests/test-perror.sh: New file.
32720         * tests/test-perror.c: New file.
32721
32722         New module 'perror'.
32723         * lib/stdio.in.h (perror): New declaration.
32724         * lib/perror.c: New file.
32725         * m4/perror.m4: New file.
32726         * modules/perror: New file.
32727         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
32728         * doc/posix-functions/perror.texi: Mention the perror module.
32729         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
32730         REPLACE_PERROR.
32731         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
32732         REPLACE_PERROR.
32733
32734 2008-09-14  Bruno Haible  <bruno@clisp.org>
32735
32736         * modules/stdio (Makefile.am): Reorder to match the order in
32737         lib/stdio.in.h.
32738         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32739
32740 2008-09-13  Bruno Haible  <bruno@clisp.org>
32741
32742         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
32743
32744 2008-09-13  Bruno Haible  <bruno@clisp.org>
32745
32746         Extend strerror to cover the added errno values.
32747         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
32748         (rpl_strerror): Provide error messages for the added errno values and
32749         for the WSA* values.
32750         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
32751         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
32752         strerror.
32753         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
32754         * modules/strerror (Depends-on): Add errno.
32755         * doc/posix-functions/strerror.texi: Document the change.
32756         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
32757         and EOVERFLOW.
32758
32759 2008-09-13  Bruno Haible  <bruno@clisp.org>
32760
32761         * modules/EOVERFLOW: Remove file.
32762         * m4/eoverflow.m4: Remove file.
32763         * modules/EOVERFLOW-tests: Remove file.
32764         * tests/test-EOVERFLOW.c: Remove file.
32765         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
32766         * modules/ftell (Depends-on): Likewise.
32767         * modules/getdelim (Depends-on): Likewise.
32768         * modules/getugroups (Depends-on): Likewise.
32769         * modules/poll (Depends-on): Likewise.
32770         * modules/snprintf (Depends-on): Likewise.
32771         * modules/sprintf-posix (Depends-on): Likewise.
32772         * modules/vasnprintf (Depends-on): Likewise.
32773         * modules/vasprintf (Depends-on): Likewise.
32774         * modules/vfprintf-posix (Depends-on): Likewise.
32775         * modules/vsnprintf (Depends-on): Likewise.
32776         * modules/vsprintf-posix (Depends-on): Likewise.
32777         * modules/xvasprintf (Depends-on): Likewise.
32778         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32779         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
32780         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
32781         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
32782         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32783         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
32784         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
32785         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
32786         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32787         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
32788         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
32789         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
32790         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32791         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
32792         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
32793         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
32794         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32795         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
32796         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
32797         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
32798         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32799         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
32800         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
32801         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
32802         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
32803         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32804         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
32805         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
32806         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
32807         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
32808         * MODULES.html.sh: Remove EOVERFLOW.
32809         * NEWS: Mention the change.
32810
32811 2008-09-13  Bruno Haible  <bruno@clisp.org>
32812
32813         * modules/errno-tests: New file.
32814         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
32815
32816         * lib/errno.in.h: New file.
32817         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
32818         * modules/errno: New file.
32819         * doc/posix-headers/errno.texi: Update documentation.
32820         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
32821
32822 2008-09-13  Bruno Haible  <bruno@clisp.org>
32823
32824         * tests/test-poll.c: Use #if for native Windows, rather than testing
32825         __MSVCRT__.
32826
32827 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32828             Bruno Haible  <bruno@clisp.org>
32829
32830         * lib/glob.c: Don't include <pwd.h> on native Windows.
32831         (WINDOWS32): New macro.
32832         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
32833
32834 2008-09-13  Bruno Haible  <bruno@clisp.org>
32835
32836         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
32837         (ETIMEDOUT): Remove macro.
32838         (glthread_cond_timedwait_multithreaded): New declaration.
32839         (glthread_cond_timedwait): Use it.
32840         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
32841         (glthread_cond_timedwait_multithreaded): New function.
32842
32843 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
32844
32845         * modules/poll-tests: Do not check for io.h.
32846         * tests/test-poll.c: Check for __MSVCRT__ instead.
32847
32848 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
32849
32850         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
32851         * modules/poll-tests: Add inet_pton, stdbool, sockets.
32852         * tests/test-poll.c: Use them.  Use _pipe on Windows.
32853
32854 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
32855
32856         * modules/poll-tests: New.
32857         * tests/test-poll.c: New.
32858
32859 2008-09-12  Eric Blake  <ebb9@byu.net>
32860
32861         frexp: test for NetBSD failure on -0.0
32862         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
32863         not all, bugs from NetBSD 3.0 have been fixed.
32864         * doc/posix-functions/frexp.texi (frexp): Document bug.
32865         Reported by Thomas Klausner.
32866
32867         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
32868         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
32869         literal -0.0.
32870         Reported by Jonathan C. Patschke <jp@centtech.com>.
32871
32872 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32873
32874         * lib/glthread/cond.h: Use dummy implementation also if
32875         USE_WIN32_THREADS.
32876
32877 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32878
32879         * modules/fnmatch-posix (License): Change to LGPLv2+.
32880         * modules/fnmatch-gnu (License): Likewise.
32881
32882 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32883
32884         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
32885
32886 2008-09-11  Jim Meyering  <meyering@redhat.com>
32887
32888         * users.txt: Add gtk-vnc.
32889
32890 2008-09-08  Simon Josefsson  <simon@josefsson.org>
32891
32892         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
32893         rotate amounts.
32894
32895         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
32896         required for 16-bit and 8-bit rotates.
32897         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
32898         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
32899         UINT8_MAX instead of hard-coded constants.
32900         Suggested by Paul Eggert.
32901
32902 2008-09-07  Bruno Haible  <bruno@clisp.org>
32903
32904         * tests/test-striconveh.c (main): Check behaviour when converting from
32905         UTF-7.
32906
32907         Make striconveh work better with stateful encodings.
32908         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
32909         that iconv does not increment the inptr when returning -1/EINVAL.
32910
32911 2008-09-07  Bruno Haible  <bruno@clisp.org>
32912
32913         * build-aux/config.rpath: Update according to libtool-2.2.6.
32914         * build-aux/config.libpath: Likewise.
32915
32916 2008-09-06  Bruno Haible  <bruno@clisp.org>
32917
32918         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
32919         * lib/freadptr.c (freadptr): Likewise.
32920         * lib/freadseek.c (freadptrinc): Likewise.
32921         Reported by Simon Josefsson.
32922
32923 2008-09-06  Bruno Haible  <bruno@clisp.org>
32924
32925         * modules/freadptr (License): Change to LGPLv2+.
32926         * modules/freadseek (License): Likewise.
32927         Suggested by Eric Blake.
32928
32929         * modules/memchr2 (License): Change to LGPLv2+.
32930         Approved by Eric Blake.
32931
32932 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32933             Bruno Haible  <bruno@clisp.org>
32934
32935         Make gnulib-tool work with native 'sed' on AIX.
32936         * gnulib-tool (sed_noop): New variable.
32937         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
32938         func_add_or_update, func_create_testdir): Use it to initialize sed
32939         script variables.
32940         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32941
32942 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
32943             Bruno Haible  <bruno@clisp.org>
32944
32945         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
32946         also works after #include directives.
32947
32948 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
32949
32950         getdate.y: reject an out-of-range timezone value
32951         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
32952         the range [-24...+24].  When specified with only one or two digits,
32953         * tests/test-getdate.c: Tests for the fix.
32954         * doc/getdate.texi: Document this change.
32955
32956 2008-09-03  Bruno Haible  <bruno@clisp.org>
32957
32958         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
32959
32960 2008-09-02  Simon Josefsson  <simon@josefsson.org>
32961
32962         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
32963         <bruce.korb@gmail.com> with ideas from Ben Pfaff
32964         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
32965         Blake <ebb9@byu.net>.
32966
32967         * tests/test-bitrotate.c: Add more test vectors.
32968
32969 2008-09-02  Eric Blake  <ebb9@byu.net>
32970
32971         vasnprintf-posix: handle large precision via %.*d
32972         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
32973         when handling it ourselves.
32974         * tests/test-vasnprintf-posix.c (test_function): Add test.
32975         * tests/test-snprintf-posix.h (test_function): Likewise.
32976         * tests/test-sprintf-posix.h (test_function): Likewise.
32977         * tests/test-vasprintf-posix.c (test_function): Likewise.
32978         Reported by Alain Guibert.
32979
32980 2008-09-01  Eric Blake  <ebb9@byu.net>
32981
32982         c-stack: make configure-time check more robust
32983         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
32984         successful sigaction call.
32985         Reported by Tom G. Christensen.
32986
32987 2008-09-01  Bruno Haible  <bruno@clisp.org>
32988
32989         New module 'findprog-lgpl'.
32990         * modules/findprog-lgpl: New file.
32991         * lib/findprog-lgpl.c: New file.
32992         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
32993         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
32994         to decide whether to use strdup or xstrdup, concatenated_filename or
32995         xconcatenated_filename.
32996
32997 2008-09-01  Bruno Haible  <bruno@clisp.org>
32998
32999         Split module 'concat-filename' into 'concat-filename' (LGPL) and
33000         'xconcat-filename' (GPL).
33001         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
33002         (License): Change to LGPLv2+.
33003         * modules/xconcat-filename: New file.
33004         * lib/concat-filename.h (concatenated_filename): Change specification.
33005         (xconcatenated_filename): New declaration.
33006         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
33007         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
33008         memory situations.
33009         * lib/xconcat-filename.c: New file.
33010         * NEWS: Mention the change.
33011         * lib/findprog.c: Include concat-filename.h, not filename.h.
33012         (find_in_path): Use xconcatenated_filename instead of
33013         concatenated_filename.
33014         * lib/javacomp.c: Include concat-filename.h, not filename.h.
33015         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
33016         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
33017         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
33018         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
33019         instead of concatenated_filename.
33020         * lib/javaexec.c: Include concat-filename.h, not filename.h.
33021         (execute_java_class): Use xconcatenated_filename instead of
33022         concatenated_filename.
33023         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
33024         * modules/javacomp (Depends-on): Likewise.
33025         * modules/javaexec (Depends-on): Likewise.
33026
33027 2008-09-01  Bruno Haible  <bruno@clisp.org>
33028
33029         Split module 'filename' into 'filename' and 'concat-filename'.
33030         * modules/filename: Keep only lib/filename.h.
33031         (License): Change to LGPLv2+.
33032         * modules/concat-filename: New file, extracted from modules/filename.
33033         * lib/filename.h (concatenated_filename): Remove declaration.
33034         * lib/concat-filename.h: New file, extracted from lib/filename.h.
33035         * lib/concat-filename.c: Include concat-filename.h.
33036         * NEWS: Mention the change.
33037
33038 2008-09-01  Simon Josefsson  <simon@josefsson.org>
33039
33040         * lib/bitrotate.h (rotl8, rotr8): Add.
33041
33042         * modules/bitrotate (configure.ac): Need
33043         AC_REQUIRE([AC_C_INLINE]).
33044         (Description): Mention stdint.h.  Reported by Bruno Haible
33045         <bruno@clisp.org>.
33046
33047         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
33048         Paolo Bonzini <bonzini@gnu.org>.
33049
33050 2008-08-31  Bruno Haible  <bruno@clisp.org>
33051
33052         Assume Solaris specific bi-arch conventions on Solaris systems.
33053         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
33054         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
33055         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
33056         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
33057         like acl_libdirstem.
33058         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
33059         acl_libdirstem.
33060         * NEWS: Mention the change.
33061         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
33062
33063 2008-08-31  Jim Meyering  <meyering@redhat.com>
33064
33065         * lib/strftime.h: Add comments describing the two added arguments.
33066
33067         remove duplicate #include directives
33068         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
33069         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
33070
33071 2008-08-31  Bruno Haible  <bruno@clisp.org>
33072
33073         New module 'sigpipe-die'.
33074         * modules/sigpipe-die: New file.
33075         * lib/sigpipe-die.h: New file.
33076         * lib/sigpipe-die.c: New file.
33077         * MODULES.html.sh (Signal handling): Add sigpipe-die.
33078
33079 2008-08-31  Bruno Haible  <bruno@clisp.org>
33080
33081         Don't override previously installed signal handlers.
33082         * lib/fatal-signal.c (saved_sigactions): New variable.
33083         (uninstall_handlers): Reset the signal to the saved handler, not
33084         to SIG_DFL (except when ignored).
33085         (install_handlers): Save the previous handlers.
33086
33087 2008-08-30  Bruno Haible  <bruno@clisp.org>
33088
33089         * gnulib-tool (func_reset_sigpipe): New function.
33090         (func_get_automake_snippet, func_modules_transitive_closure,
33091         func_import): Invoke it before a join command that reads from stdin,
33092         to avoid "echo: write error: Broken pipe" error messages on stderr.
33093         Reported by Sam Steingold <sds@gnu.org>.
33094
33095 2008-08-30  Bruno Haible  <bruno@clisp.org>
33096
33097         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
33098         Code copied from m4/open.m4.
33099         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
33100         access and the filename ends in a slash. Code copied from lib/open.c.
33101         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
33102         * tests/test-fopen.c (main): Check against bug with trailing slash.
33103
33104 2008-08-29  Bruno Haible  <bruno@clisp.org>
33105
33106         Avoid some "gcc -pedantic" warnings.
33107         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
33108         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
33109         * lib/dirent.in.h: Likewise.
33110         * lib/fcntl.in.h: Likewise.
33111         * lib/float.in.h: Likewise.
33112         * lib/iconv.in.h: Likewise.
33113         * lib/inttypes.in.h: Likewise.
33114         * lib/locale.in.h: Likewise.
33115         * lib/math.in.h: Likewise.
33116         * lib/netinet_in.in.h: Likewise.
33117         * lib/search.in.h: Likewise.
33118         * lib/signal.in.h: Likewise.
33119         * lib/stdarg.in.h: Likewise.
33120         * lib/stdint.in.h: Likewise.
33121         * lib/stdio.in.h: Likewise.
33122         * lib/stdlib.in.h: Likewise.
33123         * lib/string.in.h: Likewise.
33124         * lib/strings.in.h: Likewise.
33125         * lib/sys_select.in.h: Likewise.
33126         * lib/sys_socket.in.h: Likewise.
33127         * lib/sys_stat.in.h: Likewise.
33128         * lib/sys_time.in.h: Likewise.
33129         * lib/sysexits.in.h: Likewise.
33130         * lib/time.in.h: Likewise.
33131         * lib/unistd.in.h: Likewise.
33132         * lib/wchar.in.h: Likewise.
33133         * lib/wctype.in.h: Likewise.
33134         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
33135         * modules/fchdir (Makefile.am): Likewise.
33136         * modules/fcntl (Makefile.am): Likewise.
33137         * modules/float (Makefile.am): Likewise.
33138         * modules/iconv_open (Makefile.am): Likewise.
33139         * modules/inttypes (Makefile.am): Likewise.
33140         * modules/locale (Makefile.am): Likewise.
33141         * modules/math (Makefile.am): Likewise.
33142         * modules/netinet_in (Makefile.am): Likewise.
33143         * modules/search (Makefile.am): Likewise.
33144         * modules/signal (Makefile.am): Likewise.
33145         * modules/stdarg (Makefile.am): Likewise.
33146         * modules/stdint (Makefile.am): Likewise.
33147         * modules/stdio (Makefile.am): Likewise.
33148         * modules/stdlib (Makefile.am): Likewise.
33149         * modules/string (Makefile.am): Likewise.
33150         * modules/strings (Makefile.am): Likewise.
33151         * modules/sys_select (Makefile.am): Likewise.
33152         * modules/sys_socket (Makefile.am): Likewise.
33153         * modules/sys_stat (Makefile.am): Likewise.
33154         * modules/sys_time (Makefile.am): Likewise.
33155         * modules/sysexits (Makefile.am): Likewise.
33156         * modules/time (Makefile.am): Likewise.
33157         * modules/unistd (Makefile.am): Likewise.
33158         * modules/wchar (Makefile.am): Likewise.
33159         * modules/wctype (Makefile.am): Likewise.
33160         Reported by Reuben Thomas <rrt@sc3d.org>.
33161
33162 2008-08-29  Bruno Haible  <bruno@clisp.org>
33163
33164         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
33165         any more.
33166
33167 2008-08-29  Simon Josefsson  <simon@josefsson.org>
33168
33169         * MODULES.html.sh (Misc): Add bitrotate.
33170
33171         * modules/bitrotate: New file.
33172
33173         * lib/bitrotate.h: New file.
33174
33175         * modules/bitrotate-tests: New file.
33176
33177         * tests/test-bitrotate.c: New file.
33178
33179         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
33180         on the bitrotate module.
33181
33182         * lib/arctwo.c: Use new bitrotate module.
33183
33184 2008-08-29  Jim Meyering  <meyering@redhat.com>
33185
33186         bootstrap: merge changes from coreutils
33187         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
33188         of copied files.  Remove a kludge, now that this is fixed.
33189         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
33190         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
33191         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
33192
33193 2008-08-29  Bruno Haible  <bruno@clisp.org>
33194
33195         * MODULES.html.sh: Remove --cvs-urls option.
33196
33197 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
33198
33199         maint.mk: adjust to file name change
33200         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
33201
33202 2008-08-28  Jim Meyering  <meyering@redhat.com>
33203
33204         * modules/getndelim2 (License): Relicense to LGPLv2+.
33205         Approved by Richard Stallman for the version of 1995, and by
33206         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
33207
33208 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
33209
33210         * lib/getdelim.c (flockfile, funlockfile): Make all of them
33211         dummy if one is not available.  Do not touch them if
33212         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
33213         (getc_maybe_unlocked): New.
33214         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
33215
33216 2008-08-26  Eric Blake  <ebb9@byu.net>
33217
33218         doc/INSTALL: resync from autoconf
33219         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
33220         (INSTALL_PRELUDE): Delete; this is done more efficiently by
33221         moving...
33222         * install.texi [!autoconf]: ...here.  Resync from autoconf.
33223         * INSTALL: Regenerate.
33224         * INSTALL.ISO: New file.
33225         * INSTALL.UTF-8: Likewise.
33226
33227 2008-08-26  Jim Meyering  <meyering@redhat.com>
33228
33229         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
33230         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
33231         these definitions conditional, so that they may be overridden, too.
33232
33233 2008-08-26  Bruno Haible  <bruno@clisp.org>
33234
33235         Generate INSTALL file variants with prettier quotes.
33236         * doc/Makefile (INSTALL_PRELUDE): New macro.
33237         (INSTALL): Use it.
33238         (INSTALL.ISO, INSTALL.UTF-8): New rules.
33239
33240 2008-08-26  Bruno Haible  <bruno@clisp.org>
33241
33242         Run makeinfo in an English locale.
33243         * doc/Makefile (MAKEINFO): New variable.
33244
33245 2008-08-26  Bruno Haible  <bruno@clisp.org>
33246
33247         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
33248         Suggested by Eric Blake.
33249
33250 2008-08-25  Bruno Haible  <bruno@clisp.org>
33251
33252         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
33253
33254 2008-08-25  Eric Blake  <ebb9@byu.net>
33255
33256         c-stack: test that stack overflow can be caught
33257         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
33258         that platform allows handling stack overflow; at least OS/2 EMX
33259         has sigaltstack, but crashes before transferring control to
33260         handler on stack overflow.
33261         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
33262         check for HAVE_STACK_OVERFLOW_HANDLING.
33263         Reported by Elbert Pol.
33264
33265 2008-08-25  Bruno Haible  <bruno@clisp.org>
33266
33267         * doc/posix-functions/strftime.texi: Fix description of strftime
33268         module.
33269
33270 2008-08-24  Bruno Haible  <bruno@clisp.org>
33271
33272         * tests/uniwidth/test-uc_width2.c: New file.
33273         * tests/uniwidth/test-uc_width2.sh: New file.
33274         * modules/uniwidth/width-tests (Files): Add the new files.
33275         (TESTS): Add uniwidth/test-uc_width2.sh.
33276         (TESTS_ENVIRONMENT): New variable.
33277         (check_PROGRAMS): Add test-uc_width2.
33278         (test_uc_width2_SOURCES): New variable.
33279
33280         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
33281         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
33282         not 0x00AB.
33283         Reported by Alexander V. Lukyanov <lav@netis.ru>.
33284
33285 2008-08-22  Eric Blake  <ebb9@byu.net>
33286
33287         test-lock, test-tls: mention why a test is skipped
33288         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
33289         skipped.
33290         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
33291
33292         count-one-bits: relax license
33293         * modules/count-one-bits (License): Relicense to LGPLv2+.
33294         Suggested by Ludovic Courtès, approved by Ben Pfaff.
33295
33296 2008-08-22  Andreas Schwab  <schwab@suse.de>
33297
33298         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
33299         Remove spurious space in assignment.
33300
33301 2008-08-21  Simon Josefsson  <simon@josefsson.org>
33302
33303         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
33304         Paul Eggert <eggert@CS.UCLA.EDU>.
33305
33306 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
33307
33308         * modules/gettext: Add m4/threadlib.m4.
33309
33310 2008-08-19  Eric Blake  <ebb9@byu.net>
33311
33312         test-c-stack: fix compilation failure on FreeBSD 5.0
33313         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
33314         headers before <sys/resource.h>.
33315         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
33316         the bug.
33317         Reported by Nelson H. F. Beebe.
33318
33319         strverscmp: migrate from "strverscmp.h" to <string.h>
33320         * modules/string (Makefile.am): Add new hooks.
33321         * modules/strverscmp (Files): Remove strverscmp.h.
33322         (Depends-on): Add string.
33323         (configure.ac): Add indicator.
33324         (Include): Mention new header.
33325         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
33326         defaults.
33327         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
33328         results.
33329         * lib/strverscmp.h: Delete.
33330         * lib/string.in.h (strverscmp): Provide declaration, when needed.
33331         * tests/test-strverscmp.c (includes): Adjust client.
33332         * lib/check-version.c (includes): Likewise.
33333         * NEWS: Document the change.
33334
33335         strverscmp: add unit test
33336         * modules/strverscmp-tests: New file.
33337         * tests/test-strverscmp.c: Likewise.
33338
33339 2008-08-19  Simon Josefsson  <simon@josefsson.org>
33340
33341         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
33342         regarding Windows crypto stuff, from Mono.
33343
33344 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
33345
33346         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
33347         if present, for intel RND.  Return error on failures.
33348
33349 2008-08-18  Ben Pfaff  <blp@gnu.org>
33350
33351         gitlog-to-changelog: give better diagnostic for failed pipe-open
33352         * build-aux/gitlog-to-changelog: Improve error message: suggest
33353         that the version of Git may be too old.
33354
33355 2008-08-18  Simon Josefsson  <simon@josefsson.org>
33356
33357         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
33358         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
33359
33360 2008-08-18  Bruno Haible  <bruno@clisp.org>
33361
33362         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
33363         pthread_in_use().
33364
33365 2008-08-18  Bruno Haible  <bruno@clisp.org>
33366
33367         * lib/glthread/threadlib.c: Include <pthread.h>.
33368
33369 2008-08-18  Bruno Haible  <bruno@clisp.org>
33370
33371         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
33372         glthread_recursive_lock_* macros.
33373         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
33374         Fix syntax error.
33375
33376 2008-08-18  Bruno Haible  <bruno@clisp.org>
33377
33378         * lib/glthread/thread.c: Avoid forcing a context switch right after
33379         thread creation.
33380
33381 2008-08-17  Bruno Haible  <bruno@clisp.org>
33382
33383         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
33384         * lib/glthread/thread.h: Provide Win32 specific implementation.
33385         * modules/thread (Files): Add lib/glthread/thread.c.
33386         (Depends-on): Add lock.
33387         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
33388
33389 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33390
33391         New module 'yield'.
33392         * modules/yield: New file.
33393         * lib/glthread/yield.h: New file.
33394         * m4/yield.m4: New file.
33395         * MODULES.html.sh (Multithreading): Add yield.
33396
33397 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33398
33399         New module 'thread'.
33400         * modules/thread: New file.
33401         * lib/glthread/thread.h: New file.
33402         * m4/thread.m4: New file.
33403         * MODULES.html.sh (Multithreading): Add thread.
33404
33405 2008-08-17  Bruno Haible  <bruno@clisp.org>
33406
33407         * lib/glthread/lock.h: Include <stdlib.h> always.
33408         * lib/glthread/tls.h: Likewise.
33409         * lib/glthread/cond.h: Likewise.
33410
33411 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33412
33413         New module 'cond'.
33414         * modules/cond: New file.
33415         * lib/glthread/cond.h: New file.
33416         * lib/glthread/cond.c: New file.
33417         * m4/cond.m4: New file.
33418         * MODULES.html.sh (Multithreading): Add cond.
33419
33420 2008-08-16  Eric Blake  <ebb9@byu.net>
33421
33422         c-stack: fix regression on Irix 5.3 from 2008-06-21
33423         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
33424         sa_sigaction...
33425         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
33426         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
33427         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
33428         * modules/signal (Makefile.am): Use the value.
33429         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
33430         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
33431         * doc/posix-headers/signal.texi (signal.h): Document this
33432         portability issue.
33433         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
33434         Reported by Tom G. Christensen.
33435
33436 2008-08-17  Bruno Haible  <bruno@clisp.org>
33437
33438         New module 'threadlib'.
33439         * modules/threadlib: New file.
33440         * lib/glthread/threadlib.c: New file, extracted from
33441         lib/glthread/lock.c.
33442         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
33443         functions.
33444         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
33445         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
33446         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
33447         macros.
33448         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
33449         (gl_DISABLE_THREADS): Remove macro.
33450         * modules/lock (Files): Remove build-aux/config.rpath.
33451         (Depends-on): Remove havelib. Add threadlib.
33452         (configure.ac-early): Remove section.
33453         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
33454         * modules/tls (Depends-on): Remove lock. Add threadlib.
33455         (Link): New section, copied from threadlib.
33456         * MODULES.html.sh (Multithreading): Add threadlib.
33457
33458 2008-08-14  Bruno Haible  <bruno@clisp.org>
33459
33460         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
33461         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
33462         glthread_rwlock_unlock, glthread_rwlock_destroy,
33463         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
33464         glthread_recursive_lock_destroy): Define as macros always.
33465         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
33466         glthread_lock_lock.
33467         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
33468         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
33469         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
33470         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
33471         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
33472         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
33473         (glthread_recursive_lock_lock_func): Renamed from
33474         glthread_recursive_lock_lock.
33475         (glthread_recursive_lock_unlock_func): Renamed from
33476         glthread_recursive_lock_unlock.
33477         (glthread_recursive_lock_destroy_func): Renamed from
33478         glthread_recursive_lock_destroy.
33479
33480 2008-08-14  Bruno Haible  <bruno@clisp.org>
33481
33482         * lib/glthread/lock.h: Renamed from lib/lock.h.
33483         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
33484         * lib/glthread/tls.h: Renamed from lib/tls.h.
33485         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
33486         * lib/fstrcmp.c: Update includes.
33487         * lib/strsignal.c: Update includes.
33488         * modules/lock (Files, Makefile.am): Update.
33489         (Include): Change to "glthread/lock.h".
33490         * modules/tls (Files, Makefile.am): Update.
33491         (Include): Change to "glthread/tls.h".
33492         * tests/test-lock.c: Update includes.
33493         * tests/test-tls.c: Update includes.
33494         * NEWS: Mention the renamed header files.
33495
33496 2008-08-11  Jim Meyering  <meyering@redhat.com>
33497
33498         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
33499
33500 2008-08-11  Eric Blake  <ebb9@byu.net>
33501
33502         test-c-stack: avoid C99-ism
33503         * tests/test-c-stack.c (main): Fix whitespace, move declaration
33504         before statement.
33505         Reported by Alain Guibert.
33506
33507 2008-08-10  Jim Meyering  <meyering@redhat.com>
33508
33509         ensure that return value of uinttostr et al are not ignored
33510         * lib/inttostr.h (__GNUC_PREREQ): Define.
33511         (__attribute_warn_unused_result__): Define.
33512         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
33513
33514 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
33515
33516         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
33517         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
33518
33519 2008-08-07  Jim Meyering  <meyering@redhat.com>
33520
33521         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
33522
33523         * modules/mkstemp (License): Relicense under LGPLv2+.
33524         * modules/tempname (License): Likewise.
33525
33526 2008-08-06  Bruno Haible  <bruno@clisp.org>
33527
33528         * lib/poll.c (poll): Further micro-optimization.
33529
33530 2008-08-06  Jim Meyering  <meyering@redhat.com>
33531
33532         inet_pton.c: use locale-independent tolower
33533         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
33534         (inet_pton6): Use c_tolower rather than tolower.
33535         * modules/inet_pton (Depends-on): Add c-ctype.
33536
33537 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
33538
33539         * lib/poll.c (poll): Avoid division when timeout is 0, cache
33540         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
33541
33542 2008-08-06  Jim Meyering  <meyering@redhat.com>
33543
33544         * modules/inet_pton (License): Relicense under LGPLv2+.
33545
33546 2008-08-03  Bruno Haible  <bruno@clisp.org>
33547
33548         Additional non-aborting API for lock and tls.
33549         * lib/lock.h: Include <errno.h>.
33550         (glthread_lock_init): New macro/function.
33551         (gl_lock_init): Define as wrapper around glthread_lock_init.
33552         (glthread_lock_lock): New macro/function.
33553         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
33554         (glthread_lock_unlock): New macro/function.
33555         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
33556         (glthread_lock_destroy): New macro/function.
33557         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
33558         (glthread_rwlock_init): New macro/function.
33559         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
33560         (glthread_rwlock_rdlock): New macro/function.
33561         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
33562         (glthread_rwlock_wrlock): New macro/function.
33563         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
33564         (glthread_rwlock_unlock): New macro/function.
33565         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
33566         (glthread_rwlock_destroy): New macro/function.
33567         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
33568         (glthread_recursive_lock_init): New macro/function.
33569         (gl_recursive_lock_init): Define as wrapper around
33570         glthread_recursive_lock_init.
33571         (glthread_recursive_lock_lock): New macro/function.
33572         (gl_recursive_lock_lock): Define as wrapper around
33573         glthread_recursive_lock_lock.
33574         (glthread_recursive_lock_unlock): New macro/function.
33575         (gl_recursive_lock_unlock): Define as wrapper around
33576         glthread_recursive_lock_unlock.
33577         (glthread_recursive_lock_destroy): New macro/function.
33578         (gl_recursive_lock_destroy): Define as wrapper around
33579         glthread_recursive_lock_destroy.
33580         (glthread_once): New macro/function.
33581         (gl_once): Define as wrapper around glthread_once.
33582         Update function declarations.
33583         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
33584         glthread_rwlock_init. Return error code.
33585         (glthread_rwlock_rdlock_multithreaded): Renamed from
33586         glthread_rwlock_rdlock. Return error code.
33587         (glthread_rwlock_wrlock_multithreaded): Renamed from
33588         glthread_rwlock_wrlock. Return error code.
33589         (glthread_rwlock_unlock_multithreaded): Renamed from
33590         glthread_rwlock_unlock. Return error code.
33591         (glthread_rwlock_destroy_multithreaded): Renamed from
33592         glthread_rwlock_destroy. Return error code.
33593         (glthread_recursive_lock_init_multithreaded): Renamed from
33594         glthread_recursive_lock_init. Return error code.
33595         (glthread_recursive_lock_lock_multithreaded): Renamed from
33596         glthread_recursive_lock_lock. Return error code.
33597         (glthread_recursive_lock_unlock_multithreaded): Renamed from
33598         glthread_recursive_lock_unlock. Return error code.
33599         (glthread_recursive_lock_destroy_multithreaded): Renamed from
33600         glthread_recursive_lock_destroy. Return error code.
33601         (glthread_once_call): Make static.
33602         (glthread_once_multithreaded): Renamed from glthread_once.
33603         * lib/tls.h: Include <errno.h>.
33604         (glthread_tls_key_init): New macro/function.
33605         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
33606         (glthread_tls_set): New macro/function.
33607         (gl_tls_set): Define as wrapper around glthread_tls_set.
33608         (glthread_tls_key_destroy): New macro/function.
33609         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
33610         Update function declarations.
33611         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
33612         glthread_tls_get.
33613         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33614
33615 2008-08-04  Eric Blake  <ebb9@byu.net>
33616
33617         gnumakefile: use space, not TAB, outside of targets
33618         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
33619
33620 2008-08-02  Jim Meyering  <meyering@redhat.com>
33621
33622         getdate.y: avoid locale-dependent date parsing failure
33623         In Turkish locales, getdate would fail to recognize keywords
33624         containing a lowercase "i".  The solution is not to rely on
33625         locale-sensitive case-conversion.
33626         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
33627         (lookup_word): Use c_toupper in place of toupper.
33628         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
33629         Reported by Vefa Bicakci <bicave@superonline.com> in
33630         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
33631         * modules/getdate (Depends-on): Add c-ctype.
33632
33633 2008-08-02  Bruno Haible  <bruno@clisp.org>
33634
33635         * gnulib-tool (func_import): When updating or creating a .gitignore
33636         file, prepend each added line with a slash, and ignore leading slashes
33637         from the existing lines.
33638         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
33639
33640 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33641
33642         Portability fix for GNU make 3.79.1.
33643         * top/GNUmakefile: Avoid 'else COND', which older GNU make
33644         versions do not understand.
33645
33646 2008-08-01  Bruno Haible  <bruno@clisp.org>
33647
33648         Work around bug of HP-UX 10.20 cc with -0.0 literal.
33649         * tests/test-isnanf.h (zero): New variable.
33650         (main): Avoid literal -0.0f.
33651         * tests/test-isnand.h (zero): New variable.
33652         (main): Avoid literal -0.0.
33653         * tests/test-isnanl.h (zero): New variable.
33654         (main): Avoid literal -0.0L.
33655         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
33656         (test_float, test_double, test_long_double): Avoid literals -0.0f,
33657         -0.0, -0.0L.
33658         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
33659         (test_signbitd): Avoid literal -0.0.
33660         (test_signbitl): Avoid literal -0.0L.
33661         * tests/test-ceilf1.c (zero): New variable.
33662         (main): Avoid literal -0.0f.
33663         * tests/test-ceill.c (zero): New variable.
33664         (main): Avoid literal -0.0L.
33665         * tests/test-floorf1.c (zero): New variable.
33666         (main): Avoid literal -0.0f.
33667         * tests/test-floorl.c (zero): New variable.
33668         (main): Avoid literal -0.0L.
33669         * tests/test-roundf1.c (zero): New variable.
33670         (main): Avoid literal -0.0f.
33671         * tests/test-round1.c (zero): New variable.
33672         (main): Avoid literal -0.0.
33673         * tests/test-roundl.c (zero): New variable.
33674         (main): Avoid literal -0.0L.
33675         * tests/test-truncf1.c (zero): New variable.
33676         (main): Avoid literal -0.0f.
33677         * tests/test-trunc1.c (zero): New variable.
33678         (main): Avoid literal -0.0.
33679         * tests/test-truncl.c (zero): New variable.
33680         (main): Avoid literal -0.0L.
33681         * tests/test-frexp.c (zero): New variable.
33682         (main): Avoid literal -0.0.
33683         * tests/test-frexpl.c (zero): New variable.
33684         (main): Avoid literal -0.0L.
33685         * tests/test-ldexpl.c (zero): New variable.
33686         (main): Avoid literal -0.0L.
33687         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
33688         (zerod, zerol): New variables.
33689         (test_function): Avoid literals -0.0, -0.0L.
33690         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
33691         (zerod, zerol): New variables.
33692         (test_function): Avoid literals -0.0, -0.0L.
33693         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
33694         (zerod, zerol): New variables.
33695         (test_function): Avoid literals -0.0, -0.0L.
33696         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
33697         (zerod, zerol): New variables.
33698         (test_function): Avoid literals -0.0, -0.0L.
33699         * tests/test-strtod.c (zero): New variable.
33700         (main): Avoid literal -0.0.
33701         Reported by Jonathan C. Patschke <jp@centtech.com>.
33702
33703 2008-07-31  Jim Meyering  <meyering@redhat.com>
33704
33705         sha256.h: correct definition of SHA224_DIGEST_SIZE
33706         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
33707         Reported by Paulie Pena IV <paulie4@gmail.com>.
33708         Define as 224 / 8, rather than as a literal.
33709         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
33710         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
33711         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
33712
33713 2008-07-31  Bruno Haible  <bruno@clisp.org>
33714
33715         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
33716         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
33717         Reported by Jonathan Patschke <jp@centtech.com>.
33718
33719 2008-07-31  Bruno Haible  <bruno@clisp.org>
33720
33721         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
33722         Reported by Paolo Bonzini <bonzini@gnu.org>.
33723
33724 2008-07-30  Eric Blake  <ebb9@byu.net>
33725
33726         test-strtod: allow compilation without -lm
33727         * tests/test-strtod.c (main): Avoid link dependence on fabs.
33728         Reported by Dennis Clarke <blastwave@gmail.com>.
33729
33730 2008-07-28  Jim Meyering  <meyering@redhat.com>
33731
33732         bootstrap: work also when there are no .po files in po/
33733         * build-aux/bootstrap (update_po_files): Complete the change
33734         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
33735
33736 2008-07-27  Jim Meyering  <meyering@redhat.com>
33737
33738         * users.txt: Add zile.
33739
33740 2008-07-26  Ben Pfaff  <blp@gnu.org>
33741
33742         Add missing dependencies on new m4/exponent[fdl].m4 files.
33743         * modules/isnanf-nolibm: Add m4/exponentf.m4.
33744         * modules/isnand-nolibm: Add m4/exponentd.m4.
33745         * modules/isnanl-nolibm: Add m4/exponentl.m4.
33746         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
33747         m4/isnan[fdl].m4, because the macros actually used moved.
33748         Reported by Jim Meyering.
33749
33750 2008-07-14  Ben Pfaff  <blp@gnu.org>
33751
33752         Add isinf module.
33753         * lib/isinf.c: New file.
33754         * lib/math.in.h: Define isinf macro if we have decided to replace
33755         it.
33756         * m4/isinf.m4: New file.
33757         * m4/math_h.m4: Initialize and substitute variables for isinf
33758         module.
33759         * modules/isinf: New file.
33760         * modules/isinf-tests: New file.
33761         * modules/math: Add substitutions for new module.
33762         * tests/test-isinf.c: New file.
33763         * doc/posix-functions/isinf.texi: Mention new module.
33764         * MODULES.html.sh: Mention new module.
33765
33766 2008-07-14  Ben Pfaff  <blp@gnu.org>
33767
33768         Factor out some macros for use by additional modules.
33769         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
33770         exponentf.m4.
33771         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
33772         exponentd.m4.
33773         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
33774         file exponentl.m4.
33775         * m4/exponentf.m4: New file.
33776         * m4/exponentd.m4: New file.
33777         * m4/exponentl.m4: New file.
33778         * modules/isnanf: Use new file m4/exponentf.m4.
33779         * modules/isnand: Use new file m4/exponentd.m4.
33780         * modules/isnanl: Use new file m4/exponentl.m4.
33781
33782 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
33783
33784         mktime.c: normalize tp->tm_isdst value to -1/0/1.
33785         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
33786         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
33787         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
33788
33789         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
33790         readlink on platforms without PATH_MAX.
33791
33792 2008-07-21  Eric Blake  <ebb9@byu.net>
33793
33794         Warn, not fail, on stale version.
33795         * top/GNUmakefile (_curr-ver): Tone down previous patch.
33796
33797         Don't allow installation with stale devel version number.
33798         * top/GNUmakefile (_is-install-target): New macro.
33799         (_curr-ver): Forbid installation with stale version number.
33800
33801 2008-07-20  Bruno Haible  <bruno@clisp.org>
33802
33803         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
33804         TESTS_ENVIRONMENT.
33805         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
33806
33807 2008-07-20  Bruno Haible  <bruno@clisp.org>
33808
33809         * lib/c-stack.h (c_stack_action): Add documentation.
33810         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
33811
33812 2008-07-20  Bruno Haible  <bruno@clisp.org>
33813
33814         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
33815         * modules/readlink (License): Likewise.
33816
33817 2008-07-17  Eric Blake  <ebb9@byu.net>
33818
33819         * modules/c-stack (Link): Fix typo.
33820
33821         Make c-stack use libsigsegv, when available.
33822         * modules/c-stack (Depends-on): Add libsigsegv.
33823         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
33824         needed.
33825         * lib/c-stack.c (SIGSTKSZ): Define fallback.
33826         (segv_handler, overflow_handler, c_stack_action)
33827         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
33828         implementation when libsigsegv is available, but only when using
33829         the library is necessary.
33830         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
33831         comment, explaining why XSI check fails on Linux.
33832         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
33833         * tests/test-c-stack2.sh: Tweak skip message.
33834         * NEWS: Document new link-time requirements.
33835
33836 2008-07-16  Eric Blake  <ebb9@byu.net>
33837
33838         c-stack: Expose false positives when not using libsigsegv.
33839         * modules/c-stack-tests (Files): Expand test.
33840         * tests/test-c-stack.c (main): Add means to conditionally trigger
33841         non-overflow SIGSEGV.
33842         * tests/test-c-stack2.sh: New file.
33843
33844 2008-07-14  Bruno Haible  <bruno@clisp.org>
33845
33846         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
33847         Reported by Eric Blake.
33848
33849 2008-07-14  Sam Steingold  <sds@gnu.org>
33850             Bruno Haible  <bruno@clisp.org>
33851
33852         New module libsigsegv.
33853         * modules/libsigsegv: New file.
33854         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
33855         modifications.
33856         * MODULES.html.sh (Signal handling): New section.
33857
33858 2008-07-14  Bruno Haible  <bruno@clisp.org>
33859
33860         * modules/unictype/ctype-* (Description): Add the word "function".
33861         Improves the resulting doc in MODULES.html.
33862
33863 2008-07-12  Ben Pfaff  <blp@gnu.org>
33864
33865         Add longlong module.
33866         * modules/longlong: New file.
33867
33868 2008-07-12  Bruno Haible  <bruno@clisp.org>
33869
33870         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
33871         to empty.
33872
33873 2008-07-10  Ben Pfaff  <blp@gnu.org>
33874
33875         Add isnan module.
33876         * doc/posix-functions/isnan.texi: Mention new module.
33877         * lib/math.in.h: Define isnan macro if we have decided to replace
33878         it.
33879         * m4/isnan.m4: New file.
33880         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
33881         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
33882         also.
33883         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
33884         redundancy.
33885         * m4/math_h.m4: Initialize and substitute variables for isnan
33886         module.
33887         * modules/isnan: New file.
33888         * modules/isnan-tests: New file.
33889         * modules/math: Add substitutions for new module.
33890         * tests/test-isnan.c: New file.
33891         * MODULES.html.sh: Mention new module.
33892
33893 2008-07-10  Ben Pfaff  <blp@gnu.org>
33894
33895         Add isnanf module.
33896         * lib/isnanf.m4: New file.
33897         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
33898         (gl_HAVE_ISNANF_IN_LIBM): New macro.
33899         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
33900         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
33901         * modules/isnanf: New file.
33902         * modules/isnanf-tests: New file.
33903         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
33904         files.
33905         * tests/test-isnanf-nolibm.c: factored most of its contents into
33906         new file tests/test-isnanf.h.
33907         * tests/test-isnanf.h: New file.
33908         * tests/test-isnanf.c: New file.
33909         * MODULES.html.sh: Mention new module.
33910         * doc/glibc-functions/isnanf.texi: Mention new module.
33911
33912 2008-07-10  Ben Pfaff  <blp@gnu.org>
33913
33914         Add isnand module.
33915         * lib/isnand.h: New file.
33916         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
33917         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
33918         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
33919         functionality also.
33920         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
33921         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
33922         (gl_HAVE_ISNAND_IN_LIBM): New macro.
33923         * modules/isnand: New file.
33924         * modules/isnand-tests: New file.
33925         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
33926         files.
33927         * tests/test-isnand-nolibm.c: factored most of its contents into
33928         new file tests/test-isnand.h.
33929         * tests/test-isnand.h: New file.
33930         * tests/test-isnand.c: New file.
33931         * MODULES.html.sh: Mention new module.
33932
33933 2008-07-10  Ben Pfaff  <blp@gnu.org>
33934
33935         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
33936         * lib/isnand.h: Rename lib/isnand-nolibm.h.
33937         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
33938         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
33939         * modules/isnanf-nolibm: Update references to renamed files.
33940         * modules/isnand-nolibm: Likewise.
33941         * modules/isnanf-nolibm-tests: Likewise.
33942         * modules/isnand-nolibm-tests: Likewise.
33943         * lib/frexp.c: Likewise.
33944         * lib/isfinite.c: Likewise.
33945         * lib/signbitd.c: Likewise.
33946         * lib/signbitf.c: Likewise.
33947         * lib/vasnprintf.c: Likewise.
33948         * tests/test-ceilf1.c: Likewise.
33949         * tests/test-ceilf2.c: Likewise.
33950         * tests/test-floorf1.c: Likewise.
33951         * tests/test-floorf2.c: Likewise.
33952         * tests/test-frexp.c: Likewise.
33953         * tests/test-round1.c: Likewise.
33954         * tests/test-round2.c: Likewise.
33955         * tests/test-roundf1.c: Likewise.
33956         * tests/test-strtod.c: Likewise.
33957         * tests/test-trunc1.c: Likewise.
33958         * tests/test-trunc2.c: Likewise.
33959         * tests/test-truncf1.c: Likewise.
33960         * tests/test-truncf2.c: Likewise.
33961         * NEWS: Mention the renamed header files.
33962
33963 2008-07-11  Jim Meyering  <meyering@redhat.com>
33964
33965         vc-list-files: make the last-resort awk code more portable
33966         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
33967         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
33968         does not support it.
33969
33970 2008-07-10  Eric Blake  <ebb9@byu.net>
33971
33972         Work with tar's bootstrap.
33973         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
33974         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
33975         an m4 comment.
33976
33977 2008-07-09  Jim Meyering  <meyering@redhat.com>
33978
33979         posix-shell.m4: fix typo that made this test malfunction
33980         * m4/posix-shell.m4: Remove capitalization in variable name.
33981
33982 2008-07-08  Bruno Haible  <bruno@clisp.org>
33983
33984         * m4/onceonly.m4: Update comments.
33985         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33986
33987 2008-07-04  Jim Meyering  <meyering@redhat.com>
33988
33989         * users.txt: Add vc-dwim.
33990         (bison, coreutils): Use the gitweb URL.
33991
33992 2008-07-03  Jim Meyering  <meyering@redhat.com>
33993
33994         * users.txt: Add libffcall.  From Sam Steingold.
33995
33996 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
33997
33998         getdate.y: do not ignore TZ with relative day, month or year offset
33999         * lib/getdate.y (get_date): Move the tz-handling block to follow the
34000         relative-date-handling, since otherwise, the latter would clobber the
34001         sole output (an updated Start value) of the tz-handling block.
34002         * tests/test-getdate.c: Tests for the fix
34003
34004 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34005
34006         Recognize 'foo_LIBRARIES += libgnu.a'.
34007         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
34008         makefile snippet has already specified an installation location,
34009         also using '+='.
34010
34011 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
34012
34013         getdate.y: factor out common actions
34014         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
34015         Use them in place of open-coded actions.
34016
34017 2008-07-01  Simon Josefsson  <simon@josefsson.org>
34018
34019         Add self-test for getdate module.
34020         * modules/getdate-tests: New file.
34021         * tests/test-getdate.c: New file.
34022
34023 2008-06-29  Bruno Haible  <bruno@clisp.org>
34024
34025         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
34026         .gitignore.
34027         Reported by Sylvain Beucler <beuc@beuc.net>.
34028
34029 2008-06-29  Bruno Haible  <bruno@clisp.org>
34030
34031         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
34032         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
34033
34034 2008-06-29  Bruno Haible  <bruno@clisp.org>
34035
34036         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
34037         EXTRA_DIST.
34038         Reported by Sylvain Beucler <beuc@beuc.net>.
34039
34040 2008-06-26  Jim Meyering  <meyering@redhat.com>
34041
34042         make several modules depend on the "open" module
34043         This provides slightly increased consistency when opening-for-write
34044         the name of a non-directory spelled with a trailing slash.
34045         * modules/chdir-safer: Likewise.
34046         * modules/chown: Likewise.
34047         * modules/clean-temp: Likewise.
34048         * modules/copy-file: Likewise.
34049         * modules/fchdir: Likewise.
34050         * modules/fcntl-safer: Likewise.
34051         * modules/pipe: Likewise.
34052         * modules/utime: Likewise.
34053         Prompted by Eric Blake and Bruno Haible.
34054
34055 2008-06-24  Andreas Schwab  <schwab@suse.de>
34056
34057         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
34058         literals can be used as initializers for global variables.
34059
34060 2008-06-23  Eric Blake  <ebb9@byu.net>
34061
34062         Make gnulib-cache.m4 easier to diff.
34063         * gnulib-tool (func_import): Allow newlines when reading cached
34064         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
34065
34066 2008-06-23  Bruno Haible  <bruno@clisp.org>
34067
34068         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
34069         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
34070         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
34071         m4/signalblocking.m4.
34072         (gl_PREREQ_SIGACTION): Don't invoke it.
34073         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
34074         gl_PREREQ_SIG_HANDLER_H.
34075         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34076         Don't check for sigaction here.
34077
34078 2008-06-23  Bruno Haible  <bruno@clisp.org>
34079
34080         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
34081         (install_handlers): Don't set the SA_RESETHAND flag.
34082
34083 2008-06-23  Bruno Haible  <bruno@clisp.org>
34084
34085         * m4/sigaction.m4: Comment fixes.
34086         * lib/signal.in.h: Likewise.
34087
34088 2008-06-23  Eric Blake  <ebb9@byu.net>
34089
34090         Fix typo.
34091         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
34092
34093         Avoid SA_ namespace.
34094         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
34095         Reported by Ralf Wildenhues.
34096
34097         Avoid test failure due to SA_RESTORER.
34098         * tests/test-sigaction.c (SA_MASK): New macro.
34099         (main): Avoid failing due to extension flags being set.
34100         Reported by Jim Meyering.
34101
34102         Revert use of sig-handler.h in sigprocmask.c.
34103         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
34104         it requires the existence of struct sigaction.
34105         * lib/sigprocmask.c (handler_t): Restore typedef.
34106         (rpl_signal, old_handlers): Use local type.
34107
34108 2008-06-22  Bruno Haible  <bruno@clisp.org>
34109
34110         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
34111         conditionally.
34112         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34113
34114 2008-06-22  Bruno Haible  <bruno@clisp.org>
34115
34116         * doc/posix-functions/siginterrupt.texi: Move note.
34117
34118         * lib/signal.in.h (SA_RESTART): New macro.
34119         * lib/sigaction.c: Update comment.
34120
34121         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
34122
34123         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
34124         (gl_PREREQ_SIGPROCMASK): Invoke it.
34125         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
34126
34127         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
34128
34129         * lib/sigprocmask.c: Update a comment.
34130
34131 2008-06-21  Eric Blake  <ebb9@byu.net>
34132
34133         Use sigaction module rather than signal().
34134         * modules/c-stack (Depends-on): Add sigaction.
34135         * modules/fatal-signal (Depends-on): Likewise.
34136         * modules/nanosleep (Depends-on): Likewise.
34137         * modules/sigprocmask (Files): Add sig-handler.h.
34138         * modules/sigaction (Files): Likewise.
34139         * lib/sig-handler.h (get_handler): New file, suggested by Paul
34140         Eggert.
34141         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
34142         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
34143         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
34144         (init_fatal_signals): Likewise.
34145         * lib/nanosleep.c (rpl_nanosleep): Likewise.
34146         (siginterrupt): Delete fallback.
34147         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
34148         instead.
34149         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
34150         siginterrupt.
34151
34152         New module sigaction, for mingw.
34153         * modules/sigaction: New module...
34154         * modules/sigaction-tests: ...and its test.
34155         * m4/sigaction.m4: New file.
34156         * lib/sigaction.c: Likewise.
34157         * tests/test-sigaction.c: Likewise.
34158         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
34159         * modules/signal (Makefile.am): Likewise.
34160         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
34161         needed.
34162         * doc/posix-headers/signal.texi (signal.h): Mention provided
34163         types.
34164         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
34165         that sigaction is preferable.
34166         * doc/posix-functions/sigaction.texi (sigaction): Mention new
34167         module.
34168         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34169         sigaction.
34170
34171         Improve robustness of sigprocmask by overriding signal.
34172         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
34173         is in use.
34174         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
34175         (SIGKILL, SIGSTOP): Provide fallbacks.
34176         (rpl_signal): Implement.
34177         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
34178         signal can be called inside handlers.
34179
34180         Fix nanosleep module on mingw.
34181         * modules/nanosleep (Depends-on): Add sys_select.
34182         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
34183
34184         Fix licensing of sigprocmask.
34185         * modules/raise (License): Relicense as LGPL.
34186
34187 2008-06-21  Bruno Haible  <bruno@clisp.org>
34188
34189         * lib/propername.c (proper_name_utf8): Don't use the transliterated
34190         result if it contains question marks.
34191         Reported by Michael Geng <linux@michaelgeng.de>.
34192
34193 2008-06-19  Bruno Haible  <bruno@clisp.org>
34194
34195         Fix CVS-ism.
34196         * doc/gnulib.texi: Include updated-stamp.texi.
34197         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
34198         (updated-stamp.texi): New rule.
34199         (gnulib.info): Depend on it.
34200         * doc/.gitignore: Add updated-stamp.texi.
34201         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
34202
34203 2008-06-19  Bruno Haible  <bruno@clisp.org>
34204
34205         * doc/Makefile (gnulib.info): Update and simplify dependencies.
34206         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
34207
34208 2008-06-19  Eric Blake  <ebb9@byu.net>
34209
34210         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
34211         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
34212         Reported by Stepan Kasal.
34213
34214 2008-06-18  Bruno Haible  <bruno@clisp.org>
34215
34216         * lib/fatal-signal.c (init_fatal_signals): Add comment.
34217         Reported by Eric Blake.
34218
34219 2008-06-18  Eric Blake  <ebb9@byu.net>
34220
34221         Work around cygwin 1.5.25 strsignal bug.
34222         * tests/test-strsignal.c: Allow for const char *.
34223         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
34224
34225 2008-06-18  Simon Josefsson  <simon@josefsson.org>
34226
34227         * users.txt: Update URL to article and add author/date
34228         information.
34229
34230 2008-06-17  Bruno Haible  <bruno@clisp.org>
34231
34232         New macro gl_DISABLE_THREADS.
34233         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
34234         if the user did not pass --enable-threads or --disable-threads option.
34235         (gl_DISABLE_THREADS): New macro.
34236         Reported by Eric Blake <ebb9@byu.net>.
34237
34238 2008-06-17  Bruno Haible  <bruno@clisp.org>
34239
34240         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
34241         when the macro ignores it.
34242         Based on a patch by Eric Blake <ebb9@byu.net>.
34243
34244 2008-06-17  Bruno Haible  <bruno@clisp.org>
34245
34246         * modules/tls (License): Change to LGPLv2+.
34247         Reported by Eric Blake.
34248
34249 2008-06-17  Eric Blake  <ebb9@byu.net>
34250
34251         Simplify c-stack prerequisites.
34252         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
34253         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
34254         no longer requires <ucontext.h> to exist.  Optimize setrlimit
34255         check.
34256         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
34257         <sys/resource.h>.
34258
34259         Move c-stack test into testsuite.
34260         * modules/c-stack-tests: New file.
34261         * lib/c-stack.c [DEBUG]: Move test program...
34262         * tests/test-c-stack.c: ...into this new file.  Skip rather than
34263         fail test if sigaltstack is lacking.
34264         * tests/test-c-stack.sh: New driver file.
34265
34266 2008-06-16  Eric Blake  <ebb9@byu.net>
34267
34268         Use raise module consistently.
34269         * modules/fatal-signal (Depends-on): Add raise.
34270         * modules/sigprocmask (Depends-on): Likewise.
34271         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
34272         * lib/sigprocmask.c (sigprocmask): Likewise.
34273         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34274         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
34275
34276         Fix compliance bug in sigpending.
34277         * lib/sigprocmask.c (sigpending): Return pending array via
34278         parameter, not return value.
34279
34280 2008-06-14  Eric Blake  <ebb9@byu.net>
34281
34282         Improve obstack-printf test code.
34283         * tests/test-obstack-printf.c (test_function): Fix comment, and
34284         simplify usage of obstack_* in macros.  Add a test for coverage.
34285         Reported by Bruno Haible.
34286
34287 2008-06-14  Bruno Haible  <bruno@clisp.org>
34288
34289         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
34290         array size as a constant, not as a const variable.
34291         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
34292         AC_USE_SYSTEM_EXTENSIONS.
34293         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
34294         Test whether the obstack_printf function actually exists.
34295         * modules/obstack-printf (Depends-on): Add extensions.
34296         (Include): Remove obstack.h.
34297         * modules/obstack-printf-posix (Depends-on): Add extensions.
34298         (Include): Remove obstack.h.
34299
34300 2008-06-13  Eric Blake  <ebb9@byu.net>
34301
34302         Add obstack-printf and obstack-printf-posix modules.
34303         * modules/obstack-printf: New file.
34304         * modules/obstack-printf-posix: Likewise.
34305         * MODULES.html.sh (Misc): Mention them.
34306         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
34307         Likewise.
34308         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
34309         Likewise.
34310         * modules/stdio (Makefile.am): Accomodate new modules.
34311         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34312         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
34313         Declare.
34314         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
34315         functions.
34316         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
34317         (gl_REPLACE_OBSTACK_PRINTF): New macros
34318         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
34319         * tests/test-obstack-printf.c: New file.
34320         * modules/obstack-printf-tests: Likewise.
34321         * modules/obstack-printf-posix-tests: Likewise.
34322
34323 2008-06-11  Bruno Haible  <bruno@clisp.org>
34324
34325         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
34326         * lib/open.c: Include errno.h.
34327         (open): Fail when attempting to write to a file that has a trailing
34328         slash.
34329         * tests/test-open.c (main): Test against trailing slash bug.
34330         * doc/posix-functions/open.texi: Mention the trailing slash bug.
34331
34332 2008-06-10  Bruno Haible  <bruno@clisp.org>
34333
34334         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
34335         for $? to work inside the trap command, with various /bin/sh-s.
34336         * tests/test-vc-list-files-cvs.sh: Likewise.
34337
34338 2008-06-10  Bruno Haible  <bruno@clisp.org>
34339
34340         * lib/acl-internal.h: Don't include gettext.h here.
34341         * lib/set-mode-acl.c: Include gettext.h here.
34342         * lib/copy-acl.c: Likewise.
34343
34344 2008-06-10  Bruno Haible  <bruno@clisp.org>
34345
34346         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
34347         * lib/wait-process.c (wait_subprocess): Likewise.
34348         * lib/execute.h (execute): Add termsigp argument.
34349         * lib/execute.c (execute): Likewise.
34350         * lib/csharpcomp.c (compile_csharp_using_pnet,
34351         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
34352         * lib/csharpexec.c (execute_csharp_using_pnet,
34353         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
34354         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
34355         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
34356         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
34357         is_jikes_present): Update.
34358         * lib/javaexec.c (execute_java_class): Update.
34359         * lib/javaversion.c (execute_and_read_line): Update.
34360         * NEWS: Document the changes.
34361         Reported by Eric Blake.
34362
34363 2008-06-10  Eric Blake  <ebb9@byu.net>
34364
34365         Add missing include.
34366         * tests/test-strstr.c (includes): Add <signal.h>.
34367         * tests/test-strcasestr.c (includes): Likewise.
34368         * tests/test-memmem.c (includes): Likewise.
34369
34370 2008-06-10  Bruno Haible  <bruno@clisp.org>
34371
34372         * lib/wait-process.c (wait_subprocess): Add an assertion.
34373
34374 2008-06-10  Bruno Haible  <bruno@clisp.org>
34375
34376         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
34377
34378 2008-06-10  Bruno Haible  <bruno@clisp.org>
34379
34380         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
34381         using alarm().
34382         * tests/test-strcasestr.c (main): Likewise.
34383         * tests/test-strstr.c (main): Likewise.
34384
34385 2008-06-09  Bruno Haible  <bruno@clisp.org>
34386
34387         Work around the Solaris 10 ACE ACLs ABI change.
34388         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
34389         declare if ACL_NO_TRIVIAL is present.
34390         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
34391         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
34392         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
34393         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
34394         define if ACL_NO_TRIVIAL is present.
34395         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
34396         and use the current ABI.
34397         (file_has_acl): Use same #if condition as elsewhere.
34398         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
34399         in use, and use the current ABI.
34400         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
34401         Reported by Jim Meyering.
34402
34403 2008-06-09  Eric Blake  <ebb9@byu.net>
34404
34405         Work around environments that (stupidly) ignore SIGALRM.
34406         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
34407         before using alarm().
34408         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34409         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
34410         Reported by Ian Beckwith <ianb@erislabs.net>.
34411
34412         Produce autobuild blurb earlier in log.
34413         * modules/autobuild (configure.ac-early): Move AB_INIT here.
34414
34415 2008-06-09  Jim Meyering  <meyering@redhat.com>
34416         and OndÅ™ej Vašík  <ovasik@redhat.com>
34417
34418         utimens.c: correct kernel bug work-around
34419         OndÅ™ej Vašík found that the invalid return value of 280 indicates
34420         failure, not success, and the kernel bug we're trying to work
34421         around affects not just the utimensat call, but also the fallback
34422         futimens call.
34423         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
34424         not success.
34425         [HAVE_FUTIMENS]: Use the same work-around, here.
34426
34427 2008-06-09  Jim Meyering  <meyering@redhat.com>
34428
34429         add more guards around definition of ACE_-related code
34430         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
34431         ALLOW and ACE_OWNER are also defined.
34432
34433 2008-06-08  Bruno Haible  <bruno@clisp.org>
34434
34435         * lib/acl-internal.h: Add me as co-author.
34436         * lib/file-has-acl.c: Likewise.
34437         * lib/set-mode-acl.c: Likewise.
34438         * lib/copy-acl.c: Likewise.
34439
34440 2008-06-08  Bruno Haible  <bruno@clisp.org>
34441
34442         Add support for AIX ACLs.
34443         * lib/acl-internal.h (acl_nontrivial): New declaration.
34444         * lib/file-has-acl.c (acl_nontrivial): New function.
34445         (file_has_acl): Add implementation using AIX 4 ACL API.
34446         * lib/set-mode-acl.c (qset_acl): Likewise.
34447         * lib/copy-acl.c (qcopy_acl): Likewise.
34448
34449 2008-06-08  Bruno Haible  <bruno@clisp.org>
34450
34451         Add support for HP-UX ACLs.
34452         * lib/acl-internal.h (acl_nontrivial): New declaration.
34453         * lib/file-has-acl.c (acl_nontrivial): New function.
34454         (file_has_acl): Add implementation using HP-UX 11 ACL API.
34455         * lib/set-mode-acl.c (qset_acl): Likewise.
34456         * lib/copy-acl.c (qcopy_acl): Likewise.
34457
34458 2008-06-08  Bruno Haible  <bruno@clisp.org>
34459
34460         Add support for Cygwin ACLs.
34461         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
34462         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
34463         the chmod_or_fchmod call.
34464         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
34465
34466 2008-06-08  Bruno Haible  <bruno@clisp.org>
34467
34468         Fix bug with setuid modes in Solaris 10+ code.
34469         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
34470         succeeded, when the mode contains some special bits.
34471
34472 2008-06-08  Bruno Haible  <bruno@clisp.org>
34473
34474         Add support for Solaris 7..10 ACLs.
34475         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
34476         declarations.
34477         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
34478         functions.
34479         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
34480         * lib/set-mode-acl.c (qset_acl): Likewise.
34481         * lib/copy-acl.c (qcopy_acl): Likewise.
34482
34483 2008-06-08  Bruno Haible  <bruno@clisp.org>
34484
34485         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
34486         declaration.
34487         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
34488         (acl_access_nontrivial): Remove MacOS X case.
34489         (file_has_acl): Use acl_extended_nontrivial.
34490         * lib/copy-acl.c (qcopy_acl): Likewise.
34491
34492 2008-06-08  Bruno Haible  <bruno@clisp.org>
34493
34494         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
34495
34496 2008-06-08  Jim Meyering  <meyering@redhat.com>
34497
34498         * modules/acl (Maintainer): Add Bruno Haible.
34499
34500 2008-06-07  Bruno Haible  <bruno@clisp.org>
34501
34502         Improve support for Tru64 ACLs.
34503         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
34504         ACL on OSF/1.
34505
34506 2008-06-07  Bruno Haible  <bruno@clisp.org>
34507
34508         Add support for MacOS X ACLs.
34509         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
34510         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
34511         * lib/set-mode-acl.c (qset_acl): Likewise.
34512         * lib/copy-acl.c (qcopy_acl): Likewise.
34513
34514 2008-06-07  Bruno Haible  <bruno@clisp.org>
34515
34516         Fix memory leak introduced on 2008-05-22.
34517         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
34518         use.
34519
34520 2008-06-07  Bruno Haible  <bruno@clisp.org>
34521
34522         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
34523         to construct an empty ACL.
34524
34525 2008-06-07  Bruno Haible  <bruno@clisp.org>
34526
34527         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
34528         precisely.
34529         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
34530
34531 2008-06-07  Bruno Haible  <bruno@clisp.org>
34532
34533         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
34534         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
34535
34536 2008-06-07  Bruno Haible  <bruno@clisp.org>
34537
34538         * doc/posix-functions/_setjmp.texi: Explain the use of this function
34539         regardless of POSIX.
34540         * doc/posix-functions/_longjmp.texi: Likewise.
34541         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
34542         SystemV platform in this case.
34543
34544 2008-06-06  Eric Blake  <ebb9@byu.net>
34545
34546         Document abort() bugs.
34547         * doc/posix-functions/abort.texi (abort): Mention anomalies.
34548
34549         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
34550         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
34551         sigsetjmp.
34552         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
34553         siglongjmp, but only as a macro.
34554         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
34555         is obsolete.
34556         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
34557
34558         Tweak documentation to cover cygwin argz bugs.
34559         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
34560         argz bug fix; no code change needed since no cygwin releases
34561         occurred between the last fix and the bug being tested.
34562         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
34563         module and recently fixed cygwin bugs.
34564         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
34565         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
34566         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
34567         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
34568         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
34569         Likewise.
34570         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
34571         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
34572         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
34573         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
34574         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
34575         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
34576         Likewise.
34577
34578         Avoid gcc warning on cygwin.
34579         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
34580         !ACL_NO_TRIVIAL]: Avoid unused variable.
34581
34582 2008-06-05  Eric Blake  <ebb9@byu.net>
34583
34584         Be tolerant of UNKNOWN version in gnulib-tool test dir.
34585         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
34586         git-version-gen fails to come up with a version.
34587         Reported by Simon Josefsson.
34588
34589 2008-06-05  Jim Meyering  <meyering@redhat.com>
34590             Paul Eggert  <eggert@cs.ucla.edu>
34591
34592         utimens.c: work around a probable Linux kernel bug
34593         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
34594         appears to be a kernel bug that causes utimensat to return 280
34595         instead of 0, indicating success.
34596
34597 2008-06-04  Bruno Haible  <bruno@clisp.org>
34598
34599         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
34600         2008-06-01 commit.
34601
34602 2008-06-04  Bruno Haible  <bruno@clisp.org>
34603
34604         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
34605         * lib/file-has-acl.c (acl_access_nontrivial): New function.
34606         (file_has_acl): Use it. Save errno afterwards.
34607         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
34608
34609 2008-06-03  Bruno Haible  <bruno@clisp.org>
34610
34611         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
34612         draft code. Simplify #ifs.
34613         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
34614         Put Solaris code after POSIX-draft code. Fix comments regarding
34615         Solaris 10, HP-UX. Mention Cygwin.
34616         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
34617
34618 2008-06-03  Eric Blake  <ebb9@byu.net>
34619
34620         Provide fallback for older kernels.
34621         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
34622         Provide runtime fallback if kernel lacks support.
34623         Reported by Mike Frysinger.
34624
34625 2008-06-02  Bruno Haible  <bruno@clisp.org>
34626
34627         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
34628         it exists.
34629
34630 2008-06-02  Bruno Haible  <bruno@clisp.org>
34631
34632         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
34633         * lib/copy-acl.c (qcopy_acl): Update comment.
34634
34635 2008-06-02  Bruno Haible  <bruno@clisp.org>
34636
34637         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
34638         like ACL APIs.
34639
34640 2008-06-02  Bruno Haible  <bruno@clisp.org>
34641
34642         * tests/test-file-has-acl.sh: Use different code for Cygwin.
34643         * tests/test-set-mode-acl.sh: Likewise.
34644         * tests/test-copy-acl.sh: Likewise.
34645         * tests/test-copy-file.sh: Likewise.
34646
34647 2008-06-02  Bruno Haible  <bruno@clisp.org>
34648
34649         * tests/test-file-has-acl.sh: Remove unused code.
34650
34651 2008-06-01  Bruno Haible  <bruno@clisp.org>
34652
34653         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
34654         (copy_acl): Just a wrapper around qcopy_acl that emits the error
34655         messages.
34656         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
34657
34658 2008-06-01  Bruno Haible  <bruno@clisp.org>
34659
34660         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
34661         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
34662         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
34663         APIs.
34664         * modules/acl-tests (configure.ac): Remove tests now contained in
34665         m4/acl.m4.
34666
34667 2008-06-02  Jim Meyering  <meyering@redhat.com>
34668
34669         announce-gen: use a better key-server host name
34670         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
34671         it may be more consistently reliable.  Suggested by Werner Koch
34672         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
34673
34674 2008-06-01  Bruno Haible  <bruno@clisp.org>
34675
34676         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
34677         Reported by Voroskoi Andras <voroskoi@gmail.com>.
34678
34679 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
34680
34681         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
34682
34683 2008-06-01  Bruno Haible  <bruno@clisp.org>
34684
34685         New ACL tests.
34686         * tests/test-file-has-acl.sh: New file.
34687         * tests/test-file-has-acl.c: New file.
34688         * tests/test-set-mode-acl.sh: New file.
34689         * tests/test-set-mode-acl.c: New file.
34690         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
34691         * tests/test-copy-acl.c: New file.
34692         * modules/acl-tests: New file, based on modules/copy-file-tests.
34693         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
34694         (Depends-on): Add acl-tests.
34695         (configure.ac): Remove checks.
34696         (Makefile.am): Don't create test-sameacls program here any more.
34697
34698 2008-06-01  Bruno Haible  <bruno@clisp.org>
34699
34700         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
34701         * tests/test-sameacls.c: Include progname.h.
34702         (main): Invoke set_program_name. Portability fixes for MacOS X,
34703         Solaris, HP-UX.
34704
34705 2008-06-01  Bruno Haible  <bruno@clisp.org>
34706
34707         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
34708         function.
34709         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
34710
34711 2008-06-01  Bruno Haible  <bruno@clisp.org>
34712
34713         * modules/rpmatch (Depends-on): Add strdup.
34714
34715 2008-06-01  Bruno Haible  <bruno@clisp.org>
34716
34717         * lib/pipe.c: Include unistd-safer.h.
34718         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
34719         * modules/pipe (Depends-on): Add unistd-safer.
34720
34721 2008-05-30  Simon Josefsson  <simon@josefsson.org>
34722
34723         * modules/autobuild (configure.ac): Call AB_INIT.
34724
34725 2008-05-30  Simon Josefsson  <simon@josefsson.org>
34726
34727         * tests/test-getaddrinfo.c: Don't print debug messages by default.
34728         Suggested by Bruno Haible <bruno@clisp.org>.
34729
34730 2008-05-30  Simon Josefsson  <simon@josefsson.org>
34731
34732         * tests/test-base64.c: Cast size_t to unsigned long when invoking
34733         printf.  Use %lu instead of %d.  Reported by Bruno Haible
34734         <bruno@clisp.org>.
34735
34736 2008-05-29  Eric Blake  <ebb9@byu.net>
34737
34738         Prefer new POSIX 200x interfaces over futimesat.
34739         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
34740         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
34741         when available.
34742         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
34743
34744 2008-05-28  Bruno Haible  <bruno@clisp.org>
34745
34746         * modules/stpcpy (License): Change to LGPLv2+.
34747         Requested by David Lutterkort <dlutter@redhat.com>.
34748
34749 2008-05-27  Bruno Haible  <bruno@clisp.org>
34750
34751         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
34752         current mingw.
34753         Reported by Jose E. Marchesi <jemarch@gnu.org>.
34754
34755 2008-05-27  Bruno Haible  <bruno@clisp.org>
34756
34757         * modules/iconv_open (Link): New section, from module 'iconv'.
34758         * modules/striconv (Link): Likewise.
34759         * modules/striconveh (Link): Likewise.
34760         * modules/xstriconv (Link): Likewise.
34761         * modules/unicodeio (Link): Likewise.
34762         * modules/propername (Link): Likewise.
34763         Reported by Jim Meyering.
34764
34765 2008-05-26  Jim Meyering  <meyering@redhat.com>
34766
34767         sha256: do not artificially restrict buffer length to be < 2^32
34768         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
34769         uint32_t to size_t.
34770         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
34771         to match.
34772
34773         avoid unaligned access errors, e.g., on sparc
34774         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
34775         direct access through a possibly-unaligned uint64* pointer.
34776         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
34777         direct access through a possibly-unaligned uint32* pointer.
34778         Prompted by this patch from Tom "spot" Callaway:
34779         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
34780
34781         sha512.c: fix typo in comment
34782         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
34783
34784 2008-05-25  Bruno Haible  <bruno@clisp.org>
34785
34786         * lib/set-mode-acl.c: Renamed from lib/acl.c.
34787         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
34788         (Makefile.am): Update lib_SOURCES.
34789
34790 2008-05-25  Bruno Haible  <bruno@clisp.org>
34791
34792         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
34793
34794 2008-05-25  Jim Meyering  <meyering@redhat.com>
34795
34796         useless-if-before-free: freed expr may have white-space differences
34797         * build-aux/useless-if-before-free: Recognize cases in which the
34798         freed expression differs from the tested one in embedded white
34799         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
34800         $1 was used, so we can't make any regexp shy.  Improved tests now
34801         detect this.
34802
34803         useless-if-before-free: accept white space in the expression.
34804         * build-aux/useless-if-before-free: For now, any white space
34805         in the expression must be identical in the free argument.
34806
34807         useless-if-before-free: efficiency tweak
34808         * build-aux/useless-if-before-free: Make the expression-matching
34809         regexp "shy".
34810         Make the *outer* regexp shy, not the expr-matching one.
34811
34812         update code-in-comment to accept cast of free arg
34813         * build-aux/useless-if-before-free: Update regexp.
34814
34815 2008-05-25  Bruno Haible  <bruno@clisp.org>
34816
34817         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
34818         * modules/copy-file-tests (Files, Makefile.am): Update.
34819         * tests/test-copy-file.c (func_test_copy): Update.
34820
34821 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
34822
34823         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
34824
34825 2008-05-23  Bruno Haible  <bruno@clisp.org>
34826
34827         Improve support for ACLs on OSF/1.
34828         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
34829         Remove fallback for unknown flavors of ACLs.
34830
34831 2008-05-22  Bruno Haible  <bruno@clisp.org>
34832
34833         Add support for ACLs on OSF/1.
34834         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
34835         replacements.
34836         (acl_free_text): New macro fallback.
34837         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
34838         acl_free.
34839         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
34840         acl_free_text function. Require AC_C_INLINE.
34841
34842 2008-05-22  Bruno Haible  <bruno@clisp.org>
34843
34844         Make copy_acl work on MacOS X 10.5.
34845         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
34846         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
34847         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
34848         If MODE_INSIDE_ACL, don't assume that every system has the same text
34849         representation for ACLs as FreeBSD.
34850         * lib/copy-acl.c (copy_acl): Add support for platforms with
34851         !MODE_INSIDE_ACL.
34852         * lib/file-has-acl.c (file_has_acl): Likewise.
34853         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
34854         FreeBSD, MacOS X, or IRIX, respectively.
34855
34856 2008-05-22  Bruno Haible  <bruno@clisp.org>
34857
34858         * lib/acl.h: Don't include <sys/acl.h>.
34859         (GETACLCNT): Move fallback to lib/acl-internal.h.
34860         * lib/acl-internal.h: Include <sys/acl.h> here.
34861         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
34862
34863 2008-05-22  Bruno Haible  <bruno@clisp.org>
34864
34865         Split off copy_acl function to separate file.
34866         * lib/copy-acl.c: New file, extracted from lib/acl.c.
34867         * lib/acl.c (copy_acl): Moved function to separate file.
34868         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
34869         * modules/acl (Files): Add lib/copy-acl.c.
34870         (Makefiles.am): Augment lib_SOURCES.
34871
34872 2008-05-22  Bruno Haible  <bruno@clisp.org>
34873
34874         * modules/copy-file-tests: New file.
34875         * tests/test-copy-file.sh: New file.
34876         * tests/test-copy-file.c: New file.
34877         * tests/test-copy-file-sameacls.c: New file.
34878
34879 2008-05-22  Eric Blake  <ebb9@byu.net>
34880
34881         Avoid gcc warning.
34882         * tests/test-memcmp.c (main): Pass NULL indirectly.
34883
34884 2008-05-21  Bruno Haible  <bruno@clisp.org>
34885
34886         Add reference doc about ACLs.
34887         * doc/acl-resources.txt: New file.
34888         * doc/acl-cygwin.txt: New file.
34889
34890 2008-05-21  Bruno Haible  <bruno@clisp.org>
34891
34892         Avoid one more warning from gcc.
34893         * lib/vasnprintf.c (IF_LINT): Update comments.
34894         (VASNPRINTF): Use it also for the 'prefix' array initializer.
34895
34896 2008-05-21  Jim Meyering  <meyering@redhat.com>
34897
34898         avoid a warning from gcc
34899         * lib/vasnprintf.c (IF_LINT): Define.
34900         (scale10_round_decimal_long_double):
34901         Use it to avoid a "may be used uninitialized" warning.
34902         (scale10_round_decimal_double): Likewise.
34903
34904 2008-05-21  Simon Josefsson  <simon@josefsson.org>
34905
34906         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
34907         declared.
34908
34909 2008-05-20  Bruno Haible  <bruno@clisp.org>
34910
34911         * tests/test-memcmp.c (main): Test also the sign of the result. Test
34912         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
34913
34914 2008-05-20  Simon Josefsson  <simon@josefsson.org>
34915
34916         * modules/memcmp-tests: New file.
34917         * tests/test-memcmp.c: New file.
34918
34919 2008-05-19  Bruno Haible  <bruno@clisp.org>
34920
34921         * modules/propername (Notice, configure.ac): Put quoted "..." into
34922         --keyword option.
34923         * lib/propername.h: Update comments accordingly.
34924         Reported by Eric Blake.
34925
34926 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
34927
34928         * modules/getpass-gnu (Depends-on): Add fseeko.
34929
34930 2008-05-19  Simon Josefsson  <simon@josefsson.org>
34931
34932         * modules/base64-tests: New file.
34933
34934 2008-05-19  Bo Borgerson <gigabo@gmail.com>
34935
34936         * lib/base64.c (base64_decode_ctx): If a decode context structure
34937         was passed in use it to ignore newlines.  If a context structure
34938         was _not_ passed in, continue to treat newlines as garbage (this
34939         is the historical behavior).  Formerly base64_decode.
34940         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
34941         takes a decode context structure.
34942         * lib/base64.h (base64_decode): Macro for four-argument calls.
34943         (base64_decode_alloc): Likewise.
34944         * lib/base64.c (base64_decode_ctx): If a decode context structure
34945         was passed in use it to ignore newlines.  If a context structure
34946         was _not_ passed in, continue to treat newlines as garbage (this
34947         is the historical behavior).  Formerly base64_decode.
34948         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
34949         takes a decode context structure.
34950         * lib/base64.h (base64_decode): Macro for four-argument calls.
34951         (base64_decode_alloc): Likewise.
34952
34953 2008-05-19  Jim Meyering  <meyering@redhat.com>
34954
34955         avoid a warning from gcc
34956         * lib/trim.c (IF_LINT): Define.
34957         (trim2): Use it to avoid a "may be used uninitialized" warning.
34958
34959         Fix doc typo.
34960         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
34961
34962 2008-05-19  Bruno Haible  <bruno@clisp.org>
34963
34964         * doc/glibc-functions/getpass.texi: Document limits of other
34965         implementations.
34966
34967 2008-05-19  Simon Josefsson  <simon@josefsson.org>
34968             Bruno Haible <bruno@clisp.org>
34969
34970         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
34971
34972 2008-05-18  Bruno Haible  <bruno@clisp.org>
34973
34974         * modules/propername: New file, from GNU gettext.
34975         * lib/propername.h: New file, from GNU gettext.
34976         * lib/propername.c: New file, from GNU gettext.
34977         * MODULES.html.sh (Internationalization functions): Add propername.
34978
34979 2008-05-16  Jim Meyering  <meyering@redhat.com>
34980             Bruno Haible  <bruno@clisp.org>
34981
34982         Avoid some warnings from "gcc -Wshadow".
34983         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
34984
34985 2008-05-15  Eric Blake  <ebb9@byu.net>
34986
34987         Extend previous patch to cygwin 1.7.0.
34988         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
34989         fast implementation in cygwin >= 1.7.0.
34990         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
34991         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34992
34993 2008-05-15  Bruno Haible  <bruno@clisp.org>
34994
34995         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
34996         implementation in glibc >= 2.9.
34997         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
34998         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34999
35000 2008-05-15  Bruno Haible  <bruno@clisp.org>
35001
35002         * MODULES.html.sh (Internationalization functions): Remove linebreak.
35003         (Unicode string functions): Add unilbrk/*.
35004         Reported by Karl Berry.
35005
35006 2008-05-15  Eric Blake  <ebb9@byu.net>
35007
35008         Fix violation of <stdbool.h> replacement in regex.
35009         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
35010         * lib/regexec.c (re_search_internal): Likewise.
35011         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
35012
35013 2008-05-15  Jim Meyering  <meyering@redhat.com>
35014
35015         avoid distracting test output when git or cvs is not found
35016         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
35017         * tests/test-vc-list-files-git.sh: Likewise.
35018
35019 2008-05-15  Eric Blake  <ebb9@byu.net>
35020
35021         Glibc finally accepted the memmem speedup code, bugzilla #5514.
35022         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
35023         glibc version.
35024         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
35025         * doc/posix-functions/strstr.texi (strstr): Likewise.
35026         * lib/str-two-way.h (MAX): Sychronize with glibc.
35027
35028 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
35029
35030         * lib/regcomp.c (optimize_utf8): Add a note on why we test
35031         opr.ctx_type.
35032         (calc_first): Initialize constraint field.
35033         (duplicate_node_closure): Use it instead of special casing ANCHORS.
35034         Fix grammar.
35035         (duplicate_node): Merge constraint field for all node types.
35036         (calc_eclosure_iter): Look at constraint field for all node types.
35037         * lib/regex_internal.c (create_cd_newstate): Don't look at
35038         opr.ctx_type.
35039
35040 2008-05-14  Bruno Haible  <bruno@clisp.org>
35041
35042         Help GCC to do better code generation.
35043         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
35044         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
35045         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
35046         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
35047         Declare with attribute 'malloc' if supported.
35048
35049 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
35050
35051         use "echo STR|wc -c" rather than unportable "expr length STR"
35052         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
35053         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
35054
35055 2008-05-14  Jim Meyering  <meyering@redhat.com>
35056
35057         use dd ibs=$n count=1 ... rather than less-portable head -c$n
35058         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
35059         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
35060         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
35061         via Collin Lasse.
35062
35063 2008-05-14  Eric Blake  <ebb9@byu.net>
35064
35065         Avoid quadratic growth in gl_LIBSOURCES.
35066         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
35067         Suggested by Bruno Haible.
35068
35069         Test xmemdup0.
35070         * modules/xmemdup0-tests: New file.
35071         * tests/test-xmemdup0.c: Likewise.
35072
35073 2008-05-13  Eric Blake  <ebb9@byu.net>
35074
35075         Split xmemdup0 into its own module.
35076         * modules/xmemdup0: New file.
35077         * lib/xmemdup0.h: Likewise.
35078         * lib/xmemdup0.c: Likewise.
35079         * MODULES.html.sh (Memory management functions): Add xmemdup0.
35080         * lib/xalloc.h (xmemdup0): Remove.
35081         * lib/xmalloc.c (xmemdup0): Likewise.
35082
35083 2008-05-13  Eric Blake  <ebb9@byu.net>
35084             Bruno Haible  <bruno@clisp.org>
35085
35086         Reduce number of forks required during autoconf.
35087         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
35088         and gl_LIBSOURCES_DIR.
35089         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
35090         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
35091         m4_syscmd per file.
35092         <m4_foreach_w>: Move...
35093         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
35094
35095 2008-05-13  Eric Blake  <ebb9@byu.net>
35096
35097         * gnulib-tool: Fix various comment typos.
35098
35099 2008-05-12  Bruno Haible  <bruno@clisp.org>
35100
35101         Tailor the linebreaking algorithm.
35102         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
35103
35104 2008-05-12  Bruno Haible  <bruno@clisp.org>
35105
35106         Update to Unicode 5.0.0.
35107         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
35108         LBP_JV, LBP_JT. Redistribute values.
35109         (unilbrk_table): Change size.
35110         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
35111         Unicode TR#14 rev. 22.
35112         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
35113         LBP_JV, LBP_JT. Redistribute values.
35114         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
35115         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
35116         Update.
35117         * lib/unilbrk/lbrkprop1.h: Regenerated.
35118         * lib/unilbrk/lbrkprop2.h: Regenerated.
35119         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
35120         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
35121         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
35122         Likewise.
35123         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
35124         Likewise.
35125         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
35126         result.
35127         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
35128         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
35129         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
35130         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
35131         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
35132         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
35133
35134 2008-05-11  Bruno Haible  <bruno@clisp.org>
35135
35136         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
35137
35138 2008-05-11  Bruno Haible  <bruno@clisp.org>
35139
35140         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
35141         * modules/unilbrk/gen-lbrk: New file.
35142
35143 2008-05-11  Bruno Haible  <bruno@clisp.org>
35144
35145         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
35146         * m4/sha512.m4 (gl_SHA512): Likewise.
35147
35148 2008-05-11  Jim Meyering  <meyering@redhat.com>
35149
35150         New modules: crypto/sha256, crypto/sha512 (from coreutils)
35151         * modules/crypto/sha256: New file.
35152         * modules/crypto/sha512: Likewise.
35153         * lib/sha256.c: Likewise.
35154         * lib/sha256.h: Likewise.
35155         * lib/sha512.c: Likewise.
35156         * lib/sha512.h: Likewise.
35157         * lib/u64.h: Likewise.
35158         * m4/sha256.m4: Likewise.
35159         * m4/sha512.m4: Likewise.
35160         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
35161
35162 2008-05-10  Bruno Haible  <bruno@clisp.org>
35163
35164         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
35165         (Input/Output <stdio.h>): Add xprintf.
35166         (Signal handling <signal.h>): Add strsignal.
35167         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
35168         (Core language properties): Add func.
35169         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
35170         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
35171         strings.
35172         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
35173         (Input/output): New section.
35174         (File system functions): Add openat-die, stat-macros.
35175         (Networking functions): Add sockets.
35176         (Unicode string functions): Add unictype/*.
35177         (Support for building libraries and executables): Add gperf.
35178         (Support for building documentation): Add agpl-3.0.
35179         (Misc): Add nocrash.
35180
35181 2008-05-10  Bruno Haible  <bruno@clisp.org>
35182
35183         * modules/unictype/gen-ctype: New file.
35184
35185 2008-05-10  Jim Meyering  <meyering@redhat.com>
35186
35187         Make chdir-safer.c more efficient on a system with no symlinks.
35188         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
35189         also if ELOOP is zero.  Suggested by Bruno Haible.
35190
35191         Make chdir-safer.c slightly safer.
35192         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
35193         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
35194
35195         Avoid compile failure on systems without ELOOP (like mingw).
35196         * lib/chdir-safer.c (ELOOP): Define if not already defined.
35197         Reported by Bruno Haible.
35198
35199 2008-05-10  Bruno Haible  <bruno@clisp.org>
35200
35201         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
35202         (is_utf8_encoding): Use a case-insensitive comparison.
35203         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
35204         streq.
35205
35206 2008-05-10  Bruno Haible  <bruno@clisp.org>
35207
35208         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
35209         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
35210         * lib/unilbrk/ulc-common.h (iconv_string_length,
35211         iconv_string_keeping_offsets): Remove declarations.
35212         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
35213         Don't include <iconv.h>, streq.h, xsize.h.
35214         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
35215         conversion.
35216         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
35217         <iconv.h>, streq.h, xsize.h.
35218         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
35219         conversion.
35220         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
35221         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
35222         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
35223         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
35224
35225 2008-05-10  Bruno Haible  <bruno@clisp.org>
35226
35227         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
35228         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
35229
35230         * modules/unilbrk/u32-width-linebreaks-tests: New file.
35231         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
35232
35233         * modules/unilbrk/u16-width-linebreaks-tests: New file.
35234         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
35235
35236         * modules/unilbrk/u8-width-linebreaks-tests: New file.
35237         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
35238
35239         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
35240         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
35241
35242         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
35243         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
35244
35245         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
35246         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
35247
35248         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
35249         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
35250
35251 2008-05-10  Bruno Haible  <bruno@clisp.org>
35252
35253         Split up 'linebreak' module.
35254         * lib/unilbrk.h: New file, based on lib/linebreak.h.
35255         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
35256         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
35257         modifications.
35258         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
35259         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
35260         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
35261         lib/linebreak.c.
35262         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
35263         lib/linebreak.c.
35264         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
35265         lib/linebreak.c.
35266         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
35267         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
35268         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
35269         lib/linebreak.c.
35270         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
35271         lib/linebreak.c.
35272         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
35273         lib/linebreak.c.
35274         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
35275         lib/linebreak.c.
35276         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
35277         lib/linebreak.c.
35278         * modules/unilbrk/base: New file.
35279         * modules/unilbrk/tables: New file.
35280         * modules/unilbrk/u8-possible-linebreaks: New file.
35281         * modules/unilbrk/u16-possible-linebreaks: New file.
35282         * modules/unilbrk/u32-possible-linebreaks: New file.
35283         * modules/unilbrk/ulc-common: New file.
35284         * modules/unilbrk/ulc-possible-linebreaks: New file.
35285         * modules/unilbrk/u8-width-linebreaks: New file.
35286         * modules/unilbrk/u16-width-linebreaks: New file.
35287         * modules/unilbrk/u32-width-linebreaks: New file.
35288         * modules/unilbrk/ulc-width-linebreaks: New file.
35289         * lib/linebreak.h: Remove file.
35290         * lib/linebreak.c: Remove file.
35291         * m4/linebreak.m4: Remove file.
35292         * modules/linebreak: Remove file.
35293         * NEWS: Mention the changes.
35294
35295 2008-05-09  Eric Blake  <ebb9@byu.net>
35296
35297         Add xmemdup0.
35298         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
35299         implementation.
35300         * lib/xmalloc.c (xmemdup0): New C implementation.
35301
35302 2008-05-08  Bruno Haible  <bruno@clisp.org>
35303
35304         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
35305
35306 2008-05-07  Eric Blake  <ebb9@byu.net>
35307
35308         Support cross-compilation of <wctype.h>.
35309         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
35310         AC_CACHE_CHECK.
35311
35312 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
35313
35314         * build-aux/vc-list-files: Add support for bzr.
35315
35316 2008-05-03  Jim Meyering  <meyering@redhat.com>
35317
35318         avoid failed assertion with tight malloc
35319         * tests/test-getndelim2.c: Correct an off-by-one assertion.
35320
35321 2008-05-03  Simon Josefsson  <simon@josefsson.org>
35322
35323         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
35324         are needed from arpa/inet.h.
35325         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
35326         Reported by Bruno Haible.
35327
35328 2008-05-02  Jim Meyering  <meyering@redhat.com>
35329
35330         avoid compilation error on FreeBSD 6
35331         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
35332
35333 2008-05-01  Jim Meyering  <meyering@redhat.com>
35334
35335         useless-if-before-free: correct --help's exit status description
35336         * build-aux/useless-if-before-free (usage): Like grep, exit 0
35337         for one or more matches, etc.  Reported by Bruno Haible.
35338
35339         vc-list-files: make the stand-alone gnulib test work
35340         * modules/vc-list-files-tests (configure.ac):
35341         Define and AC_SUBST abs_aux_dir.
35342         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
35343         $(abs_top_srcdir) to each script and having each of them
35344         duplicate the work of setting PATH, set PATH here, using
35345         the new variable, abs_aux_dir instead.
35346         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
35347         * tests/test-vc-list-files-git.sh: Likewise.
35348         Reported by Bruno Haible.
35349
35350 2008-05-01  Bruno Haible  <bruno@clisp.org>
35351
35352         * lib/getndelim2.c (getndelim2): Fix newsize computation during
35353         reallocation. Rename 'done' to 'found_delimiter'.
35354
35355 2008-05-01  Jim Meyering  <meyering@redhat.com>
35356
35357         vc-list-files: accommodate /bin/sh like the one from Solaris 10
35358         * build-aux/vc-list-files: Use `...`, not $(...).
35359
35360 2008-04-30  Jim Meyering  <meyering@redhat.com>
35361
35362         add tests for vc-list-files
35363         * modules/vc-list-files-tests: New module.
35364         * tests/test-vc-list-files-cvs.sh: New file.
35365         * tests/test-vc-list-files-git.sh: New file.
35366
35367         avoid a warning from gcc
35368         * lib/getndelim2.c (IF_LINT): Define.
35369         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
35370
35371         vc-list-files: work properly with build-aux/cvsu, too
35372         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
35373         to all cvs-based clauses.
35374
35375         vc-list-files: work properly in the CVS+awk case, too
35376         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
35377
35378         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
35379         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
35380         take more than one file argument, so .  Add quotes, just in case $dir
35381         ever contains a shell meta-character.  Prompted by Soren Hansen in
35382         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
35383
35384 2008-04-29  Eric Blake  <ebb9@byu.net>
35385
35386         Optimize getndelim2 to use block operations when possible.
35387         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
35388         freadseek, and memchr2.
35389         * lib/getndelim2.c (getndelim2): Use them for block reads.
35390
35391 2008-04-29  Bruno Haible  <bruno@clisp.org>
35392
35393         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
35394         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35395         * modules/inet_ntop (Depends-on): Add extensions.
35396         * modules/inet_pton (Depends-on): Likewise.
35397         Reported by Simon Josefsson.
35398
35399 2008-04-29  Jim Meyering  <meyering@redhat.com>
35400
35401         When the is more than one match in a block, match all of them.
35402         * build-aux/useless-if-before-free: Iterate through each block
35403         until there are no more matches.
35404
35405         Fix broken useless-if-before-free script.
35406         * build-aux/useless-if-before-free: Fix typo: missing "?" after
35407         the expression to match cast of argument to free-like function.
35408
35409 2008-04-29  Eric Blake  <ebb9@byu.net>
35410
35411         Use new header.
35412         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
35413
35414 2008-04-29  Jim Meyering  <meyering@redhat.com>
35415
35416         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
35417         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
35418         by gnulib to exist and to declare e.g., inet_ntop.
35419         Don't include "inet_ntop.h", now removed.
35420
35421         * m4/arpa_inet_h.m4: Remove trailing blanks.
35422
35423 2008-04-29  Eric Blake  <ebb9@byu.net>
35424
35425         Silence valgrind on safe reads beyond potential array bounds.
35426         * lib/rawmemchr.valgrind: New file.
35427         * lib/strchrnul.valgrind: Likewise.
35428         * modules/rawmemchr (Files): Distribute new file.
35429         * modules/strchrnul (Files): Likewise.
35430         Suggested by Bruno Haible.
35431
35432 2008-04-29  Bruno Haible  <bruno@clisp.org>
35433
35434         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
35435         (inet_ntop, inet_pton): Change portability warning's wording.
35436         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
35437         Invoke gl_CHECK_NEXT_HEADERS.
35438         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
35439         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
35440         set ARPA_INET_H.
35441         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35442         * modules/arpa_inet (Description): No longer only for systems that
35443         lack it.
35444         (Depends-on): Add include_next.
35445         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
35446         HAVE_ARPA_INET_H.
35447
35448 2008-04-29  Jim Meyering  <meyering@redhat.com>
35449
35450         * modules/mkdir (License): Re-license as LGPLv2+.
35451
35452 2008-04-29  Bruno Haible  <bruno@clisp.org>
35453
35454         * modules/rawmemchr (Maintainer): Set to Eric.
35455         * modules/strchrnul (Maintainer): Likewise.
35456
35457 2008-04-29  Simon Josefsson  <simon@josefsson.org>
35458
35459         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
35460         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
35461
35462         * modules/arpa_inet (arpa/inet.h): Use them.
35463
35464 2008-04-28  Eric Blake  <ebb9@byu.net>
35465
35466         Test getndelim2.
35467         * modules/getndelim2-tests: New file.
35468         * tests/test-getndelim2.c: Likewise.
35469         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
35470         stream.
35471         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
35472
35473         * MODULES.html.sh: Document new module.
35474
35475 2008-04-20  Bruno Haible  <bruno@clisp.org>
35476
35477         * lib/c-stack.c (die): Use raise.
35478         * modules/c-stack (Depends-on): Add raise.
35479
35480 2008-04-28  Bruno Haible  <bruno@clisp.org>
35481
35482         Expect rpmatch to be declared.
35483         * lib/yesno.c (rpmatch): Remove declaration.
35484
35485         Declare rpmatch.
35486         * lib/stdlib.in.h (rpmatch): New declaration.
35487         * lib/rpmatch.c: Include <stdlib.h> first.
35488         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
35489         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
35490         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
35491         HAVE_RPMATCH.
35492         * modules/rpmatch (Depends-on): Add stdlib, extensions.
35493         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35494         (Include): Set to <stdlib.h>.
35495         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
35496         HAVE_RPMATCH.
35497         * NEWS: Document the change.
35498
35499 2008-04-28  Bruno Haible  <bruno@clisp.org>
35500
35501         Change rpmatch to use nl_langinfo when appropriate.
35502         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
35503         (N_): New macro.
35504         (localized_pattern): New function/macro.
35505         (try): Remove match, nomatch arguments. Copy the pattern into safe
35506         memory before caching it.
35507         (rpmatch): Use localized_pattern. Add translator comments.
35508         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
35509         Suggested by Eric Blake.
35510         * modules/rpmatch (Depends-on): Add stdbool.
35511
35512 2008-04-28  Eric Blake  <ebb9@byu.net>
35513
35514         Add rawmemchr module, matching glibc.
35515         * modules/string (Makefile.am): New indicator.
35516         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
35517         * lib/string.in.h (rawmemchr): Declare when appropriate.
35518         * modules/rawmemchr: New file.
35519         * m4/rawmemchr.m4: Likewise.
35520         * lib/rawmemchr.c: Likewise.
35521         * modules/rawmemchr-tests: Likewise.
35522         * tests/test-rawmemchr.c: Likewise.
35523         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
35524         module.
35525         * modules/strchrnul (Depends-on): Add rawmemchr.
35526         * lib/strchrnul.c (strchrnul): Optimize a corner case.
35527
35528         Whitespace cleanup.
35529         * tests/test-strchrnul.c: Reindent.
35530         * lib/strchrnul.c: Likewise.
35531
35532         Optimize and test strchrnul.
35533         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
35534         * modules/strchrnul-tests: New file.
35535         * tests/test-strchrnul.c: Likewise.
35536
35537         Remove intprops dependency.
35538         * modules/memchr (Depends-on): Remove intprops.
35539         * modules/memrchr (Depends-on): Likewise.
35540         * modules/memchr2 (Depends-on): Likewise.
35541         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
35542         * lib/memrchr.c (__memrchr): Likewise.
35543         * lib/memrchr2.c (memchr2): Likewise.
35544         Reported by Simon Josefsson.
35545
35546 2008-04-28  Simon Josefsson  <simon@josefsson.org>
35547
35548         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
35549         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35550
35551 2008-04-28  Simon Josefsson  <simon@josefsson.org>
35552
35553         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
35554
35555         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
35556
35557         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
35558
35559         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
35560         declarations.
35561         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
35562
35563         * m4/inet_pton.m4: Don't check for header files.
35564
35565         * m4/inet_ntop.m4: Don't check for header files.
35566
35567 2008-04-28  Simon Josefsson  <simon@josefsson.org>
35568
35569         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
35570         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
35571         trigger for cygwin).
35572         Reported by Bruno Haible  <bruno@clisp.org>.
35573
35574 2008-04-28  Bruno Haible  <bruno@clisp.org>
35575
35576         * doc/posix-functions/strdup.texi: Mention mingw problem.
35577
35578 2008-04-27  Bruno Haible  <bruno@clisp.org>
35579
35580         * modules/stat-time-tests (Depends-on): Add sleep.
35581         * tests/test-stat-time.c (force_unlink): New function.
35582         (cleanup): Use it.
35583         (test_mtime): Remove the ctime related tests.
35584         (test_ctime): New function, containing the ctime related tests.
35585         (main): Call test_ctime, except on native Windows platforms.
35586
35587 2008-04-27  Bruno Haible  <bruno@clisp.org>
35588
35589         * lib/rpmatch.c (rpmatch): Add some comments.
35590         Reported by James Youngman <jay@gnu.org>.
35591
35592 2008-04-27  Bruno Haible  <bruno@clisp.org>
35593
35594         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
35595         quiet NaNs.
35596
35597 2008-04-27  Bruno Haible  <bruno@clisp.org>
35598
35599         Make test-yesno.sh work on mingw.
35600         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
35601         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
35602         (main): Set stdin to binary mode.
35603         * modules/yesno-tests (Depends-on): Add binary-io.
35604
35605 2008-04-27  Bruno Haible  <bruno@clisp.org>
35606
35607         Fix 'isfinite' on x86, x86_64, ia64 platforms.
35608         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
35609         argument that lie outside the IEEE 854 domain.
35610         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
35611         (gl_ISFINITE): Use it.
35612         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
35613
35614 2008-04-27  Bruno Haible  <bruno@clisp.org>
35615
35616         Allow local renaming in config.h.
35617         * lib/memrchr.c (memrchr): Don't undefine outside libc.
35618
35619 2008-04-27  Bruno Haible  <bruno@clisp.org>
35620
35621         * lib/memchr.c (__memchr): Change type of 'i'.
35622         * lib/memchr2.c (memchr2): Likewise.
35623
35624 2008-04-26  Eric Blake  <ebb9@byu.net>
35625         and Bruno Haible  <bruno@clisp.org>
35626
35627         Optimize and test memrchr.
35628         * modules/memrchr (Depends-on): Add intprops.
35629         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
35630         * modules/memrchr-tests: New file.
35631         * tests/test-memrchr.c: New file.
35632
35633 2008-04-26  Bruno Haible  <bruno@clisp.org>
35634
35635         Add tentative support for DragonFly BSD.
35636         * lib/stdio-impl.h: Add macros for DragonFly BSD.
35637         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
35638         fp.
35639         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
35640         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
35641         * lib/fpurge.c (fpurge): Likewise.
35642         * lib/freadable.c (freaadable): Likewise.
35643         * lib/freadahead.c (freadahead): Likewise.
35644         * lib/freading.c (freading): Likewise.
35645         * lib/freadptr.c (freadptr): Likewise.
35646         * lib/freadseek.c (freadptrinc): Likewise.
35647         * lib/fseeko.c (fseeko): Likewise.
35648         * lib/fseterr.c (fseterr): Likewise.
35649         * lib/fwritable.c (fwritable): Likewise.
35650         * lib/fwriting.c (fwriting): Likewise.
35651
35652 2008-04-26  Bruno Haible  <bruno@clisp.org>
35653
35654         * lib/stdio-impl.h: New file.
35655         * lib/fbufmode.c: Include stdio-impl.h.
35656         (fbufmode): Use fp_, remove redundant #defines.
35657         * lib/fflush.c: Include stdio-impl.h.
35658         (clear_ungetc_buffer): Remove redundant #defines.
35659         * lib/fpurge.c: Include stdio-impl.h.
35660         (fpurge): Remove redundant #defines.
35661         * lib/freadable.c: Include stdio-impl.h.
35662         (freadable): Remove redundant #defines.
35663         * lib/freadahead.c: Include stdio-impl.h.
35664         (freadahead): Remove redundant #defines.
35665         * lib/freading.c: Include stdio-impl.h.
35666         (freading): Remove redundant #defines.
35667         * lib/freadptr.c: Include stdio-impl.h.
35668         (freadptr): Remove redundant #defines.
35669         * lib/freadseek.c: Include stdio-impl.h.
35670         (freadptrinc): Remove redundant #defines.
35671         * lib/fseeko.c: Include stdio-impl.h.
35672         (rpl_fseeko): Remove redundant #defines.
35673         * lib/fseterr.c: Include stdio-impl.h.
35674         (fseterr): Remove redundant #defines.
35675         * lib/fwritable.c: Include stdio-impl.h.
35676         (fwritable: Remove redundant #defines.
35677         * lib/fwriting.c: Include stdio-impl.h.
35678         (fwriting): Remove redundant #defines.
35679         * modules/fbufmode (Files): Add lib/stdio-impl.h.
35680         * modules/fflush (Files): Likewise.
35681         * modules/fpurge (Files): Likewise.
35682         * modules/freadable (Files): Likewise.
35683         * modules/freadahead (Files): Likewise.
35684         * modules/freading (Files): Likewise.
35685         * modules/freadptr (Files): Likewise.
35686         * modules/freadseek (Files): Likewise.
35687         * modules/fseeko (Files): Likewise.
35688         * modules/fseterr (Files): Likewise.
35689         * modules/fwritable (Files): Likewise.
35690         * modules/fwriting (Files): Likewise.
35691
35692 2008-04-26  Bruno Haible  <bruno@clisp.org>
35693
35694         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
35695         restore_seek_optimization, update_fpos_cache): New functions, extracted
35696         from rpl_fflush.
35697         (rpl_fflush): Use them.
35698         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
35699         (gl_REPLACE_FFLUSH): Use it.
35700
35701 2008-04-26  Bruno Haible  <bruno@clisp.org>
35702
35703         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
35704         on Solaris.
35705         * tests/test-xstrtoimax.sh: Likewise.
35706         * tests/test-xstrtoumax.sh: Likewise.
35707         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35708
35709 2008-04-26  Bruno Haible  <bruno@clisp.org>
35710
35711         * modules/memchr-tests: New file.
35712         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
35713
35714 2008-04-26  Eric Blake  <ebb9@byu.net>
35715             Bruno Haible  <bruno@clisp.org>
35716
35717         * lib/memchr.c: Include intprops.h.
35718         (__memchr): Optimize parallel detection of matching bytes. Rename local
35719         variables. Add explanatory comments.
35720
35721 2008-04-26  Bruno Haible  <bruno@clisp.org>
35722
35723         Fix module 'memchr', broken since 2000-10-28.
35724         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
35725
35726 2008-04-26  Bruno Haible  <bruno@clisp.org>
35727
35728         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
35729         comments.
35730
35731 2008-04-25  Eric Blake  <ebb9@byu.net>
35732
35733         Use native fstatat on cygwin 1.7.0.
35734         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
35735         first.
35736
35737 2008-04-23  Eric Blake  <ebb9@byu.net>
35738
35739         Improve memchr2 performance.
35740         * lib/memchr2.c (memchr2): Further optimize parallel detection of
35741         NUL bytes.
35742         * modules/memchr2 (Depends-on): Use intprops.h.
35743
35744 2008-04-23  Simon Josefsson  <simon@josefsson.org>
35745
35746         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
35747         an inline function instead of a CPP macro.  Patch by Ben Pfaff
35748         <blp@cs.stanford.edu>.
35749
35750 2008-04-23  Simon Josefsson  <simon@josefsson.org>
35751
35752         * lib/arpa_inet.in.h: New file.
35753
35754         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
35755         (Makefile.am): Sed in substitute header file.
35756
35757         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
35758         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
35759
35760         * modules/inet_ntop (configure.ac): Use
35761         gl_ARPA_INET_MODULE_INDICATOR.
35762
35763         * modules/inet_pton (configure.ac): Use
35764         gl_ARPA_INET_MODULE_INDICATOR.
35765
35766 2008-04-22  Jim Meyering  <meyering@redhat.com>
35767
35768         * modules/verify (License): Re-license as LGPLv2+.
35769
35770 2008-04-22  Simon Josefsson  <simon@josefsson.org>
35771
35772         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
35773         parameter to void* as per POSIX standard (MinGW uses char*).
35774
35775 2008-04-21  Bruno Haible  <bruno@clisp.org>
35776
35777         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
35778         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
35779         Define to replacements if REPLACE_ISWCNTRL is 1.
35780         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
35781         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
35782         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
35783         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
35784         what it fixes.
35785         * doc/posix-functions/iswalpha.texi: Likewise.
35786         * doc/posix-functions/iswblank.texi: Likewise.
35787         * doc/posix-functions/iswcntrl.texi: Likewise.
35788         * doc/posix-functions/iswdigit.texi: Likewise.
35789         * doc/posix-functions/iswgraph.texi: Likewise.
35790         * doc/posix-functions/iswlower.texi: Likewise.
35791         * doc/posix-functions/iswprint.texi: Likewise.
35792         * doc/posix-functions/iswpunct.texi: Likewise.
35793         * doc/posix-functions/iswspace.texi: Likewise.
35794         * doc/posix-functions/iswupper.texi: Likewise.
35795         * doc/posix-functions/iswxdigit.texi: Likewise.
35796         Reported by Alain Guibert.
35797
35798 2008-04-21  Bruno Haible  <bruno@clisp.org>
35799
35800         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
35801         Patch by Alain Guibert.
35802
35803 2008-04-21  Bruno Haible  <bruno@clisp.org>
35804
35805         Fix test failures on mingw.
35806         * tests/test-xstrtol.c (print_no_progname): New function.
35807         (main): Install it in error_print_progname hook.
35808         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
35809         * tests/test-xstrtoimax.sh: Likewise.
35810         * tests/test-xstrtoumax.sh: Likewise.
35811
35812 2008-04-21  Bruno Haible  <bruno@clisp.org>
35813
35814         Fix test failure on mingw.
35815         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
35816
35817 2008-04-21  Bruno Haible  <bruno@clisp.org>
35818
35819         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
35820         Actually assign a value.
35821
35822 2008-04-20  Bruno Haible  <bruno@clisp.org>
35823
35824         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
35825         take 2.
35826         * lib/canonicalize.c (canonicalize_file_name): Elide if the
35827         'canonicalize-lgpl' module is also used.
35828         * lib/canonicalize-lgpl.c: Undo last change.
35829         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
35830
35831 2008-04-20  Bruno Haible  <bruno@clisp.org>
35832
35833         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
35834         config.h. Provide _mkdir based fallback for mingw.
35835         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
35836         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
35837         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
35838         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
35839         rather than defining mkdir in config.h.
35840         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
35841         (gl_SYS_STAT_H_DEFAULTS): New macro.
35842         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
35843         HAVE_IO_H any more.
35844         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
35845         HAVE_DECL_MKDIR and HAVE_IO_H.
35846
35847 2008-04-20  Bruno Haible  <bruno@clisp.org>
35848
35849         * lib/isapipe.c: Port to native Windows platforms.
35850
35851 2008-04-20  Bruno Haible  <bruno@clisp.org>
35852
35853         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
35854
35855 2008-04-21  Eric Blake  <ebb9@byu.net>
35856
35857         Work around preprocessors that don't handle UINTMAX_MAX.
35858         * lib/memchr2.c (memchr2): Avoid embedded #if.
35859         Reported by Alain Guibert, fix suggested by Bruno Haible.
35860
35861 2008-04-21  Simon Josefsson  <simon@josefsson.org>
35862
35863         * doc/posix-functions/strftime.texi (strftime): Explain better
35864         Windows incompatibility.  Suggested by Micah Cowan
35865         <micah@cowan.name>.
35866
35867 2008-04-20  Bruno Haible  <bruno@clisp.org>
35868
35869         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
35870         unistr/u8-mblen.
35871
35872 2008-04-20  Bruno Haible  <bruno@clisp.org>
35873
35874         Fix test failure on platforms with non-GNU iconv.
35875         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
35876         (U_TO_U8): Use it, rather than u16_to_u8.
35877         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
35878         units at the end of the input string.
35879         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
35880
35881 2008-04-20  Bruno Haible  <bruno@clisp.org>
35882
35883         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
35884         when the resulting length is 0.
35885         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
35886
35887 2008-04-20  Bruno Haible  <bruno@clisp.org>
35888
35889         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
35890         works.
35891         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
35892
35893 2008-04-20  Bruno Haible  <bruno@clisp.org>
35894
35895         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
35896         * modules/tsearch-tests (configure.ac): Test for initstate function.
35897
35898 2008-04-20  Bruno Haible  <bruno@clisp.org>
35899
35900         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
35901         for nlink_t if missing.
35902         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
35903
35904 2008-04-19  Bruno Haible  <bruno@clisp.org>
35905
35906         Work around snprintf bug on Linux libc5.
35907         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
35908         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35909         gl_SNPRINTF_SIZE1.
35910         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35911         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
35912         that test failed.
35913         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
35914         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
35915         * modules/snprintf (Files): Add m4/printf.m4.
35916         * modules/vsnprintf (Files): Likewise.
35917         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
35918         * doc/posix-functions/vsnprintf.texi: Likewise.
35919
35920 2008-04-19  Bruno Haible  <bruno@clisp.org>
35921
35922         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
35923         from 0.0058 to less than 10^-7.
35924
35925 2008-04-19  Bruno Haible  <bruno@clisp.org>
35926
35927         Fix rounding when a precision is given.
35928         * lib/vasnprintf.c (is_borderline): New function.
35929         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
35930         9...9x.
35931         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
35932         %e, %g.
35933         * tests/test-vasprintf-posix.c (test_function): Likewise.
35934         * tests/test-snprintf-posix.h (test_function): Likewise.
35935         * tests/test-sprintf-posix.h (test_function): Likewise.
35936         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
35937         * tests/test-printf-posix.h (test_function): Likewise.
35938         * tests/test-printf-posix.output: Update.
35939         Reported by John Darrington <john@darrington.wattle.id.au> via
35940         Ben Pfaff <blp@cs.stanford.edu>.
35941
35942 2008-04-18  Simon Josefsson  <simon@josefsson.org>
35943
35944         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
35945         Suggested by Bruno Haible <bruno@clisp.org>.
35946
35947 2008-04-17  Bruno Haible  <bruno@clisp.org>
35948
35949         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
35950         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
35951         implementation.
35952         Patch by Bruce Merry <bmerry@gmail.com>.
35953
35954 2008-04-17  Simon Josefsson  <simon@josefsson.org>
35955
35956         * doc/posix-functions/strftime.texi (strftime): Mention that %e
35957         doesn't work under Windows.
35958
35959 2008-04-16  Bruno Haible  <bruno@clisp.org>
35960
35961         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
35962         New macros.
35963         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
35964         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
35965         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
35966         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
35967         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
35968         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
35969         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
35970         macros.
35971         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
35972         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
35973         Northern Sotho, Uighur.
35974
35975 2008-04-16  Bruno Haible  <bruno@clisp.org>
35976
35977         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
35978         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
35979         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
35980         Reported by Daniel Bergström <daniel@octocode.com>.
35981
35982 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
35983             Bruno Haible  <bruno@clisp.org>
35984
35985         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
35986         function.
35987         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
35988         New functions, mostly extracted from gl_locale_name_default.
35989         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
35990
35991 2008-04-16  Eric Blake  <ebb9@byu.net>
35992
35993         Adjust strtod detection to catch glibc 2.7 bug.
35994         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
35995         Reported by John Gatewood Ham.
35996
35997 2008-04-16  Bruno Haible  <bruno@clisp.org>
35998
35999         Add tentative support for Linux libc5.
36000         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
36001         * lib/fpurge.c (fpurge): Likewise.
36002         * lib/freadable.c (freadable): Likewise.
36003         * lib/freadahead.c (freadahead): Likewise.
36004         * lib/freading.c (freading): Likewise.
36005         * lib/freadptr.c (freadptr): Likewise.
36006         * lib/freadseek.c (freadptrinc): Likewise.
36007         * lib/fseeko.c (rpl_fseeko): Likewise.
36008         * lib/fseterr.c (fseterr): Likewise.
36009         * lib/fwritable.c (fwritable): Likewise.
36010         * lib/fwriting.c (fwriting): Likewise.
36011         Reported by Alain Guibert <alguibert+bts@free.fr>.
36012
36013 2008-04-15  Bruno Haible  <bruno@clisp.org>
36014
36015         * modules/mathl (configure.ac): Define module indicator.
36016
36017 2008-04-15  Bruno Haible  <bruno@clisp.org>
36018
36019         * lib/logl.c (logl): Remove unused variables.
36020
36021 2008-04-15  Bruno Haible  <bruno@clisp.org>
36022
36023         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
36024         fails.
36025
36026 2008-04-15  Bruno Haible  <bruno@clisp.org>
36027
36028         * lib/trim.c (trim2): Fix argument of isspace() macro.
36029
36030 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
36031
36032         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
36033         to 0.
36034         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
36035
36036 2008-04-14  Bruno Haible  <bruno@clisp.org>
36037
36038         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
36039         AC_LANG_PROGRAM argument.
36040         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
36041         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
36042         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
36043         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36044         * m4/math_h.m4 (gl_MATH_H): Likewise.
36045         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
36046         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
36047         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
36048         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
36049         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
36050         * m4/regex.m4 (gl_REGEX): Likewise.
36051         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
36052         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
36053         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
36054         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
36055         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
36056         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
36057         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36058         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
36059
36060 2008-04-14  Jim Meyering  <meyering@redhat.com>
36061
36062         test-strtod: fix typos: s/abs/fabs/
36063         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
36064
36065 2008-04-13  Bruno Haible  <bruno@clisp.org>
36066
36067         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
36068         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
36069         module is also used and while not building the reloc-wrapper.
36070
36071 2008-04-13  Bruno Haible  <bruno@clisp.org>
36072
36073         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
36074
36075 2008-04-13  Bruno Haible  <bruno@clisp.org>
36076
36077         Fix AIX compilation failure introduced on 2008-04-02.
36078         * tests/test-frexp.c (exp): Undefine before redefining.
36079         * tests/test-frexpl.c (exp): Likewise.
36080
36081 2008-04-13  Bruno Haible  <bruno@clisp.org>
36082
36083         Work around a HP-UX stdio bug.
36084         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
36085         * tests/test-ftello.c (main): Likewise.
36086         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
36087         * doc/posix-functions/ftello.texi: Likewise.
36088
36089 2008-04-13  Bruno Haible  <bruno@clisp.org>
36090
36091         Make test-signbit pass on HP-UX/hppa.
36092         * tests/test-signbit.c (minus_zerol): New variable.
36093         (test_signbitl): Use it.
36094
36095 2008-04-13  Bruno Haible  <bruno@clisp.org>
36096
36097         Make truncl work on OSF/1 4.0.
36098         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
36099         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
36100         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
36101         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
36102         HAVE_DECL_TRUNCL.
36103         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
36104         HAVE_DECL_TRUNCL.
36105         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
36106
36107 2008-04-13  Bruno Haible  <bruno@clisp.org>
36108
36109         * lib/unictype.h: Remove trailing comma from enumeration definitions.
36110
36111 2008-04-13  Bruno Haible  <bruno@clisp.org>
36112
36113         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
36114         expression, so as to avoid HP-UX 11 cc compiler bug.
36115
36116 2008-04-13  Bruno Haible  <bruno@clisp.org>
36117
36118         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
36119
36120 2008-04-13  Bruno Haible  <bruno@clisp.org>
36121
36122         * lib/git-merge-changelog.c: Remove empty declaration outside of
36123         functions.
36124
36125 2008-04-13  Bruno Haible  <bruno@clisp.org>
36126
36127         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
36128
36129 2008-04-13  Bruno Haible  <bruno@clisp.org>
36130
36131         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
36132         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
36133         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
36134         also if it exists but lacks definitions of the SHUT_* macros.
36135         * modules/sys_socket (Description): Update.
36136         Reported by Elbert Pol <e.pol@chello.nl>.
36137
36138 2008-04-13  Bruno Haible  <bruno@clisp.org>
36139
36140         * lib/localcharset.c (OS2): Don't redefine if already defined.
36141         Reported by Elbert Pol <e.pol@chello.nl>.
36142
36143 2008-04-13  Bruno Haible  <bruno@clisp.org>
36144
36145         * lib/binary-io.h [__EMX__]: Include <io.h>.
36146         Reported by Elbert Pol <e.pol@chello.nl>.
36147
36148 2008-04-12  Bruno Haible  <bruno@clisp.org>
36149
36150         * lib/fpucw.h: Enable the definitions also for x86_64.
36151         Needed for NetBSD/x86_64.
36152         Reported by Thomas Klausner <tk@giga.or.at>.
36153
36154 2008-04-12  Bruno Haible  <bruno@clisp.org>
36155
36156         * tests/test-strtod.c: Include isnand.h.
36157         (main): Use isnand instead of isnan.
36158         Reported by Jim Meyering.
36159
36160 2008-04-12  Bruno Haible  <bruno@clisp.org>
36161
36162         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
36163         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
36164
36165 2008-04-12  Jim Meyering  <meyering@redhat.com>
36166
36167         * m4/math_h.m4 (gl_MATH_H): Fix typos.
36168
36169 2008-04-12  Bruno Haible  <bruno@clisp.org>
36170
36171         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
36172         Reported by Elbert Pol <e.pol@chello.nl>.
36173
36174 2008-04-12  Eric Blake  <ebb9@byu.net>
36175
36176         Work around Solaris 10 math.h bug.
36177         * m4/math_h.m4 (gl_MATH_H): Check for bug.
36178         (gl_MATH_H_DEFAULTS): Set up default.
36179         * modules/math (Makefile.am): Replace new indicators.
36180         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
36181         * tests/test-math.c (main): Test this.
36182         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
36183         * doc/posix-headers/math.texi (math.h): Mention bug.
36184         Reported by Nelson H. F. Beebe and Jim Meyering.
36185
36186 2008-04-11  Bruno Haible  <bruno@clisp.org>
36187
36188         Adapt to future versions of Apple GCC.
36189         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
36190         Reported by Peter O'Gorman <peter@pogma.com>.
36191
36192 2008-04-11  Bruno Haible  <bruno@clisp.org>
36193
36194         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
36195
36196 2008-04-11  Bruno Haible  <bruno@clisp.org>
36197
36198         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
36199
36200         * modules/getaddrinfo-tests (Makefile.am): Define
36201         test_getaddrinfo_LDADD.
36202
36203 2008-04-11  Bruno Haible  <bruno@clisp.org>
36204
36205         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
36206         (init): Fix syntax error.
36207         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
36208         is declared.
36209
36210 2008-04-11  Bruno Haible  <bruno@clisp.org>
36211
36212         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
36213         * modules/glob (Depends-on): Add stdbool.
36214
36215 2008-04-11  Bruno Haible  <bruno@clisp.org>
36216
36217         * lib/trim.c: Include <string.h>.
36218
36219 2008-04-11  Eric Blake  <ebb9@byu.net>
36220
36221         Avoid compile failure on OS/2.
36222         * lib/regex_internal.h (internal_function): Disable optimization
36223         on OS/2 (__EMX__), where it caused compiler error.
36224         Reported by Elbert Pol.
36225
36226 2008-04-11  Bruno Haible  <bruno@clisp.org>
36227
36228         Flush the standard error stream before aborting. Needed on mingw.
36229         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
36230         * tests/test-array_list.c (ASSERT): Likewise.
36231         * tests/test-array_oset.c (ASSERT): Likewise.
36232         * tests/test-avltree_list.c (ASSERT): Likewise.
36233         * tests/test-avltree_oset.c (ASSERT): Likewise.
36234         * tests/test-avltreehash_list.c (ASSERT): Likewise.
36235         * tests/test-binary-io.c (ASSERT): Likewise.
36236         * tests/test-byteswap.c (ASSERT): Likewise.
36237         * tests/test-c-ctype.c (ASSERT): Likewise.
36238         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
36239         * tests/test-c-strcasestr.c (ASSERT): Likewise.
36240         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
36241         * tests/test-c-strstr.c (ASSERT): Likewise.
36242         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
36243         * tests/test-canonicalize.c (ASSERT): Likewise.
36244         * tests/test-carray_list.c (ASSERT): Likewise.
36245         * tests/test-ceilf1.c (ASSERT): Likewise.
36246         * tests/test-ceilf2.c (ASSERT): Likewise.
36247         * tests/test-ceill.c (ASSERT): Likewise.
36248         * tests/test-count-one-bits.c (ASSERT): Likewise.
36249         * tests/test-fbufmode.c (ASSERT): Likewise.
36250         * tests/test-fflush2.c (ASSERT): Likewise.
36251         * tests/test-floorf1.c (ASSERT): Likewise.
36252         * tests/test-floorf2.c (ASSERT): Likewise.
36253         * tests/test-floorl.c (ASSERT): Likewise.
36254         * tests/test-fopen.c (ASSERT): Likewise.
36255         * tests/test-fpending.c (ASSERT): Likewise.
36256         * tests/test-fprintf-posix.c (ASSERT): Likewise.
36257         * tests/test-fpurge.c (ASSERT): Likewise.
36258         * tests/test-freadable.c (ASSERT): Likewise.
36259         * tests/test-freadahead.c (ASSERT): Likewise.
36260         * tests/test-freading.c (ASSERT): Likewise.
36261         * tests/test-freadptr.c (ASSERT): Likewise.
36262         * tests/test-freadptr2.c (ASSERT): Likewise.
36263         * tests/test-freadseek.c (ASSERT): Likewise.
36264         * tests/test-freopen.c (ASSERT): Likewise.
36265         * tests/test-frexp.c (ASSERT): Likewise.
36266         * tests/test-frexpl.c (ASSERT): Likewise.
36267         * tests/test-fseek.c (ASSERT): Likewise.
36268         * tests/test-fseeko.c (ASSERT): Likewise.
36269         * tests/test-fstrcmp.c (ASSERT): Likewise.
36270         * tests/test-ftell.c (ASSERT): Likewise.
36271         * tests/test-ftello.c (ASSERT): Likewise.
36272         * tests/test-func.c (ASSERT): Likewise.
36273         * tests/test-fwritable.c (ASSERT): Likewise.
36274         * tests/test-fwriting.c (ASSERT): Likewise.
36275         * tests/test-getdelim.c (ASSERT): Likewise.
36276         * tests/test-getline.c (ASSERT): Likewise.
36277         * tests/test-i-ring.c (ASSERT): Likewise.
36278         * tests/test-iconv-utf.c (ASSERT): Likewise.
36279         * tests/test-iconv.c (ASSERT): Likewise.
36280         * tests/test-isfinite.c (ASSERT): Likewise.
36281         * tests/test-isnand.c (ASSERT): Likewise.
36282         * tests/test-isnanf.c (ASSERT): Likewise.
36283         * tests/test-isnanl.h (ASSERT): Likewise.
36284         * tests/test-ldexpl.c (ASSERT): Likewise.
36285         * tests/test-linked_list.c (ASSERT): Likewise.
36286         * tests/test-linkedhash_list.c (ASSERT): Likewise.
36287         * tests/test-localename.c (ASSERT): Likewise.
36288         * tests/test-lseek.c (ASSERT): Likewise.
36289         * tests/test-mbscasecmp.c (ASSERT): Likewise.
36290         * tests/test-mbscasestr1.c (ASSERT): Likewise.
36291         * tests/test-mbscasestr2.c (ASSERT): Likewise.
36292         * tests/test-mbscasestr3.c (ASSERT): Likewise.
36293         * tests/test-mbscasestr4.c (ASSERT): Likewise.
36294         * tests/test-mbschr.c (ASSERT): Likewise.
36295         * tests/test-mbscspn.c (ASSERT): Likewise.
36296         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
36297         * tests/test-mbspbrk.c (ASSERT): Likewise.
36298         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
36299         * tests/test-mbsrchr.c (ASSERT): Likewise.
36300         * tests/test-mbsspn.c (ASSERT): Likewise.
36301         * tests/test-mbsstr1.c (ASSERT): Likewise.
36302         * tests/test-mbsstr2.c (ASSERT): Likewise.
36303         * tests/test-mbsstr3.c (ASSERT): Likewise.
36304         * tests/test-memchr2.c (ASSERT): Likewise.
36305         * tests/test-memmem.c (ASSERT): Likewise.
36306         * tests/test-open.c (ASSERT): Likewise.
36307         * tests/test-printf-frexp.c (ASSERT): Likewise.
36308         * tests/test-printf-frexpl.c (ASSERT): Likewise.
36309         * tests/test-printf-posix.c (ASSERT): Likewise.
36310         * tests/test-quotearg.c (ASSERT): Likewise.
36311         * tests/test-rbtree_list.c (ASSERT): Likewise.
36312         * tests/test-rbtree_oset.c (ASSERT): Likewise.
36313         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
36314         * tests/test-round1.c (ASSERT): Likewise.
36315         * tests/test-roundf1.c (ASSERT): Likewise.
36316         * tests/test-roundl.c (ASSERT): Likewise.
36317         * tests/test-signbit.c (ASSERT): Likewise.
36318         * tests/test-sleep.c (ASSERT): Likewise.
36319         * tests/test-snprintf-posix.c (ASSERT): Likewise.
36320         * tests/test-snprintf.c (ASSERT): Likewise.
36321         * tests/test-sprintf-posix.c (ASSERT): Likewise.
36322         * tests/test-stat-time.c (ASSERT): Likewise.
36323         * tests/test-strcasestr.c (ASSERT): Likewise.
36324         * tests/test-strerror.c (ASSERT): Likewise.
36325         * tests/test-striconv.c (ASSERT): Likewise.
36326         * tests/test-striconveh.c (ASSERT): Likewise.
36327         * tests/test-striconveha.c (ASSERT): Likewise.
36328         * tests/test-strsignal.c (ASSERT): Likewise.
36329         * tests/test-strstr.c (ASSERT): Likewise.
36330         * tests/test-strtod.c (ASSERT): Likewise.
36331         * tests/test-trunc1.c (ASSERT): Likewise.
36332         * tests/test-trunc2.c (ASSERT): Likewise.
36333         * tests/test-truncf1.c (ASSERT): Likewise.
36334         * tests/test-truncf2.c (ASSERT): Likewise.
36335         * tests/test-truncl.c (ASSERT): Likewise.
36336         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
36337         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
36338         * tests/test-vasnprintf.c (ASSERT): Likewise.
36339         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
36340         * tests/test-vasprintf.c (ASSERT): Likewise.
36341         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
36342         * tests/test-vprintf-posix.c (ASSERT): Likewise.
36343         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
36344         * tests/test-vsnprintf.c (ASSERT): Likewise.
36345         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
36346         * tests/test-wcwidth.c (ASSERT): Likewise.
36347         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
36348         * tests/test-xprintf-posix.c (ASSERT): Likewise.
36349         * tests/test-xvasprintf.c (ASSERT): Likewise.
36350         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
36351         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
36352         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
36353         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
36354         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
36355         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
36356         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
36357         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
36358         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
36359         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
36360         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
36361         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
36362         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
36363         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
36364         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
36365         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
36366         * tests/unictype/test-block_list.c (ASSERT): Likewise.
36367         * tests/unictype/test-block_of.c (ASSERT): Likewise.
36368         * tests/unictype/test-block_test.c (ASSERT): Likewise.
36369         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
36370         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
36371         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
36372         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
36373         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
36374         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
36375         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
36376         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
36377         * tests/unictype/test-combining.c (ASSERT): Likewise.
36378         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
36379         * tests/unictype/test-digit.c (ASSERT): Likewise.
36380         * tests/unictype/test-mirror.c (ASSERT): Likewise.
36381         * tests/unictype/test-numeric.c (ASSERT): Likewise.
36382         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
36383         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
36384         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
36385         * tests/unictype/test-scripts.c (ASSERT): Likewise.
36386         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
36387         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
36388         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
36389         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
36390         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
36391         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
36392         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
36393         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
36394         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
36395         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
36396         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
36397         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
36398         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
36399         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
36400         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
36401         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
36402         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
36403         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
36404         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
36405         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
36406         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
36407         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
36408         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
36409         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
36410         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
36411         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
36412         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
36413         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
36414         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
36415         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
36416         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
36417         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
36418         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
36419         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
36420         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
36421         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
36422         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
36423         Reported by Eric Blake.
36424
36425 2008-04-11  Bruno Haible  <bruno@clisp.org>
36426
36427         * lib/wchar.in.h: Tweak comment.
36428
36429 2008-04-11  Bruno Haible  <bruno@clisp.org>
36430
36431         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
36432         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
36433         gl_COMMON.
36434         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
36435
36436 2008-04-11  Bruno Haible  <bruno@clisp.org>
36437
36438         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
36439
36440 2008-04-11  Simon Josefsson  <simon@josefsson.org>
36441
36442         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
36443         of attempting to use non-existing /dev/*random.  Based on patch
36444         from Adam Strzelecki <ono@java.pl> in
36445         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
36446
36447 2008-04-08  Bruno Haible  <bruno@clisp.org>
36448
36449         Add tentative support for emx+gcc.
36450         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
36451         * lib/fpurge.c (fpurge): Likewise.
36452         * lib/freadable.c (freadable): Likewise.
36453         * lib/freadahead.c (freadahead): Likewise.
36454         * lib/freading.c (freading): Likewise.
36455         * lib/freadptr.c (freadptr): Likewise.
36456         * lib/freadseek.c (freadptrinc): Likewise.
36457         * lib/fseeko.c (rpl_fseeko): Likewise.
36458         * lib/fseterr.c (fseterr): Likewise.
36459         * lib/fwritable.c (fwritable): Likewise.
36460         * lib/fwriting.c (fwriting): Likewise.
36461         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
36462
36463 2008-04-09  Eric Blake  <ebb9@byu.net>
36464
36465         Avoid some autoconf warnings.
36466         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
36467         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
36468         * m4/afs.m4 (gl_AFS): Likewise.
36469         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
36470         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
36471         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36472         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
36473         (gl_INTEGER_TYPE_SUFFIX): Likewise.
36474         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
36475         (AC_CHECK_DECLS_ONCE): Likewise.
36476         Rename file...
36477         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
36478         gnulib-tool requires autoconf 2.59 or better.
36479         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
36480
36481 2008-04-08  Eric Blake  <ebb9@byu.net>
36482
36483         Use 'git describe --match' if present (added in git 1.5.5).
36484         * build-aux/git-version-gen: Limit result to tags that match 'v*'
36485         if possible.
36486
36487 2008-04-08  Bruno Haible  <bruno@clisp.org>
36488
36489         Add tentative support for OpenServer.
36490         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
36491         _ptr, _cnt.
36492         * lib/fpurge.c (fpurge): Likewise.
36493         * lib/freadable.c (freadable): Likewise.
36494         * lib/freadahead.c (freadahead): Likewise.
36495         * lib/freading.c (freading): Likewise.
36496         * lib/freadptr.c (freadptr): Likewise.
36497         * lib/freadseek.c (freadptrinc): Likewise.
36498         * lib/fseeko.c (rpl_fseeko): Likewise.
36499         * lib/fseterr.c (fseterr): Likewise.
36500         * lib/fwritable.c (fwritable): Likewise.
36501         * lib/fwriting.c (fwriting): Likewise.
36502         Reported by Roger Cornelius <rac@tenzing.org> and
36503         Brian K. White <brian@aljex.com>.
36504
36505 2008-04-06  Jim Meyering  <meyering@redhat.com>
36506
36507         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
36508
36509 2008-04-06  Bruno Haible  <bruno@clisp.org>
36510
36511         Avoid possible error with non-ASCII bytes in UTF-8 locales.
36512         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
36513         * tests/test-printf-posix.sh: Likewise.
36514         * tests/test-vfprintf-posix.sh: Likewise.
36515         * tests/test-vprintf-posix.sh: Likewise.
36516         * tests/test-xprintf-posix.sh: Likewise.
36517
36518 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36519
36520         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
36521         hide error from 'ls', needed on OS/2.
36522         Report by Elbert Pol <elbert.pol@gmail.com>.
36523
36524 2008-04-04  Eric Blake  <ebb9@byu.net>
36525
36526         Make test-fseeko.c failures meaningful.
36527         * tests/test-fseeko.c: Print line number on failure.
36528         * tests/test-fseek.c: Likewise.
36529         Reported by Nelson H. F. Beebe.
36530
36531         Improve strtod bug detection check.
36532         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
36533         required for Solaris 10.
36534         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
36535
36536 2008-04-04  Bruno Haible  <bruno@clisp.org>
36537
36538         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
36539         by m4/setenv.m4.
36540
36541 2008-04-03  Eric Blake  <ebb9@byu.net>
36542
36543         Ensure sane .version contents.
36544         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
36545         version string.
36546         * build-aux/git-version-gen: Improve documentation.
36547
36548         Make GNU make output nicer.
36549         * top/GNUmakefile [!_have-Makefile]: Add dependency on
36550         MAKECMDGOALS to enforce message for all command line targets.  Set
36551         srcdir for use in maint.mk.
36552
36553         Another maintainer tweak.
36554         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
36555         a target that regenerates version.
36556
36557 2008-04-03  Jim Meyering  <meyering@redhat.com>
36558
36559         vc-list-files: don't cause coreutils "make po-check" failure
36560         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
36561
36562 2008-04-03  Eric Blake  <ebb9@byu.net>
36563
36564         Allow VPATH usage of vc-list-files.
36565         * build-aux/vc-list-files (scriptversion): Add timestamp.
36566         (options): Add --help, --version, -C.
36567         (CVS): Support installed cvsu.
36568
36569 2008-04-02  Bruno Haible  <bruno@clisp.org>
36570
36571         Avoid some "statement with no effect" warnings from gcc.
36572         * tests/test-wctype.c (main): Explicitly ignore unused values.
36573         Reported by Jim Meyering.
36574
36575 2008-04-02  Jim Meyering  <meyering@redhat.com>
36576
36577         Avoid some warnings from "gcc -Wshadow".
36578         * tests/test-frexp.c (exp): Define to a different identifier.
36579         * tests/test-frexpl.c (exp): Likewise.
36580
36581 2008-04-03  Jim Meyering  <meyering@redhat.com>
36582
36583         bootstrap: remove dangling *.[ch] symlinks from lib
36584         * build-aux/bootstrap [dangling symlink removal]: Move find's
36585         -depth option to precede all others, to avoid a warning.
36586         Remove *.[ch] files too, and from "$source_base" (usually lib/).
36587
36588 2008-04-02  Bruno Haible  <bruno@clisp.org>
36589
36590         Avoid some warnings from "gcc -Wshadow".
36591         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
36592         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
36593         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
36594         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
36595         Reported by Jim Meyering.
36596
36597 2008-04-01  Bruno Haible  <bruno@clisp.org>
36598
36599         Fix test to work on IRIX 6.5 with cc.
36600         * tests/test-math.c (numeric_equal): New function.
36601         (main): Use it.
36602
36603 2008-04-01  Bruno Haible  <bruno@clisp.org>
36604
36605         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
36606
36607 2008-04-01  Bruno Haible  <bruno@clisp.org>
36608
36609         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
36610         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
36611         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
36612         (Depends-on): Remove math.
36613
36614         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
36615         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
36616         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
36617         (Depends-on): Remove math.
36618
36619         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
36620         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
36621         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
36622         (Depends-on): Remove math.
36623         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
36624         (Depends-on): Remove math.
36625
36626         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
36627         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
36628         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
36629         (Depends-on): Remove math.
36630         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
36631         (Depends-on): Remove math.
36632
36633         * tests/test-round1.c: Include nan.h.
36634         (main): Use NaNd instead of NAN.
36635         * modules/round-tests (Files): Add tests/nan.h.
36636
36637         * tests/test-trunc1.c: Include nan.h.
36638         (main): Use NaNd instead of NAN.
36639         * modules/trunc-tests (Files): Add tests/nan.h.
36640
36641         * tests/test-roundf1.c: Include nan.h.
36642         (main): Use NaNf instead of NAN.
36643         * modules/roundf-tests (Files): Add tests/nan.h.
36644
36645         * tests/test-truncf1.c: Include nan.h.
36646         (main): Use NaNf instead of NAN.
36647         * modules/truncf-tests (Files): Add tests/nan.h.
36648
36649         * tests/test-ceilf1.c: Include nan.h.
36650         (main): Use NaNf instead of NAN.
36651         * modules/ceilf-tests (Files): Add tests/nan.h.
36652
36653         * tests/test-floorf1.c: Include nan.h.
36654         (main): Use NaNf instead of NAN.
36655         * modules/floorf-tests (Files): Add tests/nan.h.
36656
36657         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
36658         (main): Use NaNf instead of NAN.
36659         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
36660
36661         * tests/test-isnand.c: Include nan.h instead of <math.h>.
36662         (main): Use NaNd instead of NAN.
36663         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
36664
36665         * tests/test-frexp.c: Include nan.h.
36666         (main): Use NaNd instead of NAN.
36667         * modules/frexp-tests (Files): Add tests/nan.h.
36668
36669         * lib/isnan.c: Don't include <math.h>.
36670         (FUNC): Don't use NAN macro.
36671         * modules/isnand-nolibm (Depends-on): Remove math.
36672         * modules/isnanf-nolibm (Depends-on): Remove math.
36673         * modules/isnanl (Depends-on): Remove math.
36674         * modules/isnanl-nolibm (Depends-on): Remove math.
36675
36676         * tests/nan.h: New file.
36677
36678 2008-04-01  Eric Blake  <ebb9@byu.net>
36679
36680         Fix typos.
36681         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
36682         values to be the right type.
36683
36684         For now, cater to gnulib strtod inaccuracies.
36685         * tests/test-strtod.c (main): Allow 1-ulp error on expected
36686         fractional results.  While not as nice from a QoI perspective, it
36687         is a quicker patch than correctly implementing decimal to binary
36688         rounding.
36689
36690 2008-03-31  Eric Blake  <ebb9@byu.net>
36691
36692         Guarantee a definition of NAN.
36693         * lib/math.in.h (NAN): Define if missing.
36694         * tests/test-math.c (main): Test it.
36695         * doc/posix-headers/math.texi (math.h): Document this.
36696         * lib/isnan.c (rpl_isnand): Use it.
36697         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
36698         * tests/test-floorf1.c (NaN): Likewise.
36699         * tests/test-frexp.c (NaN): Likewise.
36700         * tests/test-isnand.c (NaN): Likewise.
36701         * tests/test-isnanf.c (NaN): Likewise.
36702         * tests/test-round1.c (NaN): Likewise.
36703         * tests/test-roundf1.c (NaN): Likewise.
36704         * tests/test-snprintf-posix.h (NaN): Likewise.
36705         * tests/test-sprintf-posix.h (NaN): Likewise.
36706         * tests/test-trunc1.c (NaN): Likewise.
36707         * tests/test-truncf1.c (NaN): Likewise.
36708         * tests/test-vasnprintf-posix.c (NaN): Likewise.
36709         * tests/test-vasprintf-posix.c (NaN): Likewise.
36710         * modules/isnand-nolibm (Depends-on): Add math.
36711         * modules/isnanf-nolibm (Depends-on): Likewise.
36712         * modules/isnanl (Depends-on): Likewise.
36713         * modules/isnanl-nolibm (Depends-on): Likewise.
36714         * modules/snprintf-posix-tests (Depends-on): Likewise.
36715         * modules/sprintf-posix-tests (Depends-on): Likewise.
36716         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
36717         * modules/vsprintf-posix-tests (Depends-on): Likewise.
36718         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
36719         * modules/vasprintf-posix-tests (Depends-on): Likewise.
36720
36721 2008-03-31  Bruno Haible  <bruno@clisp.org>
36722
36723         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
36724         * doc/posix-functions/strtod.texi: Likewise.
36725
36726 2008-03-31  Bruno Haible  <bruno@clisp.org>
36727
36728         * tests/test-strtod.c (main): Don't use C99 syntax.
36729
36730 2008-03-31  Bruno Haible  <bruno@clisp.org>
36731
36732         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
36733         Reported by Eric Blake.
36734
36735 2008-03-31  Jim Meyering  <meyering@redhat.com>
36736
36737         Don't compare actual signbit return values.
36738         * tests/test-strtod.c (main): Rather, compare only their
36739         zero/non-zero nature.
36740
36741 2008-03-31  Eric Blake  <ebb9@byu.net>
36742
36743         More strtod documentation.
36744         * doc/posix-functions/strtod.texi (strtod): Interpret more test
36745         failures as distinct bugs.
36746
36747 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36748
36749         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
36750         Problem reported by Erik Benada in
36751         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
36752
36753 2008-03-30  Bruno Haible  <bruno@clisp.org>
36754
36755         * tests/test-strtod.c: Add comments about which assertion fails on which
36756         platform.
36757         * doc/posix-functions/strtod.texi: Add info about many more platforms.
36758
36759 2008-03-30  Eric Blake  <ebb9@byu.net>
36760
36761         Test signbit behavior on zeros.
36762         * tests/test-signbit.c (test_signbitf): Add tests for zero.
36763         (test_signbitd, test_signbitl): Likewise.
36764
36765         More strtod touchups.
36766         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
36767         sign of negative underflow, for now.  Use .5, not .1.
36768         * doc/posix-functions/strtod.texi (strtod): Mention these
36769         limitations.
36770         Reported by Jim Meyering.
36771
36772 2008-03-30  Bruno Haible  <bruno@clisp.org>
36773
36774         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
36775         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
36776
36777 2008-03-30  Bruno Haible  <bruno@clisp.org>
36778
36779         Avoid failure when attempting to return empty iconv results on some
36780         platforms.
36781         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
36782         allocation, don't report ENOMEM when the resulting string is empty.
36783
36784 2008-03-30  Bruno Haible  <bruno@clisp.org>
36785
36786         Fix buffer overrun.
36787         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
36788         Don't consider the width for tmp_length. Check count against tmp_length
36789         before doing the padding. Ensure enough allocation during padding.
36790
36791 2008-03-30  Eric Blake  <ebb9@byu.net>
36792
36793         strtod touchups.
36794         * lib/strtod.c (strtod): Avoid compiler warnings.
36795         Reported by Jim Meyering.
36796
36797 2008-03-30  Bruno Haible  <bruno@clisp.org>
36798
36799         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
36800         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
36801         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
36802         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
36803         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
36804         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
36805         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
36806         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
36807
36808         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
36809         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
36810         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
36811         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
36812         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
36813         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
36814         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
36815         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
36816
36817         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
36818         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
36819         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
36820         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
36821         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
36822         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
36823         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
36824         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
36825
36826         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
36827         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
36828
36829         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
36830         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
36831
36832         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
36833         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
36834
36835         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
36836         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
36837         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
36838
36839         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
36840         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
36841         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
36842
36843         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
36844         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
36845         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
36846
36847         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
36848         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
36849         * modules/vasprintf (Depends-on): Add EOVERFLOW.
36850
36851         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
36852         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
36853         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
36854         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
36855         (Depends-on): Add EOVERFLOW.
36856         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
36857         (Depends-on): Add EOVERFLOW.
36858         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
36859         (Depends-on): Add EOVERFLOW.
36860         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
36861         (Depends-on): Add EOVERFLOW.
36862         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
36863         (Depends-on): Add EOVERFLOW.
36864         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
36865         (Depends-on): Add EOVERFLOW.
36866         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
36867         (Depends-on): Add EOVERFLOW.
36868         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
36869         (Depends-on): Add EOVERFLOW.
36870
36871         * lib/sprintf.c (EOVERFLOW): Remove fallback.
36872         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
36873         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
36874
36875         * lib/snprintf.c (EOVERFLOW): Remove fallback.
36876         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
36877         * modules/snprintf (Depends-on): Add EOVERFLOW.
36878
36879         * lib/poll.c (EOVERFLOW): Remove fallback.
36880         * modules/poll (Depends-on): Add EOVERFLOW.
36881
36882         * lib/getugroups.c (EOVERFLOW): Remove fallback.
36883         * modules/getugroups (Depends-on): Add EOVERFLOW.
36884
36885         * lib/getdelim.c (EOVERFLOW): Remove fallback.
36886         * modules/getdelim (Depends-on): Add EOVERFLOW.
36887
36888         * lib/ftell.c (EOVERFLOW): Remove fallback.
36889         * modules/ftell (Depends-on): Add EOVERFLOW.
36890
36891         * lib/fprintf.c (EOVERFLOW): Remove fallback.
36892         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
36893         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
36894
36895         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
36896
36897         * modules/EOVERFLOW-tests: New file.
36898         * tests/test-EOVERFLOW.c: New file.
36899
36900         * modules/EOVERFLOW: New file.
36901         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
36902
36903 2008-03-30  Bruno Haible  <bruno@clisp.org>
36904
36905         Fix bug introduced on 2007-06-10.
36906         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
36907         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
36908
36909 2008-03-30  Bruno Haible  <bruno@clisp.org>
36910
36911         Improve freadseek's efficiency after ungetc.
36912         * lib/freadseek.c: Include freadahead.h.
36913         (freadptrinc): New function, extracted from freadseek.
36914         (freadseek): Use it in a loop. Use freadahead to determine the number
36915         of loop iterations.
36916         * modules/freadseek (Depends-on): Add freadahead.
36917         (configure.ac): Require AC_C_INLINE.
36918
36919 2008-03-30  Bruno Haible  <bruno@clisp.org>
36920
36921         * lib/freadseek.c (freadseek): Don't ignore the return value of
36922         freadptr.
36923
36924 2008-03-29  Eric Blake  <ebb9@byu.net>
36925
36926         Add hex float support.
36927         * modules/strtod (Depends-on): Add c-ctype.
36928         (Link): Mention POW_LIB.
36929         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
36930         whitespace between 'e' and exponent.
36931         * tests/test-strtod.c (main): Enable hex float tests.
36932         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
36933         now provides.
36934
36935         Document various strtod bugs, with some fixes.
36936         * doc/posix-functions/strtod.texi (strtod): Document bugs with
36937         "-0x", "inf", "nan", and hex constants.
36938         * doc/posix-functions/atof.texi (atof): Likewise.
36939         * modules/stdlib (Makefile.am): Support strtod.
36940         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
36941         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
36942         detect additional strtod bugs.
36943         * lib/stdlib.in.h (rpl_strtod): Add declarations.
36944         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
36945         bool where appropriate.  Parse 'inf' and 'nan'.
36946         * tests/test-strtod.c: New file.
36947         * modules/strtod (Depends-on): Add stdbool, stdlib.
36948         (configure.ac): Turn on module indicator.
36949         * modules/strtod-tests: New module.
36950
36951 2008-03-29  Eric Blake  <ebb9@byu.net>
36952
36953         Fix ftell on mingw.
36954         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
36955         * modules/ftell-tests (Depends-on): Add binary-io.
36956         * modules/ftello-tests (Depends-on): Likewise.
36957         * tests/test-ftell.c (main): Enhance test to cover behavior after
36958         ungetc.  Enforce binary mode.
36959         * tests/test-ftello.c (main): Likewise.
36960
36961         Pass test-freadseek on cygwin.
36962         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
36963         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
36964         ungetc buffer.
36965
36966         * tests/test-fflush2.c (main): Fix typo.
36967
36968 2008-03-29  Bruno Haible  <bruno@clisp.org>
36969
36970         * tests/test-fflush2.c (main): Temporarily disable the contents of
36971         this test.
36972         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
36973         Reported by Eric Blake.
36974
36975 2008-03-28  Simon Josefsson  <simon@josefsson.org>
36976
36977         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
36978         (GC_SHA224_DIGEST_SIZE): Add.
36979
36980         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
36981         (gc_hash_digest_length): Likewise.
36982         (gc_hash_buffer): Likewise.
36983
36984 2008-03-25  Bruno Haible  <bruno@clisp.org>
36985
36986         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
36987         detail which gettext release to use.
36988         Reported by Simon Josefsson.
36989
36990 2008-03-26  Jim Meyering  <meyering@redhat.com>
36991
36992         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
36993         * modules/gnumakefile (clean-GNUmakefile): Also, use
36994         test ... && ... || : syntax rather than if-then ... fi.
36995
36996         gnumakefile: Don't double-quote-expand $(VPATH) value.
36997         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
36998
36999 2008-03-24  Eric Blake  <ebb9@byu.net>
37000
37001         Alter GNUmakefile to install into top directory.
37002         * modules/maintainer-makefile: Split, and add dependency...
37003         * modules/gnumakefile: to this new module.
37004         * build-aux/GNUmakefile: Move...
37005         * top/GNUmakefile: ...here.
37006         * build-aux/maint.mk: Move...
37007         * top/maint.mk: ...here.
37008         * MODULES.html.sh (Support for maintaining...): Document new
37009         module.
37010
37011 2008-03-23  Bruno Haible  <bruno@clisp.org>
37012
37013         * gnulib-tool: New options --vc-files, --no-vc-files.
37014         (func_usage): Document them.
37015         (vc_files): New variable.
37016         (func_import): Consider vc_files.
37017         (func_create_testdir): Set vc_files to empty.
37018         Suggested by Jim Meyering and Karl Berry.
37019
37020 2008-03-23  Bruno Haible  <bruno@clisp.org>
37021
37022         Fix regex compilation error on HP-UX 11.
37023         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
37024         * modules/regex (Files): Add m4/mbstate_t.m4.
37025         Reported by Ton Voon <ton.voon@altinity.com>.
37026
37027 2008-03-23  Bruno Haible  <bruno@clisp.org>
37028
37029         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
37030
37031 2008-03-23  Eric Blake  <ebb9@byu.net>
37032             Bruno Haible  <bruno@clisp.org>
37033
37034         Install files from top/ in the destination directory.
37035         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
37036         augmentation also for the files from top/.
37037         (func_import, func_create_testdir): Rewrite file names:
37038         top/filename -> filename.
37039
37040 2008-03-23  Bruno Haible  <bruno@clisp.org>
37041
37042         Tweak "gnulib --version" output.
37043         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
37044
37045 2008-03-23  Bruno Haible  <bruno@clisp.org>
37046
37047         Tweak "gnulib --version" output.
37048         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
37049         rather than contents of ChangeLog, when possible.
37050
37051 2008-03-21  Eric Blake  <ebb9@byu.net>
37052
37053         More --version tweaks.
37054         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
37055         date of last ChangeLog entry.
37056
37057 2008-03-21  Jim Meyering  <meyering@redhat.com>
37058
37059         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
37060
37061 2008-03-20  Eric Blake  <ebb9@byu.net>
37062
37063         VPATH fix.
37064         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
37065
37066 2008-03-20  Simon Josefsson  <simon@josefsson.org>
37067
37068         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
37069         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
37070
37071 2008-03-20  Eric Blake  <ebb9@byu.net>
37072
37073         Sync GNUmakefile with coreutils.
37074         * build-aux/GNUmakefile (have-Makefile): Rename...
37075         (_have-Makefile): ...to this, for namespace consideration.
37076         (GNUmakefile.cfg): Include, if present.
37077         (_autoreconf): Define a default.
37078         (_is-dist-target): New rule for rebuilds to pick up intra-release
37079         version.
37080         (maint-cfg.mk): Rename...
37081         (cfg.mk): ...to this.
37082
37083 2008-03-18  Jim Meyering  <meyering@redhat.com>
37084
37085         New script and module: mktempd
37086         * MODULES.html.sh (maint+release support): Add mktempd.
37087         * build-aux/mktempd: New file.
37088         * modules/mktempd: New file.
37089
37090 2008-03-15  Jim Meyering  <meyering@redhat.com>
37091
37092         Undo last change.
37093         * lib/sha1.c, lib/md5.c: 63 != ~63.
37094         Reported by Andreas Schwab.
37095
37096         sha1.c, md5.c: Hoist a redundant expression.
37097         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
37098         "ctx->buflen" only once, before calling *_process_block.
37099         * lib/md5.c (md5_process_bytes): Likewise.
37100
37101 2008-03-14  Eric Blake  <ebb9@byu.net>
37102
37103         Bump copyright year in files generated by gnulib-tool.
37104         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
37105         gnulib-tool, rather than hard-coding it.
37106
37107         Fix 'gnulib-tool --version' output to work with git.
37108         * gnulib-tool (func_gnulib_dir): New function, extracted from...
37109         (startup): ...here.
37110         (func_version): Use it to invoke git-version-gen, rather than
37111         relying on CVS keyword expansion.  Modernize wording.
37112         (cvsdatestamp, last_checkin_date, version): Kill unused
37113         variables.
37114
37115 2008-03-12  Jim Meyering  <meyering@redhat.com>
37116
37117         Recognize optional cast of the argument to free.
37118         * build-aux/useless-if-before-free: Update regexps.
37119
37120         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
37121
37122 2008-03-11  Bruno Haible  <bruno@clisp.org>
37123
37124         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
37125         by a single package.
37126         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
37127         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
37128         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
37129         Reported by Sam Steingold <sds@gnu.org>.
37130
37131 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37132
37133         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
37134         repositories.
37135
37136 2008-03-11  Bruno Haible  <bruno@clisp.org>
37137
37138         Avoid conflicts between local macro definitions.
37139         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
37140         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
37141
37142 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
37143             Bruno Haible  <bruno@clisp.org>
37144
37145         Make va_copy work with some version of xlc on AIX 5.1.
37146         * lib/stdarg.in.h: New file.
37147         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
37148         On AIX, use a <stdarg.h> file substitute.
37149         * modules/stdarg (Files): Add lib/stdarg.in.h.
37150         (Depends-on): Add include_next.
37151         (Makefile.am): Build a stdarg.h substitute if requested.
37152         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
37153
37154 2008-03-10  Bruno Haible  <bruno@clisp.org>
37155
37156         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
37157         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37158         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
37159
37160 2008-03-10  Bruno Haible  <bruno@clisp.org>
37161
37162         * modules/stdlib (Depends-on): Add include_next, remove
37163         absolute-header.
37164
37165 2008-03-09  Bruno Haible  <bruno@clisp.org>
37166
37167         * lib/freadahead.h (freadahead): Document more precisely.
37168         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
37169         the sum of both buffer sizes.
37170         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
37171         * NEWS: Document the change.
37172
37173 2008-03-09  Bruno Haible  <bruno@clisp.org>
37174
37175         Extend freadptr to return also the buffer size.
37176         * lib/freadptr.h (freadptr): Add sizep argument.
37177         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
37178         (freadptr): Add sizep argument. Determine buffer size like freadahead
37179         does.
37180         * tests/test-freadptr.c: Don't include freadahead.h.
37181         (main): Adapt for new calling convention of freadptr.
37182         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
37183         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
37184         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
37185         tests/test-freadptr2.sh.
37186         (Depends): Remove freadahead.
37187         (TESTS): Add test-freadptr2.sh.
37188         (check_PROGRAMS): Add test-freadptr2.
37189
37190 2008-03-09  Bruno Haible  <bruno@clisp.org>
37191
37192         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
37193         Report and solution by Simon Josefsson.
37194
37195 2008-03-06  Bruno Haible  <bruno@clisp.org>
37196
37197         Make fflush after ungetc work on BSD platforms.
37198         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
37199         * tests/test-fflush2.c: New file.
37200         * tests/test-fflush2.sh: New file.
37201         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
37202         tests/test-fflush2.c.
37203         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
37204         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
37205
37206 2008-03-06  Eric Blake  <ebb9@byu.net>
37207
37208         Likewise for ftello.
37209         * modules/ftello (Dependencies): Add extensions.
37210         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
37211
37212 2008-03-06  Bruno Haible  <bruno@clisp.org>
37213
37214         * modules/fseeko (Dependencies): Add extensions.
37215         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
37216         Needed on glibc systems.
37217
37218 2008-03-06  Bruno Haible  <bruno@clisp.org>
37219
37220         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
37221         email address.
37222         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
37223
37224 2008-03-06  Bruno Haible  <bruno@clisp.org>
37225
37226         * users.txt: Add libgnupdf.
37227
37228 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
37229
37230         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
37231         (Header File Substitutes, Function Substitutes,
37232         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
37233         (Build robot for gnulib): Fix typo.
37234
37235 2008-03-06  Bruno Haible  <bruno@clisp.org>
37236
37237         * doc/gnulib-tool.texi (VCS Issues): Small updates.
37238         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
37239
37240 2008-03-06  Bruno Haible  <bruno@clisp.org>
37241
37242         * doc/func.texi: New file, extracted from doc/gnulib.texi.
37243         * doc/gnulib.texi: Include it.
37244
37245 2008-03-06  Simon Josefsson  <simon@josefsson.org>
37246
37247         * modules/func (License): Change license to unlimited; there was
37248         no LGPL parts in the module anyway.
37249
37250 2008-03-06  Simon Josefsson  <simon@josefsson.org>
37251
37252         * modules/__func__: Renamed to modules/func.
37253         * modules/__func__-tests: Renamed to modules/func-tests.
37254         * tests/test-__func__.c: Renamed to tests/test-func.c.
37255         * m4/__func__.m4: Renamed to m4/func.m4.
37256         * doc/gnulib.texi (__func__): Section renamed to func.
37257         Suggested by Eric Blake <ebb9@byu.net>.
37258
37259 2008-03-06  Simon Josefsson  <simon@josefsson.org>
37260
37261         * doc/gnulib.texi (__func__): Use C99 terminology when talking
37262         about __func__.  Make example self-contained.  Suggested by Eric
37263         Blake <ebb9@byu.net>.
37264
37265         * tests/test-__func__.c (main): Avoid extraneous () around __func.
37266         Suggested by Eric Blake <ebb9@byu.net>.
37267
37268 2008-03-06  Simon Josefsson  <simon@josefsson.org>
37269
37270         * modules/__func__: New file.
37271         * modules/__func__-tests: New file.
37272         * tests/test-__func__.c: New file.
37273         * m4/__func__.m4: New file.
37274         * doc/gnulib.texi (__func__): Document __func__ module.
37275
37276 2008-03-05  Simon Josefsson  <simon@josefsson.org>
37277
37278         * modules/byteswap (License): Re-license as LGPLv2+.
37279
37280 2008-03-05  Simon Josefsson  <simon@josefsson.org>
37281
37282         * doc/Makefile: Add pdf target.
37283
37284 2008-03-05  Simon Josefsson  <simon@josefsson.org>
37285
37286         * modules/inline (License): Use 'unlimited', since there are only
37287         *.m4 files in this module.
37288
37289 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
37290             Bruno Haible  <bruno@clisp.org>
37291
37292         Add support for HP C 7.1 on OpenVMS 8.3.
37293         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
37294
37295 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
37296
37297         Update VMS specifics.
37298         * lib/getopt.c [VMS]: Remove include of unixlib.h.
37299
37300 2008-03-02  Jim Meyering  <meyering@redhat.com>
37301
37302         Remove the last dependency on the "free" module.
37303         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
37304         Reported by Bob Proulx.
37305
37306         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
37307
37308         Remove useless "if" tests before free.  Deprecate "free" module.
37309         * doc/posix-functions/free.texi: Mention that this
37310         module is no longer useful.
37311         * modules/free (Notice): Say this module is obsolete.
37312         * modules/readutmp (Depends-on): Remove free.
37313         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
37314         * lib/putenv.c (putenv): Likewise.
37315         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
37316         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
37317         * tests/test-c-strcasestr.c (main): Likewise.
37318         * tests/test-c-strstr.c (main): Likewise.
37319         * tests/test-mbscasestr1.c (main): Likewise.
37320         * tests/test-mbscasestr2.c (main): Likewise.
37321         * tests/test-mbsstr1.c (main): Likewise.
37322         * tests/test-mbsstr2.c (main): Likewise.
37323         * tests/test-memmem.c (main): Likewise.
37324         * tests/test-strcasestr.c (main): Likewise.
37325         * tests/test-striconv.c (main): Likewise.
37326         * tests/test-striconveh.c (main): Likewise.
37327         * tests/test-striconveha.c (main): Likewise.
37328         * tests/test-strstr.c (main): Likewise.
37329
37330         * build-aux/git-version-gen: Adjust a comment and the Usage string.
37331
37332         bootstrap: sync from coreutils again
37333         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
37334
37335 2008-03-01  Jim Meyering  <meyering@redhat.com>
37336
37337         bootstrap: sync from coreutils
37338         * build-aux/bootstrap (update_po_files): Copy a .po file into place
37339         also when the target doesn't exist.
37340
37341 2008-03-01  Eric Blake  <ebb9@byu.net>
37342
37343         Fix bugs in last patch.
37344         * lib/memchr2.c (memchr2): Fix typo.
37345         * tests/test-memchr2.c: Test previous bug, and don't use GNU
37346         extension.
37347         Reported by Bruce Korb.
37348
37349         New module 'memchr2'.
37350         * modules/memchr2: New file.
37351         * modules/memchr2-tests: Likewise.
37352         * lib/memchr2.h: Likewise.
37353         * lib/memchr2.c: Likewise, based on memchr.c.
37354         * tests/test-memchr2.c: New test.
37355         * MODULES.html.sh (String handling): Add memchr2.
37356
37357 2008-02-29  Bruno Haible  <bruno@clisp.org>
37358
37359         * modules/freadseek-tests: New file.
37360         * tests/test-freadseek.sh: New file.
37361         * tests/test-freadseek.c: New file.
37362
37363         New module 'freadseek'.
37364         * modules/freadseek: New file.
37365         * lib/freadseek.h: New file.
37366         * lib/freadseek.c: New file.
37367         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
37368
37369 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
37370
37371         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
37372         wydawca.
37373
37374         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
37375         program_invocation_name and program_invocation_short_name are
37376         present.
37377
37378 2008-02-28  Bruno Haible  <bruno@clisp.org>
37379
37380         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
37381         * tests/test-freadptr.sh: Also test non-seekable stdin.
37382
37383 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
37384
37385         * build-aux/bootstrap (source_base, m4_base)
37386         (doc_base, tests_base): New variables.
37387         (gnulib_tool_options): Do not hardcode base directories, use
37388         the above variables instead.
37389
37390 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
37391
37392         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
37393
37394 2008-02-28  Bruno Haible  <bruno@clisp.org>
37395
37396         * modules/freadptr-tests: New file.
37397         * tests/test-freadptr.sh: New file.
37398         * tests/test-freadptr.c: New file.
37399
37400         New module 'freadptr'.
37401         * modules/freadptr: New file.
37402         * lib/freadptr.h: New file.
37403         * lib/freadptr.c: New file.
37404         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
37405
37406 2008-02-26  Karl Berry  <karl@freefriends.org>
37407
37408         Sync from Libtool:
37409         * libltdl/argz.c (argz_add, argz_count): New functions.
37410         * libltdl/argz.in.h: Declare them.
37411         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
37412
37413 2008-02-22  Bruno Haible  <bruno@clisp.org>
37414
37415         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
37416         is a pointer type.  Needed for HP-UX 10.
37417         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
37418         * doc/posix-functions/gmtime_r.texi: Likewise.
37419         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
37420
37421 2008-02-24  Bruno Haible  <bruno@clisp.org>
37422
37423         * modules/environ-tests: New file.
37424         * tests/test-environ.c: New file.
37425
37426         New module 'environ'.
37427         * modules/environ: New file.
37428         * lib/unistd.in.h (environ): New declaration.
37429         * m4/environ.m4: New file.
37430         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
37431         after use.
37432         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
37433         HAVE_DECL_ENVIRON.
37434         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
37435         HAVE_DECL_ENVIRON.
37436         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
37437         wrong claim that 'environ' is missing on some systems.
37438         * modules/execute (Depends-on): Add environ.
37439         * lib/execute.c (environ): Remove fallback declaration.
37440         * modules/pipe (Depends-on): Add environ.
37441         * lib/pipe.c (environ): Remove fallback declaration.
37442         * modules/setenv (Depends-on): Add environ.
37443         * lib/setenv.c (environ): Remove fallback declaration.
37444         * modules/unsetenv (Depends-on): Add environ.
37445         * lib/unsetenv.c (environ): Remove fallback declaration.
37446         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
37447         m4/environ.m4.
37448         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
37449         (gl_PREREQ_UNSETENV): Likewise.
37450
37451 2008-02-24  Bruno Haible  <bruno@clisp.org>
37452
37453         * doc/posix-functions/environ.texi: Document the MacOS X problem.
37454
37455 2008-02-20  Bob Proulx  <bob@proulx.com>
37456
37457         Enable use of older two part flavor 'git describe'.
37458         * build-aux/git-version-gen: If using the older two part flavor of
37459         git version then recreate the third part now present in the
37460         newer three part flavor of git describe.
37461
37462 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
37463
37464         * lib/fts.c (fts_build): Typo correction to comment.
37465
37466 2008-02-17  Bruno Haible  <bruno@clisp.org>
37467
37468         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
37469         generating no-op conflicts.
37470
37471 2008-02-17  Bruno Haible  <bruno@clisp.org>
37472
37473         Speed up by 10%.
37474         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
37475         result_entries, rather than an index-based loop.
37476
37477 2008-02-17  Bruno Haible  <bruno@clisp.org>
37478
37479         Speed up by 25%.
37480         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
37481         'hashcode_cached'.
37482         (entry_create): New function.
37483         (entry_hashcode): Use the cached hashcode if possible.
37484         (read_changelog_file, try_split_merged_entry): Use entry_create.
37485
37486 2008-02-17  Bruno Haible  <bruno@clisp.org>
37487
37488         Speed up from O(n^2) to O(n) for long ChangeLog files.
37489         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
37490         (read_changelog_file): Change implementation of entries_reversed list
37491         to rbtreehash.
37492         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
37493
37494 2008-02-17  Bruno Haible  <bruno@clisp.org>
37495
37496         New option --split-merged-entry.
37497         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
37498         (find_paragraph_end, try_split_merged_entry): New functions.
37499         (long_options): Add option --split-merged-entry.
37500         (usage): Document option --split-merged-entry.
37501         (main): Implement option --split-merged-entry.
37502         Reported by Eric Blake.
37503
37504 2008-02-17  Bruno Haible  <bruno@clisp.org>
37505
37506         * lib/git-merge-changelog.c: Include c-strstr.h.
37507         (main): Support the "git pull --rebase" situation.
37508         * modules/git-merge-changelog (Depends-on): Add c-strstr.
37509         Reported by Eric Blake.
37510
37511 2008-02-16  Eric Blake  <ebb9@byu.net>
37512
37513         Avoid doubling \ in common case of "c-maybe" quoting style.
37514         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
37515         eliding outer quotes.
37516         * lib/quotearg.h: Document this.
37517         * tests/test-quotearg.c (result_strings, inputs, results_g)
37518         (flag_results, locale_results): Test it by adding a new string to
37519         each test group.
37520         (compare_strings): Test new string.
37521
37522 2008-02-13  Eric Blake  <ebb9@byu.net>
37523
37524         Avoid trigraph quoting in default output.
37525         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
37526         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
37527         unless explicitly requested.
37528         * tests/test-quotearg.c (flag_results, main): Add additional tests.
37529
37530 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
37531
37532         Don't rely on signed integer overflowing to negative value.
37533         * lib/getugroups.c (getugroups): Include <limits.h>.
37534         Instead, compare against INT_MAX, and increment only if the test passes.
37535
37536 2008-02-13  Jim Meyering  <meyering@redhat.com>
37537         and Eric Blake  <ebb9@byu.net>
37538
37539         Avoid shadowing warning and compile errors on Linux.
37540         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
37541         forwarding macros on Linux.
37542         (dcgettext): Define a stub, for Linux.
37543         (results_g, main): Avoid warnings.
37544
37545 2008-02-12  Eric Blake  <ebb9@byu.net>
37546
37547         Silence warning in last patch.
37548         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
37549
37550         Quotearg part 4: add tests, fix c-maybe colon quoting.
37551         * lib/quotearg.h: Improve documentation.
37552         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
37553         escapes when adding outer quotes.  When quoting trigraphs, use
37554         valid C notation.  When quoting NUL, omit extra characters if next
37555         character is not digit.  Alter prototype.
37556         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
37557         callers.
37558         * modules/quotearg-tests: New module.
37559         * tests/test-quotearg.c: New test.
37560
37561 2008-02-07  Eric Blake  <ebb9@byu.net>
37562
37563         Quotearg part 3: add flag to control outer quote elision.
37564         * lib/quotearg.h (c_maybe_quoting_style): New style.
37565         (enum quoting_flags): Better documentation of flags.
37566         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
37567         c-maybe style.
37568         (quotearg_buffer_restyled): Handle new flag to elide outer
37569         quotes.
37570
37571         Quotearg part 2: add flag that can control NUL elision.
37572         * lib/quotearg.h (set_quoting_flags): New prototype.
37573         * lib/quotearg.c (struct quoting_options): Add flag field.
37574         (set_quoting_flags): New function.
37575         (quotearg_buffer_restyled): Add flags parameter.
37576         (quotearg_alloc_mem): Set the flag if length cannot be returned.
37577         (quotearg_n_options): Set the flag, since length cannot be
37578         returned.
37579         (quoting_options_from_style): Default flags correctly.
37580
37581         Quotearg part 1: more wrappers, restore quotearg_char state.
37582         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
37583         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
37584         (quotearg_colon_mem): New wrappers.
37585         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
37586         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
37587         functions.
37588         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
37589         (quotearg_colon_mem): New functions.
37590
37591 2008-02-11  Bruno Haible  <bruno@clisp.org>
37592
37593         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
37594         library in the current directory: it does not work with parallel make.
37595         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37596
37597 2008-02-11  Bruno Haible  <bruno@clisp.org>
37598
37599         * .gitattributes: New file.
37600
37601 2008-02-11  Jim Meyering  <meyering@redhat.com>
37602
37603         useless-if-before-free: Fix reversed exit values.
37604         * build-aux/useless-if-before-free: Use correct values
37605         for EXIT_MATCH and EXIT_NO_MATCH.
37606
37607         * build-aux/useless-if-before-free: Close stdout carefully.
37608
37609 2008-02-10  Bruno Haible  <bruno@clisp.org>
37610
37611         New module 'git-merge-changelog'.
37612         * modules/git-merge-changelog: New file.
37613         * lib/git-merge-changelog.c: New file.
37614
37615 2008-02-10  Jim Meyering  <meyering@redhat.com>
37616
37617         useless-if-before-free: New option: --list (-l).
37618
37619         useless-if-before-free: Don't exit immediately upon open failure.
37620         * build-aux/useless-if-before-free: Exit 2 for errors.
37621         Upon failure to open a file, don't exit immediately.
37622         Rather, just warn and continue with any remaining files.
37623
37624 2008-02-10  Bruno Haible  <bruno@clisp.org>
37625
37626         New abstract list operation 'node_set_value'.
37627         * lib/gl_list.h (gl_list_node_set_value): New function.
37628         (struct gl_list_implementation): New field node_set_value.
37629         * lib/gl_list.c (gl_list_node_set_value): New function.
37630         * lib/gl_array_list.c (gl_array_node_set_value): New function.
37631         (gl_array_list_implementation): Update.
37632         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
37633         (gl_carray_list_implementation): Update.
37634         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
37635         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
37636         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
37637         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
37638         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
37639         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
37640         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
37641         Update.
37642         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
37643         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
37644         (gl_sublist_list_implementation): Update.
37645
37646 2008-02-10  Bruno Haible  <bruno@clisp.org>
37647
37648         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
37649         Needed when ELEMENT is #defined to 'some_type *'.
37650
37651 2008-02-10  Jim Meyering  <meyering@redhat.com>
37652
37653         New script and module: useless-if-before-free
37654         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
37655         * build-aux/useless-if-before-free: New file.
37656         * modules/useless-if-before-free: New file.
37657
37658         * build-aux/gitlog-to-changelog: Use committer date, not author date.
37659
37660         xstrtol_error: Fix typo.
37661         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
37662         s/exit_failure/exit_status/.
37663
37664 2008-02-09  Jim Meyering  <meyering@redhat.com>
37665
37666         New script and module: gitlog-to-changelog
37667         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
37668         * modules/gitlog-to-changelog: New file.
37669         * build-aux/gitlog-to-changelog: New file.
37670
37671 2008-02-08  Jim Meyering  <meyering@redhat.com>
37672
37673         Avoid two "parameter unused" warnings.
37674         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
37675         Mark "st" as used.
37676
37677         Use "git COMMAND", not "git-COMMAND".
37678         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
37679         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
37680         * build-aux/git-version-gen: Use "git status", not "git-status".
37681
37682 2008-02-07  Bruno Haible  <bruno@clisp.org>
37683
37684         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
37685         Avoids a crash on Windows Vista.
37686         Reported by Adam Strzelecki <ono@java.pl> via
37687         Simon Josefsson <simon@josefsson.org>.
37688
37689 2008-02-06  Bruno Haible  <bruno@clisp.org>
37690
37691         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
37692         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
37693         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
37694         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
37695         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37696         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37697         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
37698         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
37699         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37700         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37701         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37702         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37703         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37704         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37705         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37706         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
37707         left-adjust flag.
37708         * tests/test-snprintf-posix.h (test_function): Likewise.
37709         * tests/test-sprintf-posix.h (test_function): Likewise.
37710         * tests/test-vasprintf-posix.c (test_function): Likewise.
37711         * doc/posix-functions/fprintf.texi: Update.
37712         * doc/posix-functions/printf.texi: Update.
37713         * doc/posix-functions/snprintf.texi: Update.
37714         * doc/posix-functions/sprintf.texi: Update.
37715         * doc/posix-functions/vfprintf.texi: Update.
37716         * doc/posix-functions/vprintf.texi: Update.
37717         * doc/posix-functions/vsnprintf.texi: Update.
37718         * doc/posix-functions/vsprintf.texi: Update.
37719         Reported by Peter Fales <psfales@alcatel-lucent.com>.
37720
37721 2008-02-06  Bruno Haible  <bruno@clisp.org>
37722
37723         Fix bug introduced on 2008-01-26.
37724         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
37725
37726 2008-02-06  Bruno Haible  <bruno@clisp.org>
37727
37728         Fix bug introduced on 2007-06-10.
37729         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
37730         !NEED_PRINTF_FLAG_ZERO.
37731
37732 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
37733
37734         getloadavg: use libperfstat on AIX5
37735         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
37736
37737 2008-02-03  Bruno Haible  <bruno@clisp.org>
37738
37739         * lib/diffseq.h: Add comments about required #includes.
37740         Reported by Michael Biggs <gnulib@doubleplum.net>.
37741
37742 2008-02-01  Bruno Haible  <bruno@clisp.org>
37743
37744         * users.txt: Add gnuit.
37745
37746 2008-01-31  Bruno Haible  <bruno@clisp.org>
37747
37748         * lib/md4.c (set_uint32): Mark as inline.
37749         * lib/md5.c (set_uint32): Likewise.
37750         * lib/sha1.c (set_uint32): Likewise.
37751         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
37752         * m4/md5.m4 (gl_MD5): Likewise.
37753         * m4/sha1.m4 (gl_SHA1): Likewise.
37754
37755 2008-01-31  Jim Meyering  <meyering@redhat.com>
37756
37757         Use "sizeof VAR", rather than a literal "4".
37758         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
37759         * lib/md4.c (md4_read_ctx): Likewise.
37760         * lib/sha1.c (sha1_read_ctx): Likewise.
37761
37762 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37763
37764         * tests/test-sha1.c: New file, based on test-md5.c.
37765
37766         * modules/crypto/sha1-tests: New file.
37767
37768 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37769
37770         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
37771
37772 2008-01-31  Jim Meyering  <meyering@redhat.com>
37773
37774         Prefer "sizeof v" over the equivalent "4".
37775         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
37776         * lib/md5.c (set_uint32): Likewise.
37777         * lib/sha1.c (set_uint32): Likewise.
37778
37779 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37780
37781         * lib/sha1.c (set_uint32): Mark function as static.
37782
37783 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37784
37785         md2: clarify comments to say that alignment is not required.
37786         * lib/md2.h: Remove warning about alignment in comment.
37787         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
37788         never been required.
37789
37790 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37791
37792         md4: adapt alignment constraint fix from sha1.
37793         * lib/md4.c (set_uint32): New function, from sha1.c
37794         (md4_read_ctx): Use it.
37795         (md4_finish_ctx): Doc fix.
37796         * lib/md4.h: Doc fix.
37797
37798 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37799
37800         md5: adapt alignment constraint fix from sha1.
37801         * lib/md5.c (set_uint32): New function, from sha1.c
37802         (md5_read_ctx): Use it.
37803         (md5_finish_ctx): Doc fix.
37804         * lib/md5.h: Doc fix.
37805
37806 2008-01-30  Peter Palfrader  <weasel@debian.org>
37807
37808         sha1: remove the result buffer alignment constraint
37809         * lib/sha1.c (set_uint32): New function.
37810         (sha1_read_ctx): Rewrite to remove the result buffer alignment
37811         constraint.
37812         (sha1_finish_ctx): Remove comment warning about alignment constraint.
37813         * lib/sha1.h: Likewise.
37814
37815 2008-01-30  Andreas Schwab  <schwab@suse.de>
37816             Bruno Haible  <bruno@clisp.org>
37817
37818         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
37819         correct definition of LDBL_MIN_EXP.
37820
37821 2008-01-30  Karl Berry  <karl@gnu.org>
37822
37823         * config/srclist-update: try to preserve x bit on updates.
37824         * config/srclistvars.sh: update for karl.
37825
37826 2008-01-29  Jim Meyering  <meyering@redhat.com>
37827
37828         vasnprintf.c: Avoid warning about unused label
37829         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
37830         "overflow" label definition and associated code with the
37831         same cpp condition that guards the sole use of that label.
37832
37833 2008-01-26  Bruno Haible  <bruno@clisp.org>
37834
37835         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
37836         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
37837         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
37838         * lib/isnanl-nolibm.h (isnanl): Likewise.
37839         Reported by Paul Eggert <eggert@cs.ucla.edu>.
37840
37841 2008-01-26  Bruno Haible  <bruno@clisp.org>
37842
37843         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
37844         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
37845
37846 2008-01-26  Bruno Haible  <bruno@clisp.org>
37847
37848         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
37849         GCC >= 4.0 built-in.
37850         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
37851
37852 2008-01-26  Bruno Haible  <bruno@clisp.org>
37853
37854         Rename isnan, applicable to 'double' only, to isnand.
37855         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
37856         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
37857         (configure.ac): Update.
37858         (Include): Replace "isnan.h" with "isnand.h".
37859         * m4/isnand.m4: Renamed from m4/isnan.m4.
37860         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
37861         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
37862         instead of isnan.c.
37863         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
37864         instead of HAVE_ISNAN_IN_LIBC.
37865         (isnand): Renamed from isnan.
37866         * lib/isnand.c: New file.
37867         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
37868         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
37869         (Makefile.am): Update.
37870         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
37871         Include isnand.h instead of isnan.h.
37872         (main): Test isnand instead of isnan.
37873         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
37874         isnan-nolibm.
37875         * modules/frexp (Depends-on): Likewise.
37876         * modules/frexp-tests (Depends-on): Likewise.
37877         * modules/frexp-nolibm (Depends-on): Likewise.
37878         * modules/frexp-nolibm-tests (Depends-on): Likewise.
37879         * modules/isfinite (Depends-on): Likewise.
37880         * modules/round-tests (Depends-on): Likewise.
37881         * modules/signbit (Depends-on): Likewise.
37882         * modules/signbit-tests (Depends-on): Likewise.
37883         * modules/snprintf-posix (Depends-on): Likewise.
37884         * modules/sprintf-posix (Depends-on): Likewise.
37885         * modules/trunc-tests (Depends-on): Likewise.
37886         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37887         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37888         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37889         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37890         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37891         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37892         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37893         * modules/vasnprintf-posix (Depends-on): Likewise.
37894         * modules/vasprintf-posix (Depends-on): Likewise.
37895         * modules/vfprintf-posix (Depends-on): Likewise.
37896         * modules/vsnprintf-posix (Depends-on): Likewise.
37897         * modules/vsprintf-posix (Depends-on): Likewise.
37898         * lib/frexp.c: Include isnand.h instead of isnan.h.
37899         (ISNAN): Set to isnand instead of isnan.
37900         * lib/isfinite.c: Include isnand.h instead of isnan.h.
37901         (gl_isfinited): Use isnand instead of isnan.
37902         * lib/signbitd.c: Include isnand.h instead of isnan.h.
37903         (gl_signbitd): Use isnand instead of isnan.
37904         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
37905         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
37906         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
37907         (main): Use isnand instead of isnan.
37908         * tests/test-round1.c: Include isnand.h.
37909         (main): Use isnand instead of isnan.
37910         * tests/test-round2.c: Include isnand.h instead of isnan.h.
37911         (ISNAN): Set to isnand instead of isnan.
37912         * tests/test-trunc1.c: Include isnand.h.
37913         (main): Use isnand instead of isnan.
37914         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
37915         (equal): Use isnand instead of isnan.
37916         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
37917         isnand-nolibm.
37918         * NEWS: Mention the change.
37919
37920 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
37921             Bruno Haible  <bruno@clisp.org>
37922
37923         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
37924         the GCC builtins for signbits are present and set
37925         REPLACE_SIGNBIT_USING_GCC if so.
37926         * lib/math.in.h (signbit): Define using GCC builtins if
37927         REPLACE_SIGNBIT_USING_GCC is set.
37928         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
37929         REPLACE_SIGNBIT_USING_GCC.
37930         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
37931
37932 2008-01-25  Jim Meyering  <meyering@redhat.com>
37933
37934         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
37935         * lib/poll.c: Include <config.h>, not "config.h".
37936         * tests/test-getaddrinfo.c: Likewise.
37937
37938 2008-01-25  Simon Josefsson  <simon@josefsson.org>
37939
37940         * modules/sockets-tests: New file.
37941
37942 2008-01-24  Simon Josefsson  <simon@josefsson.org>
37943
37944         * modules/sockets: New module, can be used to call WSA_Startup and
37945         WSA_Cleanup when needed.
37946
37947         * lib/sockets.h, lib/sockets.c: New files.
37948
37949         * m4/sockets.m4: New file.
37950
37951         * tests/test-sockets.c: New file.
37952
37953 2008-01-19  Bruno Haible  <bruno@clisp.org>
37954
37955         * doc/posix-headers: Renamed from doc/headers.
37956         * doc/posix-functions: Renamed from doc/functions.
37957         * doc/gnulib.texi: Update.
37958
37959 2008-01-19  Bruno Haible  <bruno@clisp.org>
37960
37961         * doc/glibc-functions/strcasestr.texi: Include contents of
37962         doc/functions/strcasestr.texi, fixing the list of platforms.
37963         * doc/functions/strcasestr.texi: Remove file.
37964
37965 2008-01-19  Bruno Haible  <bruno@clisp.org>
37966
37967         * doc/glibc-functions/memmem.texi: Include contents of
37968         doc/functions/memmem.texi.
37969         * doc/functions/memmem.texi: Remove file.
37970
37971 2008-01-18  Bruno Haible  <bruno@clisp.org>
37972
37973         * doc/glibc-functions/*.texi: New files.
37974         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
37975         to use the new files.
37976
37977 2008-01-17  Bruno Haible  <bruno@clisp.org>
37978
37979         * tests/test-gethostname.c (main): Fix printf statement.
37980
37981 2008-01-17  Simon Josefsson  <simon@josefsson.org>
37982
37983         * modules/gethostname-tests: New file.
37984
37985         * tests/test-gethostname.c: New file.
37986
37987 2008-01-17  Simon Josefsson  <simon@josefsson.org>
37988
37989         * lib/gethostname.c: Include string.h unconditionally, strncpy is
37990         used by the UNAME case.  Reported by Bruno Haible
37991         <bruno@clisp.org>.
37992
37993 2008-01-17  Eric Blake  <ebb9@byu.net>
37994
37995         Convert c-strcasestr to be more efficient.
37996         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
37997         (Depends-on): Add c-strcase, remove malloca, strnlen.
37998         * tests/test-c-strcasestr.c (main): Enhance test.
37999         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
38000
38001 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
38002
38003         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
38004         Use it in creating po/Makevars.
38005
38006 2008-01-15  Simon Josefsson  <simon@josefsson.org>
38007
38008         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
38009         Applications that requires it should initialize libgcrypt
38010         manually.
38011
38012 2008-01-16  Simon Josefsson  <simon@josefsson.org>
38013
38014         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
38015
38016 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
38017
38018         Fix problem with getdate on mingw32 reported by Simon Josefsson
38019         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
38020         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
38021         tzname", when deciding whether to declare tzname.
38022         * lib/strftime.c (tzname): Likewise.
38023
38024 2008-01-15  Bruno Haible  <bruno@clisp.org>
38025
38026         Work around a MacOS X 10.5 bug in frexpl().
38027         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
38028         * doc/functions/frexpl.texi: Document the bug.
38029         Reported by Elias Pipping <pipping@gentoo.org>.
38030
38031 2008-01-14  Eric Blake  <ebb9@byu.net>
38032
38033         Touch up previous patch.
38034         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
38035         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
38036
38037         Convert strcasestr module to use Two-Way algorithm.
38038         * modules/strcasestr-simple: New module, based on the old
38039         strcasestr, but with Two-Way rather than KMP.
38040         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
38041         * lib/string.in.h (rpl_strcasestr): Declare.
38042         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
38043         performance.
38044         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
38045         * modules/string (Makefile.am): Support strcasestr.
38046         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38047         * modules/strcasestr-tests (Depends-on): Check for alarm.
38048         * tests/test-strcasestr.c: Augment test.
38049         * lib/str-two-way.h: Clean up stray macro.
38050         * NEWS: Document new module.
38051         * MODULES.html.sh (string handling): Likewise.
38052         * doc/functions/strcasestr.texi: New file.
38053         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
38054         here, since it is not a POSIX function.
38055
38056 2008-01-14  Colin Watson  <cjwatson@debian.org>
38057             Bruno Haible  <bruno@clisp.org>
38058
38059         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
38060         works fine; if not, set REPLACE_STRSIGNAL.
38061         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
38062         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38063         REPLACE_STRSIGNAL.
38064         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
38065         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
38066         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
38067
38068 2008-01-14  Bruno Haible  <bruno@clisp.org>
38069
38070         * modules/strsignal (Include): Change to <string.h>.
38071
38072 2008-01-14  Colin Watson  <cjwatson@debian.org>
38073
38074         * modules/argp (Notice): Add a notice recommending to change
38075         XGETTEXT_OPTIONS.
38076         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
38077
38078 2008-01-13  Colin Watson  <cjwatson@debian.org>
38079
38080         * modules/strsignal-tests: New file.
38081         * tests/test-strsignal.c: New file.
38082
38083         * lib/strsignal.c: New file, from glibc with modifications.
38084         * lib/siglist.h: New file, from glibc with modifications.
38085         * lib/string.in.h (strsignal): New declaration.
38086         * m4/strsignal.m4: New file.
38087         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38088         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
38089         * modules/strsignal: New file.
38090         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
38091         HAVE_DECL_STRSIGNAL.
38092
38093 2008-01-13  Bruno Haible  <bruno@clisp.org>
38094
38095         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
38096         locale encoding is not ASCII. Needed for OpenBSD 4.0.
38097         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
38098         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
38099
38100 2008-01-13  Bruno Haible  <bruno@clisp.org>
38101
38102         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
38103         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
38104         * lib/argp.h (__attribute__): Likewise.
38105         * lib/c-stack.c (__attribute__): Likewise.
38106         * lib/error.h (__attribute__): Likewise.
38107         * lib/fts.c (__attribute__): Likewise.
38108         * lib/openat.h (__attribute__): Likewise.
38109         * lib/stdio.in.h (__attribute__): Likewise.
38110         * lib/string.in.h (__attribute__): Likewise.
38111         * lib/utimens.c (__attribute__): Likewise.
38112         * lib/vasnprintf.h (__attribute__): Likewise.
38113         * lib/xalloc.h (__attribute__): Likewise.
38114         * lib/xprintf.h (__attribute__): Likewise.
38115         * lib/xstrtol.h (__attribute__): Likewise.
38116         * lib/xvasprintf.h (__attribute__): Likewise.
38117
38118 2008-01-12  Bruno Haible  <bruno@clisp.org>
38119
38120         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
38121         * doc/glibc-headers/a.out.texi: New file.
38122         * doc/glibc-headers/aliases.texi: New file.
38123         * doc/glibc-headers/alloca.texi: New file.
38124         * doc/glibc-headers/ar.texi: New file.
38125         * doc/glibc-headers/argp.texi: New file.
38126         * doc/glibc-headers/argz.texi: New file.
38127         * doc/glibc-headers/byteswap.texi: New file.
38128         * doc/glibc-headers/crypt.texi: New file.
38129         * doc/glibc-headers/endian.texi: New file.
38130         * doc/glibc-headers/envz.texi: New file.
38131         * doc/glibc-headers/err.texi: New file.
38132         * doc/glibc-headers/error.texi: New file.
38133         * doc/glibc-headers/execinfo.texi: New file.
38134         * doc/glibc-headers/fpu_control.texi: New file.
38135         * doc/glibc-headers/fstab.texi: New file.
38136         * doc/glibc-headers/fts.texi: New file.
38137         * doc/glibc-headers/getopt.texi: New file.
38138         * doc/glibc-headers/ieee754.texi: New file.
38139         * doc/glibc-headers/ifaddrs.texi: New file.
38140         * doc/glibc-headers/libintl.texi: New file.
38141         * doc/glibc-headers/mcheck.texi: New file.
38142         * doc/glibc-headers/mntent.texi: New file.
38143         * doc/glibc-headers/obstack.texi: New file.
38144         * doc/glibc-headers/paths.texi: New file.
38145         * doc/glibc-headers/printf.texi: New file.
38146         * doc/glibc-headers/pty.texi: New file.
38147         * doc/glibc-headers/resolv.texi: New file.
38148         * doc/glibc-headers/shadow.texi: New file.
38149         * doc/glibc-headers/sysexits.texi: New file.
38150         * doc/glibc-headers/ttyent.texi: New file.
38151
38152 2008-01-12  Jim Meyering  <meyering@redhat.com>
38153
38154         announce-gen: emit Gnulib's git-based version string.
38155         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
38156         New option --gnulib-version=V, where V is expected to be
38157         the output of running git describe in the gnulib directory.
38158         (get_tool_versions): Request feedback on xdelta.  I suspect it's
38159         not useful, and plan to stop publishing an xdelta file with each
38160         coreutils release.
38161
38162         * build-aux/announce-gen: Also check for lzma-compressed files.
38163
38164 2008-01-11  Bruno Haible  <bruno@clisp.org>
38165
38166         * tests/test-memmem.c (main): Increase maximum allowed time.
38167         * tests/test-strstr.c (main): Likewise.
38168
38169 2008-01-11  Bruno Haible  <bruno@clisp.org>
38170
38171         * doc/functions/memmem.texi: Add more precisions about platforms.
38172         * doc/functions/strstr.texi: Likewise.
38173
38174 2008-01-10  Eric Blake  <ebb9@byu.net>
38175
38176         * m4/strstr.m4: Delete cruft from copy-n-paste.
38177         Reported by Bruno Haible.
38178
38179 2008-01-10  Bruno Haible  <bruno@clisp.org>
38180
38181         Make c-strstr rely on strstr.
38182         * lib/c-strstr.c: Don't include str-kmp.h.
38183         (c_strstr): Define in terms of strstr.
38184         * modules/c-strstr (Files): Remove lib/str-kmp.h.
38185         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
38186
38187 2008-01-10  Bruno Haible  <bruno@clisp.org>
38188
38189         * doc/gnulib.texi (String Functions in C Locale): New section.
38190         * doc/c-ctype.texi: New file.
38191         * doc/c-strcase.texi: New file.
38192         * doc/c-strcaseeq.texi: New file.
38193         * doc/c-strcasestr.texi: New file.
38194         * doc/c-strstr.texi: New file.
38195         * doc/c-strtod.texi: New file.
38196         * doc/c-strtold.texi: New file.
38197
38198 2008-01-10  Eric Blake  <ebb9@byu.net>
38199
38200         * lib/relocatable.h: Fix a comment.
38201
38202 2008-01-10  Eric Blake  <ebb9@byu.net>
38203
38204         Share two-way algorithm.
38205         * lib/str-two-way.h: New file, merged from...
38206         * lib/memmem.c: ...here...
38207         * lib/strstr.c: ...and here.
38208         * modules/memmem (Files): Use it.
38209         * modules/strstr (Files): Likewise.
38210
38211         Avoid quadratic strstr implementations.
38212         * lib/strstr.c: New file.
38213         * m4/strstr.m4: Likewise.
38214         * modules/strstr: Likewise.
38215         * modules/strstr-tests: Likewise.
38216         * tests/test-strstr.c: Likewise.
38217         * lib/string.in.h (rpl_strstr): Declare.
38218         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
38219         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
38220         * modules/string (Makefile.am): Likewise.
38221         * MODULES.html.sh (string handling): Mention new module.
38222         * doc/functions/strstr.texi (strstr): Document the bug.
38223
38224 2008-01-10  Bruno Haible  <bruno@clisp.org>
38225
38226         * lib/relocatable.h (relocate): State whether result is freshly
38227         allocated or not.
38228         * lib/relocatable.c (relocate): Return a freshly allocated string
38229         instead of a pointer to a privately held string.
38230         Reported by Sylvain Beucler <beuc@gnu.org>.
38231
38232 2008-01-10  Colin Watson  <cjwatson@debian.org>
38233
38234         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
38235         s/S_ISNLK/S_ISLNK/.
38236
38237 2008-01-09  Bruno Haible  <bruno@clisp.org>
38238
38239         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
38240         and other files.
38241         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
38242         if it's only a guess.
38243         * modules/memmem: Simplify by depending on memmem-simple.
38244
38245 2008-01-09  Bruno Haible  <bruno@clisp.org>
38246
38247         Work around OpenBSD 4.0 tdelete() bug.
38248         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
38249         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
38250         macros and don't redefine the enum values.
38251         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
38252         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
38253         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
38254
38255 2008-01-09  Bruno Haible  <bruno@clisp.org>
38256
38257         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
38258         (main): Don't perform the tests if setlocale did not install a UTF-8
38259         locale. Needed on OpenBSD 4.0.
38260         * modules/wcwidth-tests (Depends-on): Add localcharset.
38261
38262 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
38263
38264         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
38265         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
38266         * NEWS: announce this.
38267         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
38268
38269 2008-01-09  Simon Josefsson  <simon@josefsson.org>
38270         and Eric Blake  <ebb9@byu.net>
38271
38272         Add memmem-simple module.
38273         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
38274         (gl_FUNC_MEMMEM): Separate performance from presence checks.
38275         * modules/memmem-simple: New file.
38276         * modules/memmem (Description): Tweak.
38277         * MODULES.html.sh (string handling): Mention new module.
38278         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
38279         addressed by memmem-simple.
38280         * NEWS: Document the difference.
38281
38282 2008-01-09  Eric Blake  <ebb9@byu.net>
38283
38284         Give gcc some memmem optimization hints.
38285         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
38286         (strcasestr): Declare as pure.
38287         * modules/memmem (Maintainer): Claim my implementation.
38288
38289 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38290
38291         Support AIX 6.1 and higher.
38292         * build-aux/config.libpath: Likewise.
38293         * build-aux/config.rpath: Likewise.
38294
38295 2008-01-08  Jim Meyering  <meyering@redhat.com>
38296             Bruno Haible  <bruno@clisp.org>
38297
38298         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
38299         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
38300         Reported by Peter Fales in
38301         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
38302
38303 2008-01-08  Bruno Haible  <bruno@clisp.org>
38304
38305         * modules/unictype/category-of (Depends-on): Add
38306         unictype/category-none.
38307         * modules/unictype/category-and-tests (Depends-on): Add
38308         unictype/category-{L,N,Lu,Nd}.
38309         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
38310         * modules/unictype/category-or-tests (Depends-on): Add
38311         unictype/category-{L,N}.
38312         * modules/unictype/category-name-tests (Depends-on): Add
38313         unictype/category-{Z,Nl}.
38314         Reported by Simon Josefsson.
38315
38316 2008-01-08  Bruno Haible  <bruno@clisp.org>
38317
38318         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
38319         convention better.
38320         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
38321         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
38322         Reported by Peter Miller <millerp@canb.auug.org.au>.
38323
38324 2008-01-08  Eric Blake  <ebb9@byu.net>
38325
38326         Rewrite memmem to guarantee linear complexity without malloc.
38327         * lib/memmem.c (memmem): Use Two-Way rather than
38328         Knuth-Morris-Pratt, to allow O(1) space usage.
38329         (critical_factorization, two_way_short_needle)
38330         (two_way_long_needle): New functions.
38331         (knuth_morris_pratt): Delete.
38332         * modules/memmem (Depends-on): No longer need malloca or stdbool.
38333         Add stdint.
38334         * tests/test-memmem.c (main): Add tests for periodic needle and
38335         sublinear performance.
38336         * doc/functions/memmem.texi (memmem): Document other deficiencies
38337         in cygwin and older glibc.
38338
38339 2008-01-08  Bruno Haible  <bruno@clisp.org>
38340
38341         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
38342         augmentation.
38343
38344 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
38345
38346         Add a configure time option: --disable-acl.
38347         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
38348         AC_ARG_ENABLE(acl).
38349
38350 2008-01-06  Simon Josefsson  <simon@josefsson.org>
38351
38352         * tests/test-localename.c: Don't include obsolete "setenv.h".
38353
38354         * modules/localename-tests (Depends-on): Need unsetenv.
38355
38356 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38357
38358         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
38359
38360 2008-01-06  Colin Watson  <cjwatson@debian.org>
38361
38362         * users.txt: Add man-db.
38363
38364 2008-01-07  Bruno Haible  <bruno@clisp.org>
38365
38366         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
38367         previous section name.
38368
38369 2008-01-07  Bruno Haible  <bruno@clisp.org>
38370
38371         * lib/progname.c (set_program_name): Don't strip off a leading
38372         "lt-" prefix outside a .libs directory.
38373         Suggested by Paul Eggert.
38374
38375 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
38376             Bruno Haible  <bruno@clisp.org>
38377
38378         Improve memory cleanup in 'relocatable' module.
38379         * lib/relocatable.h (compute_curr_prefix): Change return type to
38380         'char *'.
38381         * lib/relocatable.c (compute_curr_prefix): Change return type to
38382         'char *'. Free curr_installdir after use.
38383         (relocate): Free curr_prefix_better after use.
38384         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
38385
38386 2008-01-01  Bruno Haible  <bruno@clisp.org>
38387
38388         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
38389         failure on older glibc systems.
38390         Reported by Peter Fales <psfales@alcatel-lucent.com>.
38391
38392 2008-01-05  Eric Blake  <ebb9@byu.net>
38393
38394         Avoid quadratic system memmem.
38395         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
38396         Reported by Ralf Wildenhues.
38397
38398         Fix memmem test for mingw.
38399         * modules/memmem-tests (configure.ac): Check for alarm.
38400         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
38401         it.
38402         * doc/functions/memmem.texi: New file.
38403         * doc/gnulib.texi (Function Substitutes): Add memmem.
38404         Reported by Bruno Haible.
38405
38406 2008-01-04  Bruno Haible  <bruno@clisp.org>
38407
38408         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
38409         Require gl_HEADER_STRINGS_H_DEFAULTS, not
38410         gl_HEADER_STRING_H_DEFAULTS.
38411
38412 2008-01-04  Eric Blake  <ebb9@byu.net>
38413
38414         Shorten duration of memmem test.
38415         * tests/test-memmem.c (main): Use alarm to declare failure if test
38416         is taking too long.
38417         Reported by Ralf Wildenhues.
38418
38419 2007-12-21  Simon Josefsson  <simon@josefsson.org>
38420
38421         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
38422         string, needed by strerror.
38423
38424 2008-01-03  Colin Watson  <cjwatson@debian.org>
38425             Bruno Haible  <bruno@clisp.org>
38426
38427         * doc/gnulib-tool.texi (Localization): New section.
38428
38429 2008-01-02  Bruno Haible  <bruno@clisp.org>
38430
38431         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
38432         variables to 'unsigned char *' type.
38433         Reported by Paul Eggert.
38434
38435 2008-01-02  Jim Meyering  <jim@meyering.net>
38436
38437         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
38438
38439 2007-12-31  Jim Meyering  <jim@meyering.net>
38440
38441         Avoid use of private FTS type name.
38442         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
38443
38444 2007-12-30  Karl Berry  <karl@gnu.org>
38445
38446         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
38447         work around defect in Texinfo and/or the standalone Info browser.
38448
38449 2007-12-30  Bruno Haible  <bruno@clisp.org>
38450
38451         Unify 5 copies of the KMP code.
38452         * lib/str-kmp.h: New file.
38453         * lib/c-strcasestr.c: Include str-kmp.h.
38454         (knuth_morris_pratt): Remove function.
38455         (c_strcasestr): Update.
38456         * lib/c-strstr.c: Include str-kmp.h.
38457         (knuth_morris_pratt): Remove function.
38458         (c_strcasestr): Update.
38459         * lib/mbscasestr.c: Include str-kmp.h.
38460         (knuth_morris_pratt_unibyte): Remove function.
38461         * lib/mbsstr.c: Include str-kmp.h.
38462         (knuth_morris_pratt_unibyte): Remove function.
38463         * lib/strcasestr.c: Include str-kmp.h.
38464         (knuth_morris_pratt): Remove function.
38465         (strcasestr): Update.
38466         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
38467         * modules/c-strstr (Files): Likewise.
38468         * modules/mbscasestr (Files): Likewise.
38469         * modules/mbsstr (Files): Likewise.
38470         * modules/strcasestr (Files): Likewise.
38471         Suggested by Paul Eggert.
38472
38473 2007-12-30  Bruno Haible  <bruno@clisp.org>
38474
38475         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
38476         defined.
38477
38478 2007-12-30  Bruno Haible  <bruno@clisp.org>
38479
38480         * lib/xmalloca.h: Include xalloc.h.
38481         (xnmalloca): New macro.
38482
38483 2007-12-30  Bruno Haible  <bruno@clisp.org>
38484
38485         * lib/malloca.h (nmalloca): New macro.
38486         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
38487         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
38488         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
38489         knuth_morris_pratt_multibyte): Likewise.
38490         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
38491         knuth_morris_pratt_multibyte): Likewise.
38492         * lib/memmem.c (knuth_morris_pratt): Likewise.
38493         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
38494
38495 2007-12-25  Bruno Haible  <bruno@clisp.org>
38496
38497         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
38498         * lib/glob.c: Don't include openat.h.
38499         (link_exists2_p): Add back the code that deals with the
38500         !GLOB_ALTDIRFUNC case.
38501         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
38502         let it do the filename concatenation.
38503         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
38504         * modules/glob (Depends-on): Remove openat.
38505
38506 2007-12-31  Bruno Haible  <bruno@clisp.org>
38507
38508         * modules/dirfd (License): Change to LGPLv2+.
38509         Approved by Jim Meyering.
38510
38511 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
38512
38513         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
38514         when multiplying M by sizeof (size_t).
38515
38516 2007-12-10  Martin Lambers  <marlam@marlam.de>
38517
38518         Override getpagesize on mingw.
38519         * lib/getpagesize.c: New file.
38520         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
38521         * modules/getpagesize (Files): Add lib/getpagesize.c.
38522         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
38523         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38524         REPLACE_GETPAGESIZE.
38525         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
38526
38527 2007-12-25  Bruno Haible  <bruno@clisp.org>
38528
38529         * modules/localcharset (Notice): New field.
38530         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
38531         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
38532
38533 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
38534             Bruno Haible  <bruno@clisp.org>
38535
38536         Avoid using the syntax symbol() in formatted documentation.
38537         * MODULES.html.sh (func_module): When replacing symbol() with a
38538         hyperlink, remove the parentheses. Show an error if some remain.
38539         Recognize and render the '...' syntax.
38540         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
38541         Rework. Add paragraph about GCC's inlining.
38542         * doc/alloca.texi: Likewise.
38543         * doc/error.texi: Remove parentheses from symbol reference.
38544         * doc/gnulib-intro.texi: Likewise.
38545         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
38546         * modules/fnmatch (Description): Reword to say "the ... function".
38547         * modules/full-read (Description): Likewise.
38548         * modules/full-write (Description): Likewise.
38549         * modules/safe-read (Description): Likewise.
38550         * modules/safe-write (Description): Likewise.
38551         * modules/strchrnul (Description): Likewise.
38552         * modules/trim (Description): Likewise.
38553         * modules/error (Description): Remove parentheses from symbol
38554         references.
38555         * modules/verror (Description): Likewise.
38556         Reported by Karl Berry.
38557
38558 2007-12-25  Bruno Haible  <bruno@clisp.org>
38559
38560         Fixup after 2007-10-16 commit.
38561         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
38562
38563 2007-12-24  Bruno Haible  <bruno@clisp.org>
38564
38565         Make --enable-relocatable work with DESTDIR.
38566         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
38567         to compute installdir from destprog.
38568         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
38569         also set the RELOC_DESTDIR variable.
38570         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
38571
38572 2007-12-24  Bruno Haible  <bruno@clisp.org>
38573
38574         Fix link error due to xalloc_die().
38575         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
38576         of xreadlink.
38577         * lib/relocwrapper.c: Update comments.
38578         * build-aux/install-reloc: Remove xreadlink.c from file list.
38579         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
38580         xreadlink.c.
38581         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
38582
38583 2007-12-24  Bruno Haible  <bruno@clisp.org>
38584
38585         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
38586         * lib/setenv.h: Remove file.
38587         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
38588         lib/setenv.h.
38589         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
38590         (Depends-on): Add stdlib.
38591         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
38592         gl_FUNC_UNSETENV.
38593         (Include): Replace setenv.h with <stdlib.h>.
38594         * modules/unsetenv: New file.
38595         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
38596         * lib/unsetenv.c: Include <stdlib.h> first.
38597         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
38598         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
38599         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
38600         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
38601         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
38602         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
38603         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
38604         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
38605         * doc/functions/unsetenv.texi: Update.
38606         * modules/xsetenv (Depends-on): Add unsetenv.
38607         * modules/getdate (Depends-on): Likewise.
38608         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
38609         * lib/xsetenv.c: Don't include setenv.h.
38610         * lib/getdate.y: Likewise.
38611         * lib/relocwrapper.c: Likewise.
38612         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
38613         (Depends-on): Add stdlib.
38614         * NEWS: Mention the changes.
38615         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
38616
38617 2007-12-23  Bruno Haible  <bruno@clisp.org>
38618
38619         * lib/memmem.c (memmem): Use lowercase variable names. Tab
38620         indentation.
38621
38622 2007-12-23  Bruno Haible  <bruno@clisp.org>
38623
38624         * lib/c-strcasestr.c: Add more comments.
38625         * lib/c-strstr.c: Likewise.
38626         * lib/mbscasestr.c: Likewise.
38627         * lib/mbsstr.c: Likewise.
38628         * lib/strcasestr.c: Likewise.
38629         * lib/memmem.c: Likewise.
38630
38631 2007-12-23  Bruno Haible  <bruno@clisp.org>
38632
38633         * tests/test-memmem.c: Include <string.h> first.
38634
38635 2007-12-22  Bruno Haible  <bruno@clisp.org>
38636
38637         * gnulib-tool (func_create_testdir): Change $auxdir while generating
38638         the contents of $testsbase.
38639         Reported by Ralf Wildenhues.
38640
38641 2007-12-22  Bruno Haible  <bruno@clisp.org>
38642
38643         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
38644         two variables local_ldadd_before, local_ldadd_last.
38645
38646 2007-12-20  Eric Blake  <ebb9@byu.net>
38647
38648         Work around circular library issue when cross-compiling.
38649         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
38650         that progname.o does not need to pull in rpl_memcmp.
38651
38652 2007-12-19  Eric Blake  <ebb9@byu.net>
38653
38654         Fix memmem to avoid O(n^2) worst-case complexity.
38655         * lib/memmem.c (knuth_morris_pratt): New function.
38656         (memmem): Use it if first few naive iterations fail.
38657         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
38658         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
38659         * modules/memchr (License): Likewise.
38660         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
38661         malloca.
38662         * tests/test-memmem.c: Rewrite, borrowing ideas from
38663         test-mbsstr1.c; the old version wouldn't even compile!
38664         * modules/memmem-tests: New file.
38665         * lib/string.in.h (rpl_memmem): Add declaration.
38666         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
38667         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
38668         REPLACE_MEMMEM.
38669
38670 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
38671
38672         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
38673         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
38674         before any system include files, and undef after them all.  This
38675         should fix a problem on VMS reported by John E. Malmberg in
38676         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
38677
38678 2007-12-17  Eric Blake  <ebb9@byu.net>
38679
38680         Revert addition of verify, for BSD/OS.
38681         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
38682         can't handle large files, for the sake of obsolete platforms.
38683         * modules/fseeko (Depends-on): Remove verify.
38684         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
38685         * doc/functions/ftello.texi (ftello): Likewise.
38686         * doc/functions/fgetpos.texi (fgetpos): Likewise.
38687         Reported by Larry Jones.
38688
38689 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
38690
38691         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
38692         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
38693
38694 2007-12-17  Jim Meyering  <meyering@redhat.com>
38695
38696         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
38697         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
38698         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
38699         * modules/getcwd (Depends-on): Add openat.
38700         Reported by Petr Salinger.
38701
38702 2007-12-17  Bruno Haible  <bruno@clisp.org>
38703
38704         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
38705         avoid a segmentation fault of the configure test on x86_64 systems.
38706
38707 2007-12-15  Jim Meyering  <meyering@redhat.com>
38708
38709         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
38710
38711 2007-12-13  Eric Blake  <ebb9@byu.net>
38712
38713         Another fseek test.
38714         * tests/test-fseek.c (main): Also test ungetc handling.
38715         * tests/test-fseeko.c (main): Likewise.
38716         * modules/fseeko (Depends-on): Add verify.
38717         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
38718         large.
38719         Reported by Larry Jones.
38720
38721         Fix fseeko on mingw.
38722         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
38723         seek.
38724
38725         Beef up fseek tests.
38726         * tests/test-fseek.c (main): Also test eof handling.
38727         * tests/test-fseeko.c (main): Likewise.
38728         Reported by Larry Jones.
38729
38730 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
38731
38732         Fix fseeko on BSD-based platforms.
38733         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
38734         successful seek.
38735
38736 2007-12-12  Eric Blake  <ebb9@byu.net>
38737
38738         Allow circular dependency of separate libtests.a
38739         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
38740         when use_libtests.
38741
38742 2007-12-11  Eric Blake  <ebb9@byu.net>
38743
38744         Fix bug with -0.0L in previous patch.
38745         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
38746         * tests/test-isnan.c (main): Also test on zeroes.
38747         * tests/test-isnanf.c (main): Likewise.
38748         * tests/test-isnanl.h (main): Likewise.
38749
38750         Detect pseudo-denormals on x86 even when cross-compiling.
38751         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
38752         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
38753         invalid bit patterns that happen to satisfy ==.
38754
38755         Avoid link failures with separate libtests.a.
38756         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
38757         last, to satisfy circular dependencies.
38758
38759 2007-12-11  Eric Blake  <ebb9@byu.net>
38760         and Bruno Haible  <bruno@clisp.org>
38761
38762         Fix OpenBSD 4.0 <float.h> handling of long double.
38763         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
38764         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
38765         * doc/headers/float.texi (float.h): Document OpenBSD bug.
38766
38767 2007-12-11  Jim Meyering  <meyering@redhat.com>
38768
38769         * users.txt: Add libvirt.
38770
38771         Support versions of autoconf prior to 2.59c.
38772         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
38773         if it is not already defined.
38774
38775 2007-12-09  Bruno Haible  <bruno@clisp.org>
38776
38777         Let 'gnulib-tool --import' collect sources needed for the tests in
38778         tests/ rather than in lib/.
38779         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
38780         argument. If true, add rules to generate libtests.a, and put libtests.a
38781         into $(LDADD). Consider source files in subdirectories and set
38782         uses_subdirs.
38783         (func_emit_initmacro_start, func_emit_initmacro_end,
38784         func_emit_initmacro_done): Pass all arguments explicitly.
38785         (func_import): Determine two module lists main_modules,
38786         testsrelated_modules. Determine use_libtests. Determine two variables
38787         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
38788         instead of just sed_transform_lib_file. Determine two variables
38789         main_files and testsrelated_files. Compute 'files' as the union of
38790         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
38791         func_add_or_update. In the generated gnulib-comp.m4, collect the
38792         object files for tests/ in different variables than those for lib/.
38793         Substitute LIBTESTS_LIBDEPS.
38794         (func_create_testdir): Combine the uses_subdirs results from
38795         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
38796
38797 2007-12-09  Bruno Haible  <bruno@clisp.org>
38798
38799         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
38800         the build-aux directory.
38801
38802 2007-12-09  Bruno Haible  <bruno@clisp.org>
38803
38804         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
38805         introduced on 2006-09-09.
38806
38807 2007-12-07  Jim Meyering  <meyering@redhat.com>
38808
38809         Let these macros work also with autoconf-2.59.
38810         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
38811         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
38812         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
38813
38814 2007-12-06  Jim Meyering  <meyering@redhat.com>
38815
38816         Avoid a configure-time syntax error in gl_FUNC_ACL.
38817         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
38818         function in each branch, before testing the cache variable.
38819
38820 2007-12-04  Eric Blake  <ebb9@byu.net>
38821
38822         Make scripts executable.
38823         * build-aux/config.guess: Add execute permissions.
38824         * build-aux/config.sub: Likewise.
38825         * build-aux/gendocs.sh: Likewise.
38826
38827         Fix frexp on mingw.
38828         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
38829         cross-compiling.
38830         * doc/functions/frexp.texi (frexp): Document the bug.
38831
38832         Make cygwin fseeko check more reliable.
38833         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
38834         version numbers, rather than unrelated feature check.
38835         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
38836         * doc/functions/ftello.texi (ftello): Likewise.
38837         Reported by Bruno Haible.
38838
38839         * m4/strerror.m4: Bump version number.
38840
38841 2007-12-03  Bruno Haible  <bruno@clisp.org>
38842
38843         * doc/functions/mprotect.texi: Mention the mingw problem.
38844
38845 2007-12-03  Eric Blake  <ebb9@byu.net>
38846
38847         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
38848         REPLACE_STRERROR is initialized before this macro.
38849
38850 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
38851
38852         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
38853         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
38854         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
38855         put -lsec in even for programs other than 'ls'.  This fixes a problem
38856         for gettext reported by Bruno Haible in
38857         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
38858         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
38859         Add support for Solaris 10.  This isn't efficient, but should get the
38860         job done for now.
38861
38862 2007-12-03  James Youngman  <jay@gnu.org>
38863
38864         * doc/regexprops-generic.texi: change "an close-group" to "a
38865         close-group" and "illegal" to "not allowed".
38866
38867 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38868
38869         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
38870         pr_byname.h. Needed for the rare case when the maintainer has done
38871         "make maintainer-clean" in the source directory and then attempts a
38872         build outside the source directory.
38873         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
38874         scripts_byname.h.
38875
38876 2007-12-02  Martin Lambers <marlam@marlam.de>
38877             Bruno Haible  <bruno@clisp.org>
38878
38879         * lib/getpagesize.h: Remove file.
38880         * lib/unistd.in.h: Include declaration of getpagesize here.
38881         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
38882         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
38883         HAVE_SYS_PARAM_H.
38884         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
38885         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
38886         * modules/getpagesize (Files): Remove lib/getpagesize.h.
38887         (Depends-on): Add unistd.
38888         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38889         (Include): Use <unistd.h> instead of getpagesize.h.
38890         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
38891         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
38892         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
38893         gl_GETPAGESIZE invocation, already handled by module dependency.
38894         * lib/pagealign_alloc.c: Don't include getpagesize.h.
38895
38896 2007-12-02  Bruno Haible  <bruno@clisp.org>
38897
38898         * modules/strings-tests: New file.
38899         * tests/test-strings.c: New file.
38900
38901         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
38902         * lib/strings.in.h: New file.
38903         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
38904         * m4/strings_h.m4: New file.
38905         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
38906         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
38907         * modules/strings: New file.
38908         * modules/string (Makefile.am): Update.
38909         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
38910         Reported by Karl Berry.
38911
38912 2007-12-01  Eric Blake  <ebb9@byu.net>
38913
38914         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
38915         accomodate fix in cygwin 1.5.25.
38916
38917 2007-12-01  Jim Meyering  <meyering@redhat.com>
38918
38919         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
38920         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
38921         that would inhibit utf8-optimization of a regexp containing line-
38922         or buffer-anchors, e.g., `^', `$'.
38923
38924 2007-11-30  Bruno Haible  <bruno@clisp.org>
38925
38926         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
38927         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
38928         glthread_recursive_lock_init.
38929         * lib/lock.c (glthread_recursive_lock_init)
38930         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
38931         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38932
38933 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
38934
38935         New function qset_acl, like set_acl but with syscall semantics.
38936         * lib/acl.h (qset_acl): New decl.
38937         * lib/acl.c (qset_acl): New function.
38938         (set_acl): Use new function.  Use more-consistent diagnostics.
38939
38940 2007-11-28  Jim Meyering  <meyering@redhat.com>
38941
38942         * modules/physmem (License): Change from GPL to LGPLv2+.
38943
38944 2007-11-26  Bruno Haible  <bruno@clisp.org>
38945
38946         * lib/vasnprintf.c (decode_long_double): Don't abort if the
38947         'long double' type has excess precision.
38948         Reported by Jim Meyering in
38949         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
38950
38951 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38952
38953         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
38954         Sync from <http://gnu.org/licenses>.
38955         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
38956         with license text from same location.
38957         * doc/maintain.texi, doc/standards.texi:  Sync from
38958         <http://savannah.gnu.org/projects/gnustandards>.
38959
38960 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
38961         and Jim Meyering  <meyering@redhat.com>
38962
38963         Adjust getdate' grammar to accept a slightly more regular language.
38964         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
38965         Before, the former was rejected.
38966         * lib/getdate.y (digits_to_date_time): New function, factored
38967         out of ...
38968         (number): ...here.  Just call digits_to_date_time.
38969         (hybrid): New non-terminal to handle an <unsigned number,
38970         signed relative offset> sequence consistently.
38971
38972 2007-11-18  Jim Meyering  <meyering@redhat.com>
38973
38974         Pull my changes from coreutils:
38975         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
38976         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
38977         use of $gnulib_tool_option_extras, so that it's separated from the
38978         preceding argument.
38979
38980         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
38981         * build-aux/bootstrap (cp_mark_as_generated): Create any required
38982         parent destination directories before copying a file into place.
38983
38984 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
38985
38986         bootstrap: work also with 4-argument variant of AC_INIT
38987         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
38988
38989 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
38990
38991         Port test-getaddrinfo to Solaris.
38992         Problem reported by Bruno Haible in
38993         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
38994         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
38995         explanation of setting 'hints'.
38996         Don't reject an implementation merely because it returns EAI_SERVICE.
38997         (EAI_SERVICE): Define to 0 if not defined.
38998
38999 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
39000
39001         The license of gnu-make and posix-shell is now "GPLed build tool".
39002         * modules/gnu-make (License): Likewise.
39003         * modules/posix-shell (License): Likewise.
39004
39005         New module posix-shell, for determining a POSIX shell
39006         or perhaps something that is close enough to a POSIX shell.
39007         * m4/posix-shell.m4: New file.
39008         * modules/posix-shell: New file.
39009
39010         * MODULES.html.sh: Mention new module.
39011
39012         New module gnu-make, for determining whether we're using GNU Make.
39013         * m4/gnu-make.m4: New file.
39014         * modules/gnu-make: New file.
39015         * MODULES.html.sh: Mention new module.
39016
39017 2007-11-14  Jim Meyering  <meyering@redhat.com>
39018
39019         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
39020         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
39021         use this macro to create a function _definition_.
39022         Remove useless "#undef ARGMATCH_DIE".
39023
39024 2007-11-14  Bruno Haible  <bruno@clisp.org>
39025
39026         * lib/config.charset: Update for OpenBSD 4.1.
39027         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
39028
39029 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
39030
39031         Document 64-bit #if problems in stdint.texi.
39032         * doc/headers/stdint.texi (stdint.h): Mention problems with
39033         64-bit-#if, and how to work around them.
39034
39035         Don't insist on 'long long int' support in the preprocessor.  It
39036         breaks too many things.  For example, PRIdMAX still uses a 'long
39037         long int' format with the latest Sun compiler, even though
39038         HAVE_LONG_LONG_INT isn't defined due to that compiler's
39039         preprocessor problem.  This causes the latest coreutils to dump
39040         core on Solaris 10 sparc with the Sun C compiler.
39041         Instead, fix the 2007-10-16 problem in a different way, by evaluating
39042         the troublesome expressions at configure-time, not at #if-time.
39043         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
39044         preprocessor.
39045         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
39046         compile-time C checks, done at 'configure'-time.
39047         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
39048         * modules/inttypes (Makefile): Substitute the new symbols that
39049         gl_INTTYPES_H now generates.
39050         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
39051
39052 2007-11-12  Bruno Haible  <bruno@clisp.org>
39053
39054         Tests for Unicode character classification functions.
39055
39056         * modules/unictype/bidicategory-byname-tests: New file.
39057         * modules/unictype/bidicategory-name-tests: New file.
39058         * modules/unictype/bidicategory-of-tests: New file.
39059         * modules/unictype/bidicategory-test-tests: New file.
39060         * modules/unictype/block-list-tests: New file.
39061         * modules/unictype/block-of-tests: New file.
39062         * modules/unictype/block-test-tests: New file.
39063         * modules/unictype/category-C-tests: New file.
39064         * modules/unictype/category-Cc-tests: New file.
39065         * modules/unictype/category-Cf-tests: New file.
39066         * modules/unictype/category-Cn-tests: New file.
39067         * modules/unictype/category-Co-tests: New file.
39068         * modules/unictype/category-Cs-tests: New file.
39069         * modules/unictype/category-L-tests: New file.
39070         * modules/unictype/category-Ll-tests: New file.
39071         * modules/unictype/category-Lm-tests: New file.
39072         * modules/unictype/category-Lo-tests: New file.
39073         * modules/unictype/category-Lt-tests: New file.
39074         * modules/unictype/category-Lu-tests: New file.
39075         * modules/unictype/category-M-tests: New file.
39076         * modules/unictype/category-Mc-tests: New file.
39077         * modules/unictype/category-Me-tests: New file.
39078         * modules/unictype/category-Mn-tests: New file.
39079         * modules/unictype/category-N-tests: New file.
39080         * modules/unictype/category-Nd-tests: New file.
39081         * modules/unictype/category-Nl-tests: New file.
39082         * modules/unictype/category-No-tests: New file.
39083         * modules/unictype/category-P-tests: New file.
39084         * modules/unictype/category-Pc-tests: New file.
39085         * modules/unictype/category-Pd-tests: New file.
39086         * modules/unictype/category-Pe-tests: New file.
39087         * modules/unictype/category-Pf-tests: New file.
39088         * modules/unictype/category-Pi-tests: New file.
39089         * modules/unictype/category-Po-tests: New file.
39090         * modules/unictype/category-Ps-tests: New file.
39091         * modules/unictype/category-S-tests: New file.
39092         * modules/unictype/category-Sc-tests: New file.
39093         * modules/unictype/category-Sk-tests: New file.
39094         * modules/unictype/category-Sm-tests: New file.
39095         * modules/unictype/category-So-tests: New file.
39096         * modules/unictype/category-Z-tests: New file.
39097         * modules/unictype/category-Zl-tests: New file.
39098         * modules/unictype/category-Zp-tests: New file.
39099         * modules/unictype/category-Zs-tests: New file.
39100         * modules/unictype/category-and-not-tests: New file.
39101         * modules/unictype/category-and-tests: New file.
39102         * modules/unictype/category-byname-tests: New file.
39103         * modules/unictype/category-name-tests: New file.
39104         * modules/unictype/category-none-tests: New file.
39105         * modules/unictype/category-of-tests: New file.
39106         * modules/unictype/category-or-tests: New file.
39107         * modules/unictype/category-test-withtable-tests: New file.
39108         * modules/unictype/combining-class-tests: New file.
39109         * modules/unictype/ctype-alnum-tests: New file.
39110         * modules/unictype/ctype-alpha-tests: New file.
39111         * modules/unictype/ctype-blank-tests: New file.
39112         * modules/unictype/ctype-cntrl-tests: New file.
39113         * modules/unictype/ctype-digit-tests: New file.
39114         * modules/unictype/ctype-graph-tests: New file.
39115         * modules/unictype/ctype-lower-tests: New file.
39116         * modules/unictype/ctype-print-tests: New file.
39117         * modules/unictype/ctype-punct-tests: New file.
39118         * modules/unictype/ctype-space-tests: New file.
39119         * modules/unictype/ctype-upper-tests: New file.
39120         * modules/unictype/ctype-xdigit-tests: New file.
39121         * modules/unictype/decimal-digit-tests: New file.
39122         * modules/unictype/digit-tests: New file.
39123         * modules/unictype/mirror-tests: New file.
39124         * modules/unictype/numeric-tests: New file.
39125         * modules/unictype/property-alphabetic-tests: New file.
39126         * modules/unictype/property-ascii-hex-digit-tests: New file.
39127         * modules/unictype/property-bidi-arabic-digit-tests: New file.
39128         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
39129         * modules/unictype/property-bidi-block-separator-tests: New file.
39130         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
39131         * modules/unictype/property-bidi-common-separator-tests: New file.
39132         * modules/unictype/property-bidi-control-tests: New file.
39133         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
39134         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
39135         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
39136         * modules/unictype/property-bidi-european-digit-tests: New file.
39137         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
39138         * modules/unictype/property-bidi-left-to-right-tests: New file.
39139         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
39140         * modules/unictype/property-bidi-other-neutral-tests: New file.
39141         * modules/unictype/property-bidi-pdf-tests: New file.
39142         * modules/unictype/property-bidi-segment-separator-tests: New file.
39143         * modules/unictype/property-bidi-whitespace-tests: New file.
39144         * modules/unictype/property-byname-tests: New file.
39145         * modules/unictype/property-combining-tests: New file.
39146         * modules/unictype/property-composite-tests: New file.
39147         * modules/unictype/property-currency-symbol-tests: New file.
39148         * modules/unictype/property-dash-tests: New file.
39149         * modules/unictype/property-decimal-digit-tests: New file.
39150         * modules/unictype/property-default-ignorable-code-point-tests: New file.
39151         * modules/unictype/property-deprecated-tests: New file.
39152         * modules/unictype/property-diacritic-tests: New file.
39153         * modules/unictype/property-extender-tests: New file.
39154         * modules/unictype/property-format-control-tests: New file.
39155         * modules/unictype/property-grapheme-base-tests: New file.
39156         * modules/unictype/property-grapheme-extend-tests: New file.
39157         * modules/unictype/property-grapheme-link-tests: New file.
39158         * modules/unictype/property-hex-digit-tests: New file.
39159         * modules/unictype/property-hyphen-tests: New file.
39160         * modules/unictype/property-id-continue-tests: New file.
39161         * modules/unictype/property-id-start-tests: New file.
39162         * modules/unictype/property-ideographic-tests: New file.
39163         * modules/unictype/property-ids-binary-operator-tests: New file.
39164         * modules/unictype/property-ids-trinary-operator-tests: New file.
39165         * modules/unictype/property-ignorable-control-tests: New file.
39166         * modules/unictype/property-iso-control-tests: New file.
39167         * modules/unictype/property-join-control-tests: New file.
39168         * modules/unictype/property-left-of-pair-tests: New file.
39169         * modules/unictype/property-line-separator-tests: New file.
39170         * modules/unictype/property-logical-order-exception-tests: New file.
39171         * modules/unictype/property-lowercase-tests: New file.
39172         * modules/unictype/property-math-tests: New file.
39173         * modules/unictype/property-non-break-tests: New file.
39174         * modules/unictype/property-not-a-character-tests: New file.
39175         * modules/unictype/property-numeric-tests: New file.
39176         * modules/unictype/property-other-alphabetic-tests: New file.
39177         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
39178         * modules/unictype/property-other-grapheme-extend-tests: New file.
39179         * modules/unictype/property-other-id-continue-tests: New file.
39180         * modules/unictype/property-other-id-start-tests: New file.
39181         * modules/unictype/property-other-lowercase-tests: New file.
39182         * modules/unictype/property-other-math-tests: New file.
39183         * modules/unictype/property-other-uppercase-tests: New file.
39184         * modules/unictype/property-paired-punctuation-tests: New file.
39185         * modules/unictype/property-paragraph-separator-tests: New file.
39186         * modules/unictype/property-pattern-syntax-tests: New file.
39187         * modules/unictype/property-pattern-white-space-tests: New file.
39188         * modules/unictype/property-private-use-tests: New file.
39189         * modules/unictype/property-punctuation-tests: New file.
39190         * modules/unictype/property-quotation-mark-tests: New file.
39191         * modules/unictype/property-radical-tests: New file.
39192         * modules/unictype/property-sentence-terminal-tests: New file.
39193         * modules/unictype/property-soft-dotted-tests: New file.
39194         * modules/unictype/property-space-tests: New file.
39195         * modules/unictype/property-terminal-punctuation-tests: New file.
39196         * modules/unictype/property-test-tests: New file.
39197         * modules/unictype/property-titlecase-tests: New file.
39198         * modules/unictype/property-unassigned-code-value-tests: New file.
39199         * modules/unictype/property-unified-ideograph-tests: New file.
39200         * modules/unictype/property-uppercase-tests: New file.
39201         * modules/unictype/property-variation-selector-tests: New file.
39202         * modules/unictype/property-white-space-tests: New file.
39203         * modules/unictype/property-xid-continue-tests: New file.
39204         * modules/unictype/property-xid-start-tests: New file.
39205         * modules/unictype/property-zero-width-tests: New file.
39206         * modules/unictype/scripts-tests: New file.
39207         * modules/unictype/syntax-c-ident-tests: New file.
39208         * modules/unictype/syntax-c-whitespace-tests: New file.
39209         * modules/unictype/syntax-java-ident-tests: New file.
39210         * modules/unictype/syntax-java-whitespace-tests: New file.
39211         * tests/unictype/test-bidi_byname.c: New file.
39212         * tests/unictype/test-bidi_name.c: New file.
39213         * tests/unictype/test-bidi_of.c: New file.
39214         * tests/unictype/test-bidi_test.c: New file.
39215         * tests/unictype/test-block_list.c: New file.
39216         * tests/unictype/test-block_of.c: New file.
39217         * tests/unictype/test-block_test.c: New file.
39218         * tests/unictype/test-categ_and.c: New file.
39219         * tests/unictype/test-categ_and_not.c: New file.
39220         * tests/unictype/test-categ_byname.c: New file.
39221         * tests/unictype/test-categ_name.c: New file.
39222         * tests/unictype/test-categ_none.c: New file.
39223         * tests/unictype/test-categ_of.c: New file.
39224         * tests/unictype/test-categ_or.c: New file.
39225         * tests/unictype/test-categ_test_withtable.c: New file.
39226         * tests/unictype/test-combining.c: New file.
39227         * tests/unictype/test-decdigit.c: New file.
39228         * tests/unictype/test-digit.c: New file.
39229         * tests/unictype/test-mirror.c: New file.
39230         * tests/unictype/test-numeric.c: New file.
39231         * tests/unictype/test-pr_byname.c: New file.
39232         * tests/unictype/test-pr_test.c: New file.
39233         * tests/unictype/test-predicate-part1.h: New file.
39234         * tests/unictype/test-predicate-part2.h: New file.
39235         * tests/unictype/test-scripts.c: New file.
39236         * tests/unictype/test-sy_c_ident.c: New file.
39237         * tests/unictype/test-sy_java_ident.c: New file.
39238
39239         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
39240         for Unicode 5.0.0.
39241         * tests/unictype/test-categ_Cc.c: Likewise.
39242         * tests/unictype/test-categ_Cf.c: Likewise.
39243         * tests/unictype/test-categ_Cn.c: Likewise.
39244         * tests/unictype/test-categ_Co.c: Likewise.
39245         * tests/unictype/test-categ_Cs.c: Likewise.
39246         * tests/unictype/test-categ_L.c: Likewise.
39247         * tests/unictype/test-categ_Ll.c: Likewise.
39248         * tests/unictype/test-categ_Lm.c: Likewise.
39249         * tests/unictype/test-categ_Lo.c: Likewise.
39250         * tests/unictype/test-categ_Lt.c: Likewise.
39251         * tests/unictype/test-categ_Lu.c: Likewise.
39252         * tests/unictype/test-categ_M.c: Likewise.
39253         * tests/unictype/test-categ_Mc.c: Likewise.
39254         * tests/unictype/test-categ_Me.c: Likewise.
39255         * tests/unictype/test-categ_Mn.c: Likewise.
39256         * tests/unictype/test-categ_N.c: Likewise.
39257         * tests/unictype/test-categ_Nd.c: Likewise.
39258         * tests/unictype/test-categ_Nl.c: Likewise.
39259         * tests/unictype/test-categ_No.c: Likewise.
39260         * tests/unictype/test-categ_P.c: Likewise.
39261         * tests/unictype/test-categ_Pc.c: Likewise.
39262         * tests/unictype/test-categ_Pd.c: Likewise.
39263         * tests/unictype/test-categ_Pe.c: Likewise.
39264         * tests/unictype/test-categ_Pf.c: Likewise.
39265         * tests/unictype/test-categ_Pi.c: Likewise.
39266         * tests/unictype/test-categ_Po.c: Likewise.
39267         * tests/unictype/test-categ_Ps.c: Likewise.
39268         * tests/unictype/test-categ_S.c: Likewise.
39269         * tests/unictype/test-categ_Sc.c: Likewise.
39270         * tests/unictype/test-categ_Sk.c: Likewise.
39271         * tests/unictype/test-categ_Sm.c: Likewise.
39272         * tests/unictype/test-categ_So.c: Likewise.
39273         * tests/unictype/test-categ_Z.c: Likewise.
39274         * tests/unictype/test-categ_Zl.c: Likewise.
39275         * tests/unictype/test-categ_Zp.c: Likewise.
39276         * tests/unictype/test-categ_Zs.c: Likewise.
39277         * tests/unictype/test-ctype_alnum.c: Likewise.
39278         * tests/unictype/test-ctype_alpha.c: Likewise.
39279         * tests/unictype/test-ctype_blank.c: Likewise.
39280         * tests/unictype/test-ctype_cntrl.c: Likewise.
39281         * tests/unictype/test-ctype_digit.c: Likewise.
39282         * tests/unictype/test-ctype_graph.c: Likewise.
39283         * tests/unictype/test-ctype_lower.c: Likewise.
39284         * tests/unictype/test-ctype_print.c: Likewise.
39285         * tests/unictype/test-ctype_punct.c: Likewise.
39286         * tests/unictype/test-ctype_space.c: Likewise.
39287         * tests/unictype/test-ctype_upper.c: Likewise.
39288         * tests/unictype/test-ctype_xdigit.c: Likewise.
39289         * tests/unictype/test-decdigit.h: Likewise.
39290         * tests/unictype/test-digit.h: Likewise.
39291         * tests/unictype/test-numeric.h: Likewise.
39292         * tests/unictype/test-pr_alphabetic.c: Likewise.
39293         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
39294         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
39295         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
39296         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
39297         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
39298         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
39299         * tests/unictype/test-pr_bidi_control.c: Likewise.
39300         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
39301         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
39302         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
39303         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
39304         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
39305         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
39306         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
39307         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
39308         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
39309         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
39310         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
39311         * tests/unictype/test-pr_combining.c: Likewise.
39312         * tests/unictype/test-pr_composite.c: Likewise.
39313         * tests/unictype/test-pr_currency_symbol.c: Likewise.
39314         * tests/unictype/test-pr_dash.c: Likewise.
39315         * tests/unictype/test-pr_decimal_digit.c: Likewise.
39316         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
39317         * tests/unictype/test-pr_deprecated.c: Likewise.
39318         * tests/unictype/test-pr_diacritic.c: Likewise.
39319         * tests/unictype/test-pr_extender.c: Likewise.
39320         * tests/unictype/test-pr_format_control.c: Likewise.
39321         * tests/unictype/test-pr_grapheme_base.c: Likewise.
39322         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
39323         * tests/unictype/test-pr_grapheme_link.c: Likewise.
39324         * tests/unictype/test-pr_hex_digit.c: Likewise.
39325         * tests/unictype/test-pr_hyphen.c: Likewise.
39326         * tests/unictype/test-pr_id_continue.c: Likewise.
39327         * tests/unictype/test-pr_id_start.c: Likewise.
39328         * tests/unictype/test-pr_ideographic.c: Likewise.
39329         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
39330         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
39331         * tests/unictype/test-pr_ignorable_control.c: Likewise.
39332         * tests/unictype/test-pr_iso_control.c: Likewise.
39333         * tests/unictype/test-pr_join_control.c: Likewise.
39334         * tests/unictype/test-pr_left_of_pair.c: Likewise.
39335         * tests/unictype/test-pr_line_separator.c: Likewise.
39336         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
39337         * tests/unictype/test-pr_lowercase.c: Likewise.
39338         * tests/unictype/test-pr_math.c: Likewise.
39339         * tests/unictype/test-pr_non_break.c: Likewise.
39340         * tests/unictype/test-pr_not_a_character.c: Likewise.
39341         * tests/unictype/test-pr_numeric.c: Likewise.
39342         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
39343         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
39344         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
39345         * tests/unictype/test-pr_other_id_continue.c: Likewise.
39346         * tests/unictype/test-pr_other_id_start.c: Likewise.
39347         * tests/unictype/test-pr_other_lowercase.c: Likewise.
39348         * tests/unictype/test-pr_other_math.c: Likewise.
39349         * tests/unictype/test-pr_other_uppercase.c: Likewise.
39350         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
39351         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
39352         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
39353         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
39354         * tests/unictype/test-pr_private_use.c: Likewise.
39355         * tests/unictype/test-pr_punctuation.c: Likewise.
39356         * tests/unictype/test-pr_quotation_mark.c: Likewise.
39357         * tests/unictype/test-pr_radical.c: Likewise.
39358         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
39359         * tests/unictype/test-pr_soft_dotted.c: Likewise.
39360         * tests/unictype/test-pr_space.c: Likewise.
39361         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
39362         * tests/unictype/test-pr_titlecase.c: Likewise.
39363         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
39364         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
39365         * tests/unictype/test-pr_uppercase.c: Likewise.
39366         * tests/unictype/test-pr_variation_selector.c: Likewise.
39367         * tests/unictype/test-pr_white_space.c: Likewise.
39368         * tests/unictype/test-pr_xid_continue.c: Likewise.
39369         * tests/unictype/test-pr_xid_start.c: Likewise.
39370         * tests/unictype/test-pr_zero_width.c: Likewise.
39371         * tests/unictype/test-sy_c_whitespace.c: Likewise.
39372         * tests/unictype/test-sy_java_whitespace.c: Likewise.
39373
39374 2007-11-12  Bruno Haible  <bruno@clisp.org>
39375
39376         Unicode character classification functions.
39377         * lib/unictype.h: New file.
39378         * modules/unictype/base: New file.
39379         * modules/unictype/category-L: New file.
39380         * modules/unictype/category-Lu: New file.
39381         * modules/unictype/category-Ll: New file.
39382         * modules/unictype/category-Lt: New file.
39383         * modules/unictype/category-Lm: New file.
39384         * modules/unictype/category-Lo: New file.
39385         * modules/unictype/category-M: New file.
39386         * modules/unictype/category-Mn: New file.
39387         * modules/unictype/category-Mc: New file.
39388         * modules/unictype/category-Me: New file.
39389         * modules/unictype/category-N: New file.
39390         * modules/unictype/category-Nd: New file.
39391         * modules/unictype/category-Nl: New file.
39392         * modules/unictype/category-No: New file.
39393         * modules/unictype/category-P: New file.
39394         * modules/unictype/category-Pc: New file.
39395         * modules/unictype/category-Pd: New file.
39396         * modules/unictype/category-Ps: New file.
39397         * modules/unictype/category-Pe: New file.
39398         * modules/unictype/category-Pi: New file.
39399         * modules/unictype/category-Pf: New file.
39400         * modules/unictype/category-Po: New file.
39401         * modules/unictype/category-S: New file.
39402         * modules/unictype/category-Sm: New file.
39403         * modules/unictype/category-Sc: New file.
39404         * modules/unictype/category-Sk: New file.
39405         * modules/unictype/category-So: New file.
39406         * modules/unictype/category-Z: New file.
39407         * modules/unictype/category-Zs: New file.
39408         * modules/unictype/category-Zl: New file.
39409         * modules/unictype/category-Zp: New file.
39410         * modules/unictype/category-C: New file.
39411         * modules/unictype/category-Cc: New file.
39412         * modules/unictype/category-Cf: New file.
39413         * modules/unictype/category-Cs: New file.
39414         * modules/unictype/category-Co: New file.
39415         * modules/unictype/category-Cn: New file.
39416         * modules/unictype/category-or: New file.
39417         * modules/unictype/category-of: New file.
39418         * modules/unictype/category-test: New file.
39419         * modules/unictype/category-test-withtable: New file.
39420         * modules/unictype/category-byname: New file.
39421         * modules/unictype/category-none: New file.
39422         * modules/unictype/category-and: New file.
39423         * modules/unictype/category-and-not: New file.
39424         * modules/unictype/category-name: New file.
39425         * modules/unictype/combining-class: New file.
39426         * modules/unictype/category-all: New file.
39427         * modules/unictype/bidicategory-all: New file.
39428         * modules/unictype/bidicategory-byname: New file.
39429         * modules/unictype/bidicategory-name: New file.
39430         * modules/unictype/bidicategory-of: New file.
39431         * modules/unictype/bidicategory-test: New file.
39432         * modules/unictype/decimal-digit: New file.
39433         * modules/unictype/digit: New file.
39434         * modules/unictype/numeric: New file.
39435         * modules/unictype/mirror: New file.
39436         * modules/unictype/property-white-space: New file.
39437         * modules/unictype/property-alphabetic: New file.
39438         * modules/unictype/property-other-alphabetic: New file.
39439         * modules/unictype/property-not-a-character: New file.
39440         * modules/unictype/property-default-ignorable-code-point: New file.
39441         * modules/unictype/property-other-default-ignorable-code-point: New
39442         file.
39443         * modules/unictype/property-deprecated: New file.
39444         * modules/unictype/property-logical-order-exception: New file.
39445         * modules/unictype/property-variation-selector: New file.
39446         * modules/unictype/property-private-use: New file.
39447         * modules/unictype/property-unassigned-code-value: New file.
39448         * modules/unictype/property-uppercase: New file.
39449         * modules/unictype/property-other-uppercase: New file.
39450         * modules/unictype/property-lowercase: New file.
39451         * modules/unictype/property-other-lowercase: New file.
39452         * modules/unictype/property-titlecase: New file.
39453         * modules/unictype/property-soft-dotted: New file.
39454         * modules/unictype/property-id-start: New file.
39455         * modules/unictype/property-other-id-start: New file.
39456         * modules/unictype/property-id-continue: New file.
39457         * modules/unictype/property-other-id-continue: New file.
39458         * modules/unictype/property-xid-start: New file.
39459         * modules/unictype/property-xid-continue: New file.
39460         * modules/unictype/property-pattern-white-space: New file.
39461         * modules/unictype/property-pattern-syntax: New file.
39462         * modules/unictype/property-join-control: New file.
39463         * modules/unictype/property-grapheme-base: New file.
39464         * modules/unictype/property-grapheme-extend: New file.
39465         * modules/unictype/property-other-grapheme-extend: New file.
39466         * modules/unictype/property-grapheme-link: New file.
39467         * modules/unictype/property-bidi-control: New file.
39468         * modules/unictype/property-bidi-left-to-right: New file.
39469         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
39470         * modules/unictype/property-bidi-arabic-right-to-left: New file.
39471         * modules/unictype/property-bidi-european-digit: New file.
39472         * modules/unictype/property-bidi-eur-num-separator: New file.
39473         * modules/unictype/property-bidi-eur-num-terminator: New file.
39474         * modules/unictype/property-bidi-arabic-digit: New file.
39475         * modules/unictype/property-bidi-common-separator: New file.
39476         * modules/unictype/property-bidi-block-separator: New file.
39477         * modules/unictype/property-bidi-segment-separator: New file.
39478         * modules/unictype/property-bidi-whitespace: New file.
39479         * modules/unictype/property-bidi-non-spacing-mark: New file.
39480         * modules/unictype/property-bidi-boundary-neutral: New file.
39481         * modules/unictype/property-bidi-pdf: New file.
39482         * modules/unictype/property-bidi-embedding-or-override: New file.
39483         * modules/unictype/property-bidi-other-neutral: New file.
39484         * modules/unictype/property-hex-digit: New file.
39485         * modules/unictype/property-ascii-hex-digit: New file.
39486         * modules/unictype/property-ideographic: New file.
39487         * modules/unictype/property-unified-ideograph: New file.
39488         * modules/unictype/property-radical: New file.
39489         * modules/unictype/property-ids-binary-operator: New file.
39490         * modules/unictype/property-ids-trinary-operator: New file.
39491         * modules/unictype/property-zero-width: New file.
39492         * modules/unictype/property-space: New file.
39493         * modules/unictype/property-non-break: New file.
39494         * modules/unictype/property-iso-control: New file.
39495         * modules/unictype/property-format-control: New file.
39496         * modules/unictype/property-dash: New file.
39497         * modules/unictype/property-hyphen: New file.
39498         * modules/unictype/property-punctuation: New file.
39499         * modules/unictype/property-line-separator: New file.
39500         * modules/unictype/property-paragraph-separator: New file.
39501         * modules/unictype/property-quotation-mark: New file.
39502         * modules/unictype/property-sentence-terminal: New file.
39503         * modules/unictype/property-terminal-punctuation: New file.
39504         * modules/unictype/property-currency-symbol: New file.
39505         * modules/unictype/property-math: New file.
39506         * modules/unictype/property-other-math: New file.
39507         * modules/unictype/property-paired-punctuation: New file.
39508         * modules/unictype/property-left-of-pair: New file.
39509         * modules/unictype/property-combining: New file.
39510         * modules/unictype/property-composite: New file.
39511         * modules/unictype/property-decimal-digit: New file.
39512         * modules/unictype/property-numeric: New file.
39513         * modules/unictype/property-diacritic: New file.
39514         * modules/unictype/property-extender: New file.
39515         * modules/unictype/property-ignorable-control: New file.
39516         * modules/unictype/property-test: New file.
39517         * modules/unictype/property-byname: New file.
39518         * modules/unictype/property-all: New file.
39519         * modules/unictype/scripts: New file.
39520         * modules/unictype/scripts-all: New file.
39521         * modules/unictype/block-of: New file.
39522         * modules/unictype/block-test: New file.
39523         * modules/unictype/block-list: New file.
39524         * modules/unictype/block-all: New file.
39525         * modules/unictype/syntax-c-whitespace: New file.
39526         * modules/unictype/syntax-java-whitespace: New file.
39527         * modules/unictype/syntax-c-ident: New file.
39528         * modules/unictype/syntax-java-ident: New file.
39529         * modules/unictype/ctype-alnum: New file.
39530         * modules/unictype/ctype-alpha: New file.
39531         * modules/unictype/ctype-cntrl: New file.
39532         * modules/unictype/ctype-digit: New file.
39533         * modules/unictype/ctype-graph: New file.
39534         * modules/unictype/ctype-lower: New file.
39535         * modules/unictype/ctype-print: New file.
39536         * modules/unictype/ctype-punct: New file.
39537         * modules/unictype/ctype-space: New file.
39538         * modules/unictype/ctype-upper: New file.
39539         * modules/unictype/ctype-xdigit: New file.
39540         * modules/unictype/ctype-blank: New file.
39541         * lib/unictype/bidi_byname.c: New file.
39542         * lib/unictype/bidi_name.c: New file.
39543         * lib/unictype/bidi_of.c: New file.
39544         * lib/unictype/bidi_test.c: New file.
39545         * lib/unictype/bitmap.h: New file.
39546         * lib/unictype/block_test.c: New file.
39547         * lib/unictype/blocks.c: New file.
39548         * lib/unictype/categ_C.c: New file.
39549         * lib/unictype/categ_Cc.c: New file.
39550         * lib/unictype/categ_Cf.c: New file.
39551         * lib/unictype/categ_Cn.c: New file.
39552         * lib/unictype/categ_Co.c: New file.
39553         * lib/unictype/categ_Cs.c: New file.
39554         * lib/unictype/categ_L.c: New file.
39555         * lib/unictype/categ_Ll.c: New file.
39556         * lib/unictype/categ_Lm.c: New file.
39557         * lib/unictype/categ_Lo.c: New file.
39558         * lib/unictype/categ_Lt.c: New file.
39559         * lib/unictype/categ_Lu.c: New file.
39560         * lib/unictype/categ_M.c: New file.
39561         * lib/unictype/categ_Mc.c: New file.
39562         * lib/unictype/categ_Me.c: New file.
39563         * lib/unictype/categ_Mn.c: New file.
39564         * lib/unictype/categ_N.c: New file.
39565         * lib/unictype/categ_Nd.c: New file.
39566         * lib/unictype/categ_Nl.c: New file.
39567         * lib/unictype/categ_No.c: New file.
39568         * lib/unictype/categ_P.c: New file.
39569         * lib/unictype/categ_Pc.c: New file.
39570         * lib/unictype/categ_Pd.c: New file.
39571         * lib/unictype/categ_Pe.c: New file.
39572         * lib/unictype/categ_Pf.c: New file.
39573         * lib/unictype/categ_Pi.c: New file.
39574         * lib/unictype/categ_Po.c: New file.
39575         * lib/unictype/categ_Ps.c: New file.
39576         * lib/unictype/categ_S.c: New file.
39577         * lib/unictype/categ_Sc.c: New file.
39578         * lib/unictype/categ_Sk.c: New file.
39579         * lib/unictype/categ_Sm.c: New file.
39580         * lib/unictype/categ_So.c: New file.
39581         * lib/unictype/categ_Z.c: New file.
39582         * lib/unictype/categ_Zl.c: New file.
39583         * lib/unictype/categ_Zp.c: New file.
39584         * lib/unictype/categ_Zs.c: New file.
39585         * lib/unictype/categ_and.c: New file.
39586         * lib/unictype/categ_and_not.c: New file.
39587         * lib/unictype/categ_byname.c: New file.
39588         * lib/unictype/categ_name.c: New file.
39589         * lib/unictype/categ_none.c: New file.
39590         * lib/unictype/categ_of.c: New file.
39591         * lib/unictype/categ_or.c: New file.
39592         * lib/unictype/categ_test.c: New file.
39593         * lib/unictype/combining.c: New file.
39594         * lib/unictype/ctype_alnum.c: New file.
39595         * lib/unictype/ctype_alpha.c: New file.
39596         * lib/unictype/ctype_blank.c: New file.
39597         * lib/unictype/ctype_cntrl.c: New file.
39598         * lib/unictype/ctype_digit.c: New file.
39599         * lib/unictype/ctype_graph.c: New file.
39600         * lib/unictype/ctype_lower.c: New file.
39601         * lib/unictype/ctype_print.c: New file.
39602         * lib/unictype/ctype_punct.c: New file.
39603         * lib/unictype/ctype_space.c: New file.
39604         * lib/unictype/ctype_upper.c: New file.
39605         * lib/unictype/ctype_xdigit.c: New file.
39606         * lib/unictype/decdigit.c: New file.
39607         * lib/unictype/digit.c: New file.
39608         * lib/unictype/identsyntaxmap.h: New file.
39609         * lib/unictype/mirror.c: New file.
39610         * lib/unictype/numeric.c: New file.
39611         * lib/unictype/pr_alphabetic.c: New file.
39612         * lib/unictype/pr_ascii_hex_digit.c: New file.
39613         * lib/unictype/pr_bidi_arabic_digit.c: New file.
39614         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
39615         * lib/unictype/pr_bidi_block_separator.c: New file.
39616         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
39617         * lib/unictype/pr_bidi_common_separator.c: New file.
39618         * lib/unictype/pr_bidi_control.c: New file.
39619         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
39620         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
39621         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
39622         * lib/unictype/pr_bidi_european_digit.c: New file.
39623         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
39624         * lib/unictype/pr_bidi_left_to_right.c: New file.
39625         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
39626         * lib/unictype/pr_bidi_other_neutral.c: New file.
39627         * lib/unictype/pr_bidi_pdf.c: New file.
39628         * lib/unictype/pr_bidi_segment_separator.c: New file.
39629         * lib/unictype/pr_bidi_whitespace.c: New file.
39630         * lib/unictype/pr_byname.c: New file.
39631         * lib/unictype/pr_byname.gperf: New file.
39632         * lib/unictype/pr_combining.c: New file.
39633         * lib/unictype/pr_composite.c: New file.
39634         * lib/unictype/pr_currency_symbol.c: New file.
39635         * lib/unictype/pr_dash.c: New file.
39636         * lib/unictype/pr_decimal_digit.c: New file.
39637         * lib/unictype/pr_default_ignorable_code_point.c: New file.
39638         * lib/unictype/pr_deprecated.c: New file.
39639         * lib/unictype/pr_diacritic.c: New file.
39640         * lib/unictype/pr_extender.c: New file.
39641         * lib/unictype/pr_format_control.c: New file.
39642         * lib/unictype/pr_grapheme_base.c: New file.
39643         * lib/unictype/pr_grapheme_extend.c: New file.
39644         * lib/unictype/pr_grapheme_link.c: New file.
39645         * lib/unictype/pr_hex_digit.c: New file.
39646         * lib/unictype/pr_hyphen.c: New file.
39647         * lib/unictype/pr_id_continue.c: New file.
39648         * lib/unictype/pr_id_start.c: New file.
39649         * lib/unictype/pr_ideographic.c: New file.
39650         * lib/unictype/pr_ids_binary_operator.c: New file.
39651         * lib/unictype/pr_ids_trinary_operator.c: New file.
39652         * lib/unictype/pr_ignorable_control.c: New file.
39653         * lib/unictype/pr_iso_control.c: New file.
39654         * lib/unictype/pr_join_control.c: New file.
39655         * lib/unictype/pr_left_of_pair.c: New file.
39656         * lib/unictype/pr_line_separator.c: New file.
39657         * lib/unictype/pr_logical_order_exception.c: New file.
39658         * lib/unictype/pr_lowercase.c: New file.
39659         * lib/unictype/pr_math.c: New file.
39660         * lib/unictype/pr_non_break.c: New file.
39661         * lib/unictype/pr_not_a_character.c: New file.
39662         * lib/unictype/pr_numeric.c: New file.
39663         * lib/unictype/pr_other_alphabetic.c: New file.
39664         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
39665         * lib/unictype/pr_other_grapheme_extend.c: New file.
39666         * lib/unictype/pr_other_id_continue.c: New file.
39667         * lib/unictype/pr_other_id_start.c: New file.
39668         * lib/unictype/pr_other_lowercase.c: New file.
39669         * lib/unictype/pr_other_math.c: New file.
39670         * lib/unictype/pr_other_uppercase.c: New file.
39671         * lib/unictype/pr_paired_punctuation.c: New file.
39672         * lib/unictype/pr_paragraph_separator.c: New file.
39673         * lib/unictype/pr_pattern_syntax.c: New file.
39674         * lib/unictype/pr_pattern_white_space.c: New file.
39675         * lib/unictype/pr_private_use.c: New file.
39676         * lib/unictype/pr_punctuation.c: New file.
39677         * lib/unictype/pr_quotation_mark.c: New file.
39678         * lib/unictype/pr_radical.c: New file.
39679         * lib/unictype/pr_sentence_terminal.c: New file.
39680         * lib/unictype/pr_soft_dotted.c: New file.
39681         * lib/unictype/pr_space.c: New file.
39682         * lib/unictype/pr_terminal_punctuation.c: New file.
39683         * lib/unictype/pr_test.c: New file.
39684         * lib/unictype/pr_titlecase.c: New file.
39685         * lib/unictype/pr_unassigned_code_value.c: New file.
39686         * lib/unictype/pr_unified_ideograph.c: New file.
39687         * lib/unictype/pr_uppercase.c: New file.
39688         * lib/unictype/pr_variation_selector.c: New file.
39689         * lib/unictype/pr_white_space.c: New file.
39690         * lib/unictype/pr_xid_continue.c: New file.
39691         * lib/unictype/pr_xid_start.c: New file.
39692         * lib/unictype/pr_zero_width.c: New file.
39693         * lib/unictype/scripts.c: New file.
39694         * lib/unictype/sy_c_ident.c: New file.
39695         * lib/unictype/sy_c_whitespace.c: New file.
39696         * lib/unictype/sy_java_ident.c: New file.
39697         * lib/unictype/sy_java_whitespace.c: New file.
39698
39699         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
39700         Unicode 5.0.0.
39701         * lib/unictype/blocks.h: Likewise.
39702         * lib/unictype/categ_C.h: Likewise.
39703         * lib/unictype/categ_Cc.h: Likewise.
39704         * lib/unictype/categ_Cf.h: Likewise.
39705         * lib/unictype/categ_Cn.h: Likewise.
39706         * lib/unictype/categ_Co.h: Likewise.
39707         * lib/unictype/categ_Cs.h: Likewise.
39708         * lib/unictype/categ_L.h: Likewise.
39709         * lib/unictype/categ_Ll.h: Likewise.
39710         * lib/unictype/categ_Lm.h: Likewise.
39711         * lib/unictype/categ_Lo.h: Likewise.
39712         * lib/unictype/categ_Lt.h: Likewise.
39713         * lib/unictype/categ_Lu.h: Likewise.
39714         * lib/unictype/categ_M.h: Likewise.
39715         * lib/unictype/categ_Mc.h: Likewise.
39716         * lib/unictype/categ_Me.h: Likewise.
39717         * lib/unictype/categ_Mn.h: Likewise.
39718         * lib/unictype/categ_N.h: Likewise.
39719         * lib/unictype/categ_Nd.h: Likewise.
39720         * lib/unictype/categ_Nl.h: Likewise.
39721         * lib/unictype/categ_No.h: Likewise.
39722         * lib/unictype/categ_P.h: Likewise.
39723         * lib/unictype/categ_Pc.h: Likewise.
39724         * lib/unictype/categ_Pd.h: Likewise.
39725         * lib/unictype/categ_Pe.h: Likewise.
39726         * lib/unictype/categ_Pf.h: Likewise.
39727         * lib/unictype/categ_Pi.h: Likewise.
39728         * lib/unictype/categ_Po.h: Likewise.
39729         * lib/unictype/categ_Ps.h: Likewise.
39730         * lib/unictype/categ_S.h: Likewise.
39731         * lib/unictype/categ_Sc.h: Likewise.
39732         * lib/unictype/categ_Sk.h: Likewise.
39733         * lib/unictype/categ_Sm.h: Likewise.
39734         * lib/unictype/categ_So.h: Likewise.
39735         * lib/unictype/categ_Z.h: Likewise.
39736         * lib/unictype/categ_Zl.h: Likewise.
39737         * lib/unictype/categ_Zp.h: Likewise.
39738         * lib/unictype/categ_Zs.h: Likewise.
39739         * lib/unictype/categ_of.h: Likewise.
39740         * lib/unictype/combining.h: Likewise.
39741         * lib/unictype/ctype_alnum.h: Likewise.
39742         * lib/unictype/ctype_alpha.h: Likewise.
39743         * lib/unictype/ctype_blank.h: Likewise.
39744         * lib/unictype/ctype_cntrl.h: Likewise.
39745         * lib/unictype/ctype_digit.h: Likewise.
39746         * lib/unictype/ctype_graph.h: Likewise.
39747         * lib/unictype/ctype_lower.h: Likewise.
39748         * lib/unictype/ctype_print.h: Likewise.
39749         * lib/unictype/ctype_punct.h: Likewise.
39750         * lib/unictype/ctype_space.h: Likewise.
39751         * lib/unictype/ctype_upper.h: Likewise.
39752         * lib/unictype/ctype_xdigit.h: Likewise.
39753         * lib/unictype/decdigit.h: Likewise.
39754         * lib/unictype/digit.h: Likewise.
39755         * lib/unictype/mirror.h: Likewise.
39756         * lib/unictype/numeric.h: Likewise.
39757         * lib/unictype/pr_alphabetic.h: Likewise.
39758         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
39759         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
39760         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
39761         * lib/unictype/pr_bidi_block_separator.h: Likewise.
39762         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
39763         * lib/unictype/pr_bidi_common_separator.h: Likewise.
39764         * lib/unictype/pr_bidi_control.h: Likewise.
39765         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
39766         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
39767         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
39768         * lib/unictype/pr_bidi_european_digit.h: Likewise.
39769         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
39770         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
39771         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
39772         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
39773         * lib/unictype/pr_bidi_pdf.h: Likewise.
39774         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
39775         * lib/unictype/pr_bidi_whitespace.h: Likewise.
39776         * lib/unictype/pr_combining.h: Likewise.
39777         * lib/unictype/pr_composite.h: Likewise.
39778         * lib/unictype/pr_currency_symbol.h: Likewise.
39779         * lib/unictype/pr_dash.h: Likewise.
39780         * lib/unictype/pr_decimal_digit.h: Likewise.
39781         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
39782         * lib/unictype/pr_deprecated.h: Likewise.
39783         * lib/unictype/pr_diacritic.h: Likewise.
39784         * lib/unictype/pr_extender.h: Likewise.
39785         * lib/unictype/pr_format_control.h: Likewise.
39786         * lib/unictype/pr_grapheme_base.h: Likewise.
39787         * lib/unictype/pr_grapheme_extend.h: Likewise.
39788         * lib/unictype/pr_grapheme_link.h: Likewise.
39789         * lib/unictype/pr_hex_digit.h: Likewise.
39790         * lib/unictype/pr_hyphen.h: Likewise.
39791         * lib/unictype/pr_id_continue.h: Likewise.
39792         * lib/unictype/pr_id_start.h: Likewise.
39793         * lib/unictype/pr_ideographic.h: Likewise.
39794         * lib/unictype/pr_ids_binary_operator.h: Likewise.
39795         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
39796         * lib/unictype/pr_ignorable_control.h: Likewise.
39797         * lib/unictype/pr_iso_control.h: Likewise.
39798         * lib/unictype/pr_join_control.h: Likewise.
39799         * lib/unictype/pr_left_of_pair.h: Likewise.
39800         * lib/unictype/pr_line_separator.h: Likewise.
39801         * lib/unictype/pr_logical_order_exception.h: Likewise.
39802         * lib/unictype/pr_lowercase.h: Likewise.
39803         * lib/unictype/pr_math.h: Likewise.
39804         * lib/unictype/pr_non_break.h: Likewise.
39805         * lib/unictype/pr_not_a_character.h: Likewise.
39806         * lib/unictype/pr_numeric.h: Likewise.
39807         * lib/unictype/pr_other_alphabetic.h: Likewise.
39808         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
39809         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
39810         * lib/unictype/pr_other_id_continue.h: Likewise.
39811         * lib/unictype/pr_other_id_start.h: Likewise.
39812         * lib/unictype/pr_other_lowercase.h: Likewise.
39813         * lib/unictype/pr_other_math.h: Likewise.
39814         * lib/unictype/pr_other_uppercase.h: Likewise.
39815         * lib/unictype/pr_paired_punctuation.h: Likewise.
39816         * lib/unictype/pr_paragraph_separator.h: Likewise.
39817         * lib/unictype/pr_pattern_syntax.h: Likewise.
39818         * lib/unictype/pr_pattern_white_space.h: Likewise.
39819         * lib/unictype/pr_private_use.h: Likewise.
39820         * lib/unictype/pr_punctuation.h: Likewise.
39821         * lib/unictype/pr_quotation_mark.h: Likewise.
39822         * lib/unictype/pr_radical.h: Likewise.
39823         * lib/unictype/pr_sentence_terminal.h: Likewise.
39824         * lib/unictype/pr_soft_dotted.h: Likewise.
39825         * lib/unictype/pr_space.h: Likewise.
39826         * lib/unictype/pr_terminal_punctuation.h: Likewise.
39827         * lib/unictype/pr_titlecase.h: Likewise.
39828         * lib/unictype/pr_unassigned_code_value.h: Likewise.
39829         * lib/unictype/pr_unified_ideograph.h: Likewise.
39830         * lib/unictype/pr_uppercase.h: Likewise.
39831         * lib/unictype/pr_variation_selector.h: Likewise.
39832         * lib/unictype/pr_white_space.h: Likewise.
39833         * lib/unictype/pr_xid_continue.h: Likewise.
39834         * lib/unictype/pr_xid_start.h: Likewise.
39835         * lib/unictype/pr_zero_width.h: Likewise.
39836         * lib/unictype/scripts.h: Likewise.
39837         * lib/unictype/scripts_byname.gperf: Likewise.
39838         * lib/unictype/sy_c_ident.h: Likewise.
39839         * lib/unictype/sy_c_whitespace.h: Likewise.
39840         * lib/unictype/sy_java_ident.h: Likewise.
39841         * lib/unictype/sy_java_whitespace.h: Likewise.
39842
39843         * lib/unictype/Makefile: New file.
39844         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
39845         glibc.
39846         * lib/unictype/3level.h: New file, copied from glibc.
39847         * lib/unictype/3levelbit.h: New file.
39848
39849 2007-11-11  Bruno Haible  <bruno@clisp.org>
39850
39851         * modules/gperf: New file.
39852         * modules/iconv_open (Depends-on): Add it.
39853         (Makefile.am): Remove the GPERF definition.
39854
39855 2007-11-11  Bruno Haible  <bruno@clisp.org>
39856
39857         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
39858         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
39859
39860 2007-11-11  Bruno Haible  <bruno@clisp.org>
39861
39862         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
39863         (usage): Remove function.
39864
39865 2007-11-11  Bruno Haible  <bruno@clisp.org>
39866
39867         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
39868         gl_FUNC_CEILF_LIBS.
39869         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
39870         gl_FUNC_CEIL_LIBS.
39871         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
39872         gl_FUNC_CEILL_LIBS.
39873         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
39874         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
39875         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
39876
39877 2007-11-11  Bruno Haible  <bruno@clisp.org>
39878
39879         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
39880         roundf were declared but do not exist on functions.
39881         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
39882         roundl were declared but do not exist on functions.
39883         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
39884         HAVE_FLOORL_AND_CEILL, respectively.
39885         Needed for Sun C on Solaris 10.
39886
39887 2007-11-11  Bruno Haible  <bruno@clisp.org>
39888
39889         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
39890         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
39891         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
39892         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
39893         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
39894         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
39895         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
39896         HAVE_DECL_ROUNDF.
39897         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
39898         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
39899         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
39900         of HAVE_DECL_ROUND*.
39901         * modules/math (Makefile.am): Update.
39902
39903 2007-11-10  Bruno Haible  <bruno@clisp.org>
39904
39905         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
39906         ptrdiff_t as m4/intl.m4.
39907
39908 2007-11-10  Jim Meyering  <meyering@redhat.com>
39909
39910         Avoid link failure for the argmatch test.
39911         * tests/test-argmatch.c (usage): Define function to avoid a link
39912         failure: argmatch_die requires a usage function.
39913
39914 2007-11-09  Bruno Haible  <bruno@clisp.org>
39915
39916         * doc/functions/snprintf.texi: Mention BeOS deficiency.
39917         * doc/functions/vsnprintf.texi: Likewise.
39918         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
39919         with a size argument < 2.
39920
39921 2007-11-09  Bruno Haible  <bruno@clisp.org>
39922
39923         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
39924         buffer. Fixes an inefficiency introduced on 2007-11-03.
39925
39926 2007-11-09  Bruno Haible  <bruno@clisp.org>
39927
39928         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
39929         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
39930
39931 2007-11-08  Jim Meyering  <meyering@redhat.com>
39932
39933         Change cache variable name prefix "jm_" to "gl_" everywhere.
39934         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
39935         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
39936         * m4/uptime.m4: s/gl_/jm_/
39937
39938 2007-11-07  Bruno Haible  <bruno@clisp.org>
39939
39940         Update to GNU gettext 0.17.
39941         * m4/intl.m4: Update to GNU gettext 0.17.
39942         * m4/po.m4: Likewise.
39943         * modules/gettext (Files): Remove m4/ulonglong.m4.
39944         (configure.ac): Require gettext infrastructure from version 0.17.
39945
39946 2007-11-06  Bruno Haible  <bruno@clisp.org>
39947
39948         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
39949         symbolic values are not defined in a public header.
39950         * lib/freadable.c (freadable) [QNX]: Likewise.
39951         * lib/freadahead.c (freadahead) [QNX]: Likewise.
39952         * lib/freading.c (freading) [QNX]: Likewise.
39953         * lib/fseterr.c (fseterr) [QNX]: Likewise.
39954         * lib/fwritable.c (fwritable) [QNX]: Likewise.
39955         * lib/fwriting.c (fwriting) [QNX]: Likewise.
39956         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
39957         Reported by Alain Magloire.
39958
39959         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
39960
39961 2007-11-05  Bruno Haible  <bruno@clisp.org>
39962
39963         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
39964         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
39965         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
39966         Reported by Eric Blake.
39967
39968 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39969             Bruno Haible  <bruno@clisp.org>
39970
39971         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
39972         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
39973         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
39974         (malloc): Undefine also before including <stdlib.h>.
39975         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
39976         Needed on OSF/1 4.0.
39977
39978 2007-11-05  Jim Meyering  <meyering@redhat.com>
39979
39980         git-version-gen: sync from coreutils.
39981         * build-aux/git-version-gen: Add comments.
39982         Change the first '-' to '.' in the snapshot version string,
39983         e.g., 6.9-377-08144 -> 6.9.377-08144
39984         Remove first parameter.
39985         Don't declare a version "-dirty" merely because a time
39986         stamp has changed.
39987
39988 2007-11-04  Bruno Haible  <bruno@clisp.org>
39989
39990         * lib/lock.h: Protect all macro definitions containing an 'if'
39991         statement through a "do { ... } while (0)".
39992         * lib/tls.h: Likewise.
39993
39994 2007-11-04  Bruno Haible  <bruno@clisp.org>
39995
39996         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
39997
39998 2007-11-04  Bruno Haible  <bruno@clisp.org>
39999
40000         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
40001         * modules/fprintf-posix (Depends-on): Add nocrash.
40002         * modules/snprintf-posix (Depends-on): Likewise.
40003         * modules/sprintf-posix (Depends-on): Likewise.
40004         * modules/vasnprintf-posix (Depends-on): Likewise.
40005         * modules/vasprintf-posix (Depends-on): Likewise.
40006         * modules/vfprintf-posix (Depends-on): Likewise.
40007         * modules/vsnprintf-posix (Depends-on): Likewise.
40008         * modules/vsprintf-posix (Depends-on): Likewise.
40009         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40010         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40011         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40012         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40013         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40014         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40015         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40016
40017 2007-11-04  Bruno Haible  <bruno@clisp.org>
40018
40019         * modules/nocrash: New file.
40020         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
40021         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
40022
40023 2007-11-04  Bruno Haible  <bruno@clisp.org>
40024
40025         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
40026         precision handling.
40027         * tests/test-vasprintf-posix.c (test_function): Likewise.
40028         * tests/test-snprintf-posix.h (test_function): Likewise.
40029         * tests/test-sprintf-posix.h (test_function): Likewise.
40030
40031         Fix *printf behaviour for large precisions on mingw and BeOS.
40032         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
40033         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
40034         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
40035         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40036         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40037         gl_PRINTF_PRECISION and test its result. Invoke
40038         gl_PREREQ_VASNPRINTF_PRECISION.
40039         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40040         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40041         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40042         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40043         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40044         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40045         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40046         * doc/functions/fprintf.texi: Update.
40047         * doc/functions/printf.texi: Update.
40048         * doc/functions/snprintf.texi: Update.
40049         * doc/functions/sprintf.texi: Update.
40050         * doc/functions/vfprintf.texi: Update.
40051         * doc/functions/vprintf.texi: Update.
40052         * doc/functions/vsnprintf.texi: Update.
40053         * doc/functions/vsprintf.texi: Update.
40054
40055 2007-11-04  Bruno Haible  <bruno@clisp.org>
40056
40057         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
40058
40059 2007-11-04  Bruno Haible  <bruno@clisp.org>
40060
40061         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
40062         Reported by Sylvain Beucler <beuc@gnu.org>.
40063
40064 2007-11-03  Bruno Haible  <bruno@clisp.org>
40065
40066         * tests/test-fprintf-posix2.sh: New file.
40067         * tests/test-fprintf-posix2.c: New file.
40068         * modules/fprintf-posix-tests (Files): Add them.
40069         (TESTS): Add test-fprintf-posix2.sh.
40070         (configure.ac): Check for getrlimit and setrlimit.
40071         (check_PROGRAMS): Add test-fprintf-posix2.
40072
40073         * tests/test-printf-posix2.sh: New file.
40074         * tests/test-printf-posix2.c: New file.
40075         * modules/printf-posix-tests (Files): Add them.
40076         (TESTS): Add test-printf-posix2.sh.
40077         (configure.ac): Check for getrlimit and setrlimit.
40078         (check_PROGRAMS): Add test-printf-posix2.
40079
40080         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
40081         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
40082         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
40083         (decode_double): New function, copied from decode_long_double.
40084         (scale10_round_decimal_decoded): New function, extracted from
40085         scale10_round_decimal_long_double.
40086         (scale10_round_decimal_long_double): Use it.
40087         (scale10_round_decimal_double): New function.
40088         (floorlog10): New function.
40089         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
40090         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
40091         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40092         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40093         gl_PRINTF_ENOMEM and test its result. Invoke
40094         gl_PREREQ_VASNPRINTF_ENOMEM.
40095         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40096         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40097         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40098         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40099         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40100         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40101         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40102         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
40103         * modules/snprintf-posix (Depends-on): Likewise.
40104         * modules/sprintf-posix (Depends-on): Likewise.
40105         * modules/vasnprintf-posix (Depends-on): Likewise.
40106         * modules/vasprintf-posix (Depends-on): Likewise.
40107         * modules/vfprintf-posix (Depends-on): Likewise.
40108         * modules/vsnprintf-posix (Depends-on): Likewise.
40109         * modules/vsprintf-posix (Depends-on): Likewise.
40110         * doc/functions/fprintf.texi: Update.
40111         * doc/functions/printf.texi: Update.
40112         * doc/functions/snprintf.texi: Update.
40113         * doc/functions/sprintf.texi: Update.
40114         * doc/functions/vfprintf.texi: Update.
40115         * doc/functions/vprintf.texi: Update.
40116         * doc/functions/vsnprintf.texi: Update.
40117         * doc/functions/vsprintf.texi: Update.
40118
40119 2007-11-03  Bruno Haible  <bruno@clisp.org>
40120
40121         * modules/frexp-nolibm-tests: New file.
40122
40123         * modules/frexp-nolibm: New file.
40124         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
40125
40126 2007-11-03  Bruno Haible  <bruno@clisp.org>
40127
40128         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
40129         value is C99 compliant.
40130         Needed for OSF/1 5.1.
40131
40132 2007-11-03  Bruno Haible  <bruno@clisp.org>
40133
40134         Fix out-of-memory handling of vasnprintf.
40135         * lib/printf-parse.c: Include <errno.h>.
40136         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
40137         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
40138         is already set.
40139
40140 2007-11-02  Eric Blake  <ebb9@byu.net>
40141
40142         Fix tests on cygwin.
40143         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
40144
40145 2007-11-01  Bruno Haible  <bruno@clisp.org>
40146
40147         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
40148         warning.
40149         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
40150         needed for POSIX compatibility.
40151
40152 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
40153
40154         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
40155         for compatibility with GNU.
40156
40157 2007-11-01  Bruno Haible  <bruno@clisp.org>
40158
40159         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
40160         (putenv): Renamed from rpl_putenv. Change argument type from
40161         'const char *' to 'char *'.
40162         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
40163         of defining putenv in config.h, just set REPLACE_PUTENV.
40164         * modules/putenv (Depends-on): Add stdlib.
40165         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40166         (Include): Use <stdlib.h>.
40167         * lib/stdlib.in.h (putenv): New declaration.
40168         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
40169         REPLACE_PUTENV.
40170         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
40171         REPLACE_PUTENV.
40172         Needed for MacOS X 10.5.0.
40173         Reported by Peter O'Gorman <peter@pogma.com>.
40174
40175 2007-11-01  Jim Meyering  <meyering@redhat.com>
40176
40177         Treat an empty date string exactly like "0".
40178         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
40179         if the remaining date string (to be parsed) is empty, use "0".
40180         Reported by Mischa Molhoek and discussed in this thread:
40181         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
40182
40183 2007-10-31  Bruno Haible  <bruno@clisp.org>
40184
40185         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
40186         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
40187         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
40188         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
40189         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
40190         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
40191
40192 2007-10-31  Bruno Haible  <bruno@clisp.org>
40193
40194         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
40195         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
40196         (AC_TYPE_LONG_LONG_INT): Use it.
40197         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
40198         it as well.
40199         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
40200         to m4/longlong.m4.
40201         * modules/stdint (Files): Remove m4/ulonglong.m4.
40202         * modules/strtoull (Files): Use m4/longlong.m4 instead of
40203         m4/ulonglong.m4.
40204         * modules/strtoumax (Files): Likewise.
40205
40206 2007-10-30  Bruno Haible  <bruno@clisp.org>
40207
40208         * modules/xvasprintf-posix: New file.
40209         Suggested by Eric Blake.
40210
40211 2007-10-30  Bruno Haible  <bruno@clisp.org>
40212
40213         * modules/xprintf-posix-tests: New file.
40214         * tests/test-xprintf-posix.sh: New file.
40215         * tests/test-xprintf-posix.c: New file.
40216         * tests/test-xfprintf-posix.c: New file.
40217
40218         * modules/xprintf-posix: New file.
40219
40220 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40221
40222         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
40223         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
40224         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
40225
40226 2007-10-29  Bruno Haible  <bruno@clisp.org>
40227
40228         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
40229         contain the special marker '_cv_'.
40230         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40231         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40232         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40233         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
40234         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40235         Reported by Ralf Wildenhues.
40236
40237 2007-10-29  Bruno Haible  <bruno@clisp.org>
40238
40239         * gnulib-tool (func_import): When --lgpl is not specified, set
40240         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
40241         GPLv3.
40242         Reported by Simon Josefsson.
40243
40244 2007-10-28  Bruno Haible  <bruno@clisp.org>
40245
40246         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
40247         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
40248         HAVE_DECL_ISFINITE.
40249         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
40250         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
40251         HAVE_DECL_ISFINITE.
40252
40253 2007-10-28  Bruno Haible  <bruno@clisp.org>
40254
40255         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
40256         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
40257
40258 2007-10-28  Bruno Haible  <bruno@clisp.org>
40259
40260         Fix link errors with Sun C 5.0 on Solaris 10.
40261         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
40262         function is declared but not present in the compiler's libm.
40263         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
40264         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
40265         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
40266         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
40267         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
40268         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
40269         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
40270         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
40271         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
40272         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
40273         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
40274         HAVE_DECL_FLOORL.
40275
40276 2007-10-28  Bruno Haible  <bruno@clisp.org>
40277
40278         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
40279         gl_FUNC_FLOORL. Cache the result.
40280         (gl_FUNC_FLOORL): Use it.
40281         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
40282         gl_FUNC_CEILL. Cache the result.
40283         (gl_FUNC_CEILL): Use it.
40284
40285         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
40286         gl_FUNC_FLOOR. Cache the result.
40287         (gl_FUNC_FLOOR): Use it.
40288         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
40289         gl_FUNC_CEIL. Cache the result.
40290         (gl_FUNC_CEIL): Use it.
40291
40292         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
40293         gl_FUNC_FLOORF. Cache the result.
40294         (gl_FUNC_FLOORF): Use it.
40295         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
40296         gl_FUNC_CEILF. Cache the result.
40297         (gl_FUNC_CEILF): Use it.
40298
40299 2007-10-28  Bruno Haible  <bruno@clisp.org>
40300
40301         * gnulib-tool: Allow specifying the LGPL version number through
40302         --lgpl=2 or --lgpl=3.
40303         (func_usage): Document --lgpl with argument.
40304         Handle --lgpl=... arguments.
40305         (func_import): Recognize also gl_LGPL calls with an argument. When
40306         --lgpl=2 is used and the module's license is just LGPL, report an
40307         error. Set sed_transform_lib_file according to the lgpl variable. In
40308         the generated files, use --lgpl or gl_LGPL invocations with argument,
40309         if necessary.
40310         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
40311         an LGPv2+ license.
40312         * doc/gnulib-tool.texi (Modified imports): Update explanation of
40313         gl_LGPL macro.
40314
40315 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40316             Bruno Haible  <bruno@clisp.org>
40317
40318         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
40319         (u16_uctomb_aux): Likewise.
40320         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
40321         !HAVE_INLINE.
40322         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
40323
40324 2007-10-28  Bruno Haible  <bruno@clisp.org>
40325
40326         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
40327         Invoke AM_GETTEXT_OPTION if it exists.
40328         * modules/vasprintf: Likewise.
40329         * modules/verror: Likewise.
40330         * modules/xprintf: Likewise.
40331         * modules/xvasprintf: Likewise.
40332
40333 2007-10-27  Ben Pfaff  <blp@gnu.org>
40334
40335         * lib/math.in.h: Define isfinite macro and prototypes for
40336         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
40337         implementations.
40338         * m4/math_h.m4: New substitutions for isfinite module.
40339         * lib/isfinite.c: New file.
40340         * m4/isfinite.m4: New file.
40341         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
40342         * modules/isfinite: New file.
40343         * modules/isfinite-tests: New file.
40344         * tests/tests-isfinite.c: New file.
40345         * doc/functions/isfinite.texi: Mention isfinite module.
40346         * MODULES.html.sh: Mention new module.
40347
40348 2007-10-27  Ben Pfaff  <blp@gnu.org>
40349
40350         Ralf Wildenhues reported that Tru64 4.0D declares the round
40351         functions but does not have definitions.
40352         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
40353         cannot be found in any library, set the output variable to
40354         "missing" instead of "".
40355         * m4/round.m4: Also use our substitute if we cannot find round in
40356         any library, even if it is declared.
40357         * m4/roundf.m4: Likewise for roundf.
40358         * m4/roundl.m4: Likewise for roundl.
40359         * lib/math.in.h: Undefine roundf, round, roundl before defining
40360         their replacements, to allow for hypothetical systems where these
40361         may be defined as macros but not available in libraries.
40362
40363 2007-10-27  Bruno Haible  <bruno@clisp.org>
40364
40365         * doc/gnulib.texi: Invoke @firstparagraphindent.
40366         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
40367         changes in gnulib.
40368         (Source changes): New section.
40369
40370 2007-10-26  Bruno Haible  <bruno@clisp.org>
40371
40372         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
40373         borrowed from autoconf.
40374
40375 2007-10-26  Bruno Haible  <bruno@clisp.org>
40376
40377         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
40378         strerror returned the empty string. Needed on HP-UX 11.00.
40379
40380 2007-10-24  Micah Cowan  <micah@cowan.name>
40381
40382         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
40383         * build-aux/bootstrap: Remove support for now-unnecessary option,
40384         --cvs-user, and envvars CVS_USER, CVS_RSH.
40385
40386 2007-10-24  Jim Meyering  <meyering@redhat.com>
40387
40388         Avoid diagnostics from sha1sum when there is no cached checksum.
40389         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
40390         if the po.s1 file hasn't been created yet.
40391
40392         * build-aux/bootstrap: Sync from coreutils:
40393         2007-10-24  Jim Meyering  <meyering@redhat.com>
40394         Get gnulib from the git repository, not from an obsolete cvs one.
40395         * build-aux/bootstrap: Suggestion from Micah Cowan.
40396         2007-10-04  Jim Meyering  <jim@meyering.net>
40397         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
40398         (update_po_files): Work also when there are no .po files in po/.
40399
40400 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40401
40402         * README: Append ".git" to git and cg examples.
40403         Problem reported by Benoit Sigoure.
40404
40405 2007-10-23  Micah Cowan  <micah@cowan.name>
40406
40407         * users.txt: Add wget.
40408
40409 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40410
40411         Fix linking of some unistdio tests on FreeBSD.
40412         * modules/unistdio/u16-vsnprintf-tests
40413         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
40414         * modules/unistdio/u16-vsprintf-tests
40415         (test_u16_vsnprintf1_LDADD): Likewise.
40416         * modules/unistdio/u32-vsnprintf-tests
40417         (test_u32_vsnprintf1_LDADD): Likewise.
40418         * modules/unistdio/u32-vsprintf-tests
40419         (test_u32_vsprintf1_LDADD): Likewise.
40420         * modules/unistdio/u8-vsnprintf-tests
40421         (test_u8_vsnprintf1_LDADD): Likewise.
40422         * modules/unistdio/u8-vsprintf-tests
40423         (test_u8_vsprintf1_LDADD): Likewise.
40424         * modules/unistdio/ulc-vsnprintf-tests
40425         (test_ulc_vsnprintf1_LDADD): Likewise.
40426         * modules/unistdio/ulc-vsprintf-tests
40427         (test_ulc_vsprintf1_LDADD): Likewise.
40428
40429         Fix linking of some uniconv tests on FreeBSD.
40430         * modules/uniconv/u16-conv-from-enc-tests
40431         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
40432         * modules/uniconv/u16-conv-to-enc-tests
40433         (test_u16_conv_to_enc_LDADD): Likewise.
40434         * modules/uniconv/u16-strconv-from-enc-tests
40435         (test_u16_strconv_from_enc_LDADD): Likewise.
40436         * modules/uniconv/u16-strconv-to-enc-tests
40437         (test_u16_strconv_to_enc_LDADD): Likewise.
40438         * modules/uniconv/u32-conv-from-enc-tests
40439         (test_u32_conv_from_enc_LDADD): Likewise.
40440         * modules/uniconv/u32-conv-to-enc-tests
40441         (test_u32_conv_to_enc_LDADD): Likewise.
40442         * modules/uniconv/u32-strconv-from-enc-tests
40443         (test_u32_strconv_from_enc_LDADD): Likewise.
40444         * modules/uniconv/u32-strconv-to-enc-tests
40445         (test_u32_strconv_to_enc_LDADD): Likewise.
40446         * modules/uniconv/u8-conv-from-enc-tests
40447         (test_u8_conv_from_enc_LDADD): Likewise.
40448         * modules/uniconv/u8-conv-to-enc-tests
40449         (test_u8_conv_to_enc_LDADD): Likewise.
40450         * modules/uniconv/u8-strconv-from-enc-tests
40451         (test_u8_strconv_from_enc_LDADD): Likewise.
40452         * modules/uniconv/u8-strconv-to-enc-tests
40453         (test_u8_strconv_to_enc_LDADD): Likewise.
40454
40455 2007-10-22  Bruno Haible  <bruno@clisp.org>
40456
40457         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
40458         size.
40459
40460 2007-10-22  Eric Blake  <ebb9@byu.net>
40461
40462         Tweak x*printf documentation.
40463         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
40464         variable name and comments.
40465         Suggested by Bruno Haible.
40466
40467 2007-10-22  Bruno Haible  <bruno@clisp.org>
40468
40469         * lib/acl.c (copy_acl): Fix file name in comment.
40470
40471 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
40472
40473         Fix Tru64 problem with stdbool.h.
40474         * lib/stdbool.in.h (false, true):
40475         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
40476         Don't declare as an enum in this situation; it runs afoul of Tru64.
40477         Problem reported by Steven M. Schweda in
40478         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
40479
40480 2007-10-22  Eric Blake  <ebb9@byu.net>
40481
40482         Also wrap vf?printf.
40483         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
40484         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
40485         (xvprintf, xvfprintf): New functions.
40486
40487 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40488
40489         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
40490         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
40491
40492         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
40493         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
40494
40495 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
40496
40497         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
40498         by Bruno Haible.
40499
40500 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40501
40502         * lib/getloadavg.c
40503         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
40504         Undef `sys' after including sys/table.h, for Tru64 4.0D.
40505
40506         * tests/test-i-ring.c: Work for C89.
40507
40508 2007-10-22  Bruno Haible  <bruno@clisp.org>
40509
40510         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
40511         -1u, in preprocessor expression, so that we don't test for the bug
40512         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
40513         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
40514
40515 2007-10-22  Eric Blake  <ebb9@byu.net>
40516
40517         * tests/test-yesno.sh: Silence stderr during test.
40518
40519 2007-10-22  Simon Josefsson  <simon@josefsson.org>
40520
40521         * modules/crypto/gc-camellia: New file.
40522
40523         * m4/gc-camellia.m4: New file.
40524
40525         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
40526
40527         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
40528
40529 2007-10-22  Simon Josefsson  <simon@josefsson.org>
40530
40531         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
40532         --help to stdout.  Reported by sms@antinode.org (Steven
40533         M. Schweda).
40534
40535 2007-10-22  Simon Josefsson  <simon@josefsson.org>
40536
40537         * users.txt: Fix link to libksba.
40538
40539 2007-10-21  Ben Pfaff  <blp@gnu.org>
40540
40541         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
40542         round.c roundf implementation that depends on floorf and ceilf to
40543         be tested unconditionally.
40544
40545 2007-10-21  Ben Pfaff  <blp@gnu.org>
40546
40547         * m4/check-libm-func.m4: Removed.
40548         * m4/check-math-lib.m4: New file.
40549         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
40550         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
40551         definition and lack of AC_LIBOBJ([roundf]).
40552         * m4/roundl.m4: Ditto, and similarly for roundl.
40553         * modules/round: Reference new m4 file.
40554         * modules/roundf: Ditto.
40555         * modules/roundl: Ditto.
40556         * tests/test-round2.c (main): Use ROUND instead of round.
40557         Bug report from Bruno Haible.
40558
40559 2007-10-21  Bruno Haible  <bruno@clisp.org>
40560
40561         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
40562         context.
40563
40564 2007-10-21  Bruno Haible  <bruno@clisp.org>
40565
40566         * tests/test-wcwidth.c (main): Allow negative result for some control
40567         characters.
40568
40569         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
40570         Needed on OSF/1 5.1.
40571
40572 2007-10-21  Bruno Haible  <bruno@clisp.org>
40573
40574         * tests/test-floorf1.c: Include isnanf.h.
40575         (main): Use isnanf() instead of isnan().
40576         * tests/test-ceilf1.c: Include isnanf.h.
40577         (main): Use isnanf() instead of isnan().
40578         * tests/test-truncf1.c: Include isnanf.h.
40579         (main): Use isnanf() instead of isnan().
40580         * tests/test-roundf1.c: Include isnanf.h.
40581         (main): Use isnanf() instead of isnan().
40582
40583 2007-10-21  Eric Blake  <ebb9@byu.net>
40584
40585         * users.txt: Update URL for m4.
40586
40587 2007-10-21  Bruno Haible  <bruno@clisp.org>
40588
40589         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
40590
40591 2007-10-21  Bruno Haible  <bruno@clisp.org>
40592
40593         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
40594         Git's management files if the CVS files are not present.
40595
40596 2007-10-20  Bruno Haible  <bruno@clisp.org>
40597
40598         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
40599         gcc-3.4.x.
40600
40601 2007-10-20  Ben Pfaff  <blp@gnu.org>
40602
40603         * lib/math.in.h: Declare round, roundf, roundl if we are providing
40604         implementations.
40605         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
40606         * lib/round.c: New file.
40607         * lib/roundf.c: New file.
40608         * lib/roundl.c: New file.
40609         * m4/round.m4: New file.
40610         * m4/roundf.m4: New file.
40611         * m4/roundl.m4: New file.
40612         * m4/check-libm-func-m4: New file.
40613         * modules/math: Replace round, roundf, roundl related @VARS@ in
40614         math.in.h.
40615         * modules/round: New file.
40616         * modules/round-tests: New file.
40617         * modules/roundf: New file.
40618         * modules/roundf-tests: New file.
40619         * modules/roundl: New file.
40620         * modules/roundl-tests: New file.
40621         * tests/test-round1.c: New file.
40622         * tests/test-round2.c: New file.
40623         * tests/test-roundf1.c: New file.
40624         * tests/test-roundf2.c: New file.
40625         * tests/test-roundl.c: New file.
40626         * doc/functions/round.texi: Mention round module.
40627         * doc/functions/roundf.texi: Mention roundf module.
40628         * doc/functions/roundl.texi: Mention roundl module.
40629         * MODULES.html.sh: Mention new modules.
40630         Thanks to Bruno Haible for suggestions.
40631
40632 2007-10-20  Jim Meyering  <meyering@redhat.com>
40633
40634         * lib/xprintf.c: Include <config.h> unconditionally.
40635
40636         Change xprintf's license to GPL.
40637         * modules/xprintf (License): s/LGPL/GPL/, since this module
40638         depends on modules (exit and exitfail) which are GPL.
40639         Suggestion from Bruno Haible.
40640
40641         xprintf fixes.
40642         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
40643         Use a clearer diagnostic.
40644         Patch from Bruno Haible.
40645
40646 2007-10-20  Bruno Haible  <bruno@clisp.org>
40647
40648         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
40649         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
40650         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40651
40652 2007-10-20  Bruno Haible  <bruno@clisp.org>
40653
40654         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
40655         precision in the comparison result > x - 1 or similar.
40656         * tests/test-ceilf2.c (correct_result_p): Likewise.
40657         * tests/test-truncf2.c (correct_result_p): Likewise.
40658         * tests/test-trunc2.c (correct_result_p): Likewise.
40659         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40660
40661 2007-10-20  Bruno Haible  <bruno@clisp.org>
40662
40663         * modules/ceil: New file.
40664         * m4/ceil.m4: New file.
40665         * doc/functions/ceil.texi: Mention the 'ceil' module.
40666
40667 2007-10-20  Bruno Haible  <bruno@clisp.org>
40668
40669         * modules/floor: New file.
40670         * m4/floor.m4: New file.
40671         * doc/functions/floor.texi: Mention the 'floor' module.
40672
40673 2007-10-20  Bruno Haible  <bruno@clisp.org>
40674
40675         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
40676         of %a.
40677         * modules/floorf-tests (Depends-on): Likewise.
40678         * modules/truncf-tests (Depends-on): Likewise.
40679         * modules/trunc-tests (Depends-on): Likewise.
40680         Reported by Ben Pfaff.
40681
40682 2007-10-19  Jim Meyering  <meyering@redhat.com>
40683
40684         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
40685         Don't bother testing specific errno values.  Just test ferror.
40686
40687         New module: xprintf
40688         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
40689
40690 2007-10-19  Bruno Haible  <bruno@clisp.org>
40691
40692         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
40693         syntax.
40694         * modules/javaexec (Makefile.am): Likewise.
40695         * modules/relocatable-prog (Makefile.am): Likewise.
40696         Suggested by Jim Meyering.
40697
40698 2007-10-18  Bruno Haible  <bruno@clisp.org>
40699
40700         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
40701         Reported by Jim Meyering.
40702
40703 2007-10-18  Eric Blake  <ebb9@byu.net>
40704
40705         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
40706
40707 2007-10-18  Bruno Haible  <bruno@clisp.org>
40708
40709         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
40710         the format string into writable memory. Needed in Fortify conditions.
40711
40712 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
40713             Bruno Haible  <bruno@clisp.org>
40714
40715         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
40716         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
40717         * modules/trim (Depends-on): Add mbchar.
40718         (configure.ac): Add gl_FUNC_MBRTOWC.
40719         (Makefile.am): Augment lib_SOURCES.
40720
40721 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
40722
40723         Modify glob.c to use fstatat and dirfd, to simplify it.
40724         Suggested by Eric Blake.
40725         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
40726         Don't include <stdbool.h>; not used.
40727         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
40728         (link_exists_p): Simplify implementation, since we can now assume
40729         dirfd and fstatat.
40730         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
40731
40732 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40733
40734         * gnulib-tool (func_get_dependencies): Fix sed script to
40735         match only tests.
40736
40737 2007-10-17  Bruno Haible  <bruno@clisp.org>
40738
40739         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
40740         allow locale names without encoding suffix.
40741         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
40742         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
40743
40744 2007-10-16  Bruno Haible  <bruno@clisp.org>
40745
40746         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
40747         * lib/getgroups.c (getgroups): Likewise.
40748         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
40749
40750 2007-10-16  Bruno Haible  <bruno@clisp.org>
40751
40752         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
40753         * modules/malloc-posix (License): Likewise.
40754         * modules/realloc-posix (License): Likewise.
40755         * modules/calloc-posix (License): Likewise.
40756         * modules/intprops (License): Change from GPL to LGPL, with
40757         Paul Eggert's approval.
40758
40759 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
40760
40761         Merge glibc changes into lib/glob.c.
40762
40763         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
40764         2007-10-15 04:59:03 UTC.  Here are the changes:
40765
40766         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
40767
40768         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
40769
40770         * lib/glob.c: Add some branch prediction throughout.
40771
40772         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
40773
40774         [BZ #5103]
40775         * lib/glob.c (glob): Recognize patterns starting \/.
40776
40777         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
40778
40779         [BZ #3996]
40780         * lib/glob.c (attribute_hidden): Define if not defined.
40781         (glob): Unescape dirname, filename or username when needed and not
40782         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
40783         is NULL.  Handle unescaped [ in pattern without closing ].
40784         Don't pass GLOB_CHECK down to recursive glob for directories.
40785         (__glob_pattern_type): New function.
40786         (__glob_pattern_p): Implement using __glob_pattern_type.
40787         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
40788         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
40789         Remove unreachable code.
40790
40791         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
40792
40793         * lib/glob.c (glob_in_dir): Add some comments and asserts to
40794         explain why there are no leaks.
40795
40796         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
40797
40798         [BZ #3253]
40799         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
40800         time, rather allocate increasingly bigger arrays of pointers, if
40801         possible with alloca, if too large with malloc.
40802
40803 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
40804
40805         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
40806         Problem reported by H.Merijn Brand in
40807         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
40808         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
40809         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
40810
40811 2007-10-15  Bruno Haible  <bruno@clisp.org>
40812
40813         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
40814         with explicit rpl_ prefix.
40815         * lib/fopen.c (fopen): Likewise.
40816         * lib/freopen.c (freopen): Likewise.
40817         * lib/iconv.c (iconv): Likewise.
40818         * lib/iconv_close.c (iconv_close): Likewise.
40819
40820 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40821
40822         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
40823
40824 2007-10-15  Bruno Haible  <bruno@clisp.org>
40825
40826         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
40827         <stddef.h> instead of <stdlib.h> since we only need NULL.
40828         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40829
40830 2007-10-15  Bruno Haible  <bruno@clisp.org>
40831
40832         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
40833         Replace paragraph talking about LIBOBJS.
40834         Reported by Colin Watson <cjwatson@debian.org>.
40835
40836 2007-10-15  Bruno Haible  <bruno@clisp.org>
40837
40838         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
40839         <stdlib.h> before using NULL.
40840
40841 2007-10-15  Simon Josefsson  <simon@josefsson.org>
40842
40843         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
40844         Reported by Albert Chin <china@thewrittenword.com>.
40845
40846 2007-10-14  Bruno Haible  <bruno@clisp.org>
40847
40848         * modules/iconv_open-utf-tests: New file.
40849         * tests/test-iconv-utf.c: New file.
40850
40851         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
40852         * modules/iconv_open-utf: New file.
40853         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
40854         (iconv, iconv_close): New declarations.
40855         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
40856         be defined.
40857         (iconv_open): Add special handling of conversion between UTF-8 and
40858         UTF-{16,32}{BE,LE}.
40859         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
40860         * lib/iconv_close.c: New file.
40861         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
40862         gl_FUNC_ICONV_OPEN.
40863         (gl_FUNC_ICONV_OPEN): Use it.
40864         (gl_FUNC_ICONV_OPEN_UTF): New macro.
40865         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
40866         and REPLACE_ICONV_UTF.
40867         * modules/iconv_open (Depends-on): Add c-strcase.
40868         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
40869         ICONV_CONST.
40870         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
40871
40872 2007-10-13  Albert Chin  <china@thewrittenword.com>
40873             Bruno Haible  <bruno@clisp.org>
40874
40875         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
40876         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
40877
40878 2007-10-13  Bruno Haible  <bruno@clisp.org>
40879
40880         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
40881         defined, use the ISO C99 inline semantics.
40882         * lib/argp.h (ARGP_EI): Likewise.
40883
40884 2007-10-13  Bruno Haible  <bruno@clisp.org>
40885
40886         Handle 'inline' change in gcc 4.3.0.
40887         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
40888         argp_fmtstream_write, argp_fmtstream_set_lmargin,
40889         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
40890         argp_fmtstream_point): Disable 'extern' declaration if the function
40891         definition is going to be provided inline.
40892         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
40893         semantics, not the ISO C99 inline semantics.
40894         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
40895         'extern' declaration if the function definition is going to be provided
40896         inline.
40897         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
40898         the GNU C inline semantics, not the ISO C99 inline semantics. With
40899         GCC 4.2, avoid a warning.
40900
40901 2007-10-13  Bruno Haible  <bruno@clisp.org>
40902
40903         * lib/freading.h (freading): Enable the use of __freading for
40904         glibc >= 2.7.
40905         * lib/freading.c (freading): Likewise.
40906
40907 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
40908
40909         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
40910         "warning: C99 inline functions are not supported; using GNU89".
40911
40912 2007-10-12  Bruno Haible  <bruno@clisp.org>
40913
40914         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
40915         of 2.
40916         * tests/test-ceilf2.c: New file.
40917         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
40918
40919         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
40920         * modules/ceilf-tests: Update.
40921
40922 2007-10-12  Bruno Haible  <bruno@clisp.org>
40923
40924         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
40925         of 2.
40926         * tests/test-floorf2.c: New file.
40927         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
40928
40929         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
40930         * modules/floorf-tests: Update.
40931
40932 2007-10-12  Bruno Haible  <bruno@clisp.org>
40933
40934         * tests/test-trunc2.c: New file.
40935         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
40936
40937         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
40938         * modules/trunc-tests: Update.
40939
40940 2007-10-12  Bruno Haible  <bruno@clisp.org>
40941
40942         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
40943         of 2.
40944         * tests/test-truncf2.c: New file.
40945         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
40946
40947         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
40948         * modules/truncf-tests: Update.
40949
40950 2007-10-11  Eric Blake  <ebb9@byu.net>
40951
40952         Don't claim strerror is broken on Interix.
40953         * doc/functions/strerror.texi (strerror): Known broken systems are
40954         now Solaris 8, and not Interix.
40955         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
40956         Interix on cross-compile.
40957         Reported by Martin Koeppe in
40958         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
40959
40960 2007-10-11  Bruno Haible  <bruno@clisp.org>
40961
40962         * modules/i-ring-tests: New file.
40963         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
40964         instead of assert.
40965
40966 2007-10-11  Bruno Haible  <bruno@clisp.org>
40967
40968         * modules/filenamecat-tests: New file.
40969         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
40970         * lib/filenamecat.c: Remove test code.
40971
40972 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
40973
40974         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
40975
40976         * lib/strerror.c: Include <string.h> always, to test interface,
40977         and to remove the need for the dummy.
40978         Include intprops.h to compute width instead of doing it ourselves
40979         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
40980         (strerror): Define it to return NULL if there's no system strerror.
40981         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
40982         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
40983         ancient pre-strerror Unix systems well any more.  Saying "unknown
40984         system error" is enough.
40985         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
40986         simpler strerror.c implementation.
40987         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
40988         Simplify the tests to reflect the simpler strerror implementation.
40989         * modules/strerror (Depends-on): Add intprops.
40990
40991 2007-10-09  Eric Blake  <ebb9@byu.net>
40992
40993         Silence test-fpending.
40994         * modules/fpending-tests (Files): Add wrapper script.
40995         * tests/test-fpending.sh: New file.
40996
40997 2007-10-09  Bruno Haible  <bruno@clisp.org>
40998
40999         * MODULES.html.sh (func_module): Don't create a hyperlink for
41000         function names like 'printf_frexp'.
41001         (Misc): Add crc, memxor.
41002         (Characteristics of floating types): New section.
41003         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
41004         isnanf-nolibm, signbit, trunc, truncf, truncl.
41005         (Enhancements for ISO C 99 functions): New subsection Input/output.
41006         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
41007         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
41008         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
41009         (Compatibility checks for POSIX:2001 functions): Add clock-time.
41010         (Enhancements for POSIX:2001 functions): Add chdir-long.
41011         (File system functions): Add areadlink, chdir-safer, read-file.
41012         Remove cycle-check.
41013         (File system as inode set): New section.
41014         (Date and time): Add gethrxtime.
41015         (Multithreading): Add openmp.
41016         (Internationalization functions): Add localename.
41017         (Unicode string functions): Add unistr/u*-mbsnlen.
41018         (Support for maintaining and releasing projects): Add git-version-gen.
41019         (Lone files): Remove directories.
41020
41021 2007-10-08  Ben Pfaff  <blp@gnu.org>
41022
41023         * lib/xmalloca.h: Fix typo in comment.
41024
41025 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
41026
41027         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
41028         when avoiding problems with integer overflow.  Use a portable test
41029         instead.
41030
41031 2007-10-08  Simon Josefsson  <simon@josefsson.org>
41032
41033         * modules/dummy (License): Change to LGPLv2+.
41034         * modules/float (License): Likewise
41035         * modules/realloc (License): Likewise
41036         * modules/stdlib (License): Likewise
41037
41038 2007-10-07  Bruno Haible  <bruno@clisp.org>
41039
41040         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
41041         * floor.c (TWO_MANT_DIG): Likewise.
41042         * ceil.c (TWO_MANT_DIG): Likewise.
41043         Reported by Ben Pfaff.
41044
41045 2007-10-07  Bruno Haible  <bruno@clisp.org>
41046
41047         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
41048         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
41049         * lib/frexp.c (FUNC): Likewise.
41050         * lib/printf-frexp.h (printf_frexp): Likewise.
41051         * lib/printf-frexpl.h (printf_frexpl): Likewise.
41052         * lib/printf-frexp.c (FUNC): Likewise.
41053         Suggested by Jim Meyering.
41054
41055 2007-10-07  Jim Meyering  <meyering@redhat.com>
41056
41057         Make xnanosleep's integer overflow test more robust.
41058         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
41059         so that gcc-4.3.0 doesn't optimize away this test for overflow.
41060
41061 2007-10-07  Bruno Haible  <bruno@clisp.org>
41062
41063         * NEWS: Mention the license change.
41064
41065         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
41066         abbreviations in the modules files.
41067
41068         Change copyright notice from GPLv2+ to GPLv3+.
41069         * README: Change copyright notice.
41070         * MODULES.html.sh: Likewise.
41071         * build-aux/bootstrap.conf: Likewise.
41072         * build-aux/config.libpath: Likewise.
41073         * build-aux/csharpcomp.sh.in: Likewise.
41074         * build-aux/csharpexec.sh.in: Likewise.
41075         * build-aux/install-reloc: Likewise.
41076         * build-aux/javacomp.sh.in: Likewise.
41077         * build-aux/javaexec.sh.in: Likewise.
41078         * build-aux/ldd.sh.in: Likewise.
41079         * build-aux/reloc-ldflags: Likewise.
41080         * build-aux/relocatable.sh.in: Likewise.
41081         * build-aux/x-to-1.in: Likewise.
41082         * check-module: Likewise.
41083         * config/srclistvars.sh: Likewise.
41084         * gnulib-tool: Likewise.
41085         * lib/acl-internal.h: Likewise.
41086         * lib/acl.c: Likewise.
41087         * lib/acl.h: Likewise.
41088         * lib/acl_entries.c: Likewise.
41089         * lib/areadlink-with-size.c: Likewise.
41090         * lib/areadlink.c: Likewise.
41091         * lib/areadlink.h: Likewise.
41092         * lib/argmatch.c: Likewise.
41093         * lib/argmatch.h: Likewise.
41094         * lib/argp-ba.c: Likewise.
41095         * lib/argp-eexst.c: Likewise.
41096         * lib/argp-fmtstream.c: Likewise.
41097         * lib/argp-fmtstream.h: Likewise.
41098         * lib/argp-fs-xinl.c: Likewise.
41099         * lib/argp-help.c: Likewise.
41100         * lib/argp-namefrob.h: Likewise.
41101         * lib/argp-parse.c: Likewise.
41102         * lib/argp-pin.c: Likewise.
41103         * lib/argp-pv.c: Likewise.
41104         * lib/argp-pvh.c: Likewise.
41105         * lib/argp-xinl.c: Likewise.
41106         * lib/argp.h: Likewise.
41107         * lib/at-func.c: Likewise.
41108         * lib/atanl.c: Likewise.
41109         * lib/backupfile.c: Likewise.
41110         * lib/backupfile.h: Likewise.
41111         * lib/basename.c: Likewise.
41112         * lib/binary-io.h: Likewise.
41113         * lib/byteswap.in.h: Likewise.
41114         * lib/c-stack.c: Likewise.
41115         * lib/c-stack.h: Likewise.
41116         * lib/c-strcasestr.c: Likewise.
41117         * lib/c-strcasestr.h: Likewise.
41118         * lib/c-strstr.c: Likewise.
41119         * lib/c-strstr.h: Likewise.
41120         * lib/c-strtod.c: Likewise.
41121         * lib/calloc.c: Likewise.
41122         * lib/canon-host.c: Likewise.
41123         * lib/canon-host.h: Likewise.
41124         * lib/canonicalize-lgpl.c: Likewise.
41125         * lib/canonicalize.c: Likewise.
41126         * lib/canonicalize.h: Likewise.
41127         * lib/ceil.c: Likewise.
41128         * lib/ceilf.c: Likewise.
41129         * lib/ceill.c: Likewise.
41130         * lib/chdir-long.c: Likewise.
41131         * lib/chdir-long.h: Likewise.
41132         * lib/chdir-safer.c: Likewise.
41133         * lib/chdir-safer.h: Likewise.
41134         * lib/chown.c: Likewise.
41135         * lib/classpath.c: Likewise.
41136         * lib/classpath.h: Likewise.
41137         * lib/clean-temp.c: Likewise.
41138         * lib/clean-temp.h: Likewise.
41139         * lib/cloexec.c: Likewise.
41140         * lib/close-stream.c: Likewise.
41141         * lib/closein.c: Likewise.
41142         * lib/closein.h: Likewise.
41143         * lib/closeout.c: Likewise.
41144         * lib/closeout.h: Likewise.
41145         * lib/concat-filename.c: Likewise.
41146         * lib/copy-file.c: Likewise.
41147         * lib/copy-file.h: Likewise.
41148         * lib/count-one-bits.h: Likewise.
41149         * lib/crc.c: Likewise.
41150         * lib/crc.h: Likewise.
41151         * lib/creat-safer.c: Likewise.
41152         * lib/csharpcomp.c: Likewise.
41153         * lib/csharpcomp.h: Likewise.
41154         * lib/csharpexec.c: Likewise.
41155         * lib/csharpexec.h: Likewise.
41156         * lib/cycle-check.c: Likewise.
41157         * lib/cycle-check.h: Likewise.
41158         * lib/diacrit.c: Likewise.
41159         * lib/diacrit.h: Likewise.
41160         * lib/diffseq.h: Likewise.
41161         * lib/dirchownmod.c: Likewise.
41162         * lib/dirent.in.h: Likewise.
41163         * lib/dirfd.c: Likewise.
41164         * lib/dirfd.h: Likewise.
41165         * lib/dirname.c: Likewise.
41166         * lib/dirname.h: Likewise.
41167         * lib/dummy.c: Likewise.
41168         * lib/dup-safer.c: Likewise.
41169         * lib/dup2.c: Likewise.
41170         * lib/eealloc.h: Likewise.
41171         * lib/error.c: Likewise.
41172         * lib/error.h: Likewise.
41173         * lib/euidaccess.c: Likewise.
41174         * lib/exclude.c: Likewise.
41175         * lib/exclude.h: Likewise.
41176         * lib/execute.c: Likewise.
41177         * lib/execute.h: Likewise.
41178         * lib/exitfail.c: Likewise.
41179         * lib/exitfail.h: Likewise.
41180         * lib/expl.c: Likewise.
41181         * lib/fatal-signal.c: Likewise.
41182         * lib/fatal-signal.h: Likewise.
41183         * lib/fbufmode.c: Likewise.
41184         * lib/fbufmode.h: Likewise.
41185         * lib/fchdir.c: Likewise.
41186         * lib/fchmodat.c: Likewise.
41187         * lib/fchownat.c: Likewise.
41188         * lib/fcntl--.h: Likewise.
41189         * lib/fcntl-safer.h: Likewise.
41190         * lib/fcntl.in.h: Likewise.
41191         * lib/fd-safer.c: Likewise.
41192         * lib/fflush.c: Likewise.
41193         * lib/file-has-acl.c: Likewise.
41194         * lib/file-set.c: Likewise.
41195         * lib/file-type.c: Likewise.
41196         * lib/file-type.h: Likewise.
41197         * lib/fileblocks.c: Likewise.
41198         * lib/filemode.c: Likewise.
41199         * lib/filemode.h: Likewise.
41200         * lib/filename.h: Likewise.
41201         * lib/filenamecat.c: Likewise.
41202         * lib/filenamecat.h: Likewise.
41203         * lib/findprog.c: Likewise.
41204         * lib/findprog.h: Likewise.
41205         * lib/float.in.h: Likewise.
41206         * lib/floor.c: Likewise.
41207         * lib/floorf.c: Likewise.
41208         * lib/floorl.c: Likewise.
41209         * lib/fopen-safer.c: Likewise.
41210         * lib/fopen.c: Likewise.
41211         * lib/fpending.c: Likewise.
41212         * lib/fpending.h: Likewise.
41213         * lib/fprintf.c: Likewise.
41214         * lib/fprintftime.h: Likewise.
41215         * lib/fpucw.h: Likewise.
41216         * lib/fpurge.c: Likewise.
41217         * lib/fpurge.h: Likewise.
41218         * lib/freadable.c: Likewise.
41219         * lib/freadable.h: Likewise.
41220         * lib/freadahead.c: Likewise.
41221         * lib/freadahead.h: Likewise.
41222         * lib/freading.c: Likewise.
41223         * lib/freading.h: Likewise.
41224         * lib/free.c: Likewise.
41225         * lib/freopen.c: Likewise.
41226         * lib/frexp.c: Likewise.
41227         * lib/frexpl.c: Likewise.
41228         * lib/fseek.c: Likewise.
41229         * lib/fseterr.c: Likewise.
41230         * lib/fseterr.h: Likewise.
41231         * lib/fstatat.c: Likewise.
41232         * lib/fstrcmp.c: Likewise.
41233         * lib/fstrcmp.h: Likewise.
41234         * lib/fsusage.c: Likewise.
41235         * lib/fsusage.h: Likewise.
41236         * lib/ftell.c: Likewise.
41237         * lib/ftello.c: Likewise.
41238         * lib/fts-cycle.c: Likewise.
41239         * lib/fts.c: Likewise.
41240         * lib/fts_.h: Likewise.
41241         * lib/full-read.c: Likewise.
41242         * lib/full-read.h: Likewise.
41243         * lib/full-write.c: Likewise.
41244         * lib/full-write.h: Likewise.
41245         * lib/fwritable.c: Likewise.
41246         * lib/fwritable.h: Likewise.
41247         * lib/fwriteerror.c: Likewise.
41248         * lib/fwriteerror.h: Likewise.
41249         * lib/fwriting.c: Likewise.
41250         * lib/fwriting.h: Likewise.
41251         * lib/gcd.c: Likewise.
41252         * lib/gcd.h: Likewise.
41253         * lib/getcwd.c: Likewise.
41254         * lib/getdate.h: Likewise.
41255         * lib/getdate.y: Likewise.
41256         * lib/getdomainname.c: Likewise.
41257         * lib/getdomainname.h: Likewise.
41258         * lib/getgroups.c: Likewise.
41259         * lib/gethostname.c: Likewise.
41260         * lib/gethrxtime.c: Likewise.
41261         * lib/gethrxtime.h: Likewise.
41262         * lib/getloadavg.c: Likewise.
41263         * lib/getndelim2.c: Likewise.
41264         * lib/getndelim2.h: Likewise.
41265         * lib/getnline.c: Likewise.
41266         * lib/getnline.h: Likewise.
41267         * lib/getopt.c: Likewise.
41268         * lib/getopt.in.h: Likewise.
41269         * lib/getopt1.c: Likewise.
41270         * lib/getopt_int.h: Likewise.
41271         * lib/getpagesize.h: Likewise.
41272         * lib/getsubopt.c: Likewise.
41273         * lib/gettime.c: Likewise.
41274         * lib/getugroups.c: Likewise.
41275         * lib/getugroups.h: Likewise.
41276         * lib/getusershell.c: Likewise.
41277         * lib/gl_anyavltree_list1.h: Likewise.
41278         * lib/gl_anyavltree_list2.h: Likewise.
41279         * lib/gl_anyhash_list1.h: Likewise.
41280         * lib/gl_anyhash_list2.h: Likewise.
41281         * lib/gl_anylinked_list1.h: Likewise.
41282         * lib/gl_anylinked_list2.h: Likewise.
41283         * lib/gl_anyrbtree_list1.h: Likewise.
41284         * lib/gl_anyrbtree_list2.h: Likewise.
41285         * lib/gl_anytree_list1.h: Likewise.
41286         * lib/gl_anytree_list2.h: Likewise.
41287         * lib/gl_anytree_oset.h: Likewise.
41288         * lib/gl_anytreehash_list1.h: Likewise.
41289         * lib/gl_anytreehash_list2.h: Likewise.
41290         * lib/gl_array_list.c: Likewise.
41291         * lib/gl_array_list.h: Likewise.
41292         * lib/gl_array_oset.c: Likewise.
41293         * lib/gl_array_oset.h: Likewise.
41294         * lib/gl_avltree_list.c: Likewise.
41295         * lib/gl_avltree_list.h: Likewise.
41296         * lib/gl_avltree_oset.c: Likewise.
41297         * lib/gl_avltree_oset.h: Likewise.
41298         * lib/gl_avltreehash_list.c: Likewise.
41299         * lib/gl_avltreehash_list.h: Likewise.
41300         * lib/gl_carray_list.c: Likewise.
41301         * lib/gl_carray_list.h: Likewise.
41302         * lib/gl_linked_list.c: Likewise.
41303         * lib/gl_linked_list.h: Likewise.
41304         * lib/gl_linkedhash_list.c: Likewise.
41305         * lib/gl_linkedhash_list.h: Likewise.
41306         * lib/gl_list.c: Likewise.
41307         * lib/gl_list.h: Likewise.
41308         * lib/gl_oset.c: Likewise.
41309         * lib/gl_oset.h: Likewise.
41310         * lib/gl_rbtree_list.c: Likewise.
41311         * lib/gl_rbtree_list.h: Likewise.
41312         * lib/gl_rbtree_oset.c: Likewise.
41313         * lib/gl_rbtree_oset.h: Likewise.
41314         * lib/gl_rbtreehash_list.c: Likewise.
41315         * lib/gl_rbtreehash_list.h: Likewise.
41316         * lib/gl_sublist.c: Likewise.
41317         * lib/gl_sublist.h: Likewise.
41318         * lib/group-member.c: Likewise.
41319         * lib/group-member.h: Likewise.
41320         * lib/hard-locale.c: Likewise.
41321         * lib/hard-locale.h: Likewise.
41322         * lib/hash-pjw.c: Likewise.
41323         * lib/hash-pjw.h: Likewise.
41324         * lib/hash-triple.c: Likewise.
41325         * lib/hash.c: Likewise.
41326         * lib/hash.h: Likewise.
41327         * lib/human.c: Likewise.
41328         * lib/human.h: Likewise.
41329         * lib/i-ring.c: Likewise.
41330         * lib/i-ring.h: Likewise.
41331         * lib/idcache.c: Likewise.
41332         * lib/imaxabs.c: Likewise.
41333         * lib/imaxdiv.c: Likewise.
41334         * lib/inet_pton.c: Likewise.
41335         * lib/inet_pton.h: Likewise.
41336         * lib/intprops.h: Likewise.
41337         * lib/inttostr.c: Likewise.
41338         * lib/inttostr.h: Likewise.
41339         * lib/inttypes.in.h: Likewise.
41340         * lib/isapipe.c: Likewise.
41341         * lib/isdir.c: Likewise.
41342         * lib/isnan.c: Likewise.
41343         * lib/isnan.h: Likewise.
41344         * lib/isnanf.c: Likewise.
41345         * lib/isnanf.h: Likewise.
41346         * lib/isnanl-nolibm.h: Likewise.
41347         * lib/isnanl.c: Likewise.
41348         * lib/isnanl.h: Likewise.
41349         * lib/javacomp.c: Likewise.
41350         * lib/javacomp.h: Likewise.
41351         * lib/javaexec.c: Likewise.
41352         * lib/javaexec.h: Likewise.
41353         * lib/javaversion.c: Likewise.
41354         * lib/javaversion.h: Likewise.
41355         * lib/javaversion.java: Likewise.
41356         * lib/lbrkprop.h: Likewise.
41357         * lib/lchmod.h: Likewise.
41358         * lib/lchown.c: Likewise.
41359         * lib/ldexpl.c: Likewise.
41360         * lib/linebreak.c: Likewise.
41361         * lib/linebreak.h: Likewise.
41362         * lib/linebuffer.c: Likewise.
41363         * lib/linebuffer.h: Likewise.
41364         * lib/locale.in.h: Likewise.
41365         * lib/logl.c: Likewise.
41366         * lib/long-options.c: Likewise.
41367         * lib/long-options.h: Likewise.
41368         * lib/lstat.c: Likewise.
41369         * lib/lstat.h: Likewise.
41370         * lib/math.in.h: Likewise.
41371         * lib/mbchar.c: Likewise.
41372         * lib/mbchar.h: Likewise.
41373         * lib/mbfile.h: Likewise.
41374         * lib/mbiter.h: Likewise.
41375         * lib/mbscasecmp.c: Likewise.
41376         * lib/mbscasestr.c: Likewise.
41377         * lib/mbschr.c: Likewise.
41378         * lib/mbscspn.c: Likewise.
41379         * lib/mbslen.c: Likewise.
41380         * lib/mbsncasecmp.c: Likewise.
41381         * lib/mbsnlen.c: Likewise.
41382         * lib/mbspbrk.c: Likewise.
41383         * lib/mbspcasecmp.c: Likewise.
41384         * lib/mbsrchr.c: Likewise.
41385         * lib/mbssep.c: Likewise.
41386         * lib/mbsspn.c: Likewise.
41387         * lib/mbsstr.c: Likewise.
41388         * lib/mbstok_r.c: Likewise.
41389         * lib/mbswidth.c: Likewise.
41390         * lib/mbswidth.h: Likewise.
41391         * lib/mbuiter.h: Likewise.
41392         * lib/memcasecmp.c: Likewise.
41393         * lib/memcasecmp.h: Likewise.
41394         * lib/memchr.c: Likewise.
41395         * lib/memcmp.c: Likewise.
41396         * lib/memcoll.c: Likewise.
41397         * lib/memcoll.h: Likewise.
41398         * lib/memcpy.c: Likewise.
41399         * lib/memrchr.c: Likewise.
41400         * lib/mkancesdirs.c: Likewise.
41401         * lib/mkdir-p.c: Likewise.
41402         * lib/mkdir-p.h: Likewise.
41403         * lib/mkdir.c: Likewise.
41404         * lib/mkdirat.c: Likewise.
41405         * lib/mkdtemp.c: Likewise.
41406         * lib/mkstemp-safer.c: Likewise.
41407         * lib/mkstemp.c: Likewise.
41408         * lib/modechange.c: Likewise.
41409         * lib/modechange.h: Likewise.
41410         * lib/mountlist.c: Likewise.
41411         * lib/mountlist.h: Likewise.
41412         * lib/mpsort.c: Likewise.
41413         * lib/nanosleep.c: Likewise.
41414         * lib/obstack.c: Likewise.
41415         * lib/obstack.h: Likewise.
41416         * lib/open-safer.c: Likewise.
41417         * lib/open.c: Likewise.
41418         * lib/openat-die.c: Likewise.
41419         * lib/openat-priv.h: Likewise.
41420         * lib/openat-proc.c: Likewise.
41421         * lib/openat.c: Likewise.
41422         * lib/openat.h: Likewise.
41423         * lib/pagealign_alloc.c: Likewise.
41424         * lib/pagealign_alloc.h: Likewise.
41425         * lib/physmem.c: Likewise.
41426         * lib/physmem.h: Likewise.
41427         * lib/pipe-safer.c: Likewise.
41428         * lib/pipe.c: Likewise.
41429         * lib/pipe.h: Likewise.
41430         * lib/posixtm.c: Likewise.
41431         * lib/posixtm.h: Likewise.
41432         * lib/posixver.c: Likewise.
41433         * lib/printf-frexp.c: Likewise.
41434         * lib/printf-frexp.h: Likewise.
41435         * lib/printf-frexpl.c: Likewise.
41436         * lib/printf-frexpl.h: Likewise.
41437         * lib/printf.c: Likewise.
41438         * lib/progname.c: Likewise.
41439         * lib/progname.h: Likewise.
41440         * lib/progreloc.c: Likewise.
41441         * lib/putenv.c: Likewise.
41442         * lib/quote.c: Likewise.
41443         * lib/quote.h: Likewise.
41444         * lib/quotearg.c: Likewise.
41445         * lib/quotearg.h: Likewise.
41446         * lib/raise.c: Likewise.
41447         * lib/readline.c: Likewise.
41448         * lib/readline.h: Likewise.
41449         * lib/readlink.c: Likewise.
41450         * lib/readtokens.c: Likewise.
41451         * lib/readtokens.h: Likewise.
41452         * lib/readtokens0.c: Likewise.
41453         * lib/readtokens0.h: Likewise.
41454         * lib/readutmp.c: Likewise.
41455         * lib/readutmp.h: Likewise.
41456         * lib/realloc.c: Likewise.
41457         * lib/relocwrapper.c: Likewise.
41458         * lib/rename-dest-slash.c: Likewise.
41459         * lib/rename.c: Likewise.
41460         * lib/rmdir.c: Likewise.
41461         * lib/rpmatch.c: Likewise.
41462         * lib/safe-read.c: Likewise.
41463         * lib/safe-read.h: Likewise.
41464         * lib/safe-write.c: Likewise.
41465         * lib/safe-write.h: Likewise.
41466         * lib/same-inode.h: Likewise.
41467         * lib/same.c: Likewise.
41468         * lib/same.h: Likewise.
41469         * lib/save-cwd.c: Likewise.
41470         * lib/save-cwd.h: Likewise.
41471         * lib/savedir.c: Likewise.
41472         * lib/savedir.h: Likewise.
41473         * lib/savewd.c: Likewise.
41474         * lib/savewd.h: Likewise.
41475         * lib/search.in.h: Likewise.
41476         * lib/setenv.c: Likewise.
41477         * lib/setenv.h: Likewise.
41478         * lib/settime.c: Likewise.
41479         * lib/sh-quote.c: Likewise.
41480         * lib/sh-quote.h: Likewise.
41481         * lib/sig2str.c: Likewise.
41482         * lib/sig2str.h: Likewise.
41483         * lib/signal.in.h: Likewise.
41484         * lib/signbitd.c: Likewise.
41485         * lib/signbitf.c: Likewise.
41486         * lib/signbitl.c: Likewise.
41487         * lib/sigprocmask.c: Likewise.
41488         * lib/sincosl.c: Likewise.
41489         * lib/sleep.c: Likewise.
41490         * lib/sprintf.c: Likewise.
41491         * lib/sqrtl.c: Likewise.
41492         * lib/stat-time.h: Likewise.
41493         * lib/stdio--.h: Likewise.
41494         * lib/stdio-safer.h: Likewise.
41495         * lib/stdlib--.h: Likewise.
41496         * lib/stdlib-safer.h: Likewise.
41497         * lib/stdlib.in.h: Likewise.
41498         * lib/stpcpy.c: Likewise.
41499         * lib/stpncpy.c: Likewise.
41500         * lib/strchrnul.c: Likewise.
41501         * lib/strcspn.c: Likewise.
41502         * lib/strerror.c: Likewise.
41503         * lib/strftime.c: Likewise.
41504         * lib/strftime.h: Likewise.
41505         * lib/striconveh.c: Likewise.
41506         * lib/striconveh.h: Likewise.
41507         * lib/striconveha.c: Likewise.
41508         * lib/striconveha.h: Likewise.
41509         * lib/stripslash.c: Likewise.
41510         * lib/strnlen1.c: Likewise.
41511         * lib/strnlen1.h: Likewise.
41512         * lib/strtod.c: Likewise.
41513         * lib/strtoimax.c: Likewise.
41514         * lib/strtok_r.c: Likewise.
41515         * lib/strtol.c: Likewise.
41516         * lib/strtoll.c: Likewise.
41517         * lib/strtoul.c: Likewise.
41518         * lib/strtoull.c: Likewise.
41519         * lib/sysexits.in.h: Likewise.
41520         * lib/tempname.c: Likewise.
41521         * lib/tempname.h: Likewise.
41522         * lib/timespec.h: Likewise.
41523         * lib/tls.c: Likewise.
41524         * lib/tls.h: Likewise.
41525         * lib/tmpdir.c: Likewise.
41526         * lib/tmpdir.h: Likewise.
41527         * lib/tmpfile-safer.c: Likewise.
41528         * lib/tmpfile.c: Likewise.
41529         * lib/trigl.c: Likewise.
41530         * lib/trigl.h: Likewise.
41531         * lib/trim.c: Likewise.
41532         * lib/trim.h: Likewise.
41533         * lib/trunc.c: Likewise.
41534         * lib/truncf.c: Likewise.
41535         * lib/truncl.c: Likewise.
41536         * lib/tsearch.c: Likewise.
41537         * lib/unicodeio.c: Likewise.
41538         * lib/unicodeio.h: Likewise.
41539         * lib/unistd--.h: Likewise.
41540         * lib/unistd-safer.h: Likewise.
41541         * lib/unistdio/ulc-fprintf.c: Likewise.
41542         * lib/unistdio/ulc-vfprintf.c: Likewise.
41543         * lib/unlinkdir.c: Likewise.
41544         * lib/unlinkdir.h: Likewise.
41545         * lib/unlocked-io.h: Likewise.
41546         * lib/unsetenv.c: Likewise.
41547         * lib/userspec.c: Likewise.
41548         * lib/utime.c: Likewise.
41549         * lib/utimecmp.c: Likewise.
41550         * lib/utimecmp.h: Likewise.
41551         * lib/utimens.c: Likewise.
41552         * lib/verify.h: Likewise.
41553         * lib/verror.c: Likewise.
41554         * lib/verror.h: Likewise.
41555         * lib/version-etc-fsf.c: Likewise.
41556         * lib/version-etc.c: Likewise.
41557         * lib/version-etc.h: Likewise.
41558         * lib/vfprintf.c: Likewise.
41559         * lib/vprintf.c: Likewise.
41560         * lib/vsprintf.c: Likewise.
41561         * lib/w32spawn.h: Likewise.
41562         * lib/wait-process.c: Likewise.
41563         * lib/wait-process.h: Likewise.
41564         * lib/wcwidth.c: Likewise.
41565         * lib/write-any-file.c: Likewise.
41566         * lib/xalloc-die.c: Likewise.
41567         * lib/xalloc.h: Likewise.
41568         * lib/xasprintf.c: Likewise.
41569         * lib/xgetcwd.c: Likewise.
41570         * lib/xgetcwd.h: Likewise.
41571         * lib/xgetdomainname.c: Likewise.
41572         * lib/xgetdomainname.h: Likewise.
41573         * lib/xgethostname.c: Likewise.
41574         * lib/xmalloc.c: Likewise.
41575         * lib/xmalloca.c: Likewise.
41576         * lib/xmalloca.h: Likewise.
41577         * lib/xmemcoll.c: Likewise.
41578         * lib/xnanosleep.c: Likewise.
41579         * lib/xreadlink.c: Likewise.
41580         * lib/xreadlink.h: Likewise.
41581         * lib/xsetenv.c: Likewise.
41582         * lib/xsetenv.h: Likewise.
41583         * lib/xstriconv.c: Likewise.
41584         * lib/xstriconv.h: Likewise.
41585         * lib/xstrndup.c: Likewise.
41586         * lib/xstrndup.h: Likewise.
41587         * lib/xstrtod.c: Likewise.
41588         * lib/xstrtod.h: Likewise.
41589         * lib/xstrtol-error.c: Likewise.
41590         * lib/xstrtol.c: Likewise.
41591         * lib/xstrtol.h: Likewise.
41592         * lib/xtime.h: Likewise.
41593         * lib/xvasprintf.c: Likewise.
41594         * lib/xvasprintf.h: Likewise.
41595         * lib/yesno.c: Likewise.
41596         * lib/yesno.h: Likewise.
41597         * posix-modules: Likewise.
41598         * tests/test-alloca-opt.c: Likewise.
41599         * tests/test-arcfour.c: Likewise.
41600         * tests/test-arctwo.c: Likewise.
41601         * tests/test-argmatch.c: Likewise.
41602         * tests/test-argp-2.sh: Likewise.
41603         * tests/test-argp.c: Likewise.
41604         * tests/test-arpa_inet.c: Likewise.
41605         * tests/test-array_list.c: Likewise.
41606         * tests/test-array_oset.c: Likewise.
41607         * tests/test-atexit.c: Likewise.
41608         * tests/test-avltree_list.c: Likewise.
41609         * tests/test-avltree_oset.c: Likewise.
41610         * tests/test-avltreehash_list.c: Likewise.
41611         * tests/test-base64.c: Likewise.
41612         * tests/test-binary-io.c: Likewise.
41613         * tests/test-byteswap.c: Likewise.
41614         * tests/test-c-ctype.c: Likewise.
41615         * tests/test-c-strcasecmp.c: Likewise.
41616         * tests/test-c-strcasestr.c: Likewise.
41617         * tests/test-c-strncasecmp.c: Likewise.
41618         * tests/test-c-strstr.c: Likewise.
41619         * tests/test-canonicalize-lgpl.c: Likewise.
41620         * tests/test-canonicalize.c: Likewise.
41621         * tests/test-carray_list.c: Likewise.
41622         * tests/test-ceilf.c: Likewise.
41623         * tests/test-ceill.c: Likewise.
41624         * tests/test-count-one-bits.c: Likewise.
41625         * tests/test-crc.c: Likewise.
41626         * tests/test-dirname.c: Likewise.
41627         * tests/test-fbufmode.c: Likewise.
41628         * tests/test-fcntl.c: Likewise.
41629         * tests/test-fflush.c: Likewise.
41630         * tests/test-floorf.c: Likewise.
41631         * tests/test-floorl.c: Likewise.
41632         * tests/test-fopen.c: Likewise.
41633         * tests/test-fprintf-posix.c: Likewise.
41634         * tests/test-fprintf-posix.h: Likewise.
41635         * tests/test-fpurge.c: Likewise.
41636         * tests/test-freadable.c: Likewise.
41637         * tests/test-freadahead.c: Likewise.
41638         * tests/test-freading.c: Likewise.
41639         * tests/test-freopen.c: Likewise.
41640         * tests/test-frexp.c: Likewise.
41641         * tests/test-frexpl.c: Likewise.
41642         * tests/test-fseek.c: Likewise.
41643         * tests/test-fseeko.c: Likewise.
41644         * tests/test-fseterr.c: Likewise.
41645         * tests/test-fstrcmp.c: Likewise.
41646         * tests/test-ftell.c: Likewise.
41647         * tests/test-ftello.c: Likewise.
41648         * tests/test-fwritable.c: Likewise.
41649         * tests/test-fwriting.c: Likewise.
41650         * tests/test-getaddrinfo.c: Likewise.
41651         * tests/test-getpass.c: Likewise.
41652         * tests/test-gettimeofday.c: Likewise.
41653         * tests/test-hmac-md5.c: Likewise.
41654         * tests/test-hmac-sha1.c: Likewise.
41655         * tests/test-iconv.c: Likewise.
41656         * tests/test-iconvme.c: Likewise.
41657         * tests/test-inttypes.c: Likewise.
41658         * tests/test-isnan.c: Likewise.
41659         * tests/test-isnanf.c: Likewise.
41660         * tests/test-isnanl-nolibm.c: Likewise.
41661         * tests/test-isnanl.c: Likewise.
41662         * tests/test-isnanl.h: Likewise.
41663         * tests/test-ldexpl.c: Likewise.
41664         * tests/test-linked_list.c: Likewise.
41665         * tests/test-linkedhash_list.c: Likewise.
41666         * tests/test-locale.c: Likewise.
41667         * tests/test-localename.c: Likewise.
41668         * tests/test-lock.c: Likewise.
41669         * tests/test-lseek.c: Likewise.
41670         * tests/test-malloca.c: Likewise.
41671         * tests/test-math.c: Likewise.
41672         * tests/test-mbscasecmp.c: Likewise.
41673         * tests/test-mbscasestr1.c: Likewise.
41674         * tests/test-mbscasestr2.c: Likewise.
41675         * tests/test-mbscasestr3.c: Likewise.
41676         * tests/test-mbscasestr4.c: Likewise.
41677         * tests/test-mbschr.c: Likewise.
41678         * tests/test-mbscspn.c: Likewise.
41679         * tests/test-mbsncasecmp.c: Likewise.
41680         * tests/test-mbspbrk.c: Likewise.
41681         * tests/test-mbspcasecmp.c: Likewise.
41682         * tests/test-mbsrchr.c: Likewise.
41683         * tests/test-mbsspn.c: Likewise.
41684         * tests/test-mbsstr1.c: Likewise.
41685         * tests/test-mbsstr2.c: Likewise.
41686         * tests/test-mbsstr3.c: Likewise.
41687         * tests/test-md5.c: Likewise.
41688         * tests/test-memmem.c: Likewise.
41689         * tests/test-netinet_in.c: Likewise.
41690         * tests/test-open.c: Likewise.
41691         * tests/test-printf-frexp.c: Likewise.
41692         * tests/test-printf-frexpl.c: Likewise.
41693         * tests/test-printf-posix.c: Likewise.
41694         * tests/test-printf-posix.h: Likewise.
41695         * tests/test-rbtree_list.c: Likewise.
41696         * tests/test-rbtree_oset.c: Likewise.
41697         * tests/test-rbtreehash_list.c: Likewise.
41698         * tests/test-read-file.c: Likewise.
41699         * tests/test-rijndael.c: Likewise.
41700         * tests/test-search.c: Likewise.
41701         * tests/test-signbit.c: Likewise.
41702         * tests/test-sleep.c: Likewise.
41703         * tests/test-snprintf-posix.c: Likewise.
41704         * tests/test-snprintf-posix.h: Likewise.
41705         * tests/test-snprintf.c: Likewise.
41706         * tests/test-sprintf-posix.c: Likewise.
41707         * tests/test-sprintf-posix.h: Likewise.
41708         * tests/test-stat-time.c: Likewise.
41709         * tests/test-stdbool.c: Likewise.
41710         * tests/test-stdint.c: Likewise.
41711         * tests/test-stdio.c: Likewise.
41712         * tests/test-stdlib.c: Likewise.
41713         * tests/test-stpncpy.c: Likewise.
41714         * tests/test-strcasestr.c: Likewise.
41715         * tests/test-striconv.c: Likewise.
41716         * tests/test-striconveh.c: Likewise.
41717         * tests/test-striconveha.c: Likewise.
41718         * tests/test-string.c: Likewise.
41719         * tests/test-sys_select.c: Likewise.
41720         * tests/test-sys_socket.c: Likewise.
41721         * tests/test-sys_stat.c: Likewise.
41722         * tests/test-sys_time.c: Likewise.
41723         * tests/test-sysexits.c: Likewise.
41724         * tests/test-time.c: Likewise.
41725         * tests/test-tls.c: Likewise.
41726         * tests/test-trunc.c: Likewise.
41727         * tests/test-truncf.c: Likewise.
41728         * tests/test-truncl.c: Likewise.
41729         * tests/test-unistd.c: Likewise.
41730         * tests/test-vasnprintf-posix.c: Likewise.
41731         * tests/test-vasnprintf-posix2.c: Likewise.
41732         * tests/test-vasnprintf.c: Likewise.
41733         * tests/test-vasprintf-posix.c: Likewise.
41734         * tests/test-vasprintf.c: Likewise.
41735         * tests/test-verify.c: Likewise.
41736         * tests/test-vfprintf-posix.c: Likewise.
41737         * tests/test-vprintf-posix.c: Likewise.
41738         * tests/test-vsnprintf-posix.c: Likewise.
41739         * tests/test-vsnprintf.c: Likewise.
41740         * tests/test-vsprintf-posix.c: Likewise.
41741         * tests/test-wchar.c: Likewise.
41742         * tests/test-wctype.c: Likewise.
41743         * tests/test-wcwidth.c: Likewise.
41744         * tests/test-xstrtol.c: Likewise.
41745         * tests/test-xvasprintf.c: Likewise.
41746         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
41747         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
41748         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
41749         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
41750         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
41751         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
41752         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
41753         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
41754         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
41755         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
41756         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
41757         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
41758         * tests/uniname/test-uninames.c: Likewise.
41759         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
41760         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
41761         * tests/unistdio/test-u16-printf1.h: Likewise.
41762         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
41763         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
41764         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
41765         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
41766         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
41767         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
41768         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
41769         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
41770         * tests/unistdio/test-u32-printf1.h: Likewise.
41771         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
41772         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
41773         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
41774         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
41775         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
41776         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
41777         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
41778         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
41779         * tests/unistdio/test-u8-printf1.h: Likewise.
41780         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
41781         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
41782         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
41783         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
41784         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
41785         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
41786         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
41787         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
41788         * tests/unistdio/test-ulc-printf1.h: Likewise.
41789         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
41790         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
41791         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
41792         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
41793         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
41794         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
41795         * tests/uniwidth/test-u16-strwidth.c: Likewise.
41796         * tests/uniwidth/test-u16-width.c: Likewise.
41797         * tests/uniwidth/test-u32-strwidth.c: Likewise.
41798         * tests/uniwidth/test-u32-width.c: Likewise.
41799         * tests/uniwidth/test-u8-strwidth.c: Likewise.
41800         * tests/uniwidth/test-u8-width.c: Likewise.
41801         * tests/uniwidth/test-uc_width.c: Likewise.
41802         * config/srclist-update: Likewise.
41803         (fixlicense): Update to GPLv3+.
41804
41805         Change copyright notice from LGPLv2.1+ to LGPLv3+.
41806         * tests/test-tsearch.c: Change copyright notice.
41807
41808         Change copyright notice from LGPLv2.0+ to LGPLv3+.
41809         * lib/c-strcaseeq.h: Change copyright notice.
41810         * lib/streq.h: Likewise.
41811         * lib/uniconv.h: Likewise.
41812         * lib/uniconv/u-conv-from-enc.h: Likewise.
41813         * lib/uniconv/u-conv-to-enc.h: Likewise.
41814         * lib/uniconv/u-strconv-from-enc.h: Likewise.
41815         * lib/uniconv/u-strconv-to-enc.h: Likewise.
41816         * lib/uniconv/u16-conv-from-enc.c: Likewise.
41817         * lib/uniconv/u16-conv-to-enc.c: Likewise.
41818         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
41819         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
41820         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
41821         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
41822         * lib/uniconv/u32-conv-from-enc.c: Likewise.
41823         * lib/uniconv/u32-conv-to-enc.c: Likewise.
41824         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
41825         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
41826         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
41827         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
41828         * lib/uniconv/u8-conv-from-enc.c: Likewise.
41829         * lib/uniconv/u8-conv-to-enc.c: Likewise.
41830         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
41831         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
41832         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
41833         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
41834         * lib/uniname.h: Likewise.
41835         * lib/uniname/uniname.c: Likewise.
41836         * lib/unistdio.h: Likewise.
41837         * lib/unistdio/u-asnprintf.h: Likewise.
41838         * lib/unistdio/u-asprintf.h: Likewise.
41839         * lib/unistdio/u-printf-args.c: Likewise.
41840         * lib/unistdio/u-printf-args.h: Likewise.
41841         * lib/unistdio/u-printf-parse.h: Likewise.
41842         * lib/unistdio/u-snprintf.h: Likewise.
41843         * lib/unistdio/u-sprintf.h: Likewise.
41844         * lib/unistdio/u-vasprintf.h: Likewise.
41845         * lib/unistdio/u-vsnprintf.h: Likewise.
41846         * lib/unistdio/u-vsprintf.h: Likewise.
41847         * lib/unistdio/u16-asnprintf.c: Likewise.
41848         * lib/unistdio/u16-asprintf.c: Likewise.
41849         * lib/unistdio/u16-printf-parse.c: Likewise.
41850         * lib/unistdio/u16-snprintf.c: Likewise.
41851         * lib/unistdio/u16-sprintf.c: Likewise.
41852         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
41853         * lib/unistdio/u16-u16-asprintf.c: Likewise.
41854         * lib/unistdio/u16-u16-snprintf.c: Likewise.
41855         * lib/unistdio/u16-u16-sprintf.c: Likewise.
41856         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
41857         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
41858         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
41859         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
41860         * lib/unistdio/u16-vasnprintf.c: Likewise.
41861         * lib/unistdio/u16-vasprintf.c: Likewise.
41862         * lib/unistdio/u16-vsnprintf.c: Likewise.
41863         * lib/unistdio/u16-vsprintf.c: Likewise.
41864         * lib/unistdio/u32-asnprintf.c: Likewise.
41865         * lib/unistdio/u32-asprintf.c: Likewise.
41866         * lib/unistdio/u32-printf-parse.c: Likewise.
41867         * lib/unistdio/u32-snprintf.c: Likewise.
41868         * lib/unistdio/u32-sprintf.c: Likewise.
41869         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
41870         * lib/unistdio/u32-u32-asprintf.c: Likewise.
41871         * lib/unistdio/u32-u32-snprintf.c: Likewise.
41872         * lib/unistdio/u32-u32-sprintf.c: Likewise.
41873         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
41874         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
41875         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
41876         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
41877         * lib/unistdio/u32-vasnprintf.c: Likewise.
41878         * lib/unistdio/u32-vasprintf.c: Likewise.
41879         * lib/unistdio/u32-vsnprintf.c: Likewise.
41880         * lib/unistdio/u32-vsprintf.c: Likewise.
41881         * lib/unistdio/u8-asnprintf.c: Likewise.
41882         * lib/unistdio/u8-asprintf.c: Likewise.
41883         * lib/unistdio/u8-printf-parse.c: Likewise.
41884         * lib/unistdio/u8-snprintf.c: Likewise.
41885         * lib/unistdio/u8-sprintf.c: Likewise.
41886         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
41887         * lib/unistdio/u8-u8-asprintf.c: Likewise.
41888         * lib/unistdio/u8-u8-snprintf.c: Likewise.
41889         * lib/unistdio/u8-u8-sprintf.c: Likewise.
41890         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
41891         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
41892         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
41893         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
41894         * lib/unistdio/u8-vasnprintf.c: Likewise.
41895         * lib/unistdio/u8-vasprintf.c: Likewise.
41896         * lib/unistdio/u8-vsnprintf.c: Likewise.
41897         * lib/unistdio/u8-vsprintf.c: Likewise.
41898         * lib/unistdio/ulc-asnprintf.c: Likewise.
41899         * lib/unistdio/ulc-asprintf.c: Likewise.
41900         * lib/unistdio/ulc-printf-parse.c: Likewise.
41901         * lib/unistdio/ulc-snprintf.c: Likewise.
41902         * lib/unistdio/ulc-sprintf.c: Likewise.
41903         * lib/unistdio/ulc-vasnprintf.c: Likewise.
41904         * lib/unistdio/ulc-vasprintf.c: Likewise.
41905         * lib/unistdio/ulc-vsnprintf.c: Likewise.
41906         * lib/unistdio/ulc-vsprintf.c: Likewise.
41907         * lib/unistr.h: Likewise.
41908         * lib/unistr/u-cpy-alloc.h: Likewise.
41909         * lib/unistr/u-cpy.h: Likewise.
41910         * lib/unistr/u-endswith.h: Likewise.
41911         * lib/unistr/u-move.h: Likewise.
41912         * lib/unistr/u-set.h: Likewise.
41913         * lib/unistr/u-startswith.h: Likewise.
41914         * lib/unistr/u-stpcpy.h: Likewise.
41915         * lib/unistr/u-stpncpy.h: Likewise.
41916         * lib/unistr/u-strcat.h: Likewise.
41917         * lib/unistr/u-strcpy.h: Likewise.
41918         * lib/unistr/u-strcspn.h: Likewise.
41919         * lib/unistr/u-strdup.h: Likewise.
41920         * lib/unistr/u-strlen.h: Likewise.
41921         * lib/unistr/u-strncat.h: Likewise.
41922         * lib/unistr/u-strncpy.h: Likewise.
41923         * lib/unistr/u-strnlen.h: Likewise.
41924         * lib/unistr/u-strpbrk.h: Likewise.
41925         * lib/unistr/u-strspn.h: Likewise.
41926         * lib/unistr/u-strstr.h: Likewise.
41927         * lib/unistr/u-strtok.h: Likewise.
41928         * lib/unistr/u16-check.c: Likewise.
41929         * lib/unistr/u16-chr.c: Likewise.
41930         * lib/unistr/u16-cmp.c: Likewise.
41931         * lib/unistr/u16-cpy-alloc.c: Likewise.
41932         * lib/unistr/u16-cpy.c: Likewise.
41933         * lib/unistr/u16-endswith.c: Likewise.
41934         * lib/unistr/u16-mblen.c: Likewise.
41935         * lib/unistr/u16-mbsnlen.c: Likewise.
41936         * lib/unistr/u16-mbtouc-aux.c: Likewise.
41937         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
41938         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
41939         * lib/unistr/u16-mbtouc.c: Likewise.
41940         * lib/unistr/u16-mbtoucr.c: Likewise.
41941         * lib/unistr/u16-move.c: Likewise.
41942         * lib/unistr/u16-next.c: Likewise.
41943         * lib/unistr/u16-prev.c: Likewise.
41944         * lib/unistr/u16-set.c: Likewise.
41945         * lib/unistr/u16-startswith.c: Likewise.
41946         * lib/unistr/u16-stpcpy.c: Likewise.
41947         * lib/unistr/u16-stpncpy.c: Likewise.
41948         * lib/unistr/u16-strcat.c: Likewise.
41949         * lib/unistr/u16-strchr.c: Likewise.
41950         * lib/unistr/u16-strcmp.c: Likewise.
41951         * lib/unistr/u16-strcpy.c: Likewise.
41952         * lib/unistr/u16-strcspn.c: Likewise.
41953         * lib/unistr/u16-strdup.c: Likewise.
41954         * lib/unistr/u16-strlen.c: Likewise.
41955         * lib/unistr/u16-strmblen.c: Likewise.
41956         * lib/unistr/u16-strmbtouc.c: Likewise.
41957         * lib/unistr/u16-strncat.c: Likewise.
41958         * lib/unistr/u16-strncmp.c: Likewise.
41959         * lib/unistr/u16-strncpy.c: Likewise.
41960         * lib/unistr/u16-strnlen.c: Likewise.
41961         * lib/unistr/u16-strpbrk.c: Likewise.
41962         * lib/unistr/u16-strrchr.c: Likewise.
41963         * lib/unistr/u16-strspn.c: Likewise.
41964         * lib/unistr/u16-strstr.c: Likewise.
41965         * lib/unistr/u16-strtok.c: Likewise.
41966         * lib/unistr/u16-to-u32.c: Likewise.
41967         * lib/unistr/u16-to-u8.c: Likewise.
41968         * lib/unistr/u16-uctomb-aux.c: Likewise.
41969         * lib/unistr/u16-uctomb.c: Likewise.
41970         * lib/unistr/u32-check.c: Likewise.
41971         * lib/unistr/u32-chr.c: Likewise.
41972         * lib/unistr/u32-cmp.c: Likewise.
41973         * lib/unistr/u32-cpy-alloc.c: Likewise.
41974         * lib/unistr/u32-cpy.c: Likewise.
41975         * lib/unistr/u32-endswith.c: Likewise.
41976         * lib/unistr/u32-mblen.c: Likewise.
41977         * lib/unistr/u32-mbsnlen.c: Likewise.
41978         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
41979         * lib/unistr/u32-mbtouc.c: Likewise.
41980         * lib/unistr/u32-mbtoucr.c: Likewise.
41981         * lib/unistr/u32-move.c: Likewise.
41982         * lib/unistr/u32-next.c: Likewise.
41983         * lib/unistr/u32-prev.c: Likewise.
41984         * lib/unistr/u32-set.c: Likewise.
41985         * lib/unistr/u32-startswith.c: Likewise.
41986         * lib/unistr/u32-stpcpy.c: Likewise.
41987         * lib/unistr/u32-stpncpy.c: Likewise.
41988         * lib/unistr/u32-strcat.c: Likewise.
41989         * lib/unistr/u32-strchr.c: Likewise.
41990         * lib/unistr/u32-strcmp.c: Likewise.
41991         * lib/unistr/u32-strcpy.c: Likewise.
41992         * lib/unistr/u32-strcspn.c: Likewise.
41993         * lib/unistr/u32-strdup.c: Likewise.
41994         * lib/unistr/u32-strlen.c: Likewise.
41995         * lib/unistr/u32-strmblen.c: Likewise.
41996         * lib/unistr/u32-strmbtouc.c: Likewise.
41997         * lib/unistr/u32-strncat.c: Likewise.
41998         * lib/unistr/u32-strncmp.c: Likewise.
41999         * lib/unistr/u32-strncpy.c: Likewise.
42000         * lib/unistr/u32-strnlen.c: Likewise.
42001         * lib/unistr/u32-strpbrk.c: Likewise.
42002         * lib/unistr/u32-strrchr.c: Likewise.
42003         * lib/unistr/u32-strspn.c: Likewise.
42004         * lib/unistr/u32-strstr.c: Likewise.
42005         * lib/unistr/u32-strtok.c: Likewise.
42006         * lib/unistr/u32-to-u16.c: Likewise.
42007         * lib/unistr/u32-to-u8.c: Likewise.
42008         * lib/unistr/u32-uctomb.c: Likewise.
42009         * lib/unistr/u8-check.c: Likewise.
42010         * lib/unistr/u8-chr.c: Likewise.
42011         * lib/unistr/u8-cmp.c: Likewise.
42012         * lib/unistr/u8-cpy-alloc.c: Likewise.
42013         * lib/unistr/u8-cpy.c: Likewise.
42014         * lib/unistr/u8-endswith.c: Likewise.
42015         * lib/unistr/u8-mblen.c: Likewise.
42016         * lib/unistr/u8-mbsnlen.c: Likewise.
42017         * lib/unistr/u8-mbtouc-aux.c: Likewise.
42018         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
42019         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
42020         * lib/unistr/u8-mbtouc.c: Likewise.
42021         * lib/unistr/u8-mbtoucr.c: Likewise.
42022         * lib/unistr/u8-move.c: Likewise.
42023         * lib/unistr/u8-next.c: Likewise.
42024         * lib/unistr/u8-prev.c: Likewise.
42025         * lib/unistr/u8-set.c: Likewise.
42026         * lib/unistr/u8-startswith.c: Likewise.
42027         * lib/unistr/u8-stpcpy.c: Likewise.
42028         * lib/unistr/u8-stpncpy.c: Likewise.
42029         * lib/unistr/u8-strcat.c: Likewise.
42030         * lib/unistr/u8-strchr.c: Likewise.
42031         * lib/unistr/u8-strcmp.c: Likewise.
42032         * lib/unistr/u8-strcpy.c: Likewise.
42033         * lib/unistr/u8-strcspn.c: Likewise.
42034         * lib/unistr/u8-strdup.c: Likewise.
42035         * lib/unistr/u8-strlen.c: Likewise.
42036         * lib/unistr/u8-strmblen.c: Likewise.
42037         * lib/unistr/u8-strmbtouc.c: Likewise.
42038         * lib/unistr/u8-strncat.c: Likewise.
42039         * lib/unistr/u8-strncmp.c: Likewise.
42040         * lib/unistr/u8-strncpy.c: Likewise.
42041         * lib/unistr/u8-strnlen.c: Likewise.
42042         * lib/unistr/u8-strpbrk.c: Likewise.
42043         * lib/unistr/u8-strrchr.c: Likewise.
42044         * lib/unistr/u8-strspn.c: Likewise.
42045         * lib/unistr/u8-strstr.c: Likewise.
42046         * lib/unistr/u8-strtok.c: Likewise.
42047         * lib/unistr/u8-to-u16.c: Likewise.
42048         * lib/unistr/u8-to-u32.c: Likewise.
42049         * lib/unistr/u8-uctomb-aux.c: Likewise.
42050         * lib/unistr/u8-uctomb.c: Likewise.
42051         * lib/unitypes.h: Likewise.
42052         * lib/uniwidth.h: Likewise.
42053         * lib/uniwidth/cjk.h: Likewise.
42054         * lib/uniwidth/u16-strwidth.c: Likewise.
42055         * lib/uniwidth/u16-width.c: Likewise.
42056         * lib/uniwidth/u32-strwidth.c: Likewise.
42057         * lib/uniwidth/u32-width.c: Likewise.
42058         * lib/uniwidth/u8-strwidth.c: Likewise.
42059         * lib/uniwidth/u8-width.c: Likewise.
42060         * lib/uniwidth/width.c: Likewise.
42061
42062 2007-10-07  Bruno Haible  <bruno@clisp.org>
42063
42064         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
42065         The file is still under LGPL (see modules/inttypes).
42066
42067 2007-10-06  Bruno Haible  <bruno@clisp.org>
42068
42069         * modules/trunc (Dependencies): Add 'extensions'.
42070         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
42071         Reported by Ben Pfaff <blp@gnu.org>.
42072
42073 2007-10-06  Bruno Haible  <bruno@clisp.org>
42074
42075         * modules/freopen-tests: New file.
42076         * tests/test-freopen.c: New file.
42077
42078         * modules/fopen-tests: New file.
42079         * tests/test-fopen.c: New file.
42080
42081         * modules/fopen: New file.
42082         * lib/fopen.c: New file.
42083         * m4/fopen.m4: New file.
42084         * modules/freopen: New file.
42085         * lib/freopen.c: New file.
42086         * m4/freopen.m4: New file.
42087         * lib/stdio.in.h (fopen, freopen): New declarations.
42088         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
42089         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
42090         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
42091         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
42092         * doc/functions/fopen.texi: Mention the 'fopen' module.
42093         * doc/functions/freopen.texi: Mention the 'freopen' module.
42094
42095 2007-10-06  Bruno Haible  <bruno@clisp.org>
42096
42097         * modules/open-tests: New file.
42098         * tests/test-open.c: New file.
42099
42100         * modules/open: New file.
42101         * lib/open.c: New file.
42102         * m4/open.m4: New file.
42103         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
42104         lib/open.c does.
42105         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
42106         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
42107         macros.
42108         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
42109         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
42110         REPLACE_OPEN.
42111         * doc/functions/open.texi: Mention the 'open' module.
42112
42113 2007-10-04  Bruno Haible  <bruno@clisp.org>
42114
42115         * modules/ceill-tests: New file.
42116         * tests/test-ceill.c: New file.
42117
42118         * modules/ceill: New file.
42119         * lib/ceill.c: Replace entire file.
42120         * m4/ceill.m4: New file.
42121         * lib/math.in.h (ceill): Replace declaration.
42122         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
42123         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
42124         * doc/functions/ceill.texi: Mention the 'ceill' module.
42125         * modules/mathl (Files): Remove lib/ceill.c.
42126         (Depends-on): Add ceill.
42127
42128 2007-10-04  Bruno Haible  <bruno@clisp.org>
42129
42130         * modules/ceilf-tests: New file.
42131         * tests/test-ceilf.c: New file.
42132
42133         * modules/ceilf: New file.
42134         * lib/ceil.c: New file.
42135         * lib/ceilf.c: New file.
42136         * m4/ceilf.m4: New file.
42137         * lib/math.in.h (ceilf): New declaration.
42138         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
42139         HAVE_DECL_CEILF.
42140         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
42141         HAVE_DECL_CEILF.
42142         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
42143
42144 2007-10-04  Bruno Haible  <bruno@clisp.org>
42145
42146         * modules/floorl-tests: New file.
42147         * tests/test-floorl.c: New file.
42148
42149         * modules/floorl: New file.
42150         * lib/floorl.c: Replace entire file.
42151         * m4/floorl.m4: New file.
42152         * lib/math.in.h (floorl): Replace declaration.
42153         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
42154         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
42155         * doc/functions/floorl.texi: Mention the 'floorl' module.
42156         * modules/mathl (Files): Remove lib/floorl.c.
42157         (Depends-on): Add floorl.
42158
42159 2007-10-04  Bruno Haible  <bruno@clisp.org>
42160
42161         * modules/floorf-tests: New file.
42162         * tests/test-floorf.c: New file.
42163
42164         * modules/floorf: New file.
42165         * lib/floor.c: New file.
42166         * lib/floorf.c: New file.
42167         * m4/floorf.m4: New file.
42168         * lib/math.in.h (floorf): New declaration.
42169         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
42170         HAVE_DECL_FLOORF.
42171         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
42172         HAVE_DECL_FLOORF.
42173         * doc/functions/floorf.texi: Mention the 'floorf' module.
42174
42175 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
42176             Bruno Haible  <bruno@clisp.org>
42177
42178         Advertise for the Git server instead of the CVS server.
42179         * doc/gnulib-intro.texi (Steady Development): Mention the Git
42180         repository instead of the CVS one.
42181         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
42182         about all VCS systems generically.
42183         * doc/gnulib.texi (Introduction): Capitalize `Git'.
42184
42185 2007-10-04  Bruno Haible  <bruno@clisp.org>
42186
42187         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
42188         means.
42189         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
42190
42191 2007-10-04  Bruno Haible  <bruno@clisp.org>
42192
42193         * modules/truncl-tests: New file.
42194         * tests/test-truncl.c: New file.
42195
42196         * modules/truncl: New file.
42197         * lib/truncl.c: New file.
42198         * m4/truncl.m4: New file.
42199         * lib/math.in.h (truncl): New declaration.
42200         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
42201         HAVE_DECL_TRUNCL.
42202         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
42203         HAVE_DECL_TRUNCL.
42204         * doc/functions/truncl.texi: Mention the 'truncl' module.
42205
42206 2007-10-04  Bruno Haible  <bruno@clisp.org>
42207
42208         * modules/truncf-tests: New file.
42209         * tests/test-truncf.c: New file.
42210
42211         * modules/truncf: New file.
42212         * lib/trunc.c: Make paramerizable through USE_* macros.
42213         * lib/truncf.c: New file.
42214         * m4/truncf.m4: New file.
42215         * lib/math.in.h (truncf): New declaration.
42216         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
42217         HAVE_DECL_TRUNCF.
42218         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
42219         HAVE_DECL_TRUNCF.
42220         * doc/functions/truncf.texi: Mention the 'truncf' module.
42221
42222 2007-10-03  Bruno Haible  <bruno@clisp.org>
42223
42224         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
42225         augmentation also for tests modules.
42226         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
42227         * modules/atexit-tests (Makefile.am): Likewise.
42228         * modules/binary-io-tests (Makefile.am): Likewise.
42229         * modules/c-strcase-tests (Makefile.am): Likewise.
42230         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
42231         * modules/canonicalize-tests (Makefile.am): Likewise.
42232         * modules/closein-tests (Makefile.am): Likewise.
42233         * modules/fprintf-posix-tests (Makefile.am): Likewise.
42234         * modules/freadahead-tests (Makefile.am): Likewise.
42235         * modules/fseek-tests (Makefile.am): Likewise.
42236         * modules/fseeko-tests (Makefile.am): Likewise.
42237         * modules/ftell-tests (Makefile.am): Likewise.
42238         * modules/ftello-tests (Makefile.am): Likewise.
42239         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
42240         * modules/isnanl-tests (Makefile.am): Likewise.
42241         * modules/lseek-tests (Makefile.am): Likewise.
42242         * modules/mbscasecmp-tests (Makefile.am): Likewise.
42243         * modules/mbscasestr-tests (Makefile.am): Likewise.
42244         * modules/mbschr-tests (Makefile.am): Likewise.
42245         * modules/mbscspn-tests (Makefile.am): Likewise.
42246         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
42247         * modules/mbspbrk-tests (Makefile.am): Likewise.
42248         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
42249         * modules/mbsrchr-tests (Makefile.am): Likewise.
42250         * modules/mbsspn-tests (Makefile.am): Likewise.
42251         * modules/mbsstr-tests (Makefile.am): Likewise.
42252         * modules/printf-posix-tests (Makefile.am): Likewise.
42253         * modules/snprintf-posix-tests (Makefile.am): Likewise.
42254         * modules/sprintf-posix-tests (Makefile.am): Likewise.
42255         * modules/tsearch-tests (Makefile.am): Likewise.
42256         * modules/uniname/uniname-tests (Makefile.am): Likewise.
42257         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
42258         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
42259         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
42260         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
42261         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
42262         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
42263         * modules/vprintf-posix-tests (Makefile.am): Likewise.
42264         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
42265         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
42266         * modules/xstrtoimax-tests (Makefile.am): Likewise.
42267         * modules/xstrtol-tests (Makefile.am): Likewise.
42268         * modules/xstrtoumax-tests (Makefile.am): Likewise.
42269         * modules/yesno-tests (Makefile.am): Likewise.
42270
42271 2007-10-03  Bruno Haible  <bruno@clisp.org>
42272
42273         * modules/trunc-tests: New file.
42274         * tests/test-trunc.c: New file.
42275
42276         * modules/trunc: New file.
42277         * lib/trunc.c: New file.
42278         * m4/trunc.m4: New file.
42279         * lib/math.in.h (trunc): New declaration.
42280         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
42281         HAVE_DECL_TRUNC.
42282         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
42283         HAVE_DECL_TRUNC.
42284         * doc/functions/trunc.texi: Mention the 'trunc' module.
42285
42286 2007-10-03  Bruno Haible  <bruno@clisp.org>
42287
42288         * tests/test-fpending.c: New file, mostly copied
42289         from coreutils/lib/t-fpending.c.
42290         * modules/fpending-tests: New file.
42291
42292 2007-10-03  Bruno Haible  <bruno@clisp.org>
42293
42294         Port the stdio extensions to QNX (untested).
42295         * lib/fseterr.c (fseterr): Add support for QNX.
42296         * lib/fbufmode.c (fbufmode): Likewise.
42297         * lib/freadable.c (freadable): Likewise.
42298         * lib/fwritable.c (fwritable): Likewise.
42299         * lib/freading.c (freading): Likewise.
42300         * lib/fwriting.c (fwriting): Likewise.
42301         * lib/freadahead.c (freadahed): Likewise.
42302         * lib/fpurge.c (fpurge): Likewise.
42303         * lib/fseeko.c (rpl_fseeko): Likewise.
42304
42305 2007-10-03  Bruno Haible  <bruno@clisp.org>
42306             Jim Meyering  <jim@meyering.net>
42307             Eric Blake  <ebb9@byu.net>
42308
42309         * doc/relocatable.texi: Use @command instead of @program.
42310
42311 2007-10-02  Jim Meyering  <jim@meyering.net>
42312
42313         Perform one more "_.h" -> ".in.h" substitution.
42314         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
42315         instead of unistd_.h here, too.
42316
42317 2007-10-01  Bruno Haible  <bruno@clisp.org>
42318
42319         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
42320         Needed for the alloca-opt module.
42321
42322 2007-09-30  Bruno Haible  <bruno@clisp.org>
42323
42324         * lib/alloca.in.h: Renamed from lib/alloca_.h.
42325         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
42326         alloca_.h.
42327         * lib/argz.in.h: Renamed from lib/argz_.h.
42328         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
42329         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
42330         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
42331         byteswap_.h.
42332         * lib/dirent.in.h: Renamed from lib/dirent_.h.
42333         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
42334         dirent_.h.
42335         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
42336         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
42337         fcntl_.h.
42338         * lib/float.in.h: Renamed from lib/float_.h.
42339         * modules/float (Files, Makefile.am): Use float.in.h instead of
42340         float_.h.
42341         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
42342         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
42343         fnmatch_.h.
42344         * lib/getopt.in.h: Renamed from lib/getopt_.h.
42345         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
42346         getopt_.h.
42347         * lib/glob.in.h: Renamed from lib/glob_.h.
42348         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
42349         * lib/iconv.in.h: Renamed from lib/iconv_.h.
42350         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
42351         iconv_.h.
42352         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
42353         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
42354         inttypes_.h.
42355         * lib/locale.in.h: Renamed from lib/locale_.h.
42356         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
42357         locale_.h.
42358         * lib/math.in.h: Renamed from lib/math_.h.
42359         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
42360         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
42361         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
42362         of netinet_in_.h. Add dependency.
42363         * lib/poll.in.h: Renamed from lib/poll_.h.
42364         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
42365         * lib/search.in.h: Renamed from lib/search_.h.
42366         * modules/search (Files, Makefile.am): Use search.in.h instead of
42367         search_.h.
42368         * lib/signal.in.h: Renamed from lib/signal_.h.
42369         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
42370         _signal.h.
42371         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
42372         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
42373         stdbool_.h.
42374         * lib/stdint.in.h: Renamed from lib/stdint_.h.
42375         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
42376         stdint_.h.
42377         * lib/stdio.in.h: Renamed from lib/stdio_.h.
42378         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
42379         stdio_.h.
42380         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
42381         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
42382         stdlib_.h.
42383         * lib/string.in.h: Renamed from lib/string_.h.
42384         * modules/string (Files, Makefile.am): Use string.in.h instead of
42385         string_.h.
42386         * doc/gnulib-tool.texi (Initial import): Update.
42387         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
42388         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
42389         of sys_select_.h. Add dependency.
42390         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
42391         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
42392         of sys_socket_.h.
42393         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
42394         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
42395         sys_stat_.h.
42396         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
42397         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
42398         sys_time_.h.
42399         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
42400         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
42401         sysexits_.h.
42402         * lib/time.in.h: Renamed from lib/time_.h.
42403         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
42404         * lib/unistd.in.h: Renamed from lib/unistd_.h.
42405         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
42406         unistd_.h.
42407         * lib/wchar.in.h: Renamed from lib/wchar_.h.
42408         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
42409         wchar_.h.
42410         * lib/wctype.in.h: Renamed from lib/wctype_.h.
42411         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
42412         wctype_.h.
42413         * build-aux/bootstrap (slurp): Update.
42414         * lib/.cppi-disable: Update.
42415
42416 2007-09-30  Bruno Haible  <bruno@clisp.org>
42417
42418         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
42419         Needed on BeOS.
42420
42421 2007-09-30  Bruno Haible  <bruno@clisp.org>
42422
42423         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
42424
42425 2007-09-29  Bruno Haible  <bruno@clisp.org>
42426
42427         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
42428
42429 2007-09-29  Bruno Haible  <bruno@clisp.org>
42430
42431         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
42432         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
42433         * build-aux/install-reloc: Compile also areadlink.c.
42434         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
42435
42436 2007-09-29  Bruno Haible  <bruno@clisp.org>
42437
42438         * gnulib-tool (func_emit_initmacro_done): Indentation.
42439
42440 2007-09-29  Bruno Haible  <bruno@clisp.org>
42441
42442         * README: Add CVS checkout update instructions.
42443         Info from Bob Proulx <bob@proulx.com>.
42444
42445 2007-09-28  Eric Blake  <ebb9@byu.net>
42446
42447         Provide move-if-change.
42448         * build-aux/move-if-change: New file, based on best practice
42449         rather than any canonical upstream location.
42450
42451 2007-09-28  Jim Meyering  <jim@meyering.net>
42452
42453         Fix canonicalize loop-detection corner case.
42454         Do not attempt to stat the symlink values stored via seen_triple.
42455         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
42456         on linux-2.6.18, (but not 2.6.22).
42457         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
42458         triple_compare.  The former compares dev,ino,filename, while the latter
42459         would actually stat dirname(filename) when dev and ino were equal.
42460         * lib/hash-triple.c: Install <string.h>.
42461         (STREQ): Define.
42462         (triple_compare_ino_str): New function.
42463         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
42464
42465 2007-09-28  Eric Blake  <ebb9@byu.net>
42466
42467         Enforce that AC_REPLACE_FUNCS files exist.
42468         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
42469         override check for typos.
42470
42471         Fix test-closein on Solaris 10.
42472         * tests/test-closein.c (main): Don't assume stdin can be inherited
42473         closed on all systems.
42474         * tests/test-closein.sh: Likewise.
42475         Reported by Piotr Tarnowski.
42476
42477 2007-09-28  Jim Meyering  <jim@meyering.net>
42478
42479         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
42480
42481 2007-09-27  Jim Meyering  <jim@meyering.net>
42482
42483         canonicalize: Avoid a false-positive cycle failure.
42484         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
42485         Sort.  Remove cycle-check.
42486         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
42487         not cycle-check.h.
42488         (seen_triple): New function.
42489         (canonicalize_filename_mode): Use it instead of cycle-check.
42490         * tests/test-canonicalize.c: Add a test for this bug.
42491         * tests/test-canonicalize.sh: Set up and run the test.
42492
42493         New module, file-set, from coreutils.
42494         * modules/file-set: Define it.
42495         * lib/file-set.c, lib/file-set.h: Implement.
42496
42497         New module, hash-triple, from coreutils.
42498         * modules/hash-triple: Define it.
42499         * lib/hash-triple.c, lib/hash-triple.h: Implement.
42500
42501 2007-09-25  Eric Blake  <ebb9@byu.net>
42502
42503         Fix strerror on Interix.
42504         * lib/string_.h (strerror): Declare replacement.
42505         * doc/functions/strerror.texi (strerror): Document the Interix
42506         shortcoming.
42507         * modules/string (Makefile.am): Support new hooks.
42508         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
42509         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
42510         gl_FUNC_STRERROR_SEPARATE.
42511         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
42512         * lib/strerror.c (rpl_strerror): Provide replacement.
42513         * modules/strerror (Depends-on): Add string.
42514         (configure.ac): Detect use of module.
42515         * tests/test-strerror.c: New file.
42516         * modules/strerror-tests: New test module.
42517         * modules/argp (Depends-on): Add strerror.
42518         * modules/error (Depends-on): Likewise.
42519         Reported by Martin Koeppe.
42520
42521 2007-09-24  Bruno Haible  <bruno@clisp.org>
42522
42523         * README: Update git instructions.
42524
42525 2007-09-24  Eric Blake  <ebb9@byu.net>
42526
42527         Revert fpending breakage from 2007-09-08.
42528         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
42529         __fpending.c.
42530
42531 2007-09-24  Jim Meyering  <jim@meyering.net>
42532
42533         filenamecat.c: Add a test.
42534         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
42535         showing how the function works when DIR is the empty string.
42536
42537 2007-09-21  Simon Josefsson  <simon@josefsson.org>
42538
42539         * tests/test-canonicalize.sh: Turn on executable bit.
42540
42541 2007-09-19  Eric Blake  <ebb9@byu.net>
42542
42543         * README: Update CVS instructions.
42544
42545 2007-09-18  Bruno Haible  <bruno@clisp.org>
42546
42547         * modules/areadlink: New file.
42548         * lib/areadlink.h (areadlink): New declaration.
42549         * lib/areadlink.c: New file, based on lib/xreadlink.c.
42550
42551 2007-09-17  Jim Meyering  <jim@meyering.net>
42552
42553         * lib/savewd.c (ESTALE) [!defined]: Define.
42554         Reported to be required on Interix by Martin Koeppe.
42555
42556 2007-09-17  Bruno Haible  <bruno@clisp.org>
42557
42558         * gnulib-tool (func_version): Use $version.
42559
42560 2007-09-16  Bruno Haible  <bruno@clisp.org>
42561
42562         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
42563         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
42564         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
42565         Reported by Greg Schafer <gschafer@zip.com.au>.
42566
42567 2007-09-15  Bruno Haible  <bruno@clisp.org>
42568
42569         * gnulib-tool (sed): Try a little harder to make bash understand the
42570         alias.
42571         Reported by Bruce Korb <bruce.korb@gmail.com>.
42572
42573 2007-09-13  Eric Blake  <ebb9@byu.net>
42574
42575         * ChangeLog: Remove conflict markers.
42576
42577 2007-09-13  Simon Josefsson  <simon@josefsson.org>
42578
42579         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
42580         Reported by Bruno Haible <bruno@clisp.org>.
42581
42582 2007-09-12  Bruno Haible  <bruno@clisp.org>
42583
42584         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
42585         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
42586         is not defined.
42587
42588 2007-09-12  Eric Blake  <ebb9@byu.net>
42589
42590         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
42591         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
42592         Autoconf definition.
42593         * modules/euidaccess (Depends-on): Add extensions, for
42594         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
42595         * modules/fnmatch (Depends-on): Likewise.
42596         * modules/getaddrinfo (Depends-on): Likewise.
42597         * modules/getdelim (Depends-on): Likewise.
42598         * modules/getline (Depends-on): Likewise.
42599         * modules/getsubopt (Depends-on): Likewise.
42600         * modules/gettext (Depends-on): Likewise.
42601         * modules/group-member (Depends-on): Likewise.
42602         * modules/mbchar (Depends-on): Likewise.
42603         * modules/memmem (Depends-on): Likewise.
42604         * modules/mempcpy (Depends-on): Likewise.
42605         * modules/memrchr (Depends-on): Likewise.
42606         * modules/pagealign_alloc (Depends-on): Likewise.
42607         * modules/readutmp (Depends-on): Likewise.
42608         * modules/stpcpy (Depends-on): Likewise.
42609         * modules/stpncpy (Depends-on): Likewise.
42610         * modules/strchrnul (Depends-on): Likewise.
42611         * modules/strndup (Depends-on): Likewise.
42612         * modules/strsep (Depends-on): Likewise.
42613         * modules/strverscmp (Depends-on): Likewise.
42614         * modules/vasprintf (Depends-on): Likewise.
42615         * modules/wcwidth (Depends-on): Likewise.
42616         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
42617         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
42618         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
42619         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
42620         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
42621         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42622         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
42623         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
42624         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
42625         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
42626         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
42627         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
42628         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
42629         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
42630         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
42631         * m4/readutmp.m4 (gl_READUTMP): Likewise.
42632         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
42633         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
42634         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
42635         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
42636         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
42637         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
42638         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
42639         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
42640         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
42641         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
42642         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
42643         so that lock.m4 can be used in gettext without extensions module.
42644
42645 2007-09-11  Bruno Haible  <bruno@clisp.org>
42646
42647         * m4/isc-posix.m4: Remove file.
42648         Suggested by Eric Blake.
42649
42650 2007-09-11  Eric Blake  <ebb9@byu.net>
42651
42652         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
42653
42654 2007-09-10  Bruno Haible  <bruno@clisp.org>
42655
42656         * posix-modules: Fix typo in error message.
42657         Reported by Matt <mkraai@beckman.com>.
42658
42659 2007-09-09  Bruno Haible  <bruno@clisp.org>
42660
42661         * doc/functions/getdelim.texi: Update list of platforms lacking the
42662         function.
42663         * doc/functions/getline.texi: Likewise.
42664
42665 2007-09-09  Jim Meyering  <jim@meyering.net>
42666
42667         * lib/hash.c (hash_initialize): Detect calloc failure.
42668         Reported by Bruno Haible.
42669
42670 2007-09-09  Bruno Haible  <bruno@clisp.org>
42671
42672         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
42673         malloc or realloc fails.
42674
42675 2007-09-09  Bruno Haible  <bruno@clisp.org>
42676
42677         * modules/getcwd (Depends-on): Add malloc-posix.
42678         * modules/glob (Depends-on): Likewise.
42679         * modules/putenv (Depends-on): Likewise.
42680         * modules/strdup (Depends-on): Likewise.
42681         * modules/getdelim (Depends-on): Add realloc-posix.
42682         * modules/read-file (Depends-on): Likewise.
42683
42684 2007-09-09  Bruno Haible  <bruno@clisp.org>
42685
42686         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
42687         (gl_FUNC_MALLOC_POSIX): Require it.
42688         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
42689         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
42690         * modules/realloc (Files): Add m4/malloc.m4.
42691         * modules/calloc (Files): Likewise.
42692
42693 2007-09-09  Bruno Haible  <bruno@clisp.org>
42694
42695         * modules/malloc-posix: New file.
42696         * modules/malloc (Depends-on): Add malloc-posix.
42697         * lib/malloc.c: Include errno.h.
42698         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
42699         and a POSIX-compatible malloc into a single function. Set ENOMEM
42700         when returning NULL.
42701         * m4/malloc.m4: New file.
42702         * doc/functions/malloc.texi: Mention the malloc-posix module.
42703         * lib/stdlib_.h (malloc): New declaration.
42704         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
42705         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
42706         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
42707         and HAVE_MALLOC_POSIX.
42708
42709 2007-09-09  Bruno Haible  <bruno@clisp.org>
42710
42711         * modules/realloc-posix: New file.
42712         * modules/realloc (Depends-on): Add realloc-posix.
42713         * lib/realloc.c: Include errno.h.
42714         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
42715         and a POSIX-compatible realloc into a single function. Set ENOMEM
42716         when returning NULL.
42717         * m4/realloc.m4: New file.
42718         * doc/functions/realloc.texi: Mention the realloc-posix module.
42719         * lib/stdlib_.h (realloc): New declaration.
42720         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
42721         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
42722         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
42723         and HAVE_REALLOC_POSIX.
42724
42725 2007-09-09  Bruno Haible  <bruno@clisp.org>
42726
42727         * modules/calloc-posix: New file.
42728         * modules/calloc (Depends-on): Add calloc-posix.
42729         * lib/calloc.c: Include errno.h.
42730         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
42731         and a POSIX-compatible calloc into a single function. Set ENOMEM
42732         when returning NULL.
42733         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
42734         * doc/functions/calloc.texi: Mention the calloc-posix module.
42735         * lib/stdlib_.h (calloc): New declaration.
42736         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
42737         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
42738         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
42739         and HAVE_CALLOC_POSIX.
42740
42741 2007-09-09  Bruno Haible  <bruno@clisp.org>
42742
42743         Allow for modules to show an arbitrary notice.
42744         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
42745         * gnulib-tool: New option --extract-notice.
42746         (func_usage): Document it.
42747         (sed_extract_prog): Update.
42748         (func_get_notice): New function.
42749         (func_modules_notice): New function.
42750         (func_import, func_create_testdir): Invoke it.
42751         Suggested by Jim Meyering.
42752
42753 2007-09-09  Bruno Haible  <bruno@clisp.org>
42754
42755         * gnulib-tool: New options --verbose, --quiet.
42756         (func_usage): Document them.
42757         (verbose): New variable.
42758         (func_execute_command): New function.
42759         (func_import): Don't show the module list and the file list if
42760         $verbose < 0.
42761         (func_create_testdir): Likewise. Use func_execute_command.
42762         (func_create_megatestdir): Use func_execute_command.
42763
42764 2007-09-08  Bruno Haible  <bruno@clisp.org>
42765
42766         * gnulib-tool (func_import): Prefer rsync over wget when available,
42767         for fetching the PO files.
42768
42769 2007-09-08  Bruno Haible  <bruno@clisp.org>
42770
42771         * posix-modules: New file. Portions copied from gnulib-tool.
42772         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
42773
42774 2007-09-08  Jim Meyering  <jim@meyering.net>
42775
42776         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
42777         * lib/fpending.h: Rename from __fpending.h.
42778         * lib/fpending.c: Rename from __fpending.c.
42779         Include "fpending.h", not "__fpending.h".
42780         * lib/__fpending.h, lib/__fpending.c: Remove files.
42781         * modules/fpending (Files): Reflect new file names.
42782         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
42783
42784 2007-09-08  Bruno Haible  <bruno@clisp.org>
42785
42786         * m4/inttypes-h.m4: Remove stub file.
42787
42788 2007-09-07  Simon Josefsson  <simon@josefsson.org>
42789
42790         * doc/headers/stdint.texi: Discuss #include_next issue.
42791
42792 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
42793
42794         * build-aux/bootstrap: Remove obsolete comment about wget --help.
42795
42796 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42797
42798         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
42799         in variable name.
42800
42801 2007-09-03  Jim Meyering  <jim@meyering.net>
42802
42803         New module: git-version-gen.
42804         * modules/git-version-gen: New file.
42805
42806         Import changes from coreutils for bootstrap script.
42807
42808         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
42809
42810         bootstrap: uses rsync to download the .po files
42811         * build-aux/bootstrap (po_download_command_format): New global.
42812         (download_po_files): Use rsync.
42813         (update_po_files): Don't remove .po files after download,
42814         so future rsync runs can take advantage of the copies.
42815
42816         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
42817
42818         Solve the unnecessary-.po-file-regeneration problem once and for all.
42819         * build-aux/bootstrap (download_po_files): New function, renamed from
42820         get_translations.  Now, downloads, but doesn't update LINGUAS.
42821         (update_po_files): New function.
42822
42823         bootstrap: Ignore more.
42824         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
42825         uniwidth to e.g., lib/.gitignore.
42826         (slurp): Handle the sys_stat_.h -> sys mapping, too.
42827
42828         * build-aux/bootstrap: New setting: vc_ignore.
42829         (insert_sorted_if_absent): Create $file if absent.
42830         Adapt to new, possibly empty, list: $vc_ignore.
42831
42832         bootstrap: generate more ignorable names
42833         * build-aux/bootstrap (slurp): When generating ignorable names,
42834         also map .sin to .sed, .gperf to .c, and .y to .c.
42835
42836 2007-09-03  Jim Meyering  <jim@meyering.net>
42837
42838         * build-aux/git-version-gen: New file, from coreutils.  For details, see
42839         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
42840
42841 2007-09-02  Bruno Haible  <bruno@clisp.org>
42842
42843         Fix mis-recognition of 'mcs' on QNX 6.
42844         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
42845         output contains the string "Mono".
42846         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
42847         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
42848
42849 2007-09-01  Bruno Haible  <bruno@clisp.org>
42850
42851         Fix collision between uniwidth/* and linebreak modules.
42852         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
42853         u32_width): Remove declarations.
42854         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
42855         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
42856         streq3, streq2, streq1, streq0): Remove functions.
42857         (STREQ): Remove macro.
42858         (is_cjk_encoding): Remove function.
42859         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
42860         (uc_width, u8_width, u16_width, u32_width): Remove functions.
42861         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
42862         * NEWS: Document the change.
42863
42864 2007-09-01  Bruno Haible  <bruno@clisp.org>
42865
42866         * lib/streq.h: Add double-inclusion guard.
42867
42868 2007-09-01  Karl Berry  <karl@gnu.org>
42869
42870         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
42871
42872 2007-08-28  Jim Meyering  <jim@meyering.net>
42873
42874         Rename mreadlink_with_size to areadlink_with_size.
42875         * NEWS: Document the change.
42876         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
42877         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
42878         * lib/mreadlink.h: Rename this to...
42879         * lib/areadlink.h: ...this.
42880         * modules/mreadlink-with-size: Rename this to...
42881         * modules/areadlink-with-size: ...this.
42882         * lib/canonicalize.c: Reflect the renaming.
42883         * modules/canonicalize: Likewise.
42884
42885 2007-08-26  Bruno Haible  <bruno@clisp.org>
42886
42887         * gnulib-tool (func_import): When deciding which files to remove,
42888         consider also dangling symbolic links.
42889         Reported by Eric Blake.
42890
42891 2007-08-26  Bruno Haible  <bruno@clisp.org>
42892
42893         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
42894
42895 2007-08-23  Simon Josefsson  <simon@josefsson.org>
42896
42897         * lib/readline.c: Don't include getline.h, the prototype is now
42898         found in stdio.h.
42899
42900 2007-08-23  Jim Meyering  <jim@meyering.net>
42901
42902         Getdelim touchup.
42903         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
42904         around the funlockfile call, since funlockfile never sets errno.
42905         Don't set errno upon failed realloc.
42906
42907 2007-08-22  Eric Blake  <ebb9@byu.net>
42908
42909         Getline touchups.
42910         * lib/getdelim.c (getdelim): Revert regression that required *n to
42911         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
42912         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
42913         getdelim, rather than whether implementation is missing.
42914         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
42915         * lib/stdio_.h (getline): Also declare if replacement is
42916         required.
42917         * doc/functions/getdelim.texi: New file.
42918         * doc/functions/getline.texi: Likewise.
42919         * doc/gnulib.texi (Function Substitutes): Add new files.
42920         Reported by Bruno Haible.
42921
42922 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
42923
42924         * users.txt: Add Guile.
42925
42926 2007-08-22  Eric Blake  <ebb9@byu.net>
42927
42928         * tests/test-getdelim.c (main): Use remove, not unlink.
42929         * tests/test-getline.c (main): Likewise.
42930
42931         Move getline and getdelim into stdio.h, per POSIX 200x.
42932         * modules/getline (Files): Remove getline.h.
42933         (Depends-on): Add stdio.
42934         (configure.ac): Add module indicator.
42935         * modules/getdelim (Files): Remove getdelim.h.
42936         (Depends-on): Add stdio.
42937         (configure.ac): Add module indicator.
42938         * modules/stdio (Makefile.am): Work with new indicators.
42939         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
42940         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
42941         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42942         * lib/getdelim.h: Delete.
42943         * lib/getline.h: Delete.
42944         * lib/stdio_.h (getdelim, getline): Declare.
42945         * modules/getdelim-tests: New module.
42946         * modules/getline-tests: Likewise.
42947         * tests/test-getdelim.c: New file.
42948         * tests/test-getline.c: Likewise.
42949         * NEWS: Document the change.
42950         * lib/getline.c: Update choice of header.
42951         * lib/csharpcomp.c: Likewise.
42952         * lib/getpass.c: Likewise.
42953         * lib/javacomp.c: Likewise.
42954         * lib/javaversion.c: Likewise.
42955         * lib/yesno.c: Likewise.
42956         * lib/getdelim.c: Likewise.
42957         (getdelim): Set errno on failure, and avoid memory leak.
42958
42959 2007-08-19  Bruno Haible  <bruno@clisp.org>
42960
42961         * modules/closein (Depends-on): Add freadahead.
42962         * lib/closein.c: Include freadahead.h.
42963         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
42964         is zero.
42965
42966 2007-08-19  Bruno Haible  <bruno@clisp.org>
42967
42968         * modules/freadahead-tests: New file.
42969         * tests/test-freadahead.sh: New file.
42970         * tests/test-freadahead.c: New file.
42971
42972         * modules/freadahead: New file.
42973         * lib/freadahead.h: New file.
42974         * lib/freadahead.c: New file.
42975         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
42976         fbufmode, fpurge, freadable, fwritable.
42977
42978 2007-08-19  Eric Blake  <ebb9@byu.net>
42979
42980         Test yesno in combination with closein.
42981         * lib/yesno.c (yesno): Document use of stdin.
42982         * modules/yesno-tests (Files): New module.
42983         * tests/test-yesno.c (main): New file.
42984         * tests/test-yesno.sh: Likewise.
42985
42986 2007-08-19  Bruno Haible  <bruno@clisp.org>
42987
42988         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
42989         * lib/fseeko.c (rpl_fseeko): Likewise.
42990         * lib/fseterr.c (fseterr): Likewise.
42991
42992 2007-08-19  Bruno Haible  <bruno@clisp.org>
42993
42994         * tests/test-lseek.c (main): Disable a test for BeOS.
42995         * doc/functions/lseek.texi: Document the BeOS bug.
42996
42997 2007-08-19  Bruno Haible  <bruno@clisp.org>
42998             Eric Blake  <ebb9@byu.net>
42999
43000         * lib/lseek.c: Include <sys/stat.h>.
43001         (rpl_lseek): Add workaround code also for Unix platforms.
43002         Needed for BeOS.
43003         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
43004         * doc/functions/lseek.texi: Document BeOS definiency.
43005
43006 2007-08-18  Bruno Haible  <bruno@clisp.org>
43007
43008         * modules/fstrcmp-tests: New file.
43009         * tests/test-fstrcmp.c: New file.
43010
43011 2007-08-18  Bruno Haible  <bruno@clisp.org>
43012
43013         * modules/fstrcmp: New file, from GNU gettext with modifications.
43014         * lib/fstrcmp.h: New file, from GNU gettext.
43015         * lib/fstrcmp.c: New file, from GNU gettext.
43016         * MODULES.html.sh (String handling): Add fstrcmp.
43017
43018 2007-08-18  Bruno Haible  <bruno@clisp.org>
43019
43020         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
43021         'bool'.
43022         (diag, compareseq): Remove const from the ctxt argument.
43023         (USE_HEURISTIC): Undefine at the end.
43024
43025 2007-08-18  Jim Meyering  <jim@meyering.net>
43026
43027         New file: lib/idcache.h
43028         * NEWS: Mention the addition.
43029         * modules/idcache (Files): Add lib/idcache.h
43030         * lib/idcache.c: Include "idcache.h".
43031         Don't include <sys/types.h>.
43032         Add a FIXME comment.
43033         Move file-scoped "static" declarations to the top.
43034         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
43035
43036 2007-08-17  Bruno Haible  <bruno@clisp.org>
43037         and Paul Eggert  <eggert@cs.ucla.edu>
43038
43039         * MODULES.html.sh: Add diffseq.
43040         * modules/diffseq: New file.
43041         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
43042         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
43043
43044 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43045
43046         Import changes from coreutils for bootstrap script.
43047
43048         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
43049
43050         * build-aux/bootstrap (slurp): Work even in environments where
43051         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
43052         current code does not slurp files whose names start with ".", and
43053         this looks like it might be a troublesome area.
43054
43055         2007-07-11  Jim Meyering  <jim@meyering.net>
43056
43057         If there's a GPL vN copyright comment, require that N == 3.
43058
43059         2007-07-08  Jim Meyering  <jim@meyering.net>
43060
43061         Run the coreutils-specific code only if tests/Makefile.am.in exists.
43062         * build-aux/bootstrap (mam_template): Move definition out of loop.
43063
43064         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
43065
43066         * build-aux/bootstrap (symlink_to_dir): Rename function from
43067         symlink_to_gnulib.  Add a directory parameter.  Update all
43068         callers.
43069         (cp_mark_as_generated): Also check for -- and link to -- files in
43070         gl/.
43071
43072         2007-07-08  Jim Meyering  <jim@meyering.net>
43073
43074         Adapt to deeper hierarchy in gnulib.
43075         * build-aux/bootstrap (symlink_to_dir): If the destination
43076         directory doesn't exist, create it. This is required at least for
43077         "lib/uniwidth/cjk.h".
43078
43079         2007-05-15  Jim Meyering  <jim@meyering.net>
43080
43081         * build-aux/bootstrap: Now that generated Makefile.am files
43082         are no longer under version control, they must be created at
43083         bootstrap time.
43084
43085 2007-08-14  Ben Pfaff  <blp@gnu.org>
43086
43087         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
43088
43089 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43090
43091         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
43092         given the changes below.
43093         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
43094         even on hosts that have padding bits beyond the supported 64.
43095
43096 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
43097
43098         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
43099         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
43100         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
43101         depends on it.
43102         (xstrtol_error): Remove.
43103         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
43104         but with a different signature.
43105         (ATTRIBUTE_NORETURN, __attribute__): New macros.
43106         * lib/xstrtol-error.c: Include exitfail.h.
43107         (xstrtol_fatal): New function, with a different signature from the
43108         old xstrtol_error, so that the caller need not worry about passing
43109         in an exit status, or about storage management of the option argument.
43110         (xstrtol_error): Now a static function.  Redo signature to
43111         implement xstrtol_fatal.  Output the correct number of hyphens in
43112         front of the option so that the caller need not worry about
43113         storage management.
43114         (N_): New macro.
43115         (_): Remove; not used now.
43116         * modules/xstrtol: Depend on getopt.
43117         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
43118         of old STRTOL_FATAL_ERROR macro.
43119         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
43120         of test program.
43121         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
43122         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
43123
43124 2007-08-08  Eric Blake  <ebb9@byu.net>
43125
43126         * lib/xstrtol-error.c: Add missing include.
43127
43128         Move xstrtol messages into gnulib domain, when --pobase is used.
43129         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
43130         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
43131         * modules/xstrtol (Files): Distribute new file.
43132         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
43133         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
43134         * tests/test-xstrtol.c: ...into new file.
43135         * tests/test-xstrtoul.c: Also test xstrtoul.
43136         * tests/test-xstrtoimax.c: Also test xstrtoimax.
43137         * tests/test-xstrtoumax.c: Also test xstrtoumax.
43138         * tests/test-xstrtol.sh: Drive the tests.
43139         * tests/test-xstrtoimax.sh: Likewise.
43140         * tests/test-xstrtoumax.sh: Likewise.
43141         * modules/xstrtol-tests: New module.
43142         * modules/xstrtoimax-tests: Likewise.
43143         * modules/xstrtoumax-tests: Likewise.
43144
43145 2007-08-08  Jim Meyering  <jim@meyering.net>
43146
43147         New function: mfile_name_concat.
43148         * lib/filenamecat.c (mfile_name_concat): New function, just like
43149         file_name_concat, but return NULL upon failure rather than exiting
43150         with a diagnostic.
43151         * lib/filenamecat.h: Declare it.
43152
43153 2007-08-07  Bruno Haible  <bruno@clisp.org>
43154
43155         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
43156         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
43157         warning from gcc.
43158         Reported by Eric Blake.
43159
43160 2007-08-07  Simon Josefsson  <simon@josefsson.org>
43161
43162         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
43163         * modules/crypto/arcfour (License): Likewise.
43164         * modules/crypto/des-tests (License): Likewise.
43165         * modules/crypto/gc-arctwo-tests (License): Likewise.
43166         * modules/crypto/gc-des-tests (License): Likewise.
43167         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
43168         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
43169         * modules/crypto/gc-md2-tests (License): Likewise.
43170         * modules/crypto/gc-md4-tests (License): Likewise.
43171         * modules/crypto/gc-md5-tests (License): Likewise.
43172         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
43173         * modules/crypto/gc-rijndael-tests (License): Likewise.
43174         * modules/crypto/gc-sha1-tests (License): Likewise.
43175         * modules/crypto/gc-tests (License): Likewise.
43176         * modules/crypto/hmac-md5 (License): Likewise.
43177         * modules/crypto/hmac-sha1 (License): Likewise.
43178         * modules/crypto/md2-tests (License): Likewise.
43179         * modules/crypto/md4-tests (License): Likewise.
43180         * modules/crypto/md5 (License): Likewise.
43181         * modules/crypto/rijndael (License): Likewise.
43182         * modules/crypto/sha1 (License): Likewise.
43183         * modules/memxor (License): Likewise.
43184
43185 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
43186         and Bruno Haible  <bruno@clisp.org>
43187
43188         * NEWS: Describe interface changes to human, xstrtol.
43189         * lib/human.h: Include <xstrtol.h>.
43190         (human_options): Return enum strtol_error, not int.  Remove
43191         bool arg; take int * instead.
43192         * lib/human.c: Don't include "gettext.h".
43193         (_): Remove; no longer used.
43194         Don't include <xstrtol.h>, since human.h does it.
43195         (human_options): Adjust to abovementioned interface changes.
43196         Do not report error to stderr; that's now the caller's
43197         responsibility.
43198         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
43199         interface change.
43200         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
43201         Str, Argument_type_string.  All uses changed.  Put " argument"
43202         in diagnostics to make them clearer.  Change wording of suffix
43203         message for clarity.
43204         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
43205         Argument_type_string.
43206         (STRTOL_FATAL_WARN): Remove; no longer used.
43207         * modules/human (Depends-on): Remove gettext-h.
43208
43209 2007-08-06  Simon Josefsson  <simon@josefsson.org>
43210
43211         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
43212
43213 2007-07-31  Bruno Haible  <bruno@clisp.org>
43214
43215         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
43216         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
43217         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
43218
43219 2007-07-31  Bruno Haible  <bruno@clisp.org>
43220
43221         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
43222         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
43223
43224 2007-07-30  Bruno Haible  <bruno@clisp.org>
43225
43226         * modules/base64 (License): Use the synonymous term "LGPLv2+".
43227         * modules/c-ctype (License): Likewise.
43228         * modules/c-strcase (License): Likewise.
43229         * modules/check-version (License): Likewise.
43230         * modules/iconv (License): Likewise.
43231         * modules/iconv_open (License): Likewise.
43232         * modules/read-file (License): Likewise.
43233         * modules/striconv (License): Likewise.
43234         * modules/strverscmp (License): Likewise.
43235         * modules/vasprintf (License): Likewise.
43236         * modules/crypto/des (License): Likewise.
43237         * modules/crypto/gc (License): Likewise.
43238         * modules/crypto/gc-arcfour (License): Likewise.
43239         * modules/crypto/gc-arctwo (License): Likewise.
43240         * modules/crypto/gc-des (License): Likewise.
43241         * modules/crypto/gc-hmac-md5 (License): Likewise.
43242         * modules/crypto/gc-hmac-sha1 (License): Likewise.
43243         * modules/crypto/gc-md2 (License): Likewise.
43244         * modules/crypto/gc-md4 (License): Likewise.
43245         * modules/crypto/gc-md5 (License): Likewise.
43246         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
43247         * modules/crypto/gc-random (License): Likewise.
43248         * modules/crypto/gc-rijndael (License): Likewise.
43249         * modules/crypto/gc-sha1 (License): Likewise.
43250         * modules/crypto/md2 (License): Likewise.
43251         * modules/crypto/md4 (License): Likewise.
43252
43253 2007-07-30  Jim Meyering  <jim@meyering.net>
43254
43255         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
43256         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
43257         it has valid stat data.  This bug would cause du not to count the
43258         sizes of inaccessible directories.
43259         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
43260         in <http://bugzilla.redhat.com/250077>.
43261
43262 2007-07-25  Peter O'Gorman  <peter@pogma.com>
43263             Bruno Haible  <bruno@clisp.org>
43264
43265         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
43266         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
43267         #include_next, gives a diagnostic about it, but reports no error in
43268         the exit code.
43269         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
43270
43271 2007-07-24  Ben Pfaff  <blp@gnu.org>
43272
43273         Improve name: "count-one-bits" is better than "popcount".
43274         * MODULES.html.sh: Update name.
43275         * lib/popcount.h: Renamed lib/count-one-bits.h.
43276         (popcount): Renamed count_one_bits.
43277         (popcountl): Renamed count_one_bits_l.
43278         (popcountll): Renamed count_one_bits_ll.
43279         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
43280         * modules/popcount: Renamed module/count-one-bits.
43281         * modules/popcount-tests: Renamed module/count-one-bits-tests.
43282         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
43283
43284 2007-07-23  Ben Pfaff  <blp@gnu.org>
43285
43286         * lib/popcount.h (popcount32): Reduce size of constants, to allow
43287         better code generation, and add U to large constants to avoid
43288         warnings, in non-GCC case.
43289         Suggested by Bruno Haible.
43290
43291 2007-07-23  Ben Pfaff  <blp@gnu.org>
43292
43293         * lib/popcount.h: Use verify_true instead of if...abort.
43294         * modules/popcount: Depend on verify module.
43295         Suggested by Jim Meyering.
43296
43297 2007-07-23  Bruno Haible  <bruno@clisp.org>
43298
43299         * gnulib-tool (func_import): Create a .cvsignore file also when the
43300         directory is not yet in CVS but the toplevel directory is. When
43301         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
43302         Reported by Karl Berry.
43303
43304 2007-07-22  Ben Pfaff  <blp@gnu.org>
43305
43306         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
43307         case.
43308         Suggested by Eric Blake.
43309
43310 2007-07-22  Ben Pfaff  <blp@gnu.org>
43311
43312         New module: popcount.
43313         * MODULES.html.sh: Add popcount.
43314         * modules/popcount: New file.
43315         * modules/popcount-tests: New file.
43316         * tests/test-popcount.c: New file.
43317         * lib/popcount.h: New file.
43318         * m4/popcount.m4: New file.
43319
43320 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43321
43322         * build-aux/announce-gen: Update to GPLv3.
43323
43324         * build-aux/config.guess: Update from config.
43325
43326 2007-07-21  Bruno Haible  <bruno@clisp.org>
43327
43328         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
43329         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
43330
43331 2007-07-20  Jim Meyering  <jim@meyering.net>
43332
43333         * check-module: Diagnose a self-dependency.
43334
43335 2007-07-19  Bruno Haible  <bruno@clisp.org>
43336
43337         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
43338         empty.
43339         Reported by Eric Blake.
43340
43341 2007-07-18  Bruno Haible  <bruno@clisp.org>
43342
43343         * gnulib-tool: New options --po-base, --po-domain.
43344         (func_usage): Document them.
43345         (pobase, po_domain): New variables.
43346         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
43347         DEFAULT_TEXT_DOMAIN.
43348         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
43349         (func_import): Consider pobase and po_domain. Create a po/ directory.
43350         (func_create_testdir): Set pobase and po_domain to empty.
43351         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
43352         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
43353
43354 2007-07-18  Bruno Haible  <bruno@clisp.org>
43355
43356         * gnulib-tool (func_get_automake_snippet): Synthesize also an
43357         EXTRA_DIST augmentation for files in build-aux/.
43358
43359 2007-07-16  Bruno Haible  <bruno@clisp.org>
43360
43361         * modules/lseek (License): Use the synonymous term "LGPLv2+".
43362         * modules/getdelim (License): Likewise.
43363
43364 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43365
43366         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
43367         * modules/d-type (License): Likewise.
43368         * modules/extensions (License): Likewise.
43369         * modules/fnmatch (License): Likewise.
43370         * modules/fseeko (License): Likewise.
43371         * modules/getaddrinfo (License): Likewise.
43372         * modules/getline (License): Likewise.
43373         * modules/getlogin_r (License): Likewise.
43374         * modules/getpass (License): Likewise.
43375         * modules/gettimeofday (License): Likewise.
43376         * modules/glob (License): Likewise.
43377         * modules/inet_ntop (License): Likewise.
43378         * modules/malloc (License): Likewise.
43379         * modules/malloca (License): Likewise.
43380         * modules/memmem (License): Likewise.
43381         * modules/mempcpy (License): Likewise.
43382         * modules/memset (License): Likewise.
43383         * modules/minmax (License): Likewise.
43384         * modules/mktime (License): Likewise.
43385         * modules/netinet_in (License): Likewise.
43386         * modules/pathmax (License): Likewise.
43387         * modules/poll (License): Likewise.
43388         * modules/regex (License): Likewise.
43389         * modules/snprintf (License): Likewise.
43390         * modules/stdbool (License): Likewise.
43391         * modules/stdint (License): Likewise.
43392         * modules/stdio (License): Likewise.
43393         * modules/strcase (License): Likewise.
43394         * modules/strcasestr (License): Likewise.
43395         * modules/strdup (License): Likewise.
43396         * modules/string (License): Likewise.
43397         * modules/strndup (License): Likewise.
43398         * modules/strnlen (License): Likewise.
43399         * modules/strpbrk (License): Likewise.
43400         * modules/strptime (License): Likewise.
43401         * modules/strsep (License): Likewise.
43402         * modules/sys_select (License): Likewise.
43403         * modules/sys_socket (License): Likewise.
43404         * modules/sys_stat (License): Likewise.
43405         * modules/sys_time (License): Likewise.
43406         * modules/time (License): Likewise.
43407         * modules/time_r (License): Likewise.
43408         * modules/timegm (License): Likewise.
43409         * modules/unistd (License): Likewise.
43410         * modules/vsnprintf (License): Likewise.
43411         * modules/wctype (License): Likewise.
43412
43413 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43414
43415         * modules/argz (License): LGPLv2+.
43416
43417 2007-07-15  Karl Berry  <karl@gnu.org>
43418
43419         * doc/gnulib.texi: revise node structure per new fdl.texi.
43420
43421 2007-07-14  Bruno Haible  <bruno@clisp.org>
43422
43423         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
43424         the output file.
43425         * lib/uniname/uninames.h: Regenerated.
43426
43427 2007-07-14  Karl Berry  <karl@gnu.org>
43428
43429         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
43430         omitting sectioning and index commands.
43431
43432 2007-07-13  Bruno Haible  <bruno@clisp.org>
43433
43434         New gnulib-tool option --more-symlinks.
43435         * gnulib-tool (func_usage): Document --more-symlinks.
43436         (do_copyrights): New variable.
43437         Recognize option --more-symlinks.
43438         (func_import): Don't add a copyright notice transform to
43439         sed_transform_lib_file if do_copyrights is empty.
43440
43441 2007-07-13  Bruno Haible  <bruno@clisp.org>
43442
43443         * lib/vasnprintf.c (decimal_point_char): Define also if
43444         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
43445         && !NEED_PRINTF_DIRECTIVE_A.
43446         Reported by Clemens Koller <clemens.koller@anagramm.de> via
43447         Gary V. Vaughan <gary@gnu.org>.
43448
43449 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
43450
43451         * lib/inttypes_.h: Undo previous change, since it was fixed
43452         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
43453
43454 2007-07-13  Bruno Haible  <bruno@clisp.org>
43455
43456         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
43457         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
43458
43459 2007-07-13  Jim Meyering  <jim@meyering.net>
43460
43461         df: Don't fail for Tru64's "file-on-file mount".
43462         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
43463         so we fall through and use statfs instead.  Details here:
43464         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
43465         Reported by Albert Chin.
43466
43467 2007-07-13  Bruno Haible  <bruno@clisp.org>
43468
43469         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
43470         * modules/configmake (License): Likewise.
43471         * modules/gettext (License): Likewise.
43472         * modules/gettext-h (License): Likewise.
43473         * modules/include_next (License): Likewise.
43474         * modules/link-warning (License): Likewise.
43475         * modules/localcharset (License): Likewise.
43476         * modules/localename (License): Likewise.
43477         * modules/lock (License): Likewise.
43478         * modules/relocatable-lib-lgpl (License): Likewise.
43479         * modules/size_max (License): Likewise.
43480         * modules/vasnprintf (License): Likewise.
43481         * modules/wchar (License): Likewise.
43482         * modules/xsize (License): Likewise.
43483
43484 2007-07-13  Bruno Haible  <bruno@clisp.org>
43485
43486         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
43487         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
43488
43489 2007-07-12  Bruno Haible  <bruno@clisp.org>
43490
43491         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
43492         in the modules files.
43493
43494 2007-07-11  Karl Berry  <karl@gnu.org>
43495
43496         * MODULES.html.sh (func_module): use
43497          sed -e '\|^'"${includefile}"'$|d'
43498          instead of /.../d, to avoid errors on $includefile's containing /.
43499
43500 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
43501
43502         * gnulib-tool (func_import): Avoid duplication of --avoid
43503         statements
43504         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
43505         names to `_' in variable names.
43506
43507 2007-07-10  Eric Blake  <ebb9@byu.net>
43508
43509         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
43510         * NEWS: Document this change.
43511
43512 2007-07-08  Bruno Haible  <bruno@clisp.org>
43513
43514         Update to Unicode 5.0.
43515         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
43516         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
43517         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
43518         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
43519         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
43520         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
43521         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
43522         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
43523         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
43524         U+10A3F, U+1D242..U+1D244.
43525         (nonspacing_table_ind): Update.
43526         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
43527         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
43528
43529 2007-07-08  Bruno Haible  <bruno@clisp.org>
43530
43531         Update to Unicode 5.0.
43532         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
43533         code transform. Extend the name index field of unicode_name_to_code and
43534         unicode_code_to_name from 16 to 24 bits.
43535         * lib/uniname/uniname.c (unicode_character_name,
43536         unicode_name_character): Add the range 0x12xxx to the code transform.
43537         * lib/uniname/uninames.h: Regenerated.
43538         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
43539
43540 2007-07-07  Bruno Haible  <bruno@clisp.org>
43541
43542         * modules/wcwidth-tests: New file.
43543         * tests/test-wcwidth.c: New file.
43544
43545         Work around MacOS X wcwidth() bug.
43546         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
43547         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
43548         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
43549         original wcwidth in non-UTF-8 locales.
43550         * modules/wcwidth (Depends-on): Add localcharset, streq,
43551         uniwidth/width.
43552         * doc/functions/wcwidth.texi: Update.
43553
43554 2007-07-07  Bruno Haible  <bruno@clisp.org>
43555
43556         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
43557         (wcwidth): New declaration.
43558         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
43559         macros.
43560         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
43561         here. Prepare for creating <wchar.h> unconditionally.
43562         * modules/wchar (Depends-on): Add link-warning.
43563         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
43564         REPLACE_WCWIDTH, and GL_LINK_WARNING.
43565         * lib/wcwidth.h: Remove file.
43566         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
43567         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
43568         * modules/wcwidth (Files): Remove lib/wcwidth.h.
43569         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
43570         (Include): Replace wcwidth.h with <wchar.h>.
43571         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
43572         * lib/mbchar.h: Don't include wcwidth.h.
43573         * lib/mbswidth.c: Likewise.
43574         * NEWS: Mention the change.
43575
43576 2007-07-07  Bruno Haible  <bruno@clisp.org>
43577
43578         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
43579         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
43580         definition with an external declaration.
43581         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
43582         defined as a function. Remove AC_C_INLINE requirement.
43583         * modules/wcwidth (Files): Add lib/wcwidth.c.
43584         (Makefile.am): Remove redundant statement.
43585
43586 2007-07-07  Bruno Haible  <bruno@clisp.org>
43587
43588         * MODULES.html.sh (Unicode string functions): Add the new modules.
43589
43590         * tests/uniwidth/test-u32-strwidth.c: New file.
43591         * modules/uniwidth/u32-strwidth-tests: New file.
43592
43593         * lib/uniwidth/u32-strwidth.c: New file.
43594         * modules/uniwidth/u32-strwidth: New file.
43595
43596         * tests/uniwidth/test-u16-strwidth.c: New file.
43597         * modules/uniwidth/u16-strwidth-tests: New file.
43598
43599         * lib/uniwidth/u16-strwidth.c: New file.
43600         * modules/uniwidth/u16-strwidth: New file.
43601
43602         * tests/uniwidth/test-u8-strwidth.c: New file.
43603         * modules/uniwidth/u8-strwidth-tests: New file.
43604
43605         * lib/uniwidth/u8-strwidth.c: New file.
43606         * modules/uniwidth/u8-strwidth: New file.
43607
43608         * tests/uniwidth/test-u32-width.c: New file.
43609         * modules/uniwidth/u32-width-tests: New file.
43610
43611         * lib/uniwidth/u32-width.c: New file.
43612         * modules/uniwidth/u32-width: New file.
43613
43614         * tests/uniwidth/test-u16-width.c: New file.
43615         * modules/uniwidth/u16-width-tests: New file.
43616
43617         * lib/uniwidth/u16-width.c: New file.
43618         * modules/uniwidth/u16-width: New file.
43619
43620         * tests/uniwidth/test-u8-width.c: New file.
43621         * modules/uniwidth/u8-width-tests: New file.
43622
43623         * lib/uniwidth/u8-width.c: New file.
43624         * modules/uniwidth/u8-width: New file.
43625
43626         * tests/uniwidth/test-uc_width.c: New file.
43627         * modules/uniwidth/width-tests: New file.
43628
43629         * lib/uniwidth/width.c: New file, from GNU libiconv.
43630         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
43631         * modules/uniwidth/width: New file.
43632
43633         * lib/uniwidth.h: New file, from GNU libiconv.
43634         * modules/uniwidth/base: New file.
43635
43636 2007-07-07  Bruno Haible  <bruno@clisp.org>
43637
43638         * lib/uniname.h: New file, from GNU gettext.
43639         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
43640         * lib/uniname/uninames.h: New file, from GNU gettext.
43641         * lib/uniname/uniname.c: New file, from GNU gettext.
43642         * tests/uniname/test-uninames.sh: New file.
43643         * tests/uniname/test-uninames.c: New file, from GNU gettext.
43644         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
43645         * modules/uniname/base: New file.
43646         * modules/uniname/uniname: New file.
43647         * modules/uniname/uniname-tests: New file.
43648         * MODULES.html.sh (Unicode string functions): Add the new modules.
43649
43650 2007-07-06  Bruno Haible  <bruno@clisp.org>
43651
43652         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
43653
43654 2007-07-06  Bruno Haible  <bruno@clisp.org>
43655
43656         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
43657         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
43658         includes <cygwin/sys_time.h> which includes <sys/select.h> which
43659         include <sys/time.h>.
43660         Reported by Eric Blake.
43661
43662 2007-07-06  Eric Blake  <ebb9@byu.net>
43663
43664         Fix testing canonicalize on cygwin.
43665         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
43666         Revert patch from 2007-06-19.
43667         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
43668         canonicalize module is also in use.
43669         * tests/test-canonicalize.c: New file.
43670         * tests/test-canonicalize.sh: Likewise.
43671         * modules/canonicalize-tests: Likewise.
43672
43673 2007-07-06  Jim Meyering  <jim@meyering.net>
43674
43675         * lib/getugroups.c (getugroups): Detect getgrent failure.
43676         Adjust comment to reflect reality: this function may return -1.
43677
43678 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
43679
43680         * build-aux/bootstrap (TP_URL,get_translations): Update to use
43681         the new TP address.
43682         (usage): Fix typo
43683         (gnulib_mk): New variable.
43684
43685 2007-07-05  Jim Meyering  <jim@meyering.net>
43686
43687         Don't let endgrent clobber errno, no matter how improbable.
43688         * lib/getugroups.c (getugroups): Save and restore errno around
43689         endgrent call.
43690
43691         Close the group DB even when failing with 2^31 or more members.
43692         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
43693
43694 2007-07-04  Jim Meyering  <jim@meyering.net>
43695
43696         * lib/getugroups.h: New file.
43697         * lib/getugroups.c: Include "getugroups.h".
43698         Remove uses of "register" keyword.
43699         Move local variable, "cp", down into scope where used.
43700         Give "username" parameter the "const" attribute.
43701         * modules/getugroups (Files): Add lib/getugroups.h
43702
43703 2007-07-04  Karl Berry  <karl@gnu.org>
43704
43705         * MODULES.html.sh (func_all_modules): Complete rename of
43706         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
43707
43708 2007-07-02  Bruno Haible  <bruno@clisp.org>
43709
43710         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
43711         mode, when inttypes.h comes from gnulib.
43712         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
43713
43714 2007-07-02  Simon Josefsson  <simon@josefsson.org>
43715
43716         * NEWS: Mention lgpl module name change.
43717
43718         * modules/lgpl-2.1: Renamed from lgpl.
43719
43720         * NEWS: Mention gpl module name change.
43721
43722         * modules/gpl-3.0: New file, based on gpl-2.0.
43723
43724         * modules/gpl-2.0: Renamed from gpl.
43725
43726         * modules/gpl: Fix filename, doc/gpl.texi is now found at
43727         doc/gpl-2.0.texi.
43728
43729 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
43730
43731         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
43732         #define __STDC_LIMIT_MACROS temporarily while including
43733         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
43734         Problem reported by Joel E. Denny in
43735         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
43736
43737 2007-07-01  Bruno Haible  <bruno@clisp.org>
43738
43739         * lib/unistdio.h: New file.
43740         * lib/unistdio/u-asnprintf.h: New file.
43741         * lib/unistdio/u-asprintf.h: New file.
43742         * lib/unistdio/u-printf-args.c: New file.
43743         * lib/unistdio/u-printf-args.h: New file.
43744         * lib/unistdio/u-printf-parse.h: New file.
43745         * lib/unistdio/u-snprintf.h: New file.
43746         * lib/unistdio/u-sprintf.h: New file.
43747         * lib/unistdio/u-vasprintf.h: New file.
43748         * lib/unistdio/u-vsnprintf.h: New file.
43749         * lib/unistdio/u-vsprintf.h: New file.
43750         * lib/unistdio/ulc-asnprintf.c: New file.
43751         * lib/unistdio/ulc-asprintf.c: New file.
43752         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
43753         * lib/unistdio/ulc-printf-parse.c: New file.
43754         * lib/unistdio/ulc-snprintf.c: New file.
43755         * lib/unistdio/ulc-sprintf.c: New file.
43756         * lib/unistdio/ulc-vasnprintf.c: New file.
43757         * lib/unistdio/ulc-vasprintf.c: New file.
43758         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
43759         * lib/unistdio/ulc-vsnprintf.c: New file.
43760         * lib/unistdio/ulc-vsprintf.c: New file.
43761         * lib/unistdio/u8-asnprintf.c: New file.
43762         * lib/unistdio/u8-asprintf.c: New file.
43763         * lib/unistdio/u8-printf-parse.c: New file.
43764         * lib/unistdio/u8-snprintf.c: New file.
43765         * lib/unistdio/u8-sprintf.c: New file.
43766         * lib/unistdio/u8-vasnprintf.c: New file.
43767         * lib/unistdio/u8-vasprintf.c: New file.
43768         * lib/unistdio/u8-vsnprintf.c: New file.
43769         * lib/unistdio/u8-vsprintf.c: New file.
43770         * lib/unistdio/u8-u8-asnprintf.c: New file.
43771         * lib/unistdio/u8-u8-asprintf.c: New file.
43772         * lib/unistdio/u8-u8-snprintf.c: New file.
43773         * lib/unistdio/u8-u8-sprintf.c: New file.
43774         * lib/unistdio/u8-u8-vasnprintf.c: New file.
43775         * lib/unistdio/u8-u8-vasprintf.c: New file.
43776         * lib/unistdio/u8-u8-vsnprintf.c: New file.
43777         * lib/unistdio/u8-u8-vsprintf.c: New file.
43778         * lib/unistdio/u16-asnprintf.c: New file.
43779         * lib/unistdio/u16-asprintf.c: New file.
43780         * lib/unistdio/u16-printf-parse.c: New file.
43781         * lib/unistdio/u16-snprintf.c: New file.
43782         * lib/unistdio/u16-sprintf.c: New file.
43783         * lib/unistdio/u16-vasnprintf.c: New file.
43784         * lib/unistdio/u16-vasprintf.c: New file.
43785         * lib/unistdio/u16-vsnprintf.c: New file.
43786         * lib/unistdio/u16-vsprintf.c: New file.
43787         * lib/unistdio/u16-u16-asnprintf.c: New file.
43788         * lib/unistdio/u16-u16-asprintf.c: New file.
43789         * lib/unistdio/u16-u16-snprintf.c: New file.
43790         * lib/unistdio/u16-u16-sprintf.c: New file.
43791         * lib/unistdio/u16-u16-vasnprintf.c: New file.
43792         * lib/unistdio/u16-u16-vasprintf.c: New file.
43793         * lib/unistdio/u16-u16-vsnprintf.c: New file.
43794         * lib/unistdio/u16-u16-vsprintf.c: New file.
43795         * lib/unistdio/u32-asnprintf.c: New file.
43796         * lib/unistdio/u32-asprintf.c: New file.
43797         * lib/unistdio/u32-printf-parse.c: New file.
43798         * lib/unistdio/u32-snprintf.c: New file.
43799         * lib/unistdio/u32-sprintf.c: New file.
43800         * lib/unistdio/u32-vasnprintf.c: New file.
43801         * lib/unistdio/u32-vasprintf.c: New file.
43802         * lib/unistdio/u32-vsnprintf.c: New file.
43803         * lib/unistdio/u32-vsprintf.c: New file.
43804         * lib/unistdio/u32-u32-asnprintf.c: New file.
43805         * lib/unistdio/u32-u32-asprintf.c: New file.
43806         * lib/unistdio/u32-u32-snprintf.c: New file.
43807         * lib/unistdio/u32-u32-sprintf.c: New file.
43808         * lib/unistdio/u32-u32-vasnprintf.c: New file.
43809         * lib/unistdio/u32-u32-vasprintf.c: New file.
43810         * lib/unistdio/u32-u32-vsnprintf.c: New file.
43811         * lib/unistdio/u32-u32-vsprintf.c: New file.
43812         * tests/unistdio/test-ulc-asnprintf1.c: New file.
43813         * tests/unistdio/test-ulc-asnprintf1.h: New file.
43814         * tests/unistdio/test-ulc-printf1.h: New file.
43815         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
43816         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
43817         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
43818         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
43819         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
43820         * tests/unistdio/test-ulc-vasprintf1.c: New file.
43821         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
43822         * tests/unistdio/test-ulc-vsprintf1.c: New file.
43823         * tests/unistdio/test-u8-asnprintf1.c: New file.
43824         * tests/unistdio/test-u8-asnprintf1.h: New file.
43825         * tests/unistdio/test-u8-printf1.h: New file.
43826         * tests/unistdio/test-u8-vasnprintf1.c: New file.
43827         * tests/unistdio/test-u8-vasnprintf2.c: New file.
43828         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
43829         * tests/unistdio/test-u8-vasnprintf3.c: New file.
43830         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
43831         * tests/unistdio/test-u8-vasprintf1.c: New file.
43832         * tests/unistdio/test-u8-vsnprintf1.c: New file.
43833         * tests/unistdio/test-u8-vsprintf1.c: New file.
43834         * tests/unistdio/test-u16-asnprintf1.c: New file.
43835         * tests/unistdio/test-u16-asnprintf1.h: New file.
43836         * tests/unistdio/test-u16-printf1.h: New file.
43837         * tests/unistdio/test-u16-vasnprintf1.c: New file.
43838         * tests/unistdio/test-u16-vasnprintf2.c: New file.
43839         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
43840         * tests/unistdio/test-u16-vasnprintf3.c: New file.
43841         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
43842         * tests/unistdio/test-u16-vasprintf1.c: New file.
43843         * tests/unistdio/test-u16-vsnprintf1.c: New file.
43844         * tests/unistdio/test-u16-vsprintf1.c: New file.
43845         * tests/unistdio/test-u32-asnprintf1.c: New file.
43846         * tests/unistdio/test-u32-asnprintf1.h: New file.
43847         * tests/unistdio/test-u32-printf1.h: New file.
43848         * tests/unistdio/test-u32-vasnprintf1.c: New file.
43849         * tests/unistdio/test-u32-vasnprintf2.c: New file.
43850         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
43851         * tests/unistdio/test-u32-vasnprintf3.c: New file.
43852         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
43853         * tests/unistdio/test-u32-vasprintf1.c: New file.
43854         * tests/unistdio/test-u32-vsnprintf1.c: New file.
43855         * tests/unistdio/test-u32-vsprintf1.c: New file.
43856         * modules/unistdio/base: New file.
43857         * modules/unistdio/u-printf-args: New file.
43858         * modules/unistdio/ulc-asnprintf: New file.
43859         * modules/unistdio/ulc-asprintf: New file.
43860         * modules/unistdio/ulc-fprintf: New file.
43861         * modules/unistdio/ulc-printf-parse: New file.
43862         * modules/unistdio/ulc-snprintf: New file.
43863         * modules/unistdio/ulc-sprintf: New file.
43864         * modules/unistdio/ulc-vasnprintf: New file.
43865         * modules/unistdio/ulc-vasprintf: New file.
43866         * modules/unistdio/ulc-vfprintf: New file.
43867         * modules/unistdio/ulc-vsnprintf: New file.
43868         * modules/unistdio/ulc-vsprintf: New file.
43869         * modules/unistdio/u8-asnprintf: New file.
43870         * modules/unistdio/u8-asprintf: New file.
43871         * modules/unistdio/u8-printf-parse: New file.
43872         * modules/unistdio/u8-snprintf: New file.
43873         * modules/unistdio/u8-sprintf: New file.
43874         * modules/unistdio/u8-vasnprintf: New file.
43875         * modules/unistdio/u8-vasprintf: New file.
43876         * modules/unistdio/u8-vsnprintf: New file.
43877         * modules/unistdio/u8-vsprintf: New file.
43878         * modules/unistdio/u8-u8-asnprintf: New file.
43879         * modules/unistdio/u8-u8-asprintf: New file.
43880         * modules/unistdio/u8-u8-snprintf: New file.
43881         * modules/unistdio/u8-u8-sprintf: New file.
43882         * modules/unistdio/u8-u8-vasnprintf: New file.
43883         * modules/unistdio/u8-u8-vasprintf: New file.
43884         * modules/unistdio/u8-u8-vsnprintf: New file.
43885         * modules/unistdio/u8-u8-vsprintf: New file.
43886         * modules/unistdio/u16-asnprintf: New file.
43887         * modules/unistdio/u16-asprintf: New file.
43888         * modules/unistdio/u16-printf-parse: New file.
43889         * modules/unistdio/u16-snprintf: New file.
43890         * modules/unistdio/u16-sprintf: New file.
43891         * modules/unistdio/u16-vasnprintf: New file.
43892         * modules/unistdio/u16-vasprintf: New file.
43893         * modules/unistdio/u16-vsnprintf: New file.
43894         * modules/unistdio/u16-vsprintf: New file.
43895         * modules/unistdio/u16-u16-asnprintf: New file.
43896         * modules/unistdio/u16-u16-asprintf: New file.
43897         * modules/unistdio/u16-u16-snprintf: New file.
43898         * modules/unistdio/u16-u16-sprintf: New file.
43899         * modules/unistdio/u16-u16-vasnprintf: New file.
43900         * modules/unistdio/u16-u16-vasprintf: New file.
43901         * modules/unistdio/u16-u16-vsnprintf: New file.
43902         * modules/unistdio/u16-u16-vsprintf: New file.
43903         * modules/unistdio/u32-asnprintf: New file.
43904         * modules/unistdio/u32-asprintf: New file.
43905         * modules/unistdio/u32-printf-parse: New file.
43906         * modules/unistdio/u32-snprintf: New file.
43907         * modules/unistdio/u32-sprintf: New file.
43908         * modules/unistdio/u32-vasnprintf: New file.
43909         * modules/unistdio/u32-vasprintf: New file.
43910         * modules/unistdio/u32-vsnprintf: New file.
43911         * modules/unistdio/u32-vsprintf: New file.
43912         * modules/unistdio/u32-u32-asnprintf: New file.
43913         * modules/unistdio/u32-u32-asprintf: New file.
43914         * modules/unistdio/u32-u32-snprintf: New file.
43915         * modules/unistdio/u32-u32-sprintf: New file.
43916         * modules/unistdio/u32-u32-vasnprintf: New file.
43917         * modules/unistdio/u32-u32-vasprintf: New file.
43918         * modules/unistdio/u32-u32-vsnprintf: New file.
43919         * modules/unistdio/u32-u32-vsprintf: New file.
43920         * modules/unistdio/ulc-asnprintf-tests: New file.
43921         * modules/unistdio/ulc-vasnprintf-tests: New file.
43922         * modules/unistdio/ulc-vasprintf-tests: New file.
43923         * modules/unistdio/ulc-vsnprintf-tests: New file.
43924         * modules/unistdio/ulc-vsprintf-tests: New file.
43925         * modules/unistdio/u8-asnprintf-tests: New file.
43926         * modules/unistdio/u8-vasnprintf-tests: New file.
43927         * modules/unistdio/u8-vasprintf-tests: New file.
43928         * modules/unistdio/u8-vsnprintf-tests: New file.
43929         * modules/unistdio/u8-vsprintf-tests: New file.
43930         * modules/unistdio/u16-asnprintf-tests: New file.
43931         * modules/unistdio/u16-vasnprintf-tests: New file.
43932         * modules/unistdio/u16-vasprintf-tests: New file.
43933         * modules/unistdio/u16-vsnprintf-tests: New file.
43934         * modules/unistdio/u16-vsprintf-tests: New file.
43935         * modules/unistdio/u32-asnprintf-tests: New file.
43936         * modules/unistdio/u32-vasnprintf-tests: New file.
43937         * modules/unistdio/u32-vasprintf-tests: New file.
43938         * modules/unistdio/u32-vsnprintf-tests: New file.
43939         * modules/unistdio/u32-vsprintf-tests: New file.
43940         * MODULES.html.sh (Unicode string functions): Add the new modules.
43941
43942 2007-07-01  Bruno Haible  <bruno@clisp.org>
43943
43944         * lib/sprintf.c (sprintf): Limit the available length estimation,
43945         to avoid address wraparound.
43946         * lib/vsprintf.c (vsprintf): Likewise.
43947         * modules/sprintf-posix (Dependencies): Add stdint.
43948         * modules/vsprintf-posix (Dependencies): Likewise.
43949
43950 2007-07-01  Bruno Haible  <bruno@clisp.org>
43951
43952         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
43953         Windows PATH as well. Conservative double-quoting. Comments.
43954
43955 2007-07-01  Bruno Haible  <bruno@clisp.org>
43956             Eric Blake  <ebb9@byu.net>
43957             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43958
43959         * gnulib-tool (self_abspathname): Fix algorithm to cope with
43960         empty components in $PATH, denoting '.'.
43961
43962 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43963
43964         * gnulib-tool: Fix indentation.
43965         (func_create_megatestdir): Likewise.
43966         Report by Bruno Haible.
43967
43968 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43969
43970         Sync from Automake.
43971         * build-aux/gnupload: Fix shell portability issues with for loops.
43972         Report by Karl Berry.
43973
43974 2007-06-29  Simon Josefsson  <simon@josefsson.org>
43975
43976         * build-aux/maint.mk (POURL): Use translationproject.org.
43977
43978 2007-06-27  Simon Josefsson  <simon@josefsson.org>
43979             Bruno Haible  <bruno@clisp.org>
43980
43981         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
43982         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
43983         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
43984         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
43985         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
43986
43987 2007-06-27  Bruno Haible  <bruno@clisp.org>
43988
43989         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
43990         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
43991
43992 2007-06-26  Karl Berry  <karl@gnu.org>
43993
43994         * MODULES.html.sh: remove xreadlink-with-size.
43995
43996 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
43997
43998         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
43999         method that I hope also handles the double-include problem noted
44000         by Bruno Haible in
44001         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
44002
44003 2007-06-23  Bruno Haible  <bruno@clisp.org>
44004
44005         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44006         Don't let the 'mostlyclean' target fail if the last subdirectory could
44007         not be removed.
44008         Reported by Karl Berry.
44009
44010 2007-06-23  Bruno Haible  <bruno@clisp.org>
44011
44012         * gnulib-tool (echo): Add a speedier workaround for ksh.
44013         * tests/test-echo.sh: Likewise.
44014
44015 2007-06-23  Bruno Haible  <bruno@clisp.org>
44016
44017         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
44018         * tests/test-echo.sh: Likewise.
44019
44020 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44021
44022         * gnulib-tool (IFS): Initialize early, so we don't set it to
44023         empty later.
44024         (self_abspathname): Rewrite algorithm to set it, reindent.
44025         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
44026         (func_create_megatestdir): Merge some sed scripts.
44027
44028 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
44029
44030         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
44031         exposed by Sun Studio 11 cc on Solaris 8.
44032
44033 2007-06-22  Bruno Haible  <bruno@clisp.org>
44034
44035         * gnulib-tool (echo): Ensure the echo primitive does not interpret
44036         backslashes.
44037         * tests/test-echo.sh: New file.
44038
44039 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44040
44041         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
44042         simplify `sed_replace_build_aux' scripts, they are portable but
44043         echoing them with `echo' is not.
44044         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
44045
44046 2007-06-21  Karl Berry  <karl@gnu.org>
44047
44048         * config/srclist.txt: guess we can't handle the licenses via
44049         srclist at the moment.
44050
44051 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
44052
44053         * MODULES.html.sh: Add include_next.
44054         * modules/include_next: New file.
44055
44056 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
44057
44058         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
44059         INCLUDE_NEXT.
44060         (gl_CHECK_NEXT_HEADERS): New macro.
44061         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
44062         the obsolescent gl_ABSOLUTE_HEADER.
44063         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
44064         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
44065         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
44066         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
44067         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
44068         * m4/math_h.m4 (gl_MATH_H): Likewise.
44069         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
44070         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
44071         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
44072         * m4/stdint.m4 (gl_STDINT_H): Likewise.
44073         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
44074         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
44075         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
44076         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44077         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
44078         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
44079         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
44080         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
44081         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
44082         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
44083         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
44084         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
44085         * m4/inttypes.m4 (gl_INTTYPES_H): Define
44086         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
44087         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
44088         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
44089         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
44090         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
44091         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
44092         * lib/float_.h: Likewise.
44093         * lib/inttypes_.h: Likewise.
44094         * lib/math_.h: Likewise.
44095         * lib/search_.h: Likewise.
44096         * lib/signal_.h: Likewise.
44097         * lib/stdint_.h: Likewise.
44098         * lib/stdio_.h: Likewise.
44099         * lib/stdlib_.h: Likewise.
44100         * lib/string_.h: Likewise.
44101         * lib/sys_stat_.h: Likewise.
44102         * lib/sys_time_.h: Likewise.
44103         * lib/time_.h: Likewise.
44104         * lib/unistd_.h: Likewise.
44105         * lib/wchar_.h: Likewise.
44106         * lib/wctype_.h: Likewise.
44107         * lib/dirent_.h: Likewise.
44108         * lib/iconv_.h: Likewise.
44109         * lib/locale_.h: Likewise.
44110         * lib/netinet_in_.h: Likewise.
44111         * lib/sys_select_.h: Likewise.
44112         * lib/sys_socket_.h: Likewise.
44113         * lib/sysexits_.h: Likewise.
44114         * modules/fcntl (Depends-on): Depend on include_next, not
44115         absolute_header.
44116         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
44117         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
44118         * modules/fchdir: Likewise.
44119         * modules/float: Likewise.
44120         * modules/iconv_open: Likewise.
44121         * modules/inttypes: Likewise.
44122         * modules/locale: Likewise.
44123         * modules/math: Likewise.
44124         * modules/netinet_in: Likewise.
44125         * modules/search: Likewise.
44126         * modules/signal: Likewise.
44127         * modules/stdint: Likewise.
44128         * modules/stdio: Likewise.
44129         * modules/stdlib: Likewise.
44130         * modules/string: Likewise.
44131         * modules/sys_select: Likewise.
44132         * modules/sys_socket: Likewise.
44133         * modules/sys_stat: Likewise.
44134         * modules/sys_time: Likewise.
44135         * modules/sysexits: Likewise.
44136         * modules/time: Likewise.
44137         * modules/unistd: Likewise.
44138         * modules/wchar: Likewise.
44139         * modules/wctype: Likewise.
44140         * modules/sys_stat: Change maintainer to "all".
44141         * modules/unistd: Likewise.
44142
44143 2007-06-20  Karl Berry  <karl@gnu.org>
44144
44145         * config/srclist.txt: track www changes in license files.
44146
44147 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
44148
44149         * build-aux/bootstrap: Remove stray dot.
44150         Make sure build_aux settings are honored when linking
44151         gnulib_extra_files.
44152
44153 2007-06-19  Eric Blake  <ebb9@byu.net>
44154
44155         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
44156         Allow compilation on cygwin.
44157
44158 2007-06-19  Jim Meyering  <jim@meyering.net>
44159
44160         xreadlink-with-size: Remove module.  No longer used.
44161         Ex-callers now use xreadlink or mreadlink-with-size.
44162         * modules/xreadlink-with-size: Remove module.
44163         * lib/xreadlink-with-size.c: Remove file.
44164         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
44165         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
44166         just before the function definition *is* accurate.
44167
44168         Eliminate one way canonicalize_filename_mode could exit.
44169         * lib/canonicalize.c (canonicalize_filename_mode):
44170         Use mreadlink_with_size, not xreadlink_with_size.
44171
44172 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
44173
44174         Detect porting problems to FreeBSD/arm, which has time_t wider than
44175         long int.  Original problem reported for GNU diff by Xin Li in
44176         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
44177         * modules/getdate (Depends-on): Add intprops, verify.
44178         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
44179         is an integer type no wider than long int.
44180
44181 2007-06-18  Jim Meyering  <jim@meyering.net>
44182
44183         New module: mreadlink-with-size.
44184         * MODULES.html.sh: Add mreadlink-with-size.
44185         * modules/mreadlink-with-size: New module
44186         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
44187         not xreadlink-with-size.
44188         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
44189
44190 2007-06-16  Bruno Haible  <bruno@clisp.org>
44191
44192         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
44193         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
44194         Reported by Gary V. Vaughan <gary@gnu.org>.
44195
44196 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
44197
44198         Revamp lchown so that it lives in unistd.h where it belongs.
44199         * lib/lchown.h: Remove.
44200         * lib/dirchownmod.c: Don't include lib/lchown.h.
44201         * lib/fchownat.c: Likewise.
44202         * lib/openat.c: Likewise.
44203         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
44204         does not follow symlinks.
44205         (EOPNOTSUPP): Define if not defined.
44206         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
44207         is defined to 0.
44208         (lchown): New decl.
44209         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
44210         Do not check for lchown decl.
44211         Set REPLACE_LCHOWN.
44212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
44213         REPLACE_LCHOWN.
44214         * modules/chown: Make it clear it follows symlinks.
44215         * modules/lchown: Make it clear it doesn't follow symlinks.
44216         (Files): Remove lib/lchown.h
44217         (Depends-on): Add unistd.
44218         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
44219         (Include): Include <unistd.h>, not "lchown.h".
44220         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
44221         REPLACE_LCHOWN.
44222
44223 2007-06-15  Jim Meyering  <jim@meyering.net>
44224
44225         Change license (GPL to LGPL) of fsusage and dependents.
44226         * modules/fsusage (License): Change to LGPL.
44227         * modules/full-read (License): Likewise.
44228         * modules/full-write (License): Likewise.
44229         * modules/safe-read (License): Likewise.
44230         * modules/safe-write (License): Likewise.
44231
44232 2007-06-14  Ben Pfaff  <blp@gnu.org>
44233
44234         Missing part of allocsa -> malloca transition.
44235         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
44236         gl_MALLOCA.
44237
44238 2007-06-12  Bruno Haible  <bruno@clisp.org>
44239
44240         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
44241         to ia64, x86_64, i386.
44242         Reported by Eric Blake.
44243
44244 2007-06-12  Bruno Haible  <bruno@clisp.org>
44245
44246         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
44247         cross-compiling to x86_64.
44248
44249 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
44250
44251         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
44252         glitch reported by Ralf Wildenhues in
44253         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
44254
44255         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
44256         Vin Shelton.
44257
44258 2007-06-11  Bruno Haible  <bruno@clisp.org>
44259
44260         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
44261         replacement string.
44262         Reported by Eric Blake.
44263
44264 2007-06-10  Bruno Haible  <bruno@clisp.org>
44265
44266         Prepare vasnprintf code for use with Unicode strings.
44267         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
44268         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
44269         TYPE_U32_STRING.
44270         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
44271         a_u32_string variants.
44272         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
44273         * lib/printf-args.c: Don't include config.h and the specification
44274         header if PRINTF_FETCHARGS is already defined.
44275         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
44276         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
44277         TYPE_U16_STRING, TYPE_U32_STRING.
44278         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
44279         u16_directive, u16_directives, u32_directive, u32_directives): New
44280         types.
44281         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
44282         New declarations.
44283         * lib/printf-parse.c: Don't include config.h and the specification
44284         header if PRINTF_PARSE is already defined. Eliminate the set of
44285         parameters for WIDE_CHAR_VERSION; the user of this file must provide
44286         them now. Include c-ctype.h.
44287         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
44288         directive and CHAR_T_ONLY_ASCII.
44289         * lib/vasnprintf.c: Don't include config.h and the specification header
44290         if VASNPRINTF is already defined.
44291         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
44292         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
44293         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
44294         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
44295         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
44296         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
44297         code accordingly.
44298         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
44299         pad_ourselves also in this case, with the 'c' and 's' directives, and
44300         with a different notion of "width".
44301         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
44302
44303 2007-06-10  Bruno Haible  <bruno@clisp.org>
44304
44305         * modules/unistr/u32-mbsnlen: New file.
44306         * lib/unistr/u32-mbsnlen.c: New file.
44307
44308         * modules/unistr/u16-mbsnlen: New file.
44309         * lib/unistr/u16-mbsnlen.c: New file.
44310
44311         * modules/unistr/u8-mbsnlen: New file.
44312         * lib/unistr/u8-mbsnlen.c: New file.
44313
44314         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
44315         declarations.
44316
44317 2007-06-10  Bruno Haible  <bruno@clisp.org>
44318
44319         * lib/string_.h (mbsnlen): New declaration.
44320         * lib/mbsnlen.c: New file.
44321         * m4/mbsnlen.m4: New file.
44322         * modules/mbsnlen: New file.
44323         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
44324         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
44325         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
44326
44327 2007-06-10  Bruno Haible  <bruno@clisp.org>
44328
44329         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
44330
44331 2007-06-10  Bruno Haible  <bruno@clisp.org>
44332
44333         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
44334         * lib/mbuiter.h: Likewise.
44335
44336 2007-06-10  Bruno Haible  <bruno@clisp.org>
44337
44338         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
44339         declaration.
44340
44341 2007-06-10  Karl Berry  <karl@gnu.org>
44342
44343         * config/srclist.txt: remove gettext entries, Bruno prefers
44344         to update individually.
44345
44346 2007-06-10  Bruno Haible  <bruno@clisp.org>
44347
44348         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
44349         'maxlen'. Ensure only length + width bytes are allocated, not
44350         length + 1 + width.
44351
44352 2007-06-09  Bruno Haible  <bruno@clisp.org>
44353
44354         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
44355         (CHAR_T): Remove macro.
44356         (VASNPRINTF): Update.
44357
44358 2007-06-09  Bruno Haible  <bruno@clisp.org>
44359
44360         * MODULES.html.sh (Unicode string functions): Add the new modules.
44361
44362         * modules/uniconv/u32-conv-to-enc: New file.
44363         * lib/uniconv/u32-conv-to-enc.c: New file.
44364         * modules/uniconv/u32-conv-to-enc-tests: New file.
44365         * tests/uniconv/test-u32-conv-to-enc.c: New file.
44366
44367         * modules/uniconv/u16-conv-to-enc: New file.
44368         * lib/uniconv/u16-conv-to-enc.c: New file.
44369         * lib/uniconv/u-conv-to-enc.h: New file.
44370         * modules/uniconv/u16-conv-to-enc-tests: New file.
44371         * tests/uniconv/test-u16-conv-to-enc.c: New file.
44372
44373         * modules/uniconv/u8-conv-to-enc: New file.
44374         * lib/uniconv/u8-conv-to-enc.c: New file.
44375         * modules/uniconv/u8-conv-to-enc-tests: New file.
44376         * tests/uniconv/test-u8-conv-to-enc.c: New file.
44377
44378         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44379         u32_conv_to_encoding): New declarations.
44380
44381 2007-06-09  Bruno Haible  <bruno@clisp.org>
44382
44383         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
44384
44385 2007-06-09  Bruno Haible  <bruno@clisp.org>
44386
44387         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
44388         * modules/malloca: Renamed from modules/allocsa, updated.
44389         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
44390         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
44391         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
44392         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
44393         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
44394         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
44395         * modules/xmalloca: Renamed from modules/xallocsa, updated.
44396         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
44397         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
44398         * modules/c-strcasestr (Depends-on): Update.
44399         * lib/c-strcasestr.c: Update.
44400         * modules/c-strstr (Depends-on): Update.
44401         * lib/c-strstr.c: Update.
44402         * modules/canonicalize-lgpl (Depends-on): Update.
44403         * lib/canonicalize-lgpl.c: Update.
44404         * modules/clean-temp (Depends-on): Update.
44405         * lib/clean-temp.c: Update.
44406         * modules/csharpcomp (Depends-on): Update.
44407         * lib/csharpcomp.c: Update.
44408         * modules/csharpexec (Depends-on): Update.
44409         * lib/csharpexec.c: Update.
44410         * modules/javacomp (Depends-on): Update.
44411         * lib/javacomp.c: Update.
44412         * modules/javaexec (Depends-on): Update.
44413         * lib/javaexec.c: Update.
44414         * modules/mbscasestr (Depends-on): Update.
44415         * lib/mbscasestr.c: Update.
44416         * modules/mbsstr (Depends-on): Update.
44417         * lib/mbsstr.c: Update.
44418         * modules/setenv (Depends-on): Update.
44419         * lib/setenv.c: Update.
44420         * modules/strcasestr (Depends-on): Update.
44421         * lib/strcasestr.c: Update.
44422         * modules/striconveha (Depends-on): Update.
44423         * lib/striconveha.c: Update.
44424         * modules/relocatable-prog-wrapper (Files): Update.
44425         * lib/relocwrapper.c: Update.
44426         * build-aux/install-reloc: Update.
44427         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
44428
44429 2007-06-08  Bruno Haible  <bruno@clisp.org>
44430
44431         Port to uClibc.
44432         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
44433         * lib/fpurge.c (fpurge): Likewise.
44434         * lib/freading.c (freading): Likewise.
44435         * lib/fseeko.c (rpl_fseeko): Likewise.
44436         * lib/fseterr.c (fseterr): Likewise.
44437         * lib/fwriting.c (fwriting): Likewise.
44438         * tests/test-fflush.c (main): Avoid a failure on uClibc.
44439
44440 2007-06-08  Bruno Haible  <bruno@clisp.org>
44441
44442         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
44443         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
44444         * modules/gettext (Files): Add m4/intlmacosx.m4.
44445
44446 2007-06-07  Bruno Haible  <bruno@clisp.org>
44447
44448         * modules/localename-tests: New file.
44449         * tests/test-localename.c: New file.
44450
44451         New module 'localename'.
44452         * lib/localename.h: New file.
44453         * lib/localename.c: New file, from GNU gettext.
44454         * m4/localename.m4: New file.
44455         * modules/localename: New file.
44456
44457 2007-06-07  Bruno Haible  <bruno@clisp.org>
44458
44459         Work around the lack of <wchar.h> on some builds of uClibc.
44460         * doc/headers/wchar.texi: Update.
44461         * lib/wchar_.h: Include <wchar.h> only if it exists.
44462         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
44463         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
44464         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
44465         doesn't exist.
44466         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
44467         * modules/mbfile (Depends-on): Add wchar.
44468         * modules/mbiter (Depends-on): Likewise.
44469         * modules/mbuiter (Depends-on): Likewise.
44470         Reported by Simon Josefsson.
44471
44472 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
44473
44474         Work around problem reported by Steven M. Schweda in
44475         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
44476         Tru64 5.1B with the Compaq compiler environment installed declares
44477         an 'isblank' function but does not define it in the C library.
44478         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
44479         * lib/regex_internal.h (isblank): Likewise.
44480         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
44481         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
44482
44483 2007-06-05  Bruno Haible  <bruno@clisp.org>
44484
44485         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
44486         ia64.
44487         * modules/printf-safe: New file.
44488         * modules/fprintf-posix (Depends-on): Add printf-safe.
44489         * modules/printf-posix (Depends-on): Likewise.
44490         * modules/snprintf-posix (Depends-on): Likewise.
44491         * modules/sprintf-posix (Depends-on): Likewise.
44492         * modules/vasnprintf-posix (Depends-on): Likewise.
44493         * modules/vasprintf-posix (Depends-on): Likewise.
44494         * modules/vfprintf-posix (Depends-on): Likewise.
44495         * modules/vprintf-posix (Depends-on): Likewise.
44496         * modules/vsnprintf-posix (Depends-on): Likewise.
44497         * modules/vsprintf-posix (Depends-on): Likewise.
44498         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
44499         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
44500         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
44501         "no" on i386, x86_64, ia64.
44502         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
44503         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
44504         on i386, x86_64, ia64.
44505         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
44506         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
44507         on i386, x86_64, ia64.
44508         * tests/test-vasnprintf-posix.c: Include float.h.
44509         (LDBL80_WORDS): New macro.
44510         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
44511         on i386, x86_64, ia64.
44512         * tests/test-vasprintf-posix.c: Include float.h.
44513         (LDBL80_WORDS): New macro.
44514         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
44515         on i386, x86_64, ia64.
44516         * tests/test-snprintf-posix.c: Include float.h.
44517         * tests/test-sprintf-posix.c: Likewise.
44518         * tests/test-vsnprintf-posix.c: Likewise.
44519         * tests/test-vsprintf-posix.c: Likewise.
44520
44521 2007-06-05  Bruno Haible  <bruno@clisp.org>
44522
44523         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
44524         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
44525         non-IEEE numbers on i386, x86_64, ia64.
44526         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
44527         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
44528         * tests/test-isnanl.h: Include float.h.
44529         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
44530
44531 2007-06-05  Bruno Haible  <bruno@clisp.org>
44532
44533         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
44534         also the %a / %A. Handle the %a / %A code before this extra handling.
44535
44536 2007-06-05  Bruno Haible  <bruno@clisp.org>
44537
44538         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
44539         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
44540
44541 2007-06-05  Bruno Haible  <bruno@clisp.org>
44542
44543         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
44544         typo in variable name.
44545
44546 2007-06-05  Eric Blake  <ebb9@byu.net>
44547
44548         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
44549         Reported by Simon Josefsson.
44550
44551 2007-06-04  Bruno Haible  <bruno@clisp.org>
44552
44553         Avoid test failures on some PowerPC platforms.
44554         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
44555         Define differently for PowerPC.
44556         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
44557         Reported by Gary V. Vaughan <gary@gnu.org>.
44558
44559 2007-06-02  Bruno Haible  <bruno@clisp.org>
44560
44561         Fix test-stdint failure on FreeBSD/ia64.
44562         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
44563         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
44564         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
44565         * doc/headers/stdint.texi: Update.
44566
44567 2007-06-01  Bruno Haible  <bruno@clisp.org>
44568
44569         * tests/test-binary-io.c (main): Pass a third argument to open().
44570         Reported by Gary V. Vaughan <gary@gnu.org>.
44571
44572 2007-06-01  Bruno Haible  <bruno@clisp.org>
44573
44574         * doc/functions/frexpl.texi: Update for mingw.
44575
44576 2007-06-01  Bruno Haible  <bruno@clisp.org>
44577
44578         * tests/test-lseek.c (main): Disable test of errno for invalid third
44579         argument.
44580         * doc/functions/lseek.texi: Update.
44581         Reported by Gary V. Vaughan <gary@gnu.org>.
44582
44583 2007-05-28  Bruno Haible  <bruno@clisp.org>
44584
44585         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
44586
44587 2007-05-31  Eric Blake  <ebb9@byu.net>
44588
44589         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
44590         cross compiling.
44591
44592 2007-05-30  Eric Blake  <ebb9@byu.net>
44593         and Bruno Haible  <bruno@clisp.org>
44594
44595         Work around mingw test failures exposed by m4-1.4.9b.
44596         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
44597         * tests/test-unistd.c: Disable uid_t and git_t tests for the
44598         moment.
44599
44600 2007-05-30  Bruno Haible  <bruno@clisp.org>
44601
44602         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
44603         assuming that they are closed. Needed on HP-UX 11.
44604
44605 2007-05-29  Bruno Haible  <bruno@clisp.org>
44606
44607         Fix a problem with #include_next.
44608         * lib/dirent_.h: Split the double-inclusion guard.
44609         * lib/fcntl_.h: Likewise.
44610         * lib/float_.h: Likewise.
44611         * lib/iconv_.h: Likewise.
44612         * lib/inttypes_.h: Likewise.
44613         * lib/locale_.h: Likewise.
44614         * lib/math_.h: Likewise.
44615         * lib/netinet_in_.h: Likewise.
44616         * lib/search_.h: Likewise.
44617         * lib/signal_.h: Likewise.
44618         * lib/stdint_.h: Likewise.
44619         * lib/stdio_.h: Likewise.
44620         * lib/stdlib_.h: Likewise.
44621         * lib/string_.h: Likewise.
44622         * lib/sys_select_.h: Likewise.
44623         * lib/sys_socket_.h: Likewise.
44624         * lib/sys_stat_.h: Likewise.
44625         * lib/sys_time_.h: Likewise.
44626         * lib/sysexits_.h: Likewise.
44627         * lib/time_.h: Likewise.
44628         * lib/unistd_.h: Likewise.
44629         * lib/wchar_.h: Likewise.
44630         * lib/wctype_.h: Likewise.
44631
44632 2007-05-29  Bruno Haible  <bruno@clisp.org>
44633
44634         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
44635         for the moment.
44636
44637 2007-05-29  Bruno Haible  <bruno@clisp.org>
44638
44639         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
44640         invocation.
44641         Reported by Eric Blake.
44642
44643 2007-05-29  Bruno Haible  <bruno@clisp.org>
44644
44645         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
44646         compiling case.
44647
44648 2007-05-29  Eric Blake  <ebb9@byu.net>
44649             Bruno Haible  <bruno@clisp.org>
44650
44651         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
44652         cross compiles.
44653
44654 2007-05-28  Eric Blake  <ebb9@byu.net>
44655
44656         * modules/closein-tests (test_closein_LDADD): Support test on
44657         cygwin with libtool.
44658
44659 2007-05-28  Bruno Haible  <bruno@clisp.org>
44660
44661         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
44662         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
44663         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
44664         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
44665         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
44666         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
44667         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
44668         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
44669         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
44670
44671 2007-05-28  Eric Blake  <ebb9@byu.net>
44672
44673         Unconditionally include <config.h> in unit tests.
44674         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
44675         * tests/test-allocsa.c, tests/test-arcfour.c,
44676         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
44677         tests/test-array_list.c, tests/test-array_oset.c,
44678         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
44679         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
44680         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
44681         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
44682         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
44683         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
44684         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
44685         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
44686         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
44687         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
44688         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
44689         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
44690         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
44691         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
44692         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
44693         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
44694         test-md5.c, test-memmem.c, test-printf-posix.c,
44695         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
44696         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
44697         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
44698         test-strcasestr.c, test-striconv.c, test-striconveh.c,
44699         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
44700         test-vasnprintf-posix2.c, test-vasnprintf.c,
44701         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
44702         test-vfprintf-posix.c, test-vprintf-posix.c,
44703         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
44704         test-xvasprintf.c: Likewise.
44705
44706 2007-05-28  Bruno Haible  <bruno@clisp.org>
44707
44708         * gnulib-tool (func_import): Remember the --with-tests command-line
44709         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
44710         Reported by Eric Blake.
44711
44712 2007-05-28  Bruno Haible  <bruno@clisp.org>
44713
44714         * modules/ftell-tests: New file.
44715         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
44716         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
44717
44718         * lib/ftell.c: New file.
44719         * modules/ftell: New file.
44720         * m4/ftell.m4: New file.
44721         * doc/functions/ftell.texi: Update.
44722         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
44723         REPLACE_FTELL.
44724         * lib/stdio_.h (rpl_ftell): New declaration.
44725         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
44726         REPLACE_FTELL.
44727
44728 2007-05-28  Eric Blake  <ebb9@byu.net>
44729
44730         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
44731
44732 2007-05-28  Bruno Haible  <bruno@clisp.org>
44733
44734         * modules/fseek-tests: New file.
44735         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
44736         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
44737
44738         * lib/fseek.c: New file.
44739         * modules/fseek: New file.
44740         * m4/fseek.m4: New file.
44741         * doc/functions/fseek.texi: Update.
44742         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
44743         REPLACE_FSEEK.
44744         * lib/stdio_.h (rpl_fseek): New declaration.
44745         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
44746         REPLACE_FSEEK.
44747
44748 2007-05-28  Bruno Haible  <bruno@clisp.org>
44749
44750         * lib/stdio_.h (fflush): More comments.
44751
44752 2007-05-28  Bruno Haible  <bruno@clisp.org>
44753
44754         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
44755         runtime test.
44756
44757 2007-05-28  Eric Blake  <ebb9@byu.net>
44758
44759         Improve lseek module.
44760         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
44761         * lib/unistd_.h (lseek): Scale back link warning message.
44762         * tests/test-lseek.c: Beef up test.
44763         * tests/test-lseek.sh: Exercise more facets of lseek.
44764         Reported by Bruno Haible.
44765
44766 2007-05-28  Bruno Haible  <bruno@clisp.org>
44767
44768         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
44769         to define.
44770
44771 2007-05-27  Bruno Haible  <bruno@clisp.org>
44772
44773         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
44774
44775 2007-05-27  Bruno Haible  <bruno@clisp.org>
44776
44777         * modules/openmp: New file.
44778         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
44779         Noah Misch.
44780
44781 2007-05-26  Bruno Haible  <bruno@clisp.org>
44782
44783         * modules/chdir-long (Depends-on): Add fchdir.
44784         * modules/chdir-safer (Depends-on): Likewise.
44785         * modules/fts (Depends-on): Likewise.
44786         * modules/fts-lgpl (Depends-on): Likewise.
44787         * modules/openat (Depends-on): Likewise.
44788         * modules/savewd (Depends-on): Likewise.
44789
44790 2007-05-24  Eric Blake  <ebb9@byu.net>
44791
44792         Fix lseek on mingw.
44793         * modules/lseek: New module.
44794         * m4/lseek.m4: New file.
44795         * lib/lseek.c: New file.
44796         * modules/lseek-tests: New file.
44797         * tests/test-lseek.c: New file.
44798         * tests/test-lseek.sh: New file.
44799         * MODULES.html.sh: Document lseek module.
44800         * modules/fflush (Depends-on): Add lseek, fseeko.
44801         * modules/fseeko (Depends-on): Likewise.
44802         * modules/ftello (Depends-on): Likewise.
44803         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
44804         broken.
44805         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
44806         broken.
44807         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
44808         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
44809         * lib/ftello.c (rpl_ftello): Likewise.
44810         * tests/test-fseeko.c (main): Test this.
44811         * tests/test-fseeko.sh: Likewise.
44812         * tests/test-ftello.c (main): Likewise.
44813         * tests/test-ftello.sh: Likewise.
44814         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
44815         implies replacing fseek.
44816         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
44817         HAVE_FTELLO.
44818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
44819         * modules/unistd (Makefile.am): Likewise.
44820         * lib/unistd_.h (lseek): Declare a replacement.
44821         * doc/functions/lseek.texi (lseek): Document this fix.
44822         * doc/functions/fseek.texi (fseek): Likewise.
44823         * doc/functions/ftell.texi (ftell): Likewise.
44824
44825 2007-05-24  Bruno Haible  <bruno@clisp.org>
44826
44827         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
44828         in the printed representation of a NaN.
44829         * tests/test-vasprintf-posix.c (test_function): Likewise.
44830         * tests/test-snprintf-posix.h (test_function): Likewise.
44831         * tests/test-sprintf-posix.h (test_function): Likewise.
44832         Reported by Eric Blake.
44833
44834 2007-05-23  Eric Blake  <ebb9@byu.net>
44835
44836         Fix fseeko/ftello on cygwin 1.5.24.
44837         * doc/functions/fseeko.texi (fseeko): Document the fix.
44838         * doc/functions/ftello.texi (ftello): Document the fix.
44839         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
44840         * doc/functions/stdout.text (stdout): New file.
44841         * doc/functions/stderr.text (stderr): New file.
44842         * doc/gnulib.texi (Function Substitutes): Use new files.
44843         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
44844         prior to 1.7.0.
44845         * tests/test-ftello.c (main): Likewise for ftello.
44846         * tests/test-fseeko.sh: New file.
44847         * tests/test-ftello.sh: New file.
44848         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
44849         with seekable stdin.
44850         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
44851         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
44852         (gl_REPLACE_FSEEKO): New macro.
44853         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
44854         * modules/fseeko (Files): Distribute fseeko.c.
44855         * modules/ftello (Files): Distribute ftello.c.
44856         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
44857         mode.
44858         * lib/ftello.c (rpl_ftello): New file.
44859         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
44860         fseeko, ftello.
44861         (gl_STDIN_LARGE_OFFSET): New macro.
44862         * modules/stdio (Makefile.am): Perform the replacement.
44863         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
44864
44865 2007-05-23  Bruno Haible  <bruno@clisp.org>
44866
44867         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
44868         GNULIB_POSIXCHECK is defined.
44869
44870 2007-05-21  Bruno Haible  <bruno@clisp.org>
44871
44872         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
44873         Check also the output for NaN arguments. When cross-compiling, guess
44874         no on IRIX.
44875         * lib/vasnprintf.c: Update comments.
44876         * tests/test-vasnprintf-posix.c (strisnan): New function.
44877         (test_function): Use it.
44878         * tests/test-vasprintf-posix.c (strisnan): New function.
44879         (test_function): Use it.
44880         * tests/test-snprintf-posix.h (strisnan): New function.
44881         (test_function): Use it.
44882         * tests/test-sprintf-posix.h (strisnan): New function.
44883         (test_function): Use it.
44884         Reported by Eric Blake.
44885
44886 2007-05-20  Bruno Haible  <bruno@clisp.org>
44887
44888         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
44889         numbers that fails on BeOS.
44890         * doc/functions/frexpl.texi: Update.
44891
44892 2007-05-20  Jim Meyering  <jim@meyering.net>
44893
44894         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
44895         forced upon us by glibc-2.6.
44896
44897 2007-05-20  Bruno Haible  <bruno@clisp.org>
44898
44899         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
44900         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
44901         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
44902         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
44903         NEED_PRINTF_INFINITE.
44904         (is_infinitel): New function.
44905         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
44906         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
44907         gl_PREREQ_VASNPRINTF_INFINITE.
44908         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
44909         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44910         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
44911         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
44912         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
44913         gl_PREREQ_VASNPRINTF_INFINITE.
44914         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44915         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44916         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44917         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44918         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44919         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44920         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44921         * doc/functions/fprintf.texi: Update.
44922         * doc/functions/printf.texi: Update.
44923         * doc/functions/snprintf.texi: Update.
44924         * doc/functions/sprintf.texi: Update.
44925         * doc/functions/vfprintf.texi: Update.
44926         * doc/functions/vprintf.texi: Update.
44927         * doc/functions/vsnprintf.texi: Update.
44928         * doc/functions/vsprintf.texi: Update.
44929
44930 2007-05-20  Bruno Haible  <bruno@clisp.org>
44931
44932         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
44933         was not found in libc.
44934         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
44935
44936 2007-05-20  Bruno Haible  <bruno@clisp.org>
44937
44938         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
44939         printed as "-nan" instead of "nan".
44940         * tests/test-vasprintf-posix.c (test_function): Likewise.
44941         * tests/test-snprintf-posix.h (test_function): Likewise.
44942         * tests/test-sprintf-posix.h (test_function): Likewise.
44943         Needed for HP-UX 11.
44944
44945 2007-05-20  Jim Meyering  <jim@meyering.net>
44946
44947         Fix buggy test for the fchownat-deref bug.
44948         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
44949         symlink required for the run-test.  Without it, this test would
44950         always declare that fchownat doesn't work, and client code would
44951         unnecessarily use the replacement function with fixed libc.
44952         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
44953         Reported by Greg Schafer.
44954
44955 2007-05-19  Bruno Haible  <bruno@clisp.org>
44956
44957         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
44958         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
44959         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
44960         Needed for IRIX 6.5 and Solaris 2.5.1.
44961
44962 2007-05-19  Bruno Haible  <bruno@clisp.org>
44963
44964         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
44965         (test_function): Skip tests involving -0.0 on platforms where
44966         -0.0 = 0.0.
44967         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
44968         (test_function): Skip tests involving -0.0 on platforms where
44969         -0.0 = 0.0.
44970         * tests/test-snprintf-posix.h (have_minus_zero): New function.
44971         (test_function): Skip tests involving -0.0 on platforms where
44972         -0.0 = 0.0.
44973         * tests/test-sprintf-posix.h (have_minus_zero): New function.
44974         (test_function): Skip tests involving -0.0 on platforms where
44975         -0.0 = 0.0.
44976         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
44977         tests.
44978         * tests/test-printf-posix.h (test_function): Likewise.
44979         * tests/test-printf-posix.output: Remove all -0.0 related results.
44980         Needed for IRIX 6.5.
44981
44982 2007-05-19  Bruno Haible  <bruno@clisp.org>
44983
44984         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
44985         printed as "nan0x7fffffff" instead of "nan".
44986         * tests/test-vasprintf-posix.c (test_function): Likewise.
44987         * tests/test-snprintf-posix.h (test_function): Likewise.
44988         * tests/test-sprintf-posix.h (test_function): Likewise.
44989         * tests/test-fprintf-posix.h (NaN): Remove macro.
44990         (test_function): Remove all NaN related tests.
44991         * tests/test-printf-posix.h (NaN): Remove macro.
44992         (test_function): Remove all NaN related tests.
44993         * tests/test-printf-posix.output: Remove all NaN related results.
44994         Needed for IRIX 6.5.
44995
44996 2007-05-19  Bruno Haible  <bruno@clisp.org>
44997
44998         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
44999         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
45000
45001 2007-05-19  Bruno Haible  <bruno@clisp.org>
45002
45003         * lib/float_.h: New file.
45004         * m4/float_h.m4: New file.
45005         * modules/float: New file.
45006         * modules/isnanl (Dependencies): Add float.
45007         * modules/isnanl-nolibm (Dependencies): Likewise.
45008         * modules/mathl (Dependencies): Likewise.
45009         * modules/printf-frexpl (Dependencies): Likewise.
45010         * modules/signbit (Dependencies): Likewise.
45011         * modules/vasnprintf (Dependencies): Likewise.
45012         * doc/headers/float.texi: Update.
45013
45014 2007-05-19  Jim Meyering  <jim@meyering.net>
45015
45016         * lib/utimens.c (gl_futimens): Rename from futimens,
45017         now that glibc-2.6 declares futimens.
45018         * lib/utimens.h: Likewise.
45019
45020 2007-05-19  Bruno Haible  <bruno@clisp.org>
45021
45022         Avoid test failures on mingw.
45023         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
45024         * tests/test-printf-posix.sh: Likewise.
45025         * tests/test-vfprintf-posix.sh: Likewise.
45026         * tests/test-vprintf-posix.sh: Likewise.
45027
45028 2007-05-19  Bruno Haible  <bruno@clisp.org>
45029
45030         Fix *printf result for NaN, Inf, -0.0 on mingw.
45031         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
45032         * lib/vasnprintf.c: Include math.h and isnan.h.
45033         (is_infinite_or_zero): New function.
45034         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
45035         values in the %f, %F, %e, %E, %g, %G directives.
45036         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
45037         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45038         gl_PRINTF_INFINITE and test its result. Invoke
45039         gl_PREREQ_VASNPRINTF_INFINITE.
45040         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45041         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45042         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45043         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45044         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45045         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45046         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45047         * doc/functions/fprintf.texi: Update.
45048         * doc/functions/printf.texi: Update.
45049         * doc/functions/snprintf.texi: Update.
45050         * doc/functions/sprintf.texi: Update.
45051         * doc/functions/vfprintf.texi: Update.
45052         * doc/functions/vprintf.texi: Update.
45053         * doc/functions/vsnprintf.texi: Update.
45054         * doc/functions/vsprintf.texi: Update.
45055
45056 2007-05-19  Bruno Haible  <bruno@clisp.org>
45057
45058         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
45059         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
45060         Instead of multiplying with 10^k, set extra_zeroes to k.
45061         (scale10_round_long_double): Remove function.
45062
45063 2007-05-18  Bruno Haible  <bruno@clisp.org>
45064
45065         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
45066         introduced on 2007-05-06.
45067
45068 2007-05-18  Bruno Haible  <bruno@clisp.org>
45069
45070         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
45071         %g directives.
45072         * tests/test-vasprintf-posix.c (test_function): Likewise.
45073         * tests/test-snprintf-posix.h (test_function): Likewise.
45074         * tests/test-sprintf-posix.h (test_function): Likewise.
45075
45076 2007-05-18  Bruno Haible  <bruno@clisp.org>
45077
45078         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
45079         (strmatch): New function.
45080         (test_function): Test the %f directive on numbers of various exponents.
45081         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
45082         (strmatch): New function.
45083         (test_function): Test the %f directive on numbers of various exponents.
45084         * tests/test-snprintf-posix.h (strmatch): New function.
45085         (test_function): Test the %f directive on numbers of various exponents.
45086         * tests/test-sprintf-posix.h (strmatch): New function.
45087         (test_function): Test the %f directive on numbers of various exponents.
45088         * tests/test-snprintf-posix.c (SIZEOF): New macro.
45089         * tests/test-sprintf-posix.c (SIZEOF): New macro.
45090         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
45091         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
45092
45093 2007-05-18  Bruno Haible  <bruno@clisp.org>
45094
45095         Add support for 'long double' number output.
45096         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
45097         * lib/vasnprintf.c: Include math.h and float+.h.
45098         (mp_limb_t): New type.
45099         (GMP_LIMB_BITS): New macro.
45100         (mp_twolimb_t): New type.
45101         (GMP_TWOLIMB_BITS): New macro.
45102         (mpn_t): New type.
45103         (multiply, divide, convert_to_decimal, decode_long_double,
45104         scale10_round_long_double, scale10_round_decimal_long_double,
45105         floorlog10l): New functions.
45106         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
45107         for the %f, %F, %e, %E, %g, %G directives.
45108         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
45109         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45110         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
45111         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
45112         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45113         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45114         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45115         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45116         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45117         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45118         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45119         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
45120         * modules/snprintf-posix (Depends-on): Likewise.
45121         * modules/sprintf-posix (Depends-on): Likewise.
45122         * modules/vasnprintf-posix (Depends-on): Likewise.
45123         * modules/vasprintf-posix (Depends-on): Likewise.
45124         * modules/vfprintf-posix (Depends-on): Likewise.
45125         * modules/vsnprintf-posix (Depends-on): Likewise.
45126         * modules/vsprintf-posix (Depends-on): Likewise.
45127         * modules/vasnprintf (Files): Add lib/float+.h.
45128         * doc/functions/fprintf.texi: Update.
45129         * doc/functions/printf.texi: Update.
45130         * doc/functions/snprintf.texi: Update.
45131         * doc/functions/sprintf.texi: Update.
45132         * doc/functions/vfprintf.texi: Update.
45133         * doc/functions/vprintf.texi: Update.
45134         * doc/functions/vsnprintf.texi: Update.
45135         * doc/functions/vsprintf.texi: Update.
45136
45137 2007-05-18  Bruno Haible  <bruno@clisp.org>
45138
45139         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
45140
45141 2007-05-18  Bruno Haible  <bruno@clisp.org>
45142
45143         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
45144         for printing 64-bit integers. Needed for mingw.
45145
45146 2007-05-18  Bruno Haible  <bruno@clisp.org>
45147
45148         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
45149         gl_FUNC_FREXPL_WORKS.
45150         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
45151
45152 2007-05-18  Bruno Haible  <bruno@clisp.org>
45153
45154         * modules/frexpl-nolibm-tests: New file.
45155
45156         * modules/frexpl-nolibm: New file.
45157         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
45158
45159 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
45160
45161         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
45162         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
45163         GCC 4.2, which otherwise issues a lot of warnings.
45164         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
45165         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
45166         Likewise.
45167         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
45168         * modules/iconv_open (iconv.h): Likewise.
45169         * modules/locale (locale.h): Likewise.
45170         * modules/netinet_in (netinet/in.h): Likewise.
45171         * modules/sys_select (sys_select.h): Likewise.
45172         * modules/sys_socket (sys/socket.h): Likewise.
45173         * modules/sys_stat (sys/stat.h): Likewise.
45174         * modules/sysexits (sysexits.h): Likewise.
45175         * modules/unistd (unistd.h): Likewise.
45176
45177 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45178
45179         * modules/closein-tests (Makefile.am): Distribute
45180         `test-closein.sh'.
45181
45182 2007-05-17  Bruno Haible  <bruno@clisp.org>
45183
45184         * tests/test-printf-posix.output: Renamed from
45185         tests/test-fprintf-posix.out.
45186         * modules/fprintf-posix-tests: Update.
45187         * modules/printf-posix-tests: Update.
45188         * modules/vfprintf-posix-tests: Update.
45189         * modules/vprintf-posix-tests: Update.
45190         * tests/test-fprintf-posix.sh: Update.
45191         * tests/test-printf-posix.sh: Update.
45192         * tests/test-vfprintf-posix.sh: Update.
45193         * tests/test-vprintf-posix.sh: Update.
45194         Reported by Ralf Wildenhues.
45195
45196 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
45197
45198         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
45199         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
45200         GCC 4.2, which otherwise issues a lot of warnings.
45201         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
45202         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
45203         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
45204         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
45205         it should no longer be needed.
45206         * lib/string_.h: Likewise.
45207         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
45208         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
45209         * modules/inttypes (inttypes.h): Likewise.
45210         * modules/math (math.h): Likewise.
45211         * modules/search (search.h): Likewise.
45212         * modules/signal (signal.h): Likewise.
45213         * modules/stdint (stdint.h): Likewise.
45214         * modules/stdio (stdio.h): Likewise.
45215         * modules/stdlib (stdlib.h): Likewise.
45216         * modules/string (string.h): Likewise.
45217         * modules/sys_time (sys/time.h): Likewise.
45218         * modules/time (time.h): Likewise.
45219         * modules/wchar (wchar.h): Likewise.
45220         * modules/wctype (wtype.h): Likewise.
45221
45222 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
45223
45224         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
45225
45226 2007-05-13  Bruno Haible  <bruno@clisp.org>
45227
45228         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
45229         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45230         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
45231         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45232         (gl_PREREQ_STRTOK_R): Don't require it here.
45233
45234 2007-05-13  Bruno Haible  <bruno@clisp.org>
45235
45236         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
45237         when used in C++ mode.
45238
45239 2007-05-12  Bruno Haible  <bruno@clisp.org>
45240
45241         * lib/linebuffer.h: Tweak doc.
45242         * lib/linebuffer.c: Likewise.
45243
45244 2007-05-12  James Youngman  <jay@gnu.org>
45245
45246         * lib/linebuffer.c (readlinebuffer_delim): New function,
45247         like readlinebuffer, but use a caller-specified delimiter.
45248         (readlinebuffer): Just call readlinebuffer_delim with '\n'
45249         as the delimiter.
45250         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
45251
45252 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45253
45254         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
45255         * modules/openat (Files): Remove openat-die.c.
45256         (Depends-on): Add openat-die.
45257         * modules/openat-die: New module.
45258
45259 2007-05-06  Bruno Haible  <bruno@clisp.org>
45260
45261         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
45262         Update with info about Cygwin.
45263         * doc/functions/fprintf.texi: Update.
45264         * doc/functions/printf.texi: Update.
45265         * doc/functions/snprintf.texi: Update.
45266         * doc/functions/sprintf.texi: Update.
45267         * doc/functions/vfprintf.texi: Update.
45268         * doc/functions/vprintf.texi: Update.
45269         * doc/functions/vsnprintf.texi: Update.
45270         * doc/functions/vsprintf.texi: Update.
45271         Reported by Eric Blake.
45272
45273 2007-05-06  Bruno Haible  <bruno@clisp.org>
45274
45275         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
45276         padding ourselves for the floating-point directives.
45277         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
45278         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
45279         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45280         gl_PRINTF_FLAG_ZERO and test its result. Invoke
45281         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
45282         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45283         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
45284         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45285         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45286         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45287         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45288         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45289         * tests/test-snprintf-posix.h (test_function): Also check the width
45290         and some flags in the %f directive.
45291         * tests/test-sprintf-posix.h (test_function): Likewise.
45292         * tests/test-vasnprintf-posix.c (test_function): Likewise.
45293         * tests/test-vasprintf-posix.c (test_function): Likewise.
45294         * doc/functions/fprintf.texi: Update.
45295         * doc/functions/printf.texi: Update.
45296         * doc/functions/snprintf.texi: Update.
45297         * doc/functions/sprintf.texi: Update.
45298         * doc/functions/vfprintf.texi: Update.
45299         * doc/functions/vprintf.texi: Update.
45300         * doc/functions/vsnprintf.texi: Update.
45301         * doc/functions/vsprintf.texi: Update.
45302
45303 2007-05-06  Bruno Haible  <bruno@clisp.org>
45304
45305         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
45306         pass the ' flag character to sprintf or snprintf.
45307         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
45308         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
45309         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45310         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
45311         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
45312         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45313         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
45314         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45315         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45316         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45317         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45318         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45319         * tests/test-snprintf-posix.h (test_function): Also check the grouping
45320         flag.
45321         * tests/test-sprintf-posix.h (test_function): Likewise.
45322         * tests/test-vasnprintf-posix.c (test_function): Likewise.
45323         * tests/test-vasprintf-posix.c (test_function): Likewise.
45324         * doc/functions/fprintf.texi: Update.
45325         * doc/functions/printf.texi: Update.
45326         * doc/functions/snprintf.texi: Update.
45327         * doc/functions/sprintf.texi: Update.
45328         * doc/functions/vfprintf.texi: Update.
45329         * doc/functions/vprintf.texi: Update.
45330         * doc/functions/vsnprintf.texi: Update.
45331         * doc/functions/vsprintf.texi: Update.
45332
45333 2007-05-01  Bruno Haible  <bruno@clisp.org>
45334
45335         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
45336
45337 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
45338
45339         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
45340         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
45341
45342 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
45343
45344         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
45345         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
45346         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
45347
45348 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
45349
45350         * lib/argp-help.c (struct hol_entry): New member `ord'.
45351         (HOL_ENTRY_PTRCMP): Use ord for comparison
45352         (hol_sort): Initialize ord.
45353
45354 2007-05-01  Bruno Haible  <bruno@clisp.org>
45355
45356         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
45357         Reported by Eric Blake.
45358         * doc/gnulib.texi (Function Substitutes): Update.
45359
45360 2007-05-01  Bruno Haible  <bruno@clisp.org>
45361
45362         * doc/functions.texi: Remove file, now redundant through
45363         doc/functions/*.texi.
45364
45365 2007-05-01  Bruno Haible  <bruno@clisp.org>
45366
45367         * modules/argp (Depends-on): Add sleep.
45368
45369 2007-05-01  Bruno Haible  <bruno@clisp.org>
45370
45371         * modules/sleep-tests: New file.
45372         * tests/test-sleep.c: New file.
45373
45374         * modules/sleep: New file.
45375         * lib/sleep.c: New file.
45376         * m4/sleep.m4: New file.
45377         * lib/unistd_.h (sleep): New declaration.
45378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
45379         HAVE_SLEEP.
45380         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
45381         * doc/functions/sleep.texi: Document the sleep module.
45382
45383 2007-05-01  Bruno Haible  <bruno@clisp.org>
45384
45385         * lib/sigprocmask.h: Remove file.
45386         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
45387         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
45388         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
45389         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
45390         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
45391         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
45392         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
45393         HAVE_SIGSET_T as a shell variable.
45394         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
45395         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
45396         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
45397         (Depends-on): Add signal. Remove verify.
45398         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
45399         (Include): Mention <signal.h> instead of sigprocmask.h.
45400         * NEWS: Mention the change.
45401         * lib/fatal-signal.c: Don't include sigprocmask.h.
45402
45403 2007-05-01  Bruno Haible  <bruno@clisp.org>
45404
45405         * modules/signal: New file.
45406         * lib/signal_.h: New file.
45407         * m4/signal_h.m4: New file.
45408
45409 2007-05-01  Bruno Haible  <bruno@clisp.org>
45410
45411         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
45412         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
45413         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
45414         HAVE_WCTYPE_CTMP_BUG into wctype.h.
45415
45416 2007-05-01  Bruno Haible  <bruno@clisp.org>
45417
45418         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
45419         configure time.
45420         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
45421         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
45422         * modules/sys_stat (Makefile.am): Substitute their values into
45423         sys/stat.h.
45424
45425 2007-05-01  Bruno Haible  <bruno@clisp.org>
45426
45427         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
45428         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
45429         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
45430
45431 2007-05-01  Bruno Haible  <bruno@clisp.org>
45432
45433         * doc/header/assert.texi: Undo last change: don't mention the gnulib
45434         'assert' module here.
45435
45436 2007-05-01  Bruno Haible  <bruno@clisp.org>
45437
45438         * doc/functions/*.texi: New files.
45439         * doc/functions/google-ranking.txt: New file.
45440         * doc/gnulib.texi (Function Substitutes): New chapter.
45441         (ctime, inet_ntoa): Remove sections.
45442         * doc/ctime.texi: Remove file.
45443         * doc/inet_ntoa.texi: Remove file.
45444         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
45445         dependencies.
45446         (%.info): New rule, specifying a --reference-limit.
45447
45448 2007-05-01  Bruno Haible  <bruno@clisp.org>
45449
45450         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
45451
45452 2007-05-01  Bruno Haible  <bruno@clisp.org>
45453
45454         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
45455         the portability of 'mkdir' to mingw systems.
45456
45457 2007-05-01  Bruno Haible  <bruno@clisp.org>
45458
45459         * doc/headers/google-ranking.txt: New file.
45460
45461 2007-04-30  Eric Blake  <ebb9@byu.net>
45462
45463         Prefer fseeko to fseek.
45464         * modules/getpass (Depends-on): Add fseeko.
45465         * lib/getpass.c (getpass): Use fseeko, not fseek.
45466
45467 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
45468
45469         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
45470         assumes the sorting is stable, while most qsort implementations
45471         are not.  Use argument addresses to ensure they never compare as
45472         equal.
45473
45474         * tests/test-argp-2.sh (usage-indent test): Fix output
45475         (func_compare): Restore diff options
45476         * tests/test-argp.c: Restore #include "progname.h"
45477
45478 2007-04-29  Bruno Haible  <bruno@clisp.org>
45479
45480         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
45481         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45482         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
45483         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45484         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
45485         (configure.ac): Define CHECK_SNPRINTF_POSIX.
45486         (TESTS, check_PROGRAMS): Add test-snprintf.
45487         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
45488         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
45489         (TESTS, check_PROGRAMS): Add test-vsnprintf.
45490         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
45491         assertions that fail on HP-UX, OSF/1, or IRIX.
45492         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
45493
45494 2007-04-29  Bruno Haible  <bruno@clisp.org>
45495
45496         * MODULES.html.sh (posix_functions): Remove 'contents'.
45497
45498 2007-04-29  Karl Berry  <karl@gnu.org>
45499
45500         * config/srclist.txt (gendocs_template_min): new entry.
45501
45502 2007-04-29  Bruno Haible  <bruno@clisp.org>
45503
45504         Work around fpurge bug on BSD systems.
45505         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
45506         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
45507         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
45508         fpurge to rpl_fpurge if the system already has this function.
45509         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
45510         the case where the system already has this function. Correct invariants
45511         on BSD systems.
45512         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
45513         BSD systems.
45514
45515 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
45516
45517         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
45518         proposed by Sven Verdoolaege.
45519
45520         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
45521         options.
45522         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
45523         (usage and help tests): Update
45524
45525 2007-04-29  Bruno Haible  <bruno@clisp.org>
45526
45527         * tests/test-fflush.c (main): Use a file of size 17, not 10.
45528         Print more information in case of failure. Disable a test on BeOS.
45529
45530 2007-04-29  Bruno Haible  <bruno@clisp.org>
45531
45532         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
45533         This helps debugging on systems on which no gdb is available.
45534
45535 2007-04-29  Bruno Haible  <bruno@clisp.org>
45536
45537         * lib/freading.h: Improve comments.
45538         * lib/fwriting.h: Likewise.
45539         * tests/test-freading.c (main): Don't check freading immediately after
45540         repositioning. Needed for glibc.
45541
45542 2007-04-29  Bruno Haible  <bruno@clisp.org>
45543
45544         * lib/freading.c (freading): Trivial simplification.
45545
45546 2007-04-28  Bruno Haible  <bruno@clisp.org>
45547
45548         * tests/test-fwriting.c (main): Also test the interaction between
45549         fflush and fwriting.
45550         * modules/fwriting-tests (Depends-on): Add fflush.
45551
45552         * tests/test-freading.c (main): Also test the interaction between
45553         fflush and freading.
45554         * modules/freading-tests (Depends-on): Add fflush.
45555
45556 2007-04-28  Bruno Haible  <bruno@clisp.org>
45557
45558         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
45559         fseeko and ftello.
45560         Suggested by Eric Blake.
45561
45562 2007-04-28  Jim Meyering  <jim@meyering.net>
45563
45564         Avoid false-negative in gl_STDINT_H's C99 conformance test.
45565         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
45566         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
45567
45568 2007-04-27  Eric Blake  <ebb9@byu.net>
45569
45570         * doc/headers/assert.texi (assert.h): Document assert module use.
45571
45572 2007-04-27  Bruno Haible  <bruno@clisp.org>
45573
45574         * doc/headers/*.texi: New files.
45575         * doc/gnulib.texi (Header File Substitutes): New chapter.
45576         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
45577         dependencies.
45578         (standards.info ,standards.html, standards.dvi): Update dependencies.
45579         (mostlyclean, clean): New targets.
45580
45581 2007-04-27  Bruno Haible  <bruno@clisp.org>
45582
45583         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
45584         * modules/sysexits (Files, Makefile.am): Update.
45585
45586         * lib/sys_socket_.h: Renamed from lib/socket_.h.
45587         * modules/sys_socket (Files, Makefile.am): Update.
45588
45589         * lib/sys_stat_.h: Renamed from lib/stat_.h.
45590         * modules/sys_stat (Files, Makefile.am): Update.
45591
45592 2007-04-27  Eric Blake  <ebb9@byu.net>
45593
45594         * lib/freading.h: Improve comments.
45595         * lib/fwriting.h: Likewise.
45596         * lib/fflush.c: Likewise.
45597
45598         Fix closein for mingw.
45599         * modules/closein-tests: Add tests for closein.
45600         * tests/test-closein.c: New file.
45601         * tests/test-closein.sh: Likewise.
45602         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
45603         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
45604
45605 2007-04-27  Bruno Haible  <bruno@clisp.org>
45606
45607         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
45608         version is < 6.
45609         * lib/math_.h [__DECC]: Likewise.
45610         * lib/stdio_.h [__DECC]: Likewise.
45611         * lib/stdlib_.h [__DECC]: Likewise.
45612         * lib/string_.h [__DECC]: Likewise.
45613         * lib/time_.h [__DECC]: Likewise.
45614         * lib/wchar_.h [__DECC]: Likewise.
45615         * lib/wctype_.h [__DECC]: Likewise.
45616
45617 2007-04-27  Bruno Haible  <bruno@clisp.org>
45618
45619         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
45620
45621 2007-04-27  Bruno Haible  <bruno@clisp.org>
45622
45623         * lib/fflush.c: Add comments.
45624         * modules/fpurge-tests (Depends-on): Add fflush.
45625         * modules/freadable-tests (Depends-on): Likewise.
45626         * modules/fwritable-tests (Depends-on): Likewise.
45627
45628 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
45629
45630         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
45631         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
45632         Report by Bruno Haible <bruno@clisp.org>.
45633
45634 2007-04-26  Eric Blake  <ebb9@byu.net>
45635
45636         Fix fflush on mingw.
45637         * modules/fflush (Depends-on): Add freading.
45638         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
45639         but unread data.
45640
45641 2007-04-26  Eric Blake  <ebb9@byu.net>
45642         and Bruno Haible  <bruno@clisp.org>
45643
45644         Implement freading and fwriting.
45645         * lib/freading.c: New file.
45646         * lib/freading.h: Likewise.
45647         * m4/freading.m4: Likewise.
45648         * modules/freading: Likewise.
45649         * modules/freading-tests: Likewise.
45650         * tests/test-freading.c: Likewise.
45651         * lib/fwriting.c: New file.
45652         * lib/fwriting.h: Likewise.
45653         * m4/fwriting.m4: Likewise.
45654         * modules/fwriting: Likewise.
45655         * modules/fwriting-tests: Likewise.
45656         * tests/test-fwriting.c: Likewise.
45657         * MODULES.html.sh (File stream based Input/Output): Mention them.
45658
45659 2007-04-26  Bruno Haible  <bruno@clisp.org>
45660
45661         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
45662         'long' when we assume it.
45663         Suggested by Eric Blake.
45664
45665 2007-04-26  Bruno Haible  <bruno@clisp.org>
45666
45667         Ensure fseeko, ftello are declared on glibc systems.
45668         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
45669         * modules/fseeko (configure.ac-early): Likewise.
45670         * modules/ftello (configure.ac-early): Likewise.
45671         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
45672         AC_FUNC_FSEEKO for this.
45673         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
45674         (gl_CHECK_FSEEKO): Remove macro.
45675
45676 2007-04-26  Bruno Haible  <bruno@clisp.org>
45677
45678         * tests/test-fflush.c (main): Also check the ftell result after
45679         fflush and fseek/fseeko.
45680         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
45681         file descriptor position cache in the stream.
45682         * lib/fseeko.c (rpl_fseeko): Likewise.
45683
45684 2007-04-26  Bruno Haible  <bruno@clisp.org>
45685
45686         * modules/fflush-tests (Depends-on): Add fseeko.
45687
45688 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
45689             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45690
45691         * lib/argz_.h: ensure error_t definition is obtained in same
45692         mechanism system argz.h would have.
45693         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
45694         argz facilities are known bad.  Err on the side of caution if
45695         cross-compiling.
45696
45697 2007-04-25  Eric Blake  <ebb9@byu.net>
45698
45699         * lib/fpurge.c (includes): Use stdlib.h for free.
45700         * tests/test-fflush.c (main): Also test fflush-fseeko.
45701
45702 2007-04-25  Bruno Haible  <bruno@clisp.org>
45703
45704         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
45705         * lib/fseeko.c: New file.
45706         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
45707         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
45708         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
45709         gl_FUNC_FSEEKO.
45710         (gl_FUNC_FSEEKO): Invoke it.
45711         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
45712         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
45713         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
45714
45715 2007-04-25  Bruno Haible  <bruno@clisp.org>
45716
45717         * modules/fflush (Depends-on): Add ftello.
45718
45719 2007-04-25  Bruno Haible  <bruno@clisp.org>
45720
45721         * modules/ftello-tests: New file.
45722         * tests/test-ftello.c: New file.
45723
45724         * modules/ftello: New file.
45725         * m4/ftello.m4: New file.
45726         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
45727         HAVE_FTELLO.
45728         * lib/stdio_.h (ftello): New declaration.
45729         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
45730         HAVE_FTELLO.
45731
45732 2007-04-25  Bruno Haible  <bruno@clisp.org>
45733
45734         * modules/fseeko-tests: New file.
45735         * tests/test-fseeko.c: New file.
45736
45737         * modules/fseeko: New file.
45738         * m4/fseeko.m4: New file.
45739         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
45740         HAVE_FSEEKO.
45741         * lib/stdio_.h (fseeko): New declaration.
45742         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
45743         HAVE_FSEEKO.
45744
45745 2007-04-25  Bruno Haible  <bruno@clisp.org>
45746
45747         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
45748
45749 2007-04-25  Bruno Haible  <bruno@clisp.org>
45750
45751         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
45752         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
45753         * tests/test-unistd.c: Likewise.
45754         * tests/test-fcntl.c: Likewise.
45755
45756 2007-04-23  Eric Blake  <ebb9@byu.net>
45757
45758         * lib/fflush.c: Fix missing include.
45759         Reported by Bruno Haible.
45760
45761 2007-04-23  Bruno Haible  <bruno@clisp.org>
45762
45763         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
45764         Reported by Eric Blake.
45765
45766 2007-04-23  Bruno Haible  <bruno@clisp.org>
45767
45768         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
45769
45770 2007-04-23  Bruno Haible  <bruno@clisp.org>
45771
45772         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
45773
45774 2007-04-23  Bruno Haible  <bruno@clisp.org>
45775
45776         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
45777         Needed on HP-UX 11.
45778
45779 2007-04-16  Eric Blake  <ebb9@byu.net>
45780
45781         Make fflush rely on fpurge.
45782         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
45783         open coding all variants.
45784         * modules/fflush (Depends-on): Add fpurge and unistd.
45785         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
45786         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
45787
45788         Fix --with-tests compilation on cygwin.
45789         * modules/argmatch-tests (Makefile.am): List gnulib library first
45790         in LDADD.
45791         * modules/argp-tests (Makefile.am): Likewise.
45792         * modules/array-list-tests (Makefile.am): Likewise.
45793         * modules/array-oset-tests (Makefile.am): Likewise.
45794         * modules/avltree-list-tests (Makefile.am): Likewise.
45795         * modules/avltree-oset-tests (Makefile.am): Likewise.
45796         * modules/avltreehash-list-tests (Makefile.am): Likewise.
45797         * modules/carray-list-tests (Makefile.am): Likewise.
45798         * modules/dirname-tests (Makefile.am): Likewise.
45799         * modules/frexp-tests (Makefile.am): Likewise.
45800         * modules/isnanl-tests (Makefile.am): Likewise.
45801         * modules/linked-list-tests (Makefile.am): Likewise.
45802         * modules/linkedhash-list-tests (Makefile.am): Likewise.
45803         * modules/lock-tests (Makefile.am): Likewise.
45804         * modules/rbtree-list-tests (Makefile.am): Likewise.
45805         * modules/rbtree-oset-tests (Makefile.am): Likewise.
45806         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
45807         * modules/tls-tests (Makefile.am): Likewise.
45808         * modules/tsearch-tests (Makefile.am): Likewise.
45809         * modules/xvasprintf-tests (Makefile.am): Likewise.
45810
45811         Fix fpurge for cygwin.
45812         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
45813         value.
45814         * modules/fpurge-tests (Depends-on): Clean up trash.
45815
45816 2007-04-16  Simon Josefsson  <simon@josefsson.org>
45817
45818         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
45819
45820         * m4/autobuild.m4: Re-indent.
45821
45822 2007-04-13  Bruno Haible  <bruno@clisp.org>
45823
45824         * modules/fpurge-tests: New file.
45825         * tests/test-fpurge.c: New file.
45826
45827         * modules/fpurge: New file.
45828         * lib/fpurge.h: New file.
45829         * lib/fpurge.c: New file.
45830         * m4/fpurge.m4: New file.
45831
45832 2007-04-13  Bruno Haible  <bruno@clisp.org>
45833
45834         * modules/fbufmode-tests: New file.
45835         * tests/test-fbufmode.c: New file.
45836
45837         * modules/fbufmode: New file.
45838         * lib/fbufmode.h: New file.
45839         * lib/fbufmode.c: New file.
45840         * m4/fbufmode.m4: New file.
45841
45842 2007-04-13  Bruno Haible  <bruno@clisp.org>
45843
45844         * modules/fwritable-tests: New file.
45845         * tests/test-fwritable.c: New file.
45846
45847         * modules/fwritable: New file.
45848         * lib/fwritable.h: New file.
45849         * lib/fwritable.c: New file.
45850         * m4/fwritable.m4: New file.
45851
45852 2007-04-13  Bruno Haible  <bruno@clisp.org>
45853
45854         * modules/freadable-tests: New file.
45855         * tests/test-freadable.c: New file.
45856
45857         * modules/freadable: New file.
45858         * lib/freadable.h: New file.
45859         * lib/freadable.c: New file.
45860         * m4/freadable.m4: New file.
45861
45862 2007-04-13  Bruno Haible  <bruno@clisp.org>
45863
45864         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
45865         MOSTLYCLEANFILES.
45866
45867 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
45868
45869         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
45870         gzip bootstrap.conf to avoid dragging in i18n machinery.
45871         (gnulib_tool_option): Use it.
45872
45873 2007-04-13  Bruno Haible  <bruno@clisp.org>
45874
45875         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
45876         %F directives.
45877         * tests/test-vasprintf-posix.c (test_function): Likewise.
45878         * tests/test-snprintf-posix.h (test_function): Likewise.
45879         * tests/test-sprintf-posix.h (test_function): Likewise.
45880         * tests/test-fprintf-posix.h (test_function): Likewise.
45881         * tests/test-printf-posix.h (test_function): Likewise.
45882         * tests/test-fprintf-posix.out: Likewise.
45883
45884 2007-04-13  Bruno Haible  <bruno@clisp.org>
45885
45886         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
45887         * modules/tls-tests (configure.ac): Likewise.
45888         Reported by Arto C. Nirkko <anirkko@insel.ch>.
45889
45890 2007-04-13  Bruno Haible  <bruno@clisp.org>
45891
45892         * lib/tls.c (glthread_tls_get): Fix return type.
45893         Patch by Arto C. Nirkko <anirkko@insel.ch>.
45894
45895 2007-04-12  Eric Blake  <ebb9@byu.net>
45896
45897         * modules/gettime (Depends-on): Remove gettime.
45898         Reported by Dmitry V. Levin.
45899
45900 2007-04-12  Bruno Haible  <bruno@clisp.org>
45901
45902         * modules/fflush (Include): Mention <stdio.h>.
45903         * modules/strtoimax (Include): Mention <inttypes.h>.
45904         * modules/strtoumax (Include): Likewise.
45905
45906 2007-04-12  Eric Blake  <ebb9@byu.net>
45907
45908         * .cvsignore: New file.
45909         * .gitignore: Likewise.
45910
45911 2007-04-12  Bruno Haible  <bruno@clisp.org>
45912
45913         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
45914         not before, since $(LDADD) often contains libgnu.a.
45915         * modules/striconv-tests (test_striconv_LDADD): Likewise.
45916         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
45917         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
45918         Needed on Cygwin.
45919
45920 2007-04-12  Eric Blake  <ebb9@byu.net>
45921
45922         Work around glibc's failure to flush stdin on fclose.
45923         * lib/closein.c (close_stdin): Flush stdin before closing.
45924
45925         Work around glibc's failure to reset seekable stdin on exit.
45926         * modules/closein: New module.
45927         * lib/closein.c: New file.
45928         * lib/closein.h: Likewise.
45929         * m4/closein.m4: Likewise.
45930         * MODULES.html.sh (File stream based Input/Output): Document it.
45931
45932 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45933
45934         * gnulib-tool: Rename generated 'autobuild' script to
45935         'do-autobuild' in --create-megatestdir output.
45936
45937         * doc/gnulib.texi (Build robot for gnulib): Fix.
45938
45939 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45940
45941         * modules/sysexits (Depends-on): Add absolute-header.
45942
45943 2007-04-12  Eric Blake  <ebb9@byu.net>
45944
45945         No need to preserve errno on success.
45946         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
45947         Reported by Bruno Haible.
45948
45949 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45950
45951         * MODULES.html.sh (Support for maintaining and releasing
45952         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
45953
45954 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45955
45956         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
45957
45958 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45959
45960         * modules/autobuild: New module.
45961
45962         * m4/autobuild.m4: New file.
45963
45964 2007-04-11  Bruno Haible  <bruno@clisp.org>
45965
45966         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
45967         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
45968         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
45969         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
45970         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45971         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45972         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45973         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45974         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45975         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45976         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
45977         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45978         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45979         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
45980         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45981         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45982         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
45983         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45984         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45985         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
45986         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45987         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45988         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
45989         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45990         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45991         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
45992         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45993         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45994         Reported by Eric Blake.
45995
45996 2007-04-11  Bruno Haible  <bruno@clisp.org>
45997
45998         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
45999
46000 2007-04-10  Bruno Haible  <bruno@clisp.org>
46001
46002         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
46003         for NaN and Infinity. Needed on FreeBSD 6.1.
46004         * tests/test-vasnprintf-posix.c (test_function): Undo last change
46005         regarding results for "%010a" of Infinity and NaN.
46006         * tests/test-vasprintf-posix.c (test_function): Likewise.
46007         * tests/test-snprintf-posix.h (test_function): Likewise.
46008         * tests/test-sprintf-posix.h (test_function): Likewise.
46009         * tests/test-fprintf-posix.h (test_function): Likewise.
46010         * tests/test-printf-posix.h (test_function): Likewise.
46011         * tests/test-fprintf-posix.out: Likewise.
46012
46013 2007-04-10  Bruno Haible  <bruno@clisp.org>
46014
46015         * modules/locale-tests: New file.
46016         * tests/test-locale.c: New file.
46017
46018         * modules/locale: New file.
46019         * lib/locale_.h: New file.
46020         * m4/locale_h.m4: New file.
46021
46022 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
46023             Bruno Haible  <bruno@clisp.org>
46024
46025         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
46026         be determined, test for availability of the copysignf, copysign,
46027         copysignl functions.
46028         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
46029         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
46030         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
46031
46032 2007-04-09  Eric Blake  <ebb9@byu.net>
46033
46034         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
46035         * modules/stdio (Makefile.am): Support fflush.
46036         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46037         * modules/fflush: New file.
46038         * lib/fflush.c: Likewise.
46039         * m4/fflush.m4: Likewise.
46040         * modules/fflush-tests: New test.
46041         * tests/test-fflush.c: Likewise.
46042         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
46043
46044 2007-04-06  Bruno Haible  <bruno@clisp.org>
46045
46046         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
46047         (VASNPRINTF): Use signbit for faster determination whether to print a
46048         minus sign.
46049         * modules/vasnprintf (Files): Remove lib/float+.h.
46050         * modules/fprintf-posix (Depends-on): Add signbit.
46051         * modules/snprintf-posix (Depends-on): Likewise.
46052         * modules/sprintf-posix (Depends-on): Likewise.
46053         * modules/vasnprintf-posix (Depends-on): Likewise.
46054         * modules/vasprintf-posix (Depends-on): Likewise.
46055         * modules/vfprintf-posix (Depends-on): Likewise.
46056         * modules/vsnprintf-posix (Depends-on): Likewise.
46057         * modules/vsprintf-posix (Depends-on): Likewise.
46058
46059 2007-04-06  Bruno Haible  <bruno@clisp.org>
46060
46061         * tests/test-frexp.c (main): Test also the sign bit of zero results.
46062         * tests/test-frexpl.c (main): Likewise.
46063         * tests/test-ldexpl.c (main): Likewise.
46064         * modules/frexp-tests (Depends-on): Add signbit.
46065         * modules/frexpl-tests (Depdends-on): Likewise.
46066         * modules/ldexpl-tests (Depdends-on): Likewise.
46067
46068 2007-04-06  Bruno Haible  <bruno@clisp.org>
46069
46070         * modules/signbit-tests: New file.
46071         * tests/test-signbit.c: New file.
46072
46073         * modules/signbit: New file.
46074         * lib/signbitf.c: New file.
46075         * lib/signbitd.c: New file.
46076         * lib/signbitl.c: New file.
46077         * m4/signbit.m4: New file.
46078         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
46079         (signbit): New macro.
46080         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
46081         REPLACE_SIGNBIT.
46082         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
46083         REPLACE_FREXPL into math.h.
46084
46085 2007-04-06  Bruno Haible  <bruno@clisp.org>
46086
46087         * modules/isnanf-nolibm-tests: New file.
46088         * tests/test-isnanf.c: New file.
46089
46090         * modules/isnanf-nolibm: New file.
46091         * lib/isnanf.h: New file.
46092         * lib/isnanf.c: New file.
46093         * lib/isnan.c: Consider the USE_FLOAT macro.
46094         * m4/isnanf.m4: New file.
46095
46096 2007-04-06  Bruno Haible  <bruno@clisp.org>
46097
46098         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
46099         (Link): New section.
46100
46101         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
46102
46103 2007-04-06  Bruno Haible  <bruno@clisp.org>
46104
46105         Assume the 'long double' type.
46106         * m4/longdouble.m4: Remove file.
46107         * config/srclist.txt: Don't mention longdouble.m4.
46108         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
46109         * lib/float+.h: Likewise.
46110         * lib/frexp.c: Likewise.
46111         * lib/printf-args.h: Likewise.
46112         * lib/printf-args.c: Likewise.
46113         * lib/printf-frexp.c: Likewise.
46114         * lib/printf-parse.c: Likewise.
46115         * lib/vasnprintf.c: Likewise.
46116         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
46117         * m4/intl.m4: Likewise.
46118         * m4/isnanl.m4: Likewise.
46119         * m4/printf.m4: Likewise.
46120         * m4/printf-frexpl.m4: Likewise.
46121         * m4/vasnprintf.m4: Likewise.
46122         * modules/allocsa (Files): Remove m4/longdouble.m4.
46123         * modules/gettext (Files): Likewise.
46124         * modules/relocatable-prog-wrapper (Files): Likewise.
46125         * modules/vasnprintf (Files): Likewise.
46126         * modules/isnanl (Files): Likewise.
46127         (Include): Simplify.
46128         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
46129         (Include): Simplify.
46130         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
46131         (Include): Simplify.
46132         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
46133         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46134         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
46135         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46136         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
46137         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46138         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
46139         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46140         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
46141         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46142         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
46143         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46144         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
46145         * tests/test-isnanl.c: Likewise.
46146         * tests/test-snprintf-posix.h: Likewise.
46147         * tests/test-sprintf-posix.h: Likewise.
46148         * tests/test-vasnprintf-posix.c: Likewise.
46149         * tests/test-vasnprintf-posix2.c: Likewise.
46150         * tests/test-vasprintf-posix.c: Likewise.
46151
46152 2007-04-06  Bruno Haible  <bruno@clisp.org>
46153
46154         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
46155         * lib/math_.h [__DECC]: Include the overridden include file through
46156         #include_next, outside the double-inclusion guard.
46157         * lib/stdio_.h [__DECC]: Likewise.
46158         * lib/stdlib_.h [__DECC]: Likewise.
46159         * lib/string_.h [__DECC]: Likewise.
46160         * lib/time_.h [__DECC]: Likewise.
46161         * lib/wchar_.h [__DECC]: Likewise.
46162         * lib/wctype_.h [__DECC]: Likewise.
46163         * lib/inttypes_.h [__DECC]: Likewise.
46164         Reported by Albert Chin <china@thewrittenword.com> in
46165         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
46166
46167 2007-04-04  Eric Blake  <ebb9@byu.net>
46168
46169         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
46170         1.5.x.
46171
46172 2007-04-04  Bruno Haible  <bruno@clisp.org>
46173
46174         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
46175         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
46176
46177 2007-04-04  Bruno Haible  <bruno@clisp.org>
46178
46179         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
46180         results for "%010a" of Infinity and NaN.
46181         * tests/test-vasprintf-posix.c (test_function): Likewise.
46182         * tests/test-snprintf-posix.h (test_function): Likewise.
46183         * tests/test-sprintf-posix.h (test_function): Likewise.
46184         * tests/test-fprintf-posix.h (test_function): Remove these tests.
46185         * tests/test-printf-posix.h (test_function): Likewise.
46186         * tests/test-fprintf-posix.out: Update.
46187         Needed for FreeBSD 6.1.
46188
46189 2007-04-04  Bruno Haible  <bruno@clisp.org>
46190
46191         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
46192         directly used by the gnulib modules nor by gnulib-tool.
46193
46194 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
46195
46196         * DEPENDENCIES: Give overall description of version dependency
46197         desirability.  Use more-typical names for apps.
46198         Add shell, coreutils, diffutils, grep, tar, gzip.
46199
46200 2007-04-04  Simon Josefsson  <simon@josefsson.org>
46201
46202         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
46203
46204 2007-04-04  Karl Berry  <karl@gnu.org>
46205
46206         * MODULES.html.sh (func_module): missing '.
46207
46208 2007-04-03  Bruno Haible  <bruno@clisp.org>
46209
46210         * modules/argmatch-tests (Makefile.am): New variable
46211         test_argmatch_LDADD.
46212         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
46213         * modules/array-list-tests (Makefile.am): New variable
46214         test_array_list_LDADD.
46215         * modules/array-oset-tests (Makefile.am): New variable
46216         test_array_oset_LDADD.
46217         * modules/avltree-list-tests (Makefile.am): New variable
46218         test_avltree_list_LDADD.
46219         * modules/avltree-oset-tests (Makefile.am): New variable
46220         test_avltree_oset_LDADD.
46221         * modules/avltreehash-list-tests (Makefile.am): New variable
46222         test_avltreehash_list_LDADD.
46223         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
46224         test_canonicalize_lgpl_LDADD.
46225         * modules/carray-list-tests (Makefile.am): New variable
46226         test_carray_list_LDADD.
46227         * modules/dirname-tests (Makefile.am): New variable
46228         test_dirname_LDADD.
46229         * modules/linked-list-tests (Makefile.am): New variable
46230         test_linked_list_LDADD.
46231         * modules/linkedhash-list-tests (Makefile.am): New variable
46232         test_linkedhash_list_LDADD.
46233         * modules/rbtree-list-tests (Makefile.am): New variable
46234         test_rbtree_list_LDADD.
46235         * modules/rbtree-oset-tests (Makefile.am): New variable
46236         test_rbtree_oset_LDADD.
46237         * modules/rbtreehash-list-tests (Makefile.am): New variable
46238         test_rbtreehash_list_LDADD.
46239         * modules/xvasprintf-tests (Makefile.am): New variable
46240         test_xvasprintf_LDADD.
46241         Reported by Eric Blake.
46242
46243 2007-04-03  Eric Blake  <ebb9@byu.net>
46244
46245         * DEPENDENCIES: Weaken m4 requirements.
46246
46247 2007-04-03  Bruno Haible  <bruno@clisp.org>
46248
46249         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
46250         * modules/isnanl-tests (configure.ac): Likewise.
46251
46252 2007-04-03  Ben Pfaff  <blp@gnu.org>
46253
46254         * modules/iconv_open: Add $(srcdir)/ to source directory
46255         references in Makefile fragments that call gperf, to fix VPATH
46256         builds.
46257
46258 2007-04-03  Bruno Haible  <bruno@clisp.org>
46259
46260         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
46261         * lib/ldexpl.c: Undo last change.
46262
46263 2007-04-03  Bruno Haible  <bruno@clisp.org>
46264
46265         * modules/printf-frexpl (Depends-on): Undo last change.
46266         (Files): Add m4/ldexpl.m4.
46267
46268 2007-04-03  Bruno Haible  <bruno@clisp.org>
46269
46270         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
46271         * modules/isnanl (Link): New section.
46272
46273         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
46274         * modules/frexp (Link): New section.
46275
46276         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
46277         * modules/frexpl (Link): New section.
46278
46279         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
46280         * modules/ldexpl (Link): New section.
46281
46282 2007-04-03  Bruno Haible  <bruno@clisp.org>
46283
46284         * modules/TEMPLATE-EXTENDED: New file.
46285         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
46286
46287 2007-04-03  Bruno Haible  <bruno@clisp.org>
46288
46289         * DEPENDENCIES: New file.
46290         Suggested by Simon Josefsson.
46291
46292 2007-04-03  Bruno Haible  <bruno@clisp.org>
46293
46294         * doc/gnulib.texi: Escape @.
46295
46296 2007-04-03  James Youngman  <jay@gnu.org>
46297         and Paul Eggert  <eggert@cs.ucla.edu>
46298
46299         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
46300         birthtime on all systems that have birthtime, not just those which
46301         use st_birthtimensec rather than st_birthtim.  Putting zero in
46302         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
46303         that the birth time is not available for files on an NFS mount.
46304
46305 2007-04-03  Simon Josefsson  <simon@josefsson.org>
46306
46307         * modules/memxor: Move back from crypto/, suggested by Bruno.
46308         * modules/crypto/hmac-sha1: Fix memxor dependency.
46309
46310         * modules/crypto/gc: Moved from ../.
46311
46312 2007-04-02  Eric Blake  <ebb9@byu.net>
46313
46314         * lib/ldexpl.c (includes): Avoid libm.
46315
46316         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
46317
46318 2007-04-02  Bruno Haible  <bruno@clisp.org>
46319
46320         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
46321         on IRIX.
46322
46323 2007-04-02  Bruno Haible  <bruno@clisp.org>
46324
46325         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
46326         x86 or x86_64 platforms running MacOS X.
46327         Reported by Ryan Schmidt <@ryandesign.com>.
46328
46329 2007-04-02  Bruno Haible  <bruno@clisp.org>
46330
46331         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
46332         i386.
46333
46334 2007-04-01  Simon Josefsson  <simon@josefsson.org>
46335
46336         * modules/crypto/arcfour: Moved from ../.
46337         * modules/crypto/arcfour-tests: Moved from ../.
46338         * modules/crypto/arctwo: Moved from ../.
46339         * modules/crypto/arctwo-tests: Moved from ../.
46340         * modules/crypto/des: Moved from ../.
46341         * modules/crypto/des-tests: Moved from ../.
46342         * modules/crypto/gc-arcfour: Moved from ../.
46343         * modules/crypto/gc-arcfour-tests: Moved from ../.
46344         * modules/crypto/gc-arctwo: Moved from ../.
46345         * modules/crypto/gc-arctwo-tests: Moved from ../.
46346         * modules/crypto/gc-des: Moved from ../.
46347         * modules/crypto/gc-des-tests: Moved from ../.
46348         * modules/crypto/gc-hmac-md5: Moved from ../.
46349         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
46350         * modules/crypto/gc-hmac-sha1: Moved from ../.
46351         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
46352         * modules/crypto/gc-md2: Moved from ../.
46353         * modules/crypto/gc-md2-tests: Moved from ../.
46354         * modules/crypto/gc-md4: Moved from ../.
46355         * modules/crypto/gc-md4-tests: Moved from ../.
46356         * modules/crypto/gc-md5: Moved from ../.
46357         * modules/crypto/gc-md5-tests: Moved from ../.
46358         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
46359         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
46360         * modules/crypto/gc-random: Moved from ../.
46361         * modules/crypto/gc-rijndael: Moved from ../.
46362         * modules/crypto/gc-rijndael-tests: Moved from ../.
46363         * modules/crypto/gc-sha1: Moved from ../.
46364         * modules/crypto/gc-sha1-tests: Moved from ../.
46365         * modules/crypto/gc-tests: Moved from ../.
46366         * modules/crypto/hmac-md5: Moved from ../.
46367         * modules/crypto/hmac-md5-tests: Moved from ../.
46368         * modules/crypto/hmac-sha1: Moved from ../.
46369         * modules/crypto/hmac-sha1-tests: Moved from ../.
46370         * modules/crypto/md2: Moved from ../.
46371         * modules/crypto/md2-tests: Moved from ../.
46372         * modules/crypto/md4: Moved from ../.
46373         * modules/crypto/md4-tests: Moved from ../.
46374         * modules/crypto/md5: Moved from ../.
46375         * modules/crypto/md5-tests: Moved from ../.
46376         * modules/crypto/memxor: Moved from ../.
46377         * modules/crypto/rijndael: Moved from ../.
46378         * modules/crypto/rijndael-tests: Moved from ../.
46379         * modules/crypto/sha1: Moved from ../.
46380
46381 2007-03-30  James Youngman  <jay@gnu.org>
46382
46383         * tests/test-stat-time.c (prepare_test): use chmod() rather than
46384         rename() to change the ctime of a file (because ctime is unaffected
46385         by rename on jfs2 on AIX 5.1).
46386         (main): Start by doing cleanup, in case a previous run failed leaving
46387         test files behind.
46388
46389 2007-03-31  Bruno Haible  <bruno@clisp.org>
46390
46391         Support old proprietary implementations of iconv.
46392         * modules/iconv_open: New file.
46393         * lib/iconv_.h: New file.
46394         * m4/iconv_h.m4: New file.
46395         * lib/iconv_open.c: New file.
46396         * lib/iconv_open-aix.gperf: New file.
46397         * lib/iconv_open-hpux.gperf: New file.
46398         * lib/iconv_open-irix.gperf: New file.
46399         * lib/iconv_open-osf.gperf: New file.
46400         * m4/iconv_open.m4: New file.
46401         * modules/linebreak (Depends-on): Add iconv_open.
46402         * modules/striconv (Depends-on): Likewise.
46403         * modules/striconveh (Depends-on): Likewise.
46404         * modules/unicodeio (Depends-on): Likewise.
46405         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
46406         (iconv_t)(-1).
46407         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
46408         conversion if cd is (iconv_t)(-1).
46409         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
46410         is not possible.
46411
46412 2007-03-31  Bruno Haible  <bruno@clisp.org>
46413
46414         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
46415         work on Solaris either. Protect also second use of "autodetect_jp".
46416
46417 2007-03-31  Bruno Haible  <bruno@clisp.org>
46418
46419         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
46420         the function is not present.
46421
46422 2007-03-31  Bruno Haible  <bruno@clisp.org>
46423
46424         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
46425         the function is not present.
46426
46427 2007-03-31  Bruno Haible  <bruno@clisp.org>
46428
46429         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
46430         a bug in HP-UX iconv_open().
46431
46432 2007-03-31  Bruno Haible  <bruno@clisp.org>
46433
46434         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
46435         (Mathematics <math.h>): New section, add fpieee.
46436         (Input/output <stdio.h>): Add fseterr.
46437         (Mathematics <math.h>): New section, add printf-frexp.
46438         (Container data structures): Add sublist.
46439         (Core language properties): Add fpucw, inline.
46440         (Functions for greatest-width integer types <inttypes.h>): Add
46441         imaxabs, imaxdiv, inttypes.
46442         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
46443         isnanl-nolibm, ldexp.
46444         (Mathematics <math.h>): New section, add printf-frexpl.
46445         (Support for systems lacking POSIX:2001): Add fprintf-posix,
46446         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
46447         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
46448         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
46449         (Unicode string functions): Add unistr/u*-mbtoucr.
46450         (Java): Add javacomp-script, javaexec-script.
46451         (C#): Add csharpcomp-script, csharpexec-script.
46452         (Support for building libraries and executables): Add havelib,
46453         relocatable-*.
46454         (Support for maintaining and releasing projects): Renamed from
46455         'Support for maintaining and release projects'. Add announce-gen.
46456
46457 2007-03-31  Bruno Haible  <bruno@clisp.org>
46458
46459         * README: Talk primarily about git.
46460         (git and CVS): Renamed from CVS.
46461         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
46462         gnulib is available through git.
46463         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
46464
46465 2007-03-30  Bruno Haible  <bruno@clisp.org>
46466
46467         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
46468         * lib/poll_.h: Likewise.
46469         * lib/stat_.h: Likewise.
46470         * lib/sys_time_.h: Likewise.
46471         * lib/sysexit_.h: Likewise.
46472         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
46473         * lib/stdbool_.h: Likewise.
46474         * lib/byteswap_.h: Add double-inclusion guard.
46475
46476 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
46477
46478         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
46479
46480 2007-03-30  Karl Berry  <karl@gnu.org>
46481
46482         * config/srclist-update: double space after USA in the license
46483         substitution, since that's how it's usually (?) written.
46484
46485 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
46486
46487         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
46488         reported by Bruno Haible.
46489
46490 2007-03-29  Bruno Haible  <bruno@clisp.org>
46491
46492         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
46493         a bug in AIX iconv().
46494
46495 2007-03-29  Bruno Haible  <bruno@clisp.org>
46496
46497         * modules/ldexpl-tests: New file.
46498         * tests/test-ldexpl.c: New file.
46499
46500 2007-03-29  Bruno Haible  <bruno@clisp.org>
46501
46502         * lib/ldexpl.c: Include fpucw.h.
46503         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
46504         multiplication.
46505         * modules/ldexpl (Depends-on): Add fpucw.
46506
46507 2007-03-29  Bruno Haible  <bruno@clisp.org>
46508
46509         * modules/ldexpl: New file.
46510         * m4/ldexpl.m4: New file.
46511         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
46512         set.
46513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
46514         REPLACE_LDEXPL.
46515         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
46516         REPLACE_LDEXPL.
46517         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
46518         gl_FUNC_LDEXPL_WORKS.
46519         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
46520         * modules/mathl (Files): Remove lib/ldexpl.c.
46521         (Depends-on): Add ldexpl.
46522
46523 2007-03-29  Bruno Haible  <bruno@clisp.org>
46524
46525         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
46526
46527 2007-03-29  Bruno Haible  <bruno@clisp.org>
46528
46529         * tests/test-striconveh.c (main): Don't assume that a direct conversion
46530         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
46531         and possibly also HP-UX.
46532         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
46533         work on AIX, IRIX, HP-UX, OSF/1.
46534         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
46535         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
46536         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
46537         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
46538         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
46539         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
46540
46541 2007-03-29  Bruno Haible  <bruno@clisp.org>
46542
46543         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
46544
46545 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
46546
46547         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
46548         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
46549
46550 2007-03-29  Eric Blake  <ebb9@byu.net>
46551
46552         * lib/acl-internal.h: Remove redundant include.
46553         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
46554         Cygwin when a file is locked.
46555
46556 2007-03-29  Bruno Haible  <bruno@clisp.org>
46557
46558         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
46559         file.
46560         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
46561
46562 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
46563
46564         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
46565         try to remove a parent directory if the child couldn't be removed
46566         (except for the first rmdir, which could fail because the child
46567         doesn't exist).  Problem reported by Jeff Blaine in
46568         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
46569
46570 2007-03-28  Bruno Haible  <bruno@clisp.org>
46571
46572         * lib/striconveh.c (utf8conv_carefully): New function.
46573         (mem_cd_iconveh_internal): Invoke it.
46574
46575 2007-03-28  Bruno Haible  <bruno@clisp.org>
46576
46577         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
46578         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
46579         input.
46580         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
46581         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
46582         unistr/u8-uctomb.
46583
46584 2007-03-28  Bruno Haible  <bruno@clisp.org>
46585
46586         * modules/unistr/u8-mbtoucr: New file.
46587         * lib/unistr/u8-mbtoucr.c: New file.
46588         * modules/unistr/u16-mbtoucr: New file.
46589         * lib/unistr/u16-mbtoucr.c: New file.
46590         * modules/unistr/u16-mbtoucr: New file.
46591         * lib/unistr/u16-mbtoucr.c: New file.
46592         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
46593
46594 2007-03-27  Simon Josefsson  <simon@josefsson.org>
46595             Bruno Haible  <bruno@clisp.org>
46596
46597         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
46598         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
46599         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
46600
46601         * m4/stdio_h.m4: Add stubs for vasprintf too.
46602
46603         * modules/stdio: Support vasprintf in sed command.
46604
46605         * modules/vasprintf: Depend on stdio for prototypes.  Remove
46606         vasprintf.h.  Add stdio module indicator.
46607
46608         * lib/stdio_.h: Declare asprintf and vasprintf, based on
46609         vasprintf.h.
46610
46611         * lib/vasprintf.h: File removed.
46612
46613         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
46614         * lib/vasprintf.c: Ditto.
46615         * lib/xvasprintf.c: Ditto.
46616         * tests/test-vasprintf-posix.c: Ditto.
46617         * tests/test-vasprintf.c: Ditto.
46618
46619 2007-03-27  Bruno Haible  <bruno@clisp.org>
46620
46621         Make vasnprintf multithread-safe.
46622         * lib/vasnprintf.c (decimal_point_char): New function.
46623         (VASNPRINTF): Use it.
46624         Suggested by Simon Josefsson.
46625
46626 2007-03-27  Eric Blake  <ebb9@byu.net>
46627
46628         Support sub-second birthtime on cygwin.
46629         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
46630         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
46631         (get_stat_birthtime): Also work with st_birthtim.
46632
46633 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
46634
46635         * lib/stat-time.h (USE_BIRTHTIME): Remove.
46636         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
46637         (get_stat_birthtime_ns): Do not try to use "spare" fields.
46638         (get_stat_birthtime_ns): Simplify compile-time tests.
46639         (get_stat_birthtime): Change the API to look like
46640         get_stat_mtime etc., except return a negative tv_nsec on error.
46641         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
46642         Don't check for "spare" fields.
46643         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
46644         or for struct stat.st_birthtime, as these tests aren't used.
46645         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
46646
46647 2007-03-27  Bruno Haible  <bruno@clisp.org>
46648
46649         * lib/stat-time.h: Include <sys/stat.h>.
46650
46651 2007-03-27  James Youngman  <jay@gnu.org>
46652
46653         * lib/stat-time.h (get_stat_birthtime): New function for
46654           retrieving st_birthtime as provided by UFS2 (hence *BSD).
46655         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
46656           and its variants.
46657         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
46658         * modules/stat-time-test: New file.
46659         * tests/test-stat-time.c: New test, devised by Bruno Haible.
46660
46661 2007-03-26  Bruno Haible  <bruno@clisp.org>
46662
46663         Better support of signalling NaNs.
46664         * lib/atanl.c: Include isnanl.h.
46665         (atanl): Perform test for NaN at the beginning of the function and
46666         through a call to isnanl.
46667         * lib/cosl.c: Include isnanl.h.
46668         (cosl): Perform test for NaN at the beginning of the function and
46669         through a call to isnanl.
46670         * lib/ldexpl.c: Include isnanl.h.
46671         (ldexpl): Perform test for NaN through a call to isnanl.
46672         * lib/logl.c: Include isnanl.h.
46673         (logl): Perform test for NaN at the beginning of the function and
46674         through a call to isnanl.
46675         * lib/sinl.c: Include isnanl.h.
46676         (sinl): Perform test for NaN at the beginning of the function and
46677         through a call to isnanl.
46678         * lib/sqrtl.c: Include isnanl.h.
46679         (sqrtl): Perform test for NaN at the beginning of the function and
46680         through a call to isnanl.
46681         * lib/tanl.c: Include isnanl.h.
46682         (tanl): Perform test for NaN at the beginning of the function and
46683         through a call to isnanl.
46684         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
46685         * modules/mathl (Depends-on): Add isnanl.
46686
46687 2007-03-26  Eric Blake  <ebb9@byu.net>
46688
46689         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
46690         regression in logic sense of previous patch.
46691
46692 2007-03-26  Bruno Haible  <bruno@clisp.org>
46693
46694         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
46695         unportable shell command "if ! ...".
46696         Reported by Ralf Wildenhues.
46697
46698 2007-03-25  Bruno Haible  <bruno@clisp.org>
46699
46700         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
46701         <sysexits.h> file, and only add EX_CONFIG.
46702         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
46703         absolute file name and whether it is sufficient. Substitute also
46704         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
46705         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
46706         ABSOLUTE_SYSEXITS_H into sysexits.h.
46707
46708 2007-03-25  Bruno Haible  <bruno@clisp.org>
46709
46710         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
46711         hints is NULL.
46712
46713 2007-03-25  Bruno Haible  <bruno@clisp.org>
46714
46715         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
46716         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
46717
46718 2007-03-25  Bruno Haible  <bruno@clisp.org>
46719
46720         * lib/vasnprintf.c: Include langinfo.h.
46721         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
46722         multithread-safe.
46723         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
46724         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
46725         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46726         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46727         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46728         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46729         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46730         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
46731         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46732         Reported by Simon Josefsson.
46733
46734 2007-03-25  Bruno Haible  <bruno@clisp.org>
46735
46736         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
46737         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
46738         * modules/vasnprintf (Depends-on): Add stdint.
46739
46740 2007-03-25  Bruno Haible  <bruno@clisp.org>
46741
46742         * modules/fpieee: New file.
46743         * m4/fpieee.m4: New file.
46744         * modules/isnan-nolibm (Depends-on): Add fpieee.
46745         * modules/isnanl-nolibm (Depends-on): Add fpieee.
46746         * modules/isnanl (Depends-on): Add fpieee.
46747
46748 2007-03-25  Bruno Haible  <bruno@clisp.org>
46749
46750         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
46751
46752 2007-03-25  Bruno Haible  <bruno@clisp.org>
46753
46754         Avoid test failures on IRIX 6.5.
46755         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
46756         (main): Use it.
46757         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
46758         macros.
46759         (main): Use them.
46760
46761 2007-03-25  Bruno Haible  <bruno@clisp.org>
46762
46763         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
46764         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
46765         exists but doesn't work.
46766         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
46767         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
46768         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
46769         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
46770
46771 2007-03-25  Bruno Haible  <bruno@clisp.org>
46772
46773         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
46774         returns inf. Needed on IRIX 6.5.
46775
46776 2007-03-25  Bruno Haible  <bruno@clisp.org>
46777
46778         * tests/test-frexpl.c: Include isnanl-nolibm.h.
46779         (main): Use isnanl instead of x != x idiom.
46780         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
46781
46782         * tests/test-frexp.c: Include isnan.h.
46783         (main): Use isnan instead of x != x idiom.
46784         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
46785
46786 2007-03-25  Bruno Haible  <bruno@clisp.org>
46787
46788         * tests/test-frexp.c (NaN): New function/macro.
46789         (main): Use it instead of 0.0 / 0.0.
46790         * tests/test-isnan.c (NaN): New function/macro.
46791         (main): Use it instead of 0.0 / 0.0.
46792         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
46793         (test_function): Use it instead of 0.0 / 0.0.
46794         * tests/test-vasprintf-posix.c (NaN): New function/macro.
46795         (test_function): Use it instead of 0.0 / 0.0.
46796         * tests/test-snprintf-posix.h (NaN): New function/macro.
46797         (test_function): Use it instead of 0.0 / 0.0.
46798         * tests/test-sprintf-posix.h (NaN): New function/macro.
46799         (test_function): Use it instead of 0.0 / 0.0.
46800         * tests/test-fprintf-posix.h (NaN): New function/macro.
46801         (test_function): Use it instead of 0.0 / 0.0.
46802         * tests/test-printf-posix.h (NaN): New function/macro.
46803         (test_function): Use it instead of 0.0 / 0.0.
46804
46805         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
46806
46807 2007-03-25  Bruno Haible  <bruno@clisp.org>
46808
46809         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
46810
46811 2007-03-25  Bruno Haible  <bruno@clisp.org>
46812
46813         * lib/regexec.c (merge_state_with_log): Make static.
46814
46815 2007-03-25  Bruno Haible  <bruno@clisp.org>
46816
46817         * lib/trigl.c (kernel_rem_pio2): Make static.
46818
46819 2007-03-25  Bruno Haible  <bruno@clisp.org>
46820
46821         * lib/sincosl.c (sincosl_table): Make static.
46822
46823 2007-03-25  Bruno Haible  <bruno@clisp.org>
46824
46825         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
46826         if the compiler does not support C99.
46827
46828 2007-03-25  Bruno Haible  <bruno@clisp.org>
46829
46830         * modules/time (Makefile.am): Ensure all rule action lines start with a
46831         tab.
46832
46833 2007-03-24  Bruno Haible  <bruno@clisp.org>
46834
46835         * modules/tsearch-tests: New file.
46836         * tests/test-tsearch.sh: New file.
46837         * tests/test-tsearch.c: New file, mostly copied from glibc.
46838
46839         * modules/search-tests: New file.
46840         * tests/test-search.c: New file.
46841
46842         * modules/search: New file.
46843         * lib/search_.h: New file, incorporating lib/tsearch.h.
46844         * m4/search_h.m4: New file.
46845         * lib/tsearch.h: Remove file.
46846         * lib/tsearch.c: Include search.h instead of tsearch.h.
46847         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
46848         HAVE_TSEARCH.
46849         * modules/tsearch (Files): Remove lib/tsearch.h.
46850         (Depends-on): Add search.
46851         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
46852         (Include): Change tsearch.h into search.h.
46853
46854 2007-03-24  Bruno Haible  <bruno@clisp.org>
46855
46856         * modules/fpucw: New file.
46857         * lib/fpucw.h: New file.
46858         * lib/frexp.c: Include fpucw.h.
46859         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
46860         (FUNC): Use them.
46861         * lib/printf-frexp.c: Include fpucw.h.
46862         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
46863         (FUNC): Use them.
46864         * lib/vasnprintf.c: Include fpucw.h.
46865         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
46866         'long double' calculations.
46867         * tests/test-frexpl.c: Include fpucw.h.
46868         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
46869         * tests/test-printf-frexpl.c: Include fpucw.h.
46870         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
46871         * modules/frexpl (Depends-on): Add fpucw.
46872         * modules/printf-frexpl (Depends-on): Likewise.
46873         * modules/fprintf-posix (Depends-on): Likewise.
46874         * modules/snprintf-posix (Depends-on): Likewise.
46875         * modules/sprintf-posix (Depends-on): Likewise.
46876         * modules/vasnprintf-posix (Depends-on): Likewise.
46877         * modules/vasprintf-posix (Depends-on): Likewise.
46878         * modules/vfprintf-posix (Depends-on): Likewise.
46879         * modules/vsnprintf-posix (Depends-on): Likewise.
46880         * modules/vsprintf-posix (Depends-on): Likewise.
46881         * modules/frexpl-tests (Depends-on): Likewise.
46882         * modules/printf-frexpl-tests (Depends-on): Likewise.
46883
46884 2007-03-24  Bruno Haible  <bruno@clisp.org>
46885
46886         * lib/float+.h: New file.
46887         * lib/isnan.c: Include float+.h.
46888         (SIZE): New macro.
46889         (FUNC): Compare only SIZE bytes of the value.
46890         * lib/vasnprintf.c: Include float+.h.
46891         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
46892         SIZEOF_LDBL or SIZEOF_DBL bytes.
46893         * modules/isnan-nolibm (Files): Add lib/float+.h.
46894         * modules/isnanl-nolibm (Files): Add lib/float+.h.
46895         * modules/isnanl (Files): Add lib/float+.h.
46896         * modules/vasnprintf (Files): Add lib/float+.h.
46897
46898 2007-03-24  Bruno Haible  <bruno@clisp.org>
46899
46900         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
46901         include isnanl-nolibm.h.
46902
46903 2007-03-24  Bruno Haible  <bruno@clisp.org>
46904
46905         * tests/test-read-file.c (main): Don't produce spurious output for
46906         expected situations. Make the test fail if it encountered unexpected
46907         results.
46908
46909 2007-03-24  Bruno Haible  <bruno@clisp.org>
46910
46911         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
46912         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
46913
46914 2007-03-24  Bruno Haible  <bruno@clisp.org>
46915
46916         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
46917
46918 2007-03-24  Bruno Haible  <bruno@clisp.org>
46919
46920         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
46921         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
46922
46923         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
46924         * modules/utf8-ucs4: Turn into a symbolic link to module
46925         unistr/u8-mbtouc.
46926
46927         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
46928         utf8-ucs4-unsafe.
46929         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
46930         unistr/u8-mbtouc-unsafe.
46931
46932         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
46933         * modules/utf16-ucs4: Turn into a symbolic link to module
46934         unistr/u16-mbtouc.
46935
46936         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
46937         utf16-ucs4-unsafe.
46938         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
46939         unistr/u16-mbtouc-unsafe.
46940
46941         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
46942         * modules/ucs4-utf8: Turn into a symbolic link to module
46943         unistr/u8-ubtomb.
46944
46945         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
46946         * modules/ucs4-utf16: Turn into a symbolic link to module
46947         unistr/u16-ubtomb.
46948
46949 2007-03-24  Bruno Haible  <bruno@clisp.org>
46950
46951         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
46952         Enable the function only if HAVE_INLINE.
46953         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
46954         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
46955         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
46956         Enable the function only if HAVE_INLINE.
46957         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
46958         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
46959         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
46960         Enable the function only if HAVE_INLINE.
46961         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
46962         Enable the function only if HAVE_INLINE.
46963         * modules/utf8-ucs4: Update.
46964         * modules/utf8-ucs4-unsafe: Update.
46965         * modules/utf16-ucs4: Update.
46966         * modules/utf16-ucs4-unsafe: Update.
46967         * modules/ucs4-utf8: Update.
46968         * modules/ucs4-utf16: Update.
46969
46970 2007-03-24  Bruno Haible  <bruno@clisp.org>
46971
46972         * lib/utf8-ucs4.h: Remove file.
46973         * lib/utf8-ucs4-unsafe.h: Remove file.
46974         * lib/utf16-ucs4.h: Remove file.
46975         * lib/utf16-ucs4-unsafe.h: Remove file.
46976         * lib/ucs4-utf8.h: Remove file.
46977         * lib/ucs4-utf16.h: Remove file.
46978         * lib/unistr.h: Include their previous contents.
46979         * m4/utf-ucs4.m4: Remove file.
46980         * m4/ucs4-utf.m4: Remove file.
46981         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
46982         (Depends-on): Add unistr/base.
46983         (configure.ac): Remove gl_UTF_UCS4.
46984         (Makefile.am): Update.
46985         (Include): Change to unistr.h.
46986         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
46987         (Depends-on): Add unistr/base.
46988         (configure.ac): Remove gl_UTF_UCS4.
46989         (Makefile.am): Update.
46990         (Include): Change to unistr.h.
46991         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
46992         (Depends-on): Add unistr/base.
46993         (configure.ac): Remove gl_UTF_UCS4.
46994         (Makefile.am): Update.
46995         (Include): Change to unistr.h.
46996         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
46997         (Depends-on): Add unistr/base.
46998         (configure.ac): Remove gl_UTF_UCS4.
46999         (Makefile.am): Update.
47000         (Include): Change to unistr.h.
47001         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
47002         (Depends-on): Add unistr/base.
47003         (configure.ac): Remove gl_UCS4_UTF.
47004         (Makefile.am): Update.
47005         (Include): Change to unistr.h.
47006         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
47007         (Depends-on): Add unistr/base.
47008         (configure.ac): Remove gl_UCS4_UTF.
47009         (Makefile.am): Update.
47010         (Include): Change to unistr.h.
47011         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
47012         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
47013         utf8-ucs4-unsafe.h.
47014         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
47015         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
47016         utf16-ucs4-unsafe.h.
47017         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
47018         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
47019         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
47020         * lib/unistr/u8-strchr.c: Likewise.
47021         * lib/unistr/u8-strrchr.c: Likewise.
47022         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
47023         * lib/unistr/u16-strchr.c: Likewise.
47024         * lib/unistr/u16-strrchr.c: Likewise.
47025         * lib/striconveh.c: Update.
47026         * lib/linebreak.c: Update.
47027
47028 2007-03-24  Bruno Haible  <bruno@clisp.org>
47029
47030         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
47031         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
47032
47033 2007-03-22  Bruno Haible  <bruno@clisp.org>
47034
47035         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
47036
47037 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
47038
47039         * MODULES.html.sh (File system functions): New module write-any-file.
47040         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
47041         * m4/write-any-file.m4: New files.
47042
47043 2007-03-23  Eric Blake  <ebb9@byu.net>
47044
47045         * gnulib-tool: Rearrange space-tab sequences, since some editors
47046         like to eat them.
47047
47048 2007-03-23  Eric Blake  <ebb9@byu.net>
47049
47050         * lib/version-etc.c (version_etc_va): Update license wording to
47051         be more concise.  Recommended by Richard Stallman.
47052
47053 2007-03-22  Bruno Haible  <bruno@clisp.org>
47054
47055         * lib/poll.c (MSG_PEEK): New fallback definition.
47056
47057 2007-03-22  Bruno Haible  <bruno@clisp.org>
47058
47059         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
47060         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
47061         (main): Update.
47062         Fixes a compilation error on BeOS.
47063
47064 2007-03-22  Bruno Haible  <bruno@clisp.org>
47065
47066         * modules/frexpl-tests: New file.
47067         * tests/test-frexpl.c: New file.
47068
47069         * modules/frexpl: New file.
47070         * m4/frexpl.m4: New file.
47071         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
47072         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
47073         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
47074         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
47075         (Depends-on): Add frexpl. Remove isnanl-nolibm.
47076         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
47077
47078 2007-03-22  Bruno Haible  <bruno@clisp.org>
47079
47080         * lib/frexpl.c: Share code with lib/frexp.c.
47081         * modules/mathl (Files): Add lib/frexp.c.
47082         (Depends-on): Add isnanl-nolibm.
47083
47084 2007-03-22  Bruno Haible  <bruno@clisp.org>
47085
47086         * modules/printf-frexp (Files): Add m4/frexp.m4.
47087         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
47088         only if the found frexp function actually works.
47089
47090 2007-03-22  Bruno Haible  <bruno@clisp.org>
47091
47092         * lib/frexp.c: Remove older implementation that uses divisions.
47093
47094 2007-03-21  Bruno Haible  <bruno@clisp.org>
47095
47096         * modules/frexp-tests: New file.
47097         * tests/test-frexp.c: New file.
47098
47099         * modules/frexp: New file.
47100         * lib/frexp.c: New file.
47101         * m4/frexp.m4: New file.
47102         * lib/math_.h (frexp): New declaration.
47103         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
47104         REPLACE_FREXP.
47105         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
47106
47107 2007-03-21  Bruno Haible  <bruno@clisp.org>
47108
47109         * modules/isnanl-tests: New file.
47110         * tests/test-isnanl.c: New file.
47111
47112         * modules/isnanl: New file.
47113         * lib/isnanl.h: New file.
47114         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
47115         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
47116         gl_FUNC_ISNANL_WORKS.
47117         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
47118         New macros.
47119
47120 2007-03-21  Bruno Haible  <bruno@clisp.org>
47121
47122         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
47123         lib/isnanl.h.
47124         (Include): Update.
47125         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
47126         * lib/vasnprintf.c: Update.
47127         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
47128         tests/test-isnanl.h, remove tests/test-isnanl.c.
47129         (Makefile.am): Update.
47130         * tests/test-isnanl-nolibm.c: New file.
47131         * tests/test-isnanl.h: New file.
47132         * tests/test-isnanl.c: Remove file.
47133
47134 2007-03-21  Jim Meyering  <jim@meyering.net>
47135
47136         When trying to open ".", treat ESTALE like EACCES.
47137         * lib/savewd.c (savewd_save): Resort to forking not just upon
47138         failure with EACCES, but also when errno is ESTALE.
47139
47140 2007-03-20  Bruno Haible  <bruno@clisp.org>
47141
47142         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
47143         Needed on AIX 5.1. Reported by Matthew Woehlke.
47144
47145 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
47146
47147         Suggestions by Bruno Haible:
47148         * lib/acl-internal.h: Include "gettext.h" rather than rolling
47149         our own.
47150         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
47151         * modules/acl (Depends-on): Add gettext.
47152
47153 2007-03-19  Bruno Haible  <bruno@clisp.org>
47154
47155         * modules/iconvme: Remove file.
47156         * lib/iconvme.h: Remove file.
47157         * lib/iconvme.c: Remove file.
47158         * m4/iconvme.m4: Remove file.
47159
47160 2007-03-19  Bruno Haible  <bruno@clisp.org>
47161
47162         * doc/relocatable-maint.texi: Break long shell script line.
47163         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
47164
47165 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
47166
47167         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
47168         handle file_has_acl.
47169         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
47170         * lib/acl.c: Move header inclusions and related macro defns into
47171         lib/acl-internal.h.
47172         (S_ISLNK): Remove defn, since that's now done for us.
47173         (file_has_acl): Move to lib/file-has-acl.c.
47174         Call acl_trivial if available.  This is the crucial part of the fix.
47175         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
47176         shared within the library.  Rewrite a bit, partly to make it compatible
47177         with the GNU coding style.
47178         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
47179         Remove unnecessary double-quotes.
47180         Don't test for acl_to_text; the build will catch that.
47181         Replace acl_entries if it doesn't exist and it is needed.
47182         Check for -lsec and acl_trivial (as used on Solaris 10).
47183         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
47184         lib/file-has-acl.c.
47185         (Depends-on): Add sys_stat, for S_ISLNK.
47186
47187 2007-03-19  Ben Pfaff  <blp@gnu.org>
47188
47189         * doc/gnulib.texi: Fix typos.
47190         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
47191
47192 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
47193
47194         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
47195         If size is zero here, buf must be zero.
47196
47197 2007-03-19  Simon Josefsson  <simon@josefsson.org>
47198
47199         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
47200         <bruno@clisp.org>.
47201
47202 2007-03-18  Bruno Haible  <bruno@clisp.org>
47203
47204         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
47205         Suggested by Eric Blake.
47206
47207 2007-03-18  Ben Pfaff  <blp@gnu.org>
47208
47209         * doc/relocatable.texi: Recommend using as prefix a directory
47210         that does not exist and will never be created.  Based on
47211         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
47212         and others.
47213
47214 2007-03-17  Bruno Haible  <bruno@clisp.org>
47215
47216         * lib/fchownat.c: Include lchown.h.
47217
47218 2007-03-17  Bruno Haible  <bruno@clisp.org>
47219
47220         Fix endless loop when the given allocated size was > INT_MAX.
47221         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
47222         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
47223         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
47224         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
47225         * lib/sprintf.c (sprintf): Likewise.
47226
47227 2007-03-17  Bruno Haible  <bruno@clisp.org>
47228
47229         * tests/test-argp-2.sh (func_compare): Output a context diff.
47230
47231 2007-03-17  Bruno Haible  <bruno@clisp.org>
47232
47233         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
47234         locale's decimal-point character.
47235
47236 2007-03-17  Bruno Haible  <bruno@clisp.org>
47237
47238         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
47239         before comparing it. Needed because on some platforms (e.g. x86) a
47240         'long double' occupies less bytes than sizeof (long double).
47241
47242 2007-03-17  Bruno Haible  <bruno@clisp.org>
47243
47244         * tests/test-crc.c (main): Make printf statements 64-bit clean.
47245         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
47246         * tests/test-getaddrinfo.c (simple): Likewise.
47247         * tests/test-read-file.c (main): Likewise.
47248
47249 2007-03-17  Bruno Haible  <bruno@clisp.org>
47250
47251         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
47252
47253 2007-03-17  Bruno Haible  <bruno@clisp.org>
47254
47255         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
47256         unused variable.
47257
47258 2007-03-17  Bruno Haible  <bruno@clisp.org>
47259
47260         * tests/test-c-strcasecmp.c: Include c-strcase.h.
47261         * tests/test-c-strncasecmp.c: Likewise.
47262
47263 2007-03-17  Bruno Haible  <bruno@clisp.org>
47264
47265         * modules/stdlib (Depends-on): Add unistd.
47266         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
47267         Needed for MacOS X 10.3.
47268
47269 2007-03-17  Bruno Haible  <bruno@clisp.org>
47270
47271         * lib/unistr/u-strdup.h: Include <stdlib.h>.
47272
47273 2007-03-17  Bruno Haible  <bruno@clisp.org>
47274
47275         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
47276
47277 2007-03-17  Bruno Haible  <bruno@clisp.org>
47278
47279         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
47280         to reflect files copied from gnulib (with or without modifications).
47281         Suggested by Jim Meyering.
47282
47283 2007-03-17  Eric Blake  <ebb9@byu.net>
47284
47285         * NEWS: Document stdlib change from 2007-02-18.
47286
47287 2007-03-17  Jim Meyering  <jim@meyering.net>
47288
47289         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
47290         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
47291         someone uses a name containing shell meta-characters.
47292         Reported by Alfred M. Szmidt.
47293
47294         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
47295
47296 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
47297
47298         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
47299         and copy gettext configuration files only if configure.ac contains
47300         a use of AM_GNU_GETTEXT_VERSION.
47301
47302 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
47303
47304         * build-aux/bootstrap (gnulib_name): New variable.
47305         (gnulib_tool_options): Use it.
47306
47307 2007-03-13  Simon Josefsson  <simon@josefsson.org>
47308
47309         * tests/test-des.c: Use new namespace.
47310
47311 2007-03-15  Bruno Haible  <bruno@clisp.org>
47312
47313         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
47314         Reported by James Youngman <jay@gnu.org>.
47315
47316 2007-03-15  Bruno Haible  <bruno@clisp.org>
47317
47318         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
47319         declared prototype. Needed with cc on OSF/1 5.1.
47320
47321 2007-03-15  Bruno Haible  <bruno@clisp.org>
47322
47323         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
47324         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
47325         (struct gl_list_implementation): Add dispose_fn argument to the
47326         'create_empty', 'create' methods.
47327         (struct gl_list_impl_base): Add field 'dispose_fn'.
47328         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
47329         argument.
47330         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
47331         dispose_fn argument.
47332         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
47333         dispose_fn on the dropped values.
47334         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
47335         dispose_fn argument.
47336         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
47337         dropped values.
47338         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
47339         (gl_tree_remove_node): Call dispose_fn on the dropped value.
47340         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
47341         (gl_tree_remove_node): Call dispose_fn on the dropped value.
47342         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
47343         argument.
47344         (gl_tree_list_free): Call dispose_fn on the dropped values.
47345         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
47346         the dropped values.
47347         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
47348         Add dispose_fn argument.
47349         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
47350         Call dispose_fn on the dropped values.
47351         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
47352         Add dispose_fn argument.
47353         (gl_sublist_create): Initialize the 'dispose_fn' field.
47354         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
47355         * tests/test-array_list.c (main): Update.
47356         * tests/test-carray_list.c (main): Update.
47357         * tests/test-avltree_list.c (main): Update.
47358         * tests/test-rbtree_list.c (main): Update.
47359         * tests/test-avltreehash_list.c (main): Update.
47360         * tests/test-rbtreehash_list.c (main): Update.
47361         * tests/test-linked_list.c (main): Update.
47362         * tests/test-linkedhash_list.c (main): Update.
47363         * tests/test-array_oset.c (main): Update.
47364
47365 2007-03-15  Bruno Haible  <bruno@clisp.org>
47366
47367         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
47368         (gl_oset_create_empty): Add dispose_fn argument.
47369         (struct gl_oset_implementation): Add dispose_fn argument to
47370         'create_empty' method.
47371         (struct gl_oset_impl_base): Add dispose_fn field.
47372         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
47373         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
47374         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
47375         values.
47376         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
47377         (gl_tree_oset_free): Call dispose_fn on the dropped values.
47378         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
47379         dropped value.
47380         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
47381         dropped value.
47382         * tests/test-array_oset.c (main): Update.
47383         * tests/test-avltree_oset.c (main): Update.
47384         * tests/test-rbtree_oset.c (main): Update.
47385         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
47386
47387 2007-03-13  Bruno Haible  <bruno@clisp.org>
47388
47389         * tests/test-stdbool.c (i): Update after last patch.
47390
47391 2007-03-12  Bruno Haible  <bruno@clisp.org>
47392
47393         * lib/quotearg.c: Include <wctype.h> early, before the definition of
47394         the iswprint macro. Needed on Solaris 2.5.1.
47395
47396 2007-03-12  Bruno Haible  <bruno@clisp.org>
47397
47398         * tests/test-printf-frexp.c (main): Declare x as volatile.
47399
47400 2007-03-12  Simon Josefsson  <simon@josefsson.org>
47401
47402         * doc/gnulib.texi (Build robot for gnulib): New section.
47403
47404 2007-03-12  Jim Meyering  <jim@meyering.net>
47405
47406         * build-aux/bootstrap: New file.
47407         * build-aux/bootstrap.conf: New file, from coreutils.
47408
47409 2007-03-11  Bruno Haible  <bruno@clisp.org>
47410
47411         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
47412
47413 2007-03-12  Simon Josefsson  <simon@josefsson.org>
47414
47415         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
47416         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
47417         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
47418
47419 2007-03-11  Bruno Haible  <bruno@clisp.org>
47420
47421         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
47422         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
47423
47424 2007-03-11  Bruno Haible  <bruno@clisp.org>
47425
47426         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
47427         formula. Needed for SunPRO C 5.0.
47428
47429 2007-03-11  Bruno Haible  <bruno@clisp.org>
47430
47431         * modules/long-options (Depends-on): Add getopt.
47432
47433 2007-03-11  Bruno Haible  <bruno@clisp.org>
47434
47435         * modules/modechange (Depends-on): Add stdbool.
47436
47437 2007-03-11  Bruno Haible  <bruno@clisp.org>
47438
47439         * modules/i-ring (Depends-on): Add stdbool.
47440
47441 2007-03-11  Bruno Haible  <bruno@clisp.org>
47442
47443         * modules/gc-des (Depends-on): Add stdbool.
47444
47445 2007-03-11  Bruno Haible  <bruno@clisp.org>
47446
47447         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
47448
47449 2007-03-11  Bruno Haible  <bruno@clisp.org>
47450
47451         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
47452
47453 2007-03-11  Bruno Haible  <bruno@clisp.org>
47454
47455         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
47456
47457 2007-03-11  Bruno Haible  <bruno@clisp.org>
47458
47459         * lib/vasnprintf.c (sprintf): Undefine.
47460
47461 2007-03-11  Bruno Haible  <bruno@clisp.org>
47462
47463         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
47464         initializers in SunPRO C and Compaq C compilers.
47465
47466 2007-03-11  Bruno Haible  <bruno@clisp.org>
47467
47468         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
47469         decrementing code ANSI C compliant.
47470
47471 2007-03-11  Bruno Haible  <bruno@clisp.org>
47472
47473         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
47474         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
47475
47476 2007-03-11  Bruno Haible  <bruno@clisp.org>
47477
47478         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
47479         <stdbool.h> substitute doesn't pass.
47480
47481 2007-03-11  Bruno Haible  <bruno@clisp.org>
47482
47483         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
47484
47485 2007-03-11  Bruno Haible  <bruno@clisp.org>
47486
47487         * gnulib-tool (func_create_megatestdir): Create also an autobuild
47488         script, for submission to autobuild.josefsson.org.
47489
47490 2007-03-10  Bruno Haible  <bruno@clisp.org>
47491
47492         * modules/canonicalize-lgpl-tests: New file.
47493         * tests/test-canonicalize-lgpl.sh: New file.
47494         * tests/test-canonicalize-lgpl.c: New file.
47495
47496         * modules/c-strcase-tests: New file.
47497         * tests/test-c-strcase.sh: New file.
47498         * tests/test-c-strcasecmp.c: New file.
47499         * tests/test-c-strncasecmp.c: New file.
47500
47501         * modules/atexit-tests: New file.
47502         * tests/test-atexit.sh: New file.
47503         * tests/test-atexit.c: New file.
47504
47505 2007-03-10  Bruno Haible  <bruno@clisp.org>
47506
47507         * tests/test-binary-io.sh: Use temporary filenames that are not so
47508         likely to clash with those of other tests (in a parallel make).
47509         * tests/test-binary-io.c: Likewise.
47510
47511 2007-03-10  Bruno Haible  <bruno@clisp.org>
47512
47513         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
47514         fallback; use #error instead.
47515         Suggested by Simon Josefsson.
47516
47517 2007-03-10  Bruno Haible  <bruno@clisp.org>
47518
47519         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
47520         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
47521         first and the last.
47522
47523 2007-03-10  Bruno Haible  <bruno@clisp.org>
47524
47525         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
47526
47527 2007-03-10  Bruno Haible  <bruno@clisp.org>
47528
47529         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
47530         "make distcheck".
47531         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
47532         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
47533         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
47534
47535 2007-03-10  Bruno Haible  <bruno@clisp.org>
47536
47537         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
47538         variable.
47539         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
47540         variable.
47541
47542 2007-03-09  Eric Blake  <ebb9@byu.net>
47543         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
47544
47545         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
47546         types are not being provided by gnulib.
47547         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
47548         types are supported.
47549
47550 2007-03-10  Bruno Haible  <bruno@clisp.org>
47551
47552         * lib/stdio_.h (__attribute__): New macro.
47553         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
47554         vsprintf): Specify __attribute__ __format__ for GCC.
47555         Suggested by Eric Blake.
47556
47557 2007-03-09  Bruno Haible  <bruno@clisp.org>
47558
47559         * modules/printf-posix-tests: New file.
47560         * tests/test-printf-posix.sh: New file.
47561         * tests/test-printf-posix.c: New file.
47562
47563         * modules/printf-posix: New file.
47564         * lib/printf.c: New file.
47565         * m4/printf-posix-rpl.m4: New file.
47566         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
47567         REPLACE_PRINTF.
47568         * lib/stdio_.h (printf): New declaration.
47569         (format, __format__, ____printf____, ____scanf____, ____strftime____,
47570         ____strfmon____): New macros.
47571         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
47572         REPLACE_PRINTF.
47573
47574 2007-03-09  Bruno Haible  <bruno@clisp.org>
47575
47576         * tests/test-vasnprintf-posix2.sh: New file.
47577         * tests/test-vasnprintf-posix2.c: New file.
47578         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
47579         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
47580         (Makefile.am): Activate test-vasnprintf-posix2.sh.
47581
47582         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
47583         a locale dependent decimal point, rather than always '.'.
47584
47585 2007-03-09  Eric Blake  <ebb9@byu.net>
47586
47587         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
47588         spite of platforms like Tandem/NSK that define it to -1.
47589
47590 2007-03-08  Bruno Haible  <bruno@clisp.org>
47591
47592         * modules/vprintf-posix-tests: New file.
47593         * tests/test-vprintf-posix.sh: New file.
47594         * tests/test-vprintf-posix.c: New file.
47595         * tests/test-printf-posix.h: New file.
47596
47597         * modules/vprintf-posix: New file.
47598         * lib/vprintf.c: New file.
47599         * m4/vprintf-posix.m4: New file.
47600         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
47601         REPLACE_VPRINTF.
47602         * lib/stdio_.h (vprintf): New declaration.
47603         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
47604         REPLACE_VPRINTF.
47605
47606 2007-03-08  Bruno Haible  <bruno@clisp.org>
47607
47608         * modules/fprintf-posix-tests: New file.
47609         * tests/test-fprintf-posix.sh: New file.
47610         * tests/test-fprintf-posix.c: New file.
47611
47612         * modules/fprintf-posix: New file.
47613         * lib/fprintf.c: New file.
47614         * m4/fprintf-posix.m4: New file.
47615         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
47616         REPLACE_FPRINTF.
47617         * lib/stdio_.h (fprintf): New declaration.
47618         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
47619         REPLACE_FPRINTF.
47620
47621 2007-03-08  Bruno Haible  <bruno@clisp.org>
47622
47623         * modules/vfprintf-posix-tests: New file.
47624         * tests/test-vfprintf-posix.sh: New file.
47625         * tests/test-vfprintf-posix.c: New file.
47626         * tests/test-fprintf-posix.h: New file.
47627         * tests/test-fprintf-posix.out: New file.
47628
47629         * modules/vfprintf-posix: New file.
47630         * lib/vfprintf.c: New file.
47631         * m4/vfprintf-posix.m4: New file.
47632         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
47633         REPLACE_VFPRINTF.
47634         * lib/stdio_.h (vfprintf): New declaration.
47635         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
47636         REPLACE_VFPRINTF.
47637
47638 2007-03-08  Bruno Haible  <bruno@clisp.org>
47639
47640         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
47641
47642 2007-03-08  Bruno Haible  <bruno@clisp.org>
47643
47644         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
47645         instead of 'expr' invocations.
47646         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47647         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47648         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47649         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47650         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47651         Suggested by Paul Eggert.
47652
47653 2007-03-08  Bruno Haible  <bruno@clisp.org>
47654
47655         * modules/fseterr-tests: New file.
47656         * tests/test-fseterr.c: New file.
47657
47658         * modules/fseterr: New file.
47659         * lib/fseterr.h: New file.
47660         * lib/fseterr.c: New file.
47661
47662 2007-03-08  Bruno Haible  <bruno@clisp.org>
47663
47664         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
47665         * lib/getopt_.h: Likewise.
47666         * lib/mbswidth.h: Likewise.
47667         * lib/setenv.h: Likewise.
47668         * lib/vasnprintf.h: Likewise.
47669         * lib/vasprintf.h: Likewise.
47670         * lib/verror.h: Likewise.
47671         * lib/xsetenv.h: Likewise.
47672         * lib/xvasprintf.h: Likewise.
47673
47674 2007-03-08  Jim Meyering  <jim@meyering.net>
47675
47676         * users.txt: Add parted.
47677
47678         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
47679
47680 2007-03-07  Bruno Haible  <bruno@clisp.org>
47681
47682         * m4/printf.m4: Make the shell script snippets copy&pastable.
47683
47684 2007-03-02  Bruno Haible  <bruno@clisp.org>
47685
47686         * lib/netinet_in_.h: New file.
47687         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
47688         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
47689         * modules/netinet_in (Files): Add lib/netinet_in_.h.
47690         (Depends-on): Add absolute-header.
47691         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
47692         into netinet/in.h.
47693
47694 2007-03-03  Bruno Haible  <bruno@clisp.org>
47695
47696         * lib/sys_select_.h: New file.
47697         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
47698         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
47699         * modules/sys_select (Files): Add lib/sys_select_.h.
47700         (Depends-on): Add absolute-header.
47701         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
47702         into sys/select.h.
47703
47704 2007-03-02  Bruno Haible  <bruno@clisp.org>
47705
47706         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
47707         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
47708         values.
47709         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
47710         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
47711         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
47712         * modules/sys_socket (Depends-on): Add absolute-header.
47713         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
47714         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
47715         (Include): Remove requirement of inclusion of <sys/types.h>.
47716
47717 2007-03-02  Bruno Haible  <bruno@clisp.org>
47718
47719         * lib/byteswap_.h (bswap_32): Fix formula.
47720
47721 2007-03-06  Bruno Haible  <bruno@clisp.org>
47722
47723         * modules/sprintf-posix-tests: New file.
47724         * tests/test-sprintf-posix.c: New file.
47725
47726         * modules/sprintf-posix: New file.
47727         * lib/sprintf.c: New file.
47728         * m4/sprintf-posix.m4: New file.
47729         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
47730         REPLACE_SPRINTF.
47731         * lib/stdio_.h (sprintf): New declaration.
47732         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
47733         REPLACE_SPRINTF.
47734
47735 2007-03-06  Bruno Haible  <bruno@clisp.org>
47736
47737         * modules/vsprintf-posix-tests: New file.
47738         * tests/test-vsprintf-posix.c: New file.
47739         * tests/test-sprintf-posix.h: New file.
47740
47741         * modules/vsprintf-posix: New file.
47742         * lib/vsprintf.c: New file.
47743         * m4/vsprintf-posix.m4: New file.
47744         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
47745         REPLACE_VSPRINTF.
47746         * lib/stdio_.h (vsprintf): New declaration.
47747         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
47748         REPLACE_VSPRINTF.
47749
47750 2007-03-06  Bruno Haible  <bruno@clisp.org>
47751
47752         * modules/vsnprintf (Depend-on): Remove minmax.
47753
47754 2007-03-06  Bruno Haible  <bruno@clisp.org>
47755
47756         * modules/snprintf-posix-tests: New file.
47757         * tests/test-snprintf-posix.c: New file.
47758
47759         * modules/snprintf-posix: New file.
47760         * m4/snprintf-posix.m4: New file.
47761         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
47762         gl_FUNC_SNPRINTF.
47763         (gl_FUNC_SNPRINTF): Invoke it.
47764         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
47765         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
47766         is set.
47767         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
47768
47769 2007-03-06  Bruno Haible  <bruno@clisp.org>
47770
47771         * modules/vsnprintf-posix-tests: New file.
47772         * tests/test-vsnprintf-posix.c: New file.
47773         * tests/test-snprintf-posix.h: New file.
47774
47775         * modules/vsnprintf-posix: New file.
47776         * m4/vsnprintf-posix.m4: New file.
47777         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
47778         gl_FUNC_VSNPRINTF.
47779         (gl_FUNC_VSNPRINTF): Invoke it.
47780         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
47781         * lib/stdio_.h (vsnprintf): Define as a replacement if
47782         REPLACE_VSNPRINTF is set.
47783         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
47784
47785 2007-03-06  Bruno Haible  <bruno@clisp.org>
47786
47787         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
47788         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
47789
47790 2007-03-06  Bruno Haible  <bruno@clisp.org>
47791
47792         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
47793         (asinl): Declare also if HAVE_DECL_ASINL is set.
47794         (atanl): Declare also if HAVE_DECL_ATANL is set.
47795         (ceill): Declare also if HAVE_DECL_CEILL is set.
47796         (cosl): Declare also if HAVE_DECL_COSL is set.
47797         (expl): Declare also if HAVE_DECL_EXPL is set.
47798         (floorl): Declare also if HAVE_DECL_FLOORL is set.
47799         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
47800         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
47801         (logl): Declare also if HAVE_DECL_LOGL is set.
47802         (sinl): Declare also if HAVE_DECL_SINL is set.
47803         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
47804         (tanl): Declare also if HAVE_DECL_TANL is set.
47805         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
47806         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
47807         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
47808         declaration of frexpl, ldexpl.
47809         * modules/printf-frexpl (Depends-on): Add math.
47810         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
47811
47812 2007-03-05  Bruno Haible  <bruno@clisp.org>
47813
47814         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
47815         frexpl and ldexpl are declared.
47816         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
47817
47818 2007-03-05  Bruno Haible  <bruno@clisp.org>
47819
47820         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
47821         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
47822
47823 2007-03-05  Bruno Haible  <bruno@clisp.org>
47824
47825         * lib/stdio_.h: Include <stddef.h>.
47826
47827 2007-03-05  Bruno Haible  <bruno@clisp.org>
47828
47829         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
47830
47831 2007-03-05  Bruno Haible  <bruno@clisp.org>
47832
47833         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
47834         NetBSD 4, from Ralf Wildenhues.
47835
47836 2007-03-04  Bruno Haible  <bruno@clisp.org>
47837
47838         * lib/vasprintf.h: Update #if logic for the case when the functions
47839         exist but are overridden.
47840
47841 2007-03-04  Bruno Haible  <bruno@clisp.org>
47842
47843         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
47844         implementations: glibc-2.4 and MacOS X 10.3.
47845         * tests/test-vasnprintf-posix.c (test_function): Test also the case
47846         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
47847         * tests/test-vasprintf-posix.c (test_function): Likewise.
47848
47849 2007-03-04  Bruno Haible  <bruno@clisp.org>
47850
47851         * modules/vasprintf-posix-tests: New file.
47852         * tests/test-vasprintf-posix.c: New file.
47853
47854         * modules/vasprintf-posix: New file.
47855         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
47856         defined.
47857         * m4/vasprintf-posix.m4: New file.
47858         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
47859         gl_FUNC_VASPRINTF.
47860         (gl_FUNC_VASPRINTF): Invoke it.
47861         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
47862         here.
47863         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
47864
47865 2007-03-04  Bruno Haible  <bruno@clisp.org>
47866
47867         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
47868         REPLACE_GETTIMEOFDAY.
47869         * modules/sys_time (Makefile.am): Likewise.
47870         * m4/sys_time_h.m4: Likewise.
47871         * m4/gettimeofday.m4: Likewise.
47872
47873 2007-03-04  Bruno Haible  <bruno@clisp.org>
47874
47875         * modules/vasnprintf-posix-tests: New file.
47876         * tests/test-vasnprintf-posix.c: New file.
47877
47878         * modules/vasnprintf-posix: New file.
47879         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
47880         printf-frexpl.h.
47881         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
47882         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
47883         REPLACE_VASNPRINTF is defined.
47884         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
47885         gl_FUNC_VASNPRINTF.
47886         (gl_FUNC_VASNPRINTF): Invoke it.
47887         * m4/vasnprintf-posix.m4: New file.
47888         * m4/printf.m4: New file.
47889
47890 2007-03-04  Bruno Haible  <bruno@clisp.org>
47891
47892         Compile progreloc.c only if --enable-relocatable is specified.
47893         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
47894         if --enable-relocatable was specified.
47895         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
47896         lib_SOURCES.
47897
47898 2007-03-04  Jim Meyering  <jim@meyering.net>
47899
47900         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
47901         Use it consistently, rather than enumerating errno constants.
47902
47903 2007-03-04  Bruno Haible  <bruno@clisp.org>
47904
47905         * modules/xvasprintf-tests: New file.
47906         * tests/test-xvasprintf.c: New file.
47907
47908         * modules/vasprintf-tests: New file.
47909         * tests/test-vasprintf.c: New file.
47910
47911         * modules/vasnprintf-tests: New file.
47912         * tests/test-vasnprintf.c: New file.
47913
47914         * modules/vsnprintf-tests: New file.
47915         * tests/test-vsnprintf.c: New file.
47916
47917         * modules/snprintf-tests: New file.
47918         * tests/test-snprintf.c: New file.
47919
47920 2007-03-04  Bruno Haible  <bruno@clisp.org>
47921
47922         Compile relocatable.c only if --enable-relocatable is specified.
47923         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
47924         gl_RELOCATABLE_LIBRARY.
47925         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
47926         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
47927         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
47928         gl_RELOCATABLE_LIBRARY.
47929         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
47930         (Makefile.am): Remove lib_SOURCES.
47931         * modules/relocatable-lib-lgpl (configure.ac): Invoke
47932         gl_RELOCATABLE_LIBRARY.
47933         (Makefile.am): Remove lib_SOURCES.
47934         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
47935         always.
47936         * modules/relocatable-prog-wrapper (configure.ac): Invoke
47937         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
47938
47939 2007-03-04  Bruno Haible  <bruno@clisp.org>
47940
47941         * modules/argmatch-tests: New file.
47942         * tests/test-argmatch.c: New file.
47943
47944         * tests/test-allocsa.c (main): Halve the number of loop runs.
47945
47946         * modules/alloca-opt-tests: New file.
47947         * tests/test-alloca-opt.c: New file.
47948
47949 2007-03-04  Jim Meyering  <jim@meyering.net>
47950
47951         Work around difference between Linux ACLs and Solaris 10 ZFS.
47952         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
47953         for EINVAL.
47954
47955 2007-03-03  Bruno Haible  <bruno@clisp.org>
47956
47957         * modules/relocatable-prog (Depends-on): Add back progreloc's
47958         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
47959
47960 2007-03-03  Bruno Haible  <bruno@clisp.org>
47961
47962         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
47963         * modules/relocatable-lib: New file.
47964
47965 2007-03-03  Bruno Haible  <bruno@clisp.org>
47966
47967         * modules/relocatable-prog: Renamed from modules/relocatable.
47968         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
47969
47970 2007-03-03  Bruno Haible  <bruno@clisp.org>
47971
47972         * modules/relocatable-script (Files): Add doc/relocatable.texi,
47973         m4/relocatable-lib.m4.
47974         (Depends-on): Remove 'relocatable'.
47975         (configure.ac): Add gl_RELOCATABLE_NOP.
47976
47977 2007-03-03  Bruno Haible  <bruno@clisp.org>
47978
47979         * modules/relocatable-prog-wrapper: New file.
47980         * modules/relocatable (Depends-on): Add it. Remove all other
47981         dependencies except progname.
47982         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
47983
47984         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
47985         (gl_FUNC_STRERROR): Nop.
47986         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
47987
47988         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
47989         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
47990
47991         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
47992         (gl_FUNC_READLINK): Update.
47993
47994         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
47995
47996 2007-03-03  Bruno Haible  <bruno@clisp.org>
47997
47998         * lib/xreadlink.c: Include <unistd.h> unconditionally.
47999         * modules/xreadlink (Depends-on): Add unistd.
48000         * modules/xreadlink-with-size (Depends-on): Likewise.
48001
48002 2007-03-03  Bruno Haible  <bruno@clisp.org>
48003
48004         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
48005         extracted from gt_FUNC_SETENV.
48006         (gt_FUNC_SETENV): Remove macro.
48007         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
48008         remove gt_FUNC_SETENV.
48009
48010 2007-03-03  Bruno Haible  <bruno@clisp.org>
48011
48012         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
48013         ENABLE_RELOCATABLE here.
48014         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
48015
48016 2007-03-03  Bruno Haible  <bruno@clisp.org>
48017
48018         * modules/rbtreehash-list-tests (Depends-on): Add progname.
48019         * tests/test-rbtreehash_list.c: Include progname.h.
48020         (main): Call set_program_name.
48021
48022         * modules/rbtree-oset-tests (Depends-on): Add progname.
48023         * tests/test-rbtree_oset.c: Include progname.h.
48024         (main): Call set_program_name.
48025
48026         * modules/rbtree-list-tests (Depends-on): Add progname.
48027         * tests/test-rbtree_list.c: Include progname.h.
48028         (main): Call set_program_name.
48029
48030         * modules/linked-list-tests (Depends-on): Add progname.
48031         * tests/test-linked_list.c: Include progname.h.
48032         (main): Call set_program_name.
48033
48034 2007-03-03  Bruno Haible  <bruno@clisp.org>
48035
48036         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
48037         All uses of __restrict changed to _Restrict_.
48038         * lib/glob_.h (__restrict): Remove macro.
48039
48040 2007-03-02  Bruno Haible  <bruno@clisp.org>
48041
48042         * modules/gettext (configure.ac): Require gettext infrastructure
48043         from version 0.16.1.
48044
48045 2007-03-02  Bruno Haible  <bruno@clisp.org>
48046
48047         * modules/linkedhash-list-tests (Depends-on): Add progname.
48048         * tests/test-linkedhash_list.c: Include progname.h.
48049         (main): Call set_program_name.
48050
48051         * modules/carray-list-tests (Depends-on): Add progname.
48052         * tests/test-carray_list.c: Include progname.h.
48053         (main): Call set_program_name.
48054
48055         * modules/avltreehash-list-tests (Depends-on): Add progname.
48056         * tests/test-avltreehash_list.c: Include progname.h.
48057         (main): Call set_program_name.
48058
48059         * modules/avltree-oset-tests (Depends-on): Add progname.
48060         * tests/test-avltree_oset.c: Include progname.h.
48061         (main): Call set_program_name.
48062
48063         * modules/avltree-list-tests (Depends-on): Add progname.
48064         * tests/test-avltree_list.c: Include progname.h.
48065         (main): Call set_program_name.
48066
48067         * modules/array-oset-tests (Depends-on): Add progname.
48068         * tests/test-array_oset.c: Include progname.h.
48069         (main): Call set_program_name.
48070
48071         * modules/array-list-tests (Depends-on): Add progname.
48072         * tests/test-array_list.c: Include progname.h.
48073         (main): Call set_program_name.
48074
48075         * modules/argp-tests (Depends-on): Add progname.
48076         * tests/test-argp.c: Include argp.h first. Include progname.h.
48077         (main): Call set_program_name.
48078
48079 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
48080
48081         * doc/gnulib-tool.texi (Initial import): Reword description of
48082         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
48083         limited effect even if defined after the first system include.
48084
48085 2007-03-01  Bruno Haible  <bruno@clisp.org>
48086
48087         * build-aux/config.libpath: Update to libtool-1.5.22.
48088         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48089
48090 2007-03-01  Bruno Haible  <bruno@clisp.org>
48091
48092         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
48093         foo_CFLAGS.
48094         Reported by Ralf Wildenhues.
48095
48096 2007-03-01  Bruno Haible  <bruno@clisp.org>
48097
48098         * build-aux/install-reloc: Remove object files left over by some
48099         compilers.
48100         Reported by Ralf Wildenhues.
48101
48102 2007-03-01  Bruno Haible  <bruno@clisp.org>
48103
48104         * build-aux/install-reloc: Break long lines.
48105
48106 2007-03-01  Bruno Haible  <bruno@clisp.org>
48107
48108         * doc/relocatable.texi: Document that it may not work on OpenBSD.
48109         Reported by Ralf Wildenhues.
48110
48111 2007-03-01  Bruno Haible  <bruno@clisp.org>
48112
48113         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
48114         include ordering constraints.
48115
48116 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
48117
48118         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
48119         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
48120         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
48121         as another example.
48122         * lib/time_.h: Fix misspelling.
48123         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
48124         Require gl_HEADER_TIME_H_DEFAULTS.
48125         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
48126         * m4/time_r.m4 (gl_TIME_R): Likewise.
48127         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
48128
48129 2007-03-01  Bruno Haible  <bruno@clisp.org>
48130
48131         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
48132         * m4/utimens.m4 (gl_UTIMENS): Likewise.
48133
48134 2007-03-01  Jim Meyering  <jim@meyering.net>
48135
48136         * modules/xreadlink (Maintainer): Add my name.
48137         * modules/xreadlink-with-size (Depends-on): Alphabetize.
48138
48139 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
48140             Bruno Haible  <bruno@clisp.org>
48141
48142         * build-aux/install-reloc: Compile also c-ctype.c.
48143         * build-aux/relocatable.sh.in: New file.
48144         * doc/relocatable.texi: New file.
48145         * doc/relocatable-maint.texi: New file.
48146         * doc/gnulib.texi: Include relocatable-maint.texi.
48147         * lib/progreloc.c: Include unistd.h unconditionally.
48148         * lib/relocwrapper.c: Include unistd.h unconditionally.
48149         Include c-ctype.h.
48150         (add_dotbin): Use c_tolower.
48151         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
48152         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
48153         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
48154         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
48155         to m4/relocatable-lib.m4.
48156         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
48157         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
48158         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
48159         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
48160         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
48161         * modules/relocatable: New file.
48162         * modules/relocatable-lib: New file.
48163         * modules/relocatable-script: New file.
48164
48165 2007-02-28  Bruno Haible  <bruno@clisp.org>
48166
48167         Import --enable-relocatable infrastructure.
48168         * build-aux/config.libpath: New file, from GNU gettext.
48169         * build-aux/install-reloc: New file, from GNU gettext.
48170         * build-aux/reloc-ldflags: New file, from GNU gettext.
48171         * lib/relocatable.h: New file, from GNU gettext.
48172         * lib/relocatable.c: New file, from GNU gettext.
48173         * lib/relocwrapper.c: New file, from GNU gettext.
48174         * m4/relocatable.m4: New file, from GNU gettext.
48175
48176 2007-02-28  Bruno Haible  <bruno@clisp.org>
48177
48178         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
48179
48180         * modules/xreadlink: New file, from GNU gettext with modifications.
48181         * lib/xreadlink.c: New file, from GNU gettext.
48182         * lib/xreadlink.h: Add comments.
48183         (xreadlink): New declaration.
48184
48185         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
48186         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
48187         lib/xreadlink-with-size.c.
48188         (configure.ac): Remove gl_XREADLINK invocation.
48189         (Makefile.am): Augment lib_SOURCES.
48190         * m4/xreadlink.m4: Remove file.
48191         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
48192         (xreadlink_with_size): Renamed from xreadink.
48193         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
48194         * modules/canonicalize (Depends-on): Replace xreadlink with
48195         xreadlink-with-size.
48196         * lib/canonicalize.c (canonicalize_filename_mode): Update.
48197
48198 2007-02-25  Jim Meyering  <jim@meyering.net>
48199
48200         * build-aux/announce-gen: When complaining about excess arguments,
48201         list them.
48202
48203 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
48204
48205         * README: Document signed integer overflow situation more
48206         accurately.
48207
48208 2007-02-25  Bruno Haible  <bruno@clisp.org>
48209
48210         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
48211         'a' or 'A' conversion.
48212
48213 2007-02-25  Bruno Haible  <bruno@clisp.org>
48214
48215         * modules/filename: Renamed from modules/pathname.
48216         (Files): Replace lib/pathname.h with lib/filename.h. Replace
48217         lib/concatpath.c with lib/concat-filename.c.
48218         (Makefile.am): Update.
48219         (Include): Replace pathname.h with filename.h.
48220         * lib/filename.h: Renamed from lib/pathname.h.
48221         (concatenated_filename): Renamed from concatenated_pathname.
48222         * lib/concat-filename.c: Renamed from lib/concatpath.c.
48223         (concatenated_filename): Renamed from concatenated_pathname.
48224         * lib/findprog.c: Include filename.h instead of pathname.h.
48225         (find_in_path): Update.
48226         * lib/javacomp.c: Include filename.h instead of pathname.h.
48227         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
48228         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
48229         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
48230         is_oldgcj_14_13_usable, is_javac_usable): Update.
48231         * lib/javaexec.c: Include filename.h instead of pathname.h.
48232         (execute_java_class): Update.
48233         * modules/findprog: Update.
48234         * modules/javacomp: Update.
48235         * modules/javaexec: Update.
48236         * MODULES.html.sh (File system functions): Add 'filename', remove
48237         'pathname'.
48238
48239 2007-02-25  Bruno Haible  <bruno@clisp.org>
48240
48241         * modules/printf-frexpl-tests: New file.
48242         * tests/test-printf-frexpl.c: New file.
48243
48244         * modules/printf-frexpl: New file.
48245         * lib/printf-frexpl.h: New file.
48246         * lib/printf-frexpl.c: New file.
48247         * m4/printf-frexpl.m4: New file.
48248
48249 2007-02-25  Bruno Haible  <bruno@clisp.org>
48250
48251         * modules/printf-frexp-tests: New file.
48252         * tests/test-printf-frexp.c: New file.
48253
48254         * modules/printf-frexp: New file.
48255         * lib/printf-frexp.h: New file.
48256         * lib/printf-frexp.c: New file.
48257         * m4/printf-frexp.m4: New file.
48258
48259 2007-02-25  Bruno Haible  <bruno@clisp.org>
48260
48261         Assume automake >= 1.10 for the tests.
48262         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
48263         * modules/arctwo-tests: Likewise.
48264         * modules/argp-tests: Likewise.
48265         * modules/avltree-list-tests: Likewise.
48266         * modules/avltree-oset-tests: Likewise.
48267         * modules/avltreehash-list-tests: Likewise.
48268         * modules/carray-list-tests: Likewise.
48269         * modules/crc-tests: Likewise.
48270         * modules/des-tests: Likewise.
48271         * modules/gc-arcfour-tests: Likewise.
48272         * modules/gc-arctwo-tests: Likewise.
48273         * modules/gc-des-tests: Likewise.
48274         * modules/gc-hmac-md5-tests: Likewise.
48275         * modules/gc-hmac-sha1-tests: Likewise.
48276         * modules/gc-md2-tests: Likewise.
48277         * modules/gc-md4-tests: Likewise.
48278         * modules/gc-md5-tests: Likewise.
48279         * modules/gc-pbkdf2-sha1-tests: Likewise.
48280         * modules/gc-rijndael-tests: Likewise.
48281         * modules/gc-sha1-tests: Likewise.
48282         * modules/gc-tests: Likewise.
48283         * modules/getaddrinfo-tests: Likewise.
48284         * modules/hmac-md5-tests: Likewise.
48285         * modules/hmac-sha1-tests: Likewise.
48286         * modules/linked-list-tests: Likewise.
48287         * modules/linkedhash-list-tests: Likewise.
48288         * modules/lock-tests: Likewise.
48289         * modules/md2-tests: Likewise.
48290         * modules/md4-tests: Likewise.
48291         * modules/md5-tests: Likewise.
48292         * modules/rbtree-list-tests: Likewise.
48293         * modules/rbtree-oset-tests: Likewise.
48294         * modules/rbtreehash-list-tests: Likewise.
48295         * modules/read-file-tests: Likewise.
48296         * modules/rijndael-tests: Likewise.
48297         * modules/stdint-tests: Likewise.
48298         * modules/tls-tests: Likewise.
48299
48300 2007-02-24  Bruno Haible  <bruno@clisp.org>
48301
48302         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
48303         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
48304         function; instead check whether isnan with a double argument links.
48305         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
48306         function; instead check whether isnan with a 'long double' argument
48307         links.
48308         Reported by Eric Blake <ebb9@byu.net>.
48309
48310 2007-02-24  Bruno Haible  <bruno@clisp.org>
48311
48312         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
48313         defined.
48314         * lib/isnanl.c: Remove all code. Just include isnan.c.
48315         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
48316
48317 2007-02-25  Jim Meyering  <jim@meyering.net>
48318
48319         Avoid conflicting types for 'unsetenv' on FreeBSD.
48320         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
48321         conflicting with FreeBSD's (5.0 and 6.1) function declaration
48322         in stdlib.h.
48323
48324 2007-02-24  Bruno Haible  <bruno@clisp.org>
48325
48326         * modules/isnanl-nolibm-tests: New file.
48327         * tests/test-isnanl.c: New file.
48328
48329         * modules/isnanl-nolibm: New file.
48330         * lib/isnanl.h: New file.
48331         * lib/isnanl.c: New file.
48332         * m4/isnanl.m4: New file.
48333
48334 2007-02-24  Bruno Haible  <bruno@clisp.org>
48335
48336         * modules/isnan-nolibm-tests: New file.
48337         * tests/test-isnan.c: New file.
48338
48339         * modules/isnan-nolibm: New file.
48340         * lib/isnan.h: New file.
48341         * lib/isnan.c: New file.
48342         * m4/isnan.m4: New file.
48343
48344 2007-02-24  Bruno Haible  <bruno@clisp.org>
48345
48346         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
48347         assume that an exponent fits in 20 bits.
48348
48349 2007-02-24  Jim Meyering  <jim@meyering.net>
48350
48351         * m4/regex.m4: Update the description of the configure-time option,
48352         --without-included-regex, to state accurately what the defaults are,
48353         and perhaps to give people an idea why using this option is risky.
48354
48355 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
48356
48357         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
48358         loops on small arguments.  This attempts to avoid the problem
48359         Bruno Haible reported for AIX 4.3.2 in
48360         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
48361
48362 2007-02-23  Bruno Haible  <bruno@clisp.org>
48363
48364         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
48365         Needed for help2man.
48366
48367 2007-02-23  Karl Berry  <karl@gnu.org>
48368
48369         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
48370         exists, foo.h should be cvs-ignored, not committed.
48371
48372 2007-02-23  Eric Blake  <ebb9@byu.net>
48373
48374         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
48375         * lib/stat-time.h (includes): Likewise.
48376         * lib/utimecmp.c (includes): Likewise.
48377         * lib/utimens.h (includes): Likewise.
48378         * lib/getdate.y (includes): Also include "timespec.h" for use
48379         internal to the module.
48380         * modules/utimens (Depends-on): Revert yesterday's patch.
48381         * modules/nanosleep (Depends-on): Add missing dependency.
48382
48383 2007-02-22  Bruno Haible  <bruno@clisp.org>
48384
48385         * lib/glob.c: Don't include getlogin_r.h.
48386
48387 2007-02-22  Jim Meyering  <jim@meyering.net>
48388
48389         * modules/utimens (Depends-on): Add timespec, required for
48390         utimens.h's inclusion of timespec.h.
48391
48392 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
48393
48394         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
48395         long unreadable paths in GNU/Linux.  Problem reported by Andreas
48396         Schwab in
48397         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
48398         I'll try to think of a better way to fix the Solaris problem.
48399
48400         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
48401         like glibc; on Solaris 10, it fails with errno == EINVAL.
48402         POSIX says the behavior is unspecified if the first argument is NULL,
48403         so play it safe and never pass NULL to the system getcwd.
48404
48405 2007-02-21  Jim Meyering  <jim@meyering.net>
48406
48407         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
48408         of gettimeofday.  It would conflict with the one now always
48409         provided via sys_time_.h.  Reported by Matthew Woehlke, as
48410         an IRIX 6.5 build failure.
48411
48412 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
48413
48414         Minor fixups to port to Solaris 10 with Sun C 5.8.
48415         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
48416         * modules/getcwd (Depends-on): Add dirfd.
48417         * lib/putenv.c (putenv): #undef it.
48418         (rpl_putenv): New decl.
48419         (malloc, free): Include <stdlib.h> rather than prototyping separately.
48420
48421 2007-02-20  Bruno Haible  <bruno@clisp.org>
48422
48423         * modules/stdio-tests: New file.
48424         * tests/test-stdio.c: New file.
48425
48426         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
48427         (Depends-on): Add stdio.
48428         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
48429         (Include): Use <stdio.h> instead of vsnprintf.h.
48430         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
48431         HAVE_DECL_VSNPRINTF.
48432         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
48433
48434         * modules/snprintf (Files): Remove lib/snprintf.h.
48435         (Depends-on): Add stdio.
48436         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
48437         (Include): Use <stdio.h> instead of snprintf.h.
48438         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
48439         HAVE_DECL_SNPRINTF.
48440         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
48441         * lib/getaddrinfo.c: Likewise.
48442
48443         * modules/stdio: New file.
48444         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
48445         * lib/snprintf.h: Remove file.
48446         * lib/vsnprintf.h: Remove file.
48447         * lib/.cppi-disable: Remove snprintf.h.
48448         * m4/stdio_h.m4: New file.
48449         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
48450
48451 2007-02-20  Jim Meyering  <jim@meyering.net>
48452
48453         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
48454         used by e.g., mingw.  From Bruno Haible.
48455
48456 2007-02-19  Bruno Haible  <bruno@clisp.org>
48457
48458         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
48459         warnings.
48460         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48461
48462 2007-02-19  Bruno Haible  <bruno@clisp.org>
48463
48464         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
48465         from mingw users.
48466
48467 2007-02-19  Bruno Haible  <bruno@clisp.org>
48468
48469         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
48470         warnings.
48471         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
48472
48473 2007-02-19  Jim Meyering  <jim@meyering.net>
48474
48475         Don't use FD after a successful "fdopendir (fd)".
48476         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
48477         Reset it by calling dirfd on the just-obtained DIR*.
48478
48479         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
48480         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
48481
48482 2007-02-18  Bruno Haible  <bruno@clisp.org>
48483
48484         * lib/readlink.c: Include <unistd.h>.
48485         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
48486         HAVE_READLINK.
48487         * modules/readlink (Depends-on): Add unistd.
48488         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48489         (Include): Add <unistd.h>.
48490
48491         * lib/getlogin_r.h: Remove file.
48492         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
48493         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
48494         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
48495         HAVE_DECL_GETLOGIN_R.
48496         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
48497         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48498         (Include): Use <unistd.h> instead of getlogin_r.h.
48499
48500         * lib/getcwd.h: Remove file.
48501         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
48502         * lib/xgetcwd.c: Likewise.
48503         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
48504         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
48505         * modules/getcwd (Files): Remove lib/getcwd.h.
48506         (Depends-on): Add unistd.
48507         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48508         (Include): Use <unistd.h> instad of getcwd.h.
48509
48510         * lib/ftruncate.c: Include <unistd.h> first.
48511         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
48512         Set HAVE_FTRUNCATE.
48513         * modules/ftruncate (Depends-on): Add unistd.
48514         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48515
48516         * lib/fchdir.c: Include <unistd.h> first.
48517         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
48518         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
48519         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
48520         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48521         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
48522
48523         * lib/dup2.c: Include <unistd.h> first.
48524         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
48525         HAVE_DUP2.
48526         * modules/dup2 (Depends-on): Add unistd.
48527         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48528
48529         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
48530         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
48531         REPLACE_CHOWN. Don't define chown as a macro here.
48532         * modules/chown (Depends-on): Add unistd.
48533         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48534
48535         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
48536         Add definition for GL_LINK_WARNING.
48537         (chown, dup2): New declarations.
48538         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
48539         link warning.
48540         (ftruncate): New declaration.
48541         (getcwd): New declaration, taken from old getcwd.h.
48542         (getlogin_r): New declaration, taken from old getlogin_r.h.
48543         (readlink): New declaration.
48544         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
48545         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
48546         (gl_PREREQ_UNISTD): Remove macro.
48547         (gl_UNISTD_MODULE_INDICATOR): New macro.
48548         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
48549         many new variables. Don't set UNISTD_H.
48550         * modules/unistd (Description): Change.
48551         (Depends-on): Add link-warning.
48552         (configure.ac): Update.
48553         (Makefile.am): Create unistd.h always. Substitute many new variables
48554         into it.
48555
48556 2007-02-18  Bruno Haible  <bruno@clisp.org>
48557
48558         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
48559         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
48560         HAVE_GETSUBOPT.
48561         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
48562         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
48563         * lib/getsubopt.h: Remove file.
48564         * modules/getsubopt (Files): Remove lib/getsubopt.h.
48565         (Depends-on): Add stdlib.
48566         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48567         (Includes): Use <stdlib.h> instead of getsubopt.h.
48568         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
48569         Set HAVE_GETSUBOPT.
48570         * lib/getsubopt.c: Don't include getsubopt.h.
48571
48572 2007-02-18  Bruno Haible  <bruno@clisp.org>
48573
48574         * modules/fchdir (Depends-on): Add dup2.
48575
48576 2007-02-18  Bruno Haible  <bruno@clisp.org>
48577
48578         * lib/stdlib_.h: Handle glibc's special invocation convention
48579         specially.
48580
48581 2007-02-18  Bruno Haible  <bruno@clisp.org>
48582
48583         * modules/stdlib-tests: New file.
48584         * tests/test-stdlib.c: New file.
48585
48586         * modules/mkstemp (Files): Remove lib/mkstemp.h.
48587         (Depends-on): Add stdlib.
48588         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48589         (Includes): Use <stdlib.h> instead of mkstemp.h.
48590         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
48591         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
48592         * lib/mkstemp.c: Don't include mkstemp.h.
48593         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
48594         * lib/stdlib--.h: Don't include mkstemp.h.
48595
48596         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
48597         (Depends-on): Add stdlib.
48598         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48599         (Includes): Use <stdlib.h> instead of mkdtemp.h.
48600         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
48601         HAVE_MKDTEMP.
48602         * lib/mkdtemp.c: Don't include mkdtemp.h.
48603         * lib/clean-temp.c: Don't include mkdtemp.h.
48604
48605         * modules/exit (Files): Remove lib/exit.h.
48606         (Depends-on): Add stdlib.
48607         (Makefile.am): Remove lib_SOURCES.
48608         (Include): Use <stdlib.h> instead of exit.h.
48609         * lib/argmatch.c: Don't include exit.h.
48610         * lib/execute.c: Likewise.
48611         * lib/pagealign_alloc.c: Likewise.
48612         * lib/pipe.c: Likewise.
48613         * lib/wait-process.c: Likewise.
48614         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
48615         * lib/exitfail.c: Likewise.
48616         * lib/savewd.c: Likewise.
48617         * lib/xsetenv.c: Likewise.
48618
48619         * modules/stdlib: New file.
48620         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
48621         and extra comments about mkstemp().
48622         * lib/exit.h: Remove file.
48623         * lib/mkdtemp.h: Remove file.
48624         * lib/mkstemp.h: Remove file.
48625         * m4/stdlib_h.m4: New file.
48626         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
48627
48628 2007-02-18  Bruno Haible  <bruno@clisp.org>
48629
48630         * modules/math-tests: New file.
48631         * tests/test-math.c: New file.
48632
48633         * modules/math: New file.
48634         * modules/mathl (Files): Remove lib/mathl.h.
48635         (Depends-on): Add math.
48636         (Makefile.am): Don't mention mathl.h.
48637         (Include): Use <math.h> instead of mathl.h.
48638         * lib/math_.h: New file.
48639         * lib/mathl.h: Remove file.
48640         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
48641         mathl.h.
48642         * lib/asinl.c: Likewise.
48643         * lib/atanl.c: Likewise.
48644         * lib/ceill.c: Likewise.
48645         * lib/cosl.c: Likewise.
48646         * lib/expl.c: Likewise.
48647         * lib/floorl.c: Likewise.
48648         * lib/frexpl.c: Likewise.
48649         * lib/ldexpl.c: Likewise.
48650         * lib/logl.c: Likewise.
48651         * lib/sincosl.c: Likewise.
48652         * lib/sinl.c: Likewise.
48653         * lib/sqrtl.c: Likewise.
48654         * lib/tanl.c: Likewise.
48655         * lib/trigl.c: Likewise.
48656         * m4/math_h.m4: New file.
48657         * MODULES.html.sh (Mathematics): Add math.
48658
48659 2007-02-17  Bruno Haible  <bruno@clisp.org>
48660
48661         * modules/wctype-tests: New file.
48662         * tests/test-wctype.c: New file.
48663
48664         * modules/wchar-tests: New file.
48665         * tests/test-wchar.c: New file.
48666
48667         * modules/unistd-tests: New file.
48668         * tests/test-unistd.c: New file.
48669
48670         * modules/time-tests: New file.
48671         * tests/test-time.c: New file.
48672
48673         * modules/sysexits-tests: New file.
48674         * tests/test-sysexits.c: New file.
48675
48676         * modules/sys_time-tests: New file.
48677         * tests/test-sys_time.c: New file.
48678
48679         * modules/sys_stat-tests: New file.
48680         * tests/test-sys_stat.c: New file.
48681
48682         * modules/sys_socket-tests: New file.
48683         * tests/test-sys_socket.c: New file.
48684
48685         * modules/sys_select-tests: New file.
48686         * tests/test-sys_select.c: New file.
48687
48688         * modules/string-tests: New file.
48689         * tests/test-string.c: New file.
48690
48691         * modules/stdbool-tests: New file.
48692         * tests/test-stdbool.c: New file.
48693
48694         * modules/netinet_in-tests: New file.
48695         * tests/test-netinet_in.c: New file.
48696
48697         * modules/inttypes-tests: New file.
48698         * tests/test-inttypes.c: New file.
48699
48700         * modules/fcntl-tests: New file.
48701         * tests/test-fcntl.c: New file.
48702
48703         * modules/byteswap-tests: New file.
48704         * tests/test-byteswap.c: New file.
48705
48706         * modules/arpa_inet-tests: New file.
48707         * tests/test-arpa_inet.c: New file.
48708
48709 2007-02-17  Bruno Haible  <bruno@clisp.org>
48710
48711         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
48712         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
48713         if the corresponding module is not enabled. Emit link warnings if
48714         the function is used nevertheless.
48715         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
48716         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
48717         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
48718         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
48719         * modules/inttypes (Depends-on): Add link-warning.
48720         (Makefile.am): Copy the contents of build-aux/link-warning.h into
48721         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
48722         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
48723         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
48724         * modules/imaxdiv (configure.ac): Likewise.
48725         * modules/strtoimax (configure.ac): Likewise.
48726         * modules/strtoumax (configure.ac): Likewise.
48727
48728 2007-02-17  Bruno Haible  <bruno@clisp.org>
48729
48730         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
48731         gl_STRING_MODULE_INDICATOR_DEFAULTS.
48732         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
48733         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
48734
48735 2007-02-17  Bruno Haible  <bruno@clisp.org>
48736
48737         * modules/link-warning: New file.
48738         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
48739         * lib/string_.h (GL_LINK_WARNING): Remove definition.
48740         * modules/string (Depends-on): Add link-warning.
48741         (Makefile.am): Copy the contents of build-aux/link-warning.h into
48742         string.h.
48743         * MODULES.html.sh (Support for building libraries and executables): Add
48744         link-warning.
48745
48746 2007-02-17  Bruno Haible  <bruno@clisp.org>
48747
48748         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
48749         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
48750         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
48751         long lines.
48752
48753 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
48754             Bruno Haible  <bruno@clisp.org>
48755
48756         * modules/tmpfile: New file.
48757         * lib/tmpfile.c: New file.
48758         * m4/tmpfile.m4: New file.
48759         * MODULES.html.sh (func_all_modules): New section "Input/output".
48760
48761 2007-02-15  Bruno Haible  <bruno@clisp.org>
48762
48763         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
48764         (supports_delete_on_close): New function.
48765         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
48766
48767 2007-02-14  Bruno Haible  <bruno@clisp.org>
48768
48769         * modules/mbspcasecmp-tests: New file.
48770         * tests/test-mbspcasecmp.sh: New file.
48771         * tests/test-mbspcasecmp.c: New file.
48772
48773         New module mbspcasecmp.
48774         * modules/mbspcasecmp: New file.
48775         * lib/mbspcasecmp.c: New file.
48776         * lib/string_.h (strncasecmp): Change warning message.
48777         (mbspcasecmp): New declaration.
48778         * m4/mbspcasecmp.m4: New file.
48779         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48780         GNULIB_MBSPCASECMP.
48781         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
48782         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
48783
48784 2007-02-14  Bruno Haible  <bruno@clisp.org>
48785
48786         * modules/mbsncasecmp-tests: New file.
48787         * tests/test-mbsncasecmp.sh: New file.
48788         * tests/test-mbsncasecmp.c: New file.
48789
48790         New module mbsncasecmp.
48791         * modules/mbsncasecmp: New file.
48792         * lib/mbsncasecmp.c: New file.
48793         * lib/string_.h (mbsncasecmp): New declaration.
48794         * m4/mbsncasecmp.m4: New file.
48795         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48796         GNULIB_MBSNCASECMP.
48797         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
48798         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
48799
48800 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
48801
48802         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
48803         Verify that it doesn't overlap with our flags.
48804         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
48805         do not have the desired effect in multibyte locales; instead, use
48806         mbscasecmp.
48807         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
48808         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
48809         we don't require GNU fnmatch ourselves (if our users require it, they
48810         should do so explicitly).
48811
48812         Fix regex code so it doesn't rely on strcasecmp.
48813         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
48814         Otherwise, include gnulib's langinfo.h.
48815         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
48816         undesirable behavior in non-C locales.  Instead, rely on localecharset.
48817         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
48818         * modules/regex (FILES): Remove m4/codeset.m4.
48819         (Depends-on): Add localcharset.  Remove strcase.
48820
48821 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48822
48823         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
48824         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
48825
48826 2007-02-13  Bruno Haible  <bruno@clisp.org>
48827
48828         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
48829         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48830
48831 2007-02-12  Bruno Haible  <bruno@clisp.org>
48832
48833         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
48834         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
48835         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
48836         time warning rather than a link error.
48837
48838 2007-02-12  Bruno Haible  <bruno@clisp.org>
48839
48840         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
48841         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48842         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48843
48844 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
48845
48846         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
48847         args, not 2.
48848
48849 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
48850
48851         New module 'time', so that apps can include <time.h> as per
48852         POSIX and GNU instead of separate include files like time_r.h
48853         and timegm.h.  This implementation tries out a simpler approach
48854         for replacing decls in standard include files (as compared to
48855         the string module), somewhat as an experiment.
48856
48857         * config/srclist.txt: Comment out mktime.c for now.
48858         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
48859         since it doesn't apply any more.  Use generic wording instead.
48860         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
48861         'time'.
48862         * lib/time_.h, m4/time_h.m4, modules/time: New files.
48863         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
48864         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
48865         Don't include <sys/types.h>; no longer needed since we assume C89.
48866         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
48867         * lib/strftime.c: Likewise.
48868         * lib/time_r.c: Likewise.
48869         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
48870         * lib/nanosleep.c: Include <time.h> first, to check interface.
48871         * lib/strptime.c: Likewise.
48872         * lib/time_r.c: Likewise.
48873         * lib/timegm.c: Likewise.
48874         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
48875         needed.
48876         * lib/timegm.c: Don't include timegm.h; no longer needed.
48877         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
48878         time.h now handles any problems in that area.
48879         (struct timespec, nanosleep): Remove; time.h now arranges for these.
48880         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
48881         that time.h defines struct timespec.
48882         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
48883         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
48884         handles that.
48885         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
48886         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
48887         needed.  Set REPLACE_LOCALTIME.
48888         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
48889         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
48890         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
48891         nanosleep; time_h.m4 now does that.  Don't require
48892         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
48893         module handles this now.
48894         * modules/getdate (Depends-on): Remove timespec.  Add time.
48895         * modules/nanosleep (Depends-on): Likewise.
48896         * modules/stat-time (Depends-on): Likewise.
48897         * modules/nanosleep (Include): Include time.h, not timespec.h.
48898         * modules/strptime (Files): Remove lib/strptime.h.
48899         (Depends-on): Add extensions, time.
48900         (Include): Include time.h, not strptime.h.
48901         * modules/time_r (Files): Remove lib/time_r.h.
48902         (Depends-on): Add time.
48903         (Include): Include time.h, not time_r.h.
48904         * modules/timegm: Likewise.
48905         * modules/timespec (Description): Now does timespec-related decls
48906         of our own, instead of struct timespec itself.
48907         (Depends-on): Add time; remove extensions.
48908         (Maintainer): Add self.
48909         * modules/utimecmp (Depends-on): Add time; remove timespec.
48910         * modules/utimens (Depends-on): Likewise.
48911         * modules/xnanosleep (Depends-on): Likewise.
48912
48913 2007-02-11  Bruno Haible  <bruno@clisp.org>
48914
48915         * lib/c-strstr.c: Include allocsa.h.
48916         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
48917         * lib/c-strcasestr.c: Include allocsa.h.
48918         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
48919         * lib/strcasestr.c: Include allocsa.h.
48920         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
48921         * lib/mbsstr.c: Include allocsa.h.
48922         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
48923         allocsa/freesa instead of malloc/free.
48924         * lib/mbscasestr.c: Include allocsa.h.
48925         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
48926         allocsa/freesa instead of malloc/free.
48927         * modules/c-strstr (Depends-on): Add allocsa.
48928         * modules/c-strcasestr (Depends-on): Likewise.
48929         * modules/strcasestr (Depends-on): Likewise.
48930         * modules/mbsstr (Depends-on): Likewise.
48931         * modules/mbscasestr (Depends-on): Likewise.
48932
48933 2007-02-11  Bruno Haible  <bruno@clisp.org>
48934
48935         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
48936
48937         * modules/mbsspn-tests: New file.
48938         * tests/test-mbsspn.sh: New file.
48939         * tests/test-mbsspn.c: New file.
48940
48941 2007-02-11  Bruno Haible  <bruno@clisp.org>
48942
48943         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
48944
48945         * modules/mbspbrk-tests: New file.
48946         * tests/test-mbspbrk.sh: New file.
48947         * tests/test-mbspbrk.c: New file.
48948
48949 2007-02-11  Bruno Haible  <bruno@clisp.org>
48950
48951         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
48952         unneeded cast.
48953
48954         * modules/mbscspn-tests: New file.
48955         * tests/test-mbscspn.sh: New file.
48956         * tests/test-mbscspn.c: New file.
48957
48958 2007-02-11  Bruno Haible  <bruno@clisp.org>
48959
48960         * modules/mbscasecmp-tests: New file.
48961         * tests/test-mbscasecmp.sh: New file.
48962         * tests/test-mbscasecmp.c: New file.
48963
48964 2007-02-11  Bruno Haible  <bruno@clisp.org>
48965
48966         Ensure O(n) worst-case complexity of mbscasestr.
48967         * lib/mbscasestr.c: Include stdbool.h.
48968         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
48969         functions.
48970         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
48971         the bookkeeping indicates that it's worth it.
48972         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
48973
48974         * modules/mbscasestr-tests: New file.
48975         * tests/test-mbscasestr1.c: New file.
48976         * tests/test-mbscasestr2.sh: New file.
48977         * tests/test-mbscasestr2.c: New file.
48978         * tests/test-mbscasestr3.sh: New file.
48979         * tests/test-mbscasestr3.c: New file.
48980         * tests/test-mbscasestr4.sh: New file.
48981         * tests/test-mbscasestr4.c: New file.
48982         * m4/locale-tr.m4: New file.
48983
48984 2007-02-11  Bruno Haible  <bruno@clisp.org>
48985
48986         Ensure O(n) worst-case complexity of mbsstr.
48987         * lib/mbsstr.c: Include stdbool.h.
48988         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
48989         functions.
48990         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
48991         bookkeeping indicates that it's worth it.
48992         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
48993
48994         * modules/mbsstr-tests: New file.
48995         * tests/test-mbsstr1.c: New file.
48996         * tests/test-mbsstr2.sh: New file.
48997         * tests/test-mbsstr2.c: New file.
48998         * tests/test-mbsstr3.sh: New file.
48999         * tests/test-mbsstr3.c: New file.
49000         * m4/locale-fr.m4: New file.
49001
49002 2007-02-11  Bruno Haible  <bruno@clisp.org>
49003
49004         * lib/mbsrchr.c (mbsrchr): Fix bug.
49005
49006         * modules/mbsrchr-tests: New file.
49007         * tests/test-mbsrchr.sh: New file.
49008         * tests/test-mbsrchr.c: New file.
49009
49010 2007-02-11  Bruno Haible  <bruno@clisp.org>
49011
49012         * lib/mbschr.c (mbschr): Fix bug.
49013
49014         * modules/mbschr-tests: New file.
49015         * tests/test-mbschr.sh: New file.
49016         * tests/test-mbschr.c: New file.
49017         * m4/locale-zh.m4: New file.
49018
49019 2007-02-11  Bruno Haible  <bruno@clisp.org>
49020
49021         Support for copying multibyte string iterators.
49022         * lib/mbiter.h: Include <string.h>.
49023         (mbiter_multi_copy): New function.
49024         (mbi_copy): New macro.
49025         * lib/mbuiter.h: Include <string.h>.
49026         (mbuiter_multi_copy): New function.
49027         (mbui_copy): New macro.
49028
49029 2007-02-11  Bruno Haible  <bruno@clisp.org>
49030
49031         New module mbslen.
49032         * modules/mbslen: New file.
49033         * lib/mbslen.c: New file.
49034         * lib/string_.h (mbslen): New declaration.
49035         * m4/mbslen.m4: New file.
49036         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49037         GNULIB_MBSLEN.
49038         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
49039         * MODULES.html.sh (Internationalization functions): Add mbslen.
49040
49041 2007-02-11  Bruno Haible  <bruno@clisp.org>
49042
49043         Ensure O(n) worst-case complexity of strcasestr substitute.
49044         * lib/strcasestr.c: Include stdbool.h.
49045         (knuth_morris_pratt): New function.
49046         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
49047         bookkeeping indicates that it's worth it.
49048         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
49049
49050         * modules/strcasestr-tests: New file.
49051         * tests/test-strcasestr.c: New file.
49052
49053 2007-02-11  Bruno Haible  <bruno@clisp.org>
49054
49055         Ensure O(n) worst-case complexity of c_strcasestr.
49056         * lib/c-strcasestr.c: Include stdbool.h, string.h.
49057         (knuth_morris_pratt): New function.
49058         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
49059         the bookkeeping indicates that it's worth it.
49060         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
49061
49062         * modules/c-strcasestr-tests: New file.
49063         * tests/test-c-strcasestr.c: New file.
49064
49065 2007-02-11  Bruno Haible  <bruno@clisp.org>
49066
49067         Ensure O(n) worst-case complexity of c_strstr.
49068         * lib/c-strstr.c: Include stdbool.h, string.h.
49069         (knuth_morris_pratt): New function.
49070         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
49071         bookkeeping indicates that it's worth it.
49072         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
49073
49074         * lib/c-strstr.c: Complete rewrite for maintainability.
49075
49076         * modules/c-strstr-tests: New file.
49077         * tests/test-c-strstr.c: New file.
49078
49079 2007-02-11  Bruno Haible  <bruno@clisp.org>
49080
49081         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
49082         5.2.1 and earlier, whereby \055 was treated just like the range
49083         delimiter '-'.
49084         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
49085
49086 2007-02-08  Bruno Haible  <bruno@clisp.org>
49087
49088         * modules/regex (Depends-on): Add stdbool.
49089         Reported by Dalibor Topic <robilad@kaffe.org>.
49090
49091 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
49092
49093         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
49094         Prefer returning from main to exiting from it.
49095         Remove unnecessary parens after sizeof.
49096
49097 2007-02-05  Bruno Haible  <bruno@clisp.org>
49098
49099         New module mbssep.
49100         * modules/mbssep: New file.
49101         * lib/mbssep.c: New file.
49102         * lib/string_.h (strsep): Add a conditional link warning.
49103         (mbssep): New declaration.
49104         * m4/mbssep.m4: New file.
49105         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49106         GNULIB_MBSSEP.
49107         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
49108         * MODULES.html.sh (Internationalization functions): Add mbssep.
49109
49110 2007-02-05  Bruno Haible  <bruno@clisp.org>
49111
49112         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
49113         Optimize search in case of 1 delimiter.
49114
49115 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
49116
49117         * lib/acl.h: Include sys/types.h before sys/acl.h.
49118
49119 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
49120
49121         Merge upstream fix for glibc bugzilla #3957:
49122
49123         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
49124
49125         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
49126         bit for RE_HAT_LISTS_NOT_NEWLINE.
49127         (build_charclass_op): Remove bogus comment.
49128
49129 2007-02-05  Simon Josefsson  <simon@josefsson.org>
49130
49131         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
49132
49133 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
49134
49135         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
49136         * lib/memmem.c [!defined _LIBC]: Include config.h.
49137
49138 2007-02-04  Bruno Haible  <bruno@clisp.org>
49139
49140         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
49141         warning message.
49142
49143 2007-02-04  Bruno Haible  <bruno@clisp.org>
49144
49145         New module mbstok_r.
49146         * modules/mbstok_r: New file.
49147         * lib/mbstok_r.c: New file.
49148         * lib/string_.h (strtok_r): Change argument names to match the
49149         comments. Add a conditional link warning.
49150         (mbstok_r): New declaration.
49151         * m4/mbstok_r.m4: New file.
49152         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49153         GNULIB_MBSTOK_R.
49154         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
49155         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
49156
49157 2007-02-04  Bruno Haible  <bruno@clisp.org>
49158
49159         New module mbsspn.
49160         * modules/mbsspn: New file.
49161         * lib/mbsspn.c: New file.
49162         * lib/string_.h (strspn): Add a conditional link warning.
49163         (mbsspn): New declaration.
49164         * m4/mbsspn.m4: New file.
49165         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49166         GNULIB_MBSSPN.
49167         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
49168         * MODULES.html.sh (Internationalization functions): Add mbsspn.
49169
49170 2007-02-04  Bruno Haible  <bruno@clisp.org>
49171
49172         New module mbspbrk.
49173         * modules/mbspbrk: New file.
49174         * lib/mbspbrk.c: New file.
49175         * lib/string_.h (strpbrk): Add a conditional link warning.
49176         (mbspbrk): New declaration.
49177         * m4/mbspbrk.m4: New file.
49178         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49179         GNULIB_MBSPBRK.
49180         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
49181         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
49182
49183 2007-02-04  Bruno Haible  <bruno@clisp.org>
49184
49185         New module mbscspn.
49186         * modules/mbscspn: New file.
49187         * lib/mbscspn.c: New file.
49188         * lib/string_.h (strcspn): Add a conditional link warning.
49189         (mbscspn): New declaration.
49190         * m4/mbscspn.m4: New file.
49191         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49192         GNULIB_MBSCSPN.
49193         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
49194         * MODULES.html.sh (Internationalization functions): Add mbscspn.
49195
49196 2007-02-04  Bruno Haible  <bruno@clisp.org>
49197
49198         New module mbscasestr, reduced goal of strcasestr.
49199         * modules/mbscasestr: New file.
49200         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
49201         (mbscasestr): Renamed from strcasestr.
49202         * lib/strcasestr.c: Don't include mbuiter.h.
49203         (strcasestr): Remove support for multibyte locales.
49204         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
49205         Change the conditional link warning.
49206         (mbscasestr): New declaration.
49207         * m4/mbscasestr.m4: New file.
49208         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
49209         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
49210         REPLACE_STRCASESTR.
49211         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
49212         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49213         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
49214         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
49215         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
49216         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
49217         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
49218         (Depends-on): Remove mbuiter.
49219         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
49220
49221 2007-02-04  Bruno Haible  <bruno@clisp.org>
49222
49223         Simplify handling of strncasecmp.
49224         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
49225         the conditional link warning.
49226         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49227         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
49228         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
49229         * modules/strcase (configure.ac): Don't invoke
49230         gl_STRING_MODULE_INDICATOR.
49231         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
49232
49233 2007-02-04  Bruno Haible  <bruno@clisp.org>
49234
49235         New module mbscasecmp, reduced goal of strcasecmp.
49236         * modules/mbscasecmp: New file.
49237         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
49238         (mbscasecmp): Renamed from strcasecmp.
49239         * lib/strcasecmp.c: Don't include mbuiter.h.
49240         (strcasecmp): Remove support for multibyte locales.
49241         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
49242         Change the conditional link warning.
49243         (mbscasecmp): New declaration.
49244         * m4/mbscasecmp.m4: New file.
49245         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
49246         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
49247         REPLACE_STRCASECMP.
49248         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
49249         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49250         GNULIB_MBSCASECMP.
49251         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
49252         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
49253         * modules/strcase (Files): Remove m4/mbrtowc.m4.
49254         (Depends-on): Remove mbuiter.
49255         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
49256
49257 2007-02-04  Bruno Haible  <bruno@clisp.org>
49258
49259         New module mbsstr. Remove module strstr.
49260         * modules/mbsstr: New file.
49261         * modules/strstr: Remove file.
49262         * lib/mbsstr.c: Renamed from lib/strstr.c.
49263         (mbsstr): Renamed from strstr.
49264         * lib/string_.h (strstr): Remove declaration. Change the conditional
49265         link warning.
49266         (mbsstr): New declaration.
49267         * m4/mbsstr.m4: New file.
49268         * m4/strstr.m4: Remove file.
49269         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
49270         REPLACE_STRSTR.
49271         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
49272         Don't initialize GNULIB_STRSTR.
49273         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
49274         substitute GNULIB_STRSTR and REPLACE_STRSTR.
49275         * MODULES.html.sh (Internationalization functions): Add mbsstr.
49276         (Support for systems lacking ANSI C 89): Remove strstr.
49277
49278 2007-02-04  Bruno Haible  <bruno@clisp.org>
49279
49280         New module mbsrchr.
49281         * modules/mbsrchr: New file.
49282         * lib/mbsrchr.c: New file.
49283         * lib/string_.h (strrchr): Add a conditional link warning.
49284         (mbsrchr): New declaration.
49285         * m4/mbsrchr.m4: New file.
49286         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49287         GNULIB_MBSRCHR.
49288         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
49289         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
49290
49291 2007-02-04  Bruno Haible  <bruno@clisp.org>
49292
49293         New module mbschr.
49294         * modules/mbschr: New file.
49295         * lib/mbschr.c: New file.
49296         * lib/string_.h (strchr): Add a conditional link warning.
49297         (mbschr): New declaration.
49298         * m4/mbschr.m4: New file.
49299         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49300         GNULIB_MBSCHR.
49301         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
49302         * MODULES.html.sh (Internationalization functions): Add mbschr.
49303
49304 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
49305
49306         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
49307
49308         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
49309
49310 2007-02-04  Bruno Haible  <bruno@clisp.org>
49311
49312         New module description section 'configure.ac-early'.
49313         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
49314         (func_get_autoconf_early_snippet): New function.
49315         (func_import, func_create_testdir): Use it. Remove special cases for
49316         modules 'extensions' and 'lock'.
49317         * modules/extensions (configure.ac-early): Require
49318         gl_USE_SYSTEM_EXTENSIONS.
49319         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
49320
49321 2007-02-04  Bruno Haible  <bruno@clisp.org>
49322
49323         Make use of gcj-4.3's -fsource and -ftarget option.
49324         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
49325         and if so try the options -fsource and -ftarget.
49326         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
49327         source_version, ftarget_option, target_version arguments.
49328         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
49329         (is_envjavac_oldgcj_14_14_usable): Renamed from
49330         is_envjavac_gcj_14_14_usable.
49331         (is_envjavac_oldgcj_14_13_usable): Renamed from
49332         is_envjavac_gcj_14_13_usable.
49333         (is_gcj_present): Update.
49334         (is_gcj_43, is_gcj43_usable): New functions.
49335         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
49336         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
49337         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
49338         try the options -fsource and -ftarget.
49339
49340 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
49341
49342         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
49343         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
49344         larger value.
49345
49346 2007-02-03  Jim Meyering  <jim@meyering.net>
49347
49348         Give tools a better chance to allocate space for very large buffers.
49349         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
49350
49351         Make pwd and readlink work also when run with an unreadable parent dir
49352         on systems with openat support.
49353         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
49354         provided getcwd function, even when we have openat support.
49355         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
49356
49357 2007-02-02  Bruno Haible  <bruno@clisp.org>
49358
49359         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
49360         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
49361         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
49362         portability problems if one of these functions is only used on specific
49363         platforms.
49364         Reported by Paul Eggert.
49365
49366 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
49367
49368         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
49369         is causing more trouble than it's curing.
49370         * lib/regex_internal.h (__mempcpy): Remove.
49371         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
49372         (and make the code a tad smaller to boot).
49373         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
49374
49375 2007-02-02  Jim Meyering  <jim@meyering.net>
49376
49377         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
49378         section, not in the Makefile.am: one.
49379
49380 2007-02-02  Eric Blake  <ebb9@byu.net>
49381
49382         * lib/strchrnul.c: Always include config.h first.
49383
49384         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
49385         gnulib strstr is not necessary here.
49386
49387 2007-02-02  Simon Josefsson  <simon@josefsson.org>
49388
49389         * m4/socklen.m4: Fix typo.
49390
49391 2007-02-02  Eric Blake  <ebb9@byu.net>
49392
49393         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
49394         * modules/netinet_in (Makefile.am): Likewise.
49395
49396 2007-02-01  Bruno Haible  <bruno@clisp.org>
49397
49398         * lib/string_.h (GL_LINK_WARNING): New macro.
49399         (strcasecmp, strstr, strcasestr): If provided by the system,
49400         conditionally define as a macro that leads to a warning instead of to
49401         an error.
49402         (strncasecmp): Conditionally define as a macro that leads to a warning.
49403
49404 2007-02-01  Karl Berry  <karl@gnu.org>
49405
49406         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
49407
49408 2007-02-01  Bruno Haible  <bruno@clisp.org>
49409
49410         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
49411         renamings.
49412
49413 2007-02-01  Eric Blake  <ebb9@byu.net>
49414
49415         * modules/regex (Depends-on): Revert dependence on mempcpy.
49416         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
49417         module's definition of mempcpy.
49418         Reported by Paul Eggert.
49419
49420 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
49421
49422         * lib/string_.h: If the gnulib module XYZ is not present, undefine
49423         the symbol XYZ before redefining it.  This fixes a problem with
49424         programs that don't use XYZ, when compiled on systems that define
49425         XYZ to something else.
49426
49427 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
49428
49429         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
49430         occurs when "mkdir -m foo" creates a setgid directory that is (1)
49431         writeable to group or other and (2) is intended to have a special
49432         mode bit that is set or cleared.  In such a case, the directory
49433         should be neither group- nor other-writeable until the special
49434         mode bits are right.
49435
49436 2007-01-31  Eric Blake  <ebb9@byu.net>
49437
49438         * modules/mountlist (Depends-on): Add strstr.
49439
49440         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
49441         bug.
49442         * modules/string (Makefile.am): Remove redundant replacement.
49443         * modules/regex (Depends-on): Add mempcpy.
49444
49445 2007-01-31  Bruno Haible  <bruno@clisp.org>
49446
49447         New module description field 'Link'.
49448         * gnulib-tool (func_usage): Document --extract-link-directive.
49449         (sed_extract_prog): Recognize 'Link' directive.
49450         (func_get_link_directive): New function.
49451         (func_import): Show summary of link directives.
49452         Handle --extract-link-directive option.
49453         * modules/acl (Link): New section.
49454         * modules/clock-time (Link): New section.
49455         * modules/euidaccess (Link): New section.
49456         * modules/gettext (Link): New section.
49457         * modules/iconv (Link): New section.
49458         * modules/lock (Link): New section.
49459         * modules/nanosleep (Link): New section.
49460         * modules/readline (Link): New section.
49461
49462 2007-01-27  Bruno Haible  <bruno@clisp.org>
49463
49464         Enforce the use of gnulib modules for unportable <string.h> functions.
49465         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
49466         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
49467         (gl_HEADER_STRING_H_BODY): Require it.
49468         * lib/string_.h: If the gnulib module XYZ is not present, redefine
49469         the symbol XYZ to one that gives a link error.
49470         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
49471         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
49472         * modules/mempcpy (configure.ac): Likewise.
49473         * modules/memrchr (configure.ac): Likewise.
49474         * modules/stpcpy (configure.ac): Likewise.
49475         * modules/stpncpy (configure.ac): Likewise.
49476         * modules/strcase (configure.ac): Likewise.
49477         * modules/strcasestr (configure.ac): Likewise.
49478         * modules/strchrnul (configure.ac): Likewise.
49479         * modules/strdup (configure.ac): Likewise.
49480         * modules/strndup (configure.ac): Likewise.
49481         * modules/strnlen (configure.ac): Likewise.
49482         * modules/strpbrk (configure.ac): Likewise.
49483         * modules/strsep (configure.ac): Likewise.
49484         * modules/strstr (configure.ac): Likewise.
49485         * modules/strtok_r (configure.ac): Likewise.
49486
49487 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
49488
49489         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
49490
49491 2007-01-30  Jim Meyering  <jim@meyering.net>
49492
49493         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
49494
49495 2007-01-29  Bruno Haible  <bruno@clisp.org>
49496
49497         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
49498         * lib/execute.c: Likewise.
49499         * lib/pipe.c: Likewise.
49500         * lib/printf-args.h: Likewise.
49501         * lib/printf-args.c: Likewise.
49502         * lib/printf-parse.c: Likewise.
49503         * lib/vasnprintf.c: Likewise.
49504
49505 2007-01-29  Eric Blake  <ebb9@byu.net>
49506
49507         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
49508         declaration.
49509
49510 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
49511
49512         * lib/strptime.h (strptime): Use 'restrict' for args where
49513         POSIX requires this.
49514         * lib/strptime.c (strptime): Likewise.
49515         Change license notice from LGPL to GPL, since gnulib-tool will
49516         change this as needed.
49517         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
49518         defined.
49519         Include "strptime.h" first, to check interface.
49520         Do not #undef _LIBC and _NL_CURRENT.
49521         Do not include <stdlib.h>; no longer needed.
49522         Include "time_r.h" and declare ptime_locale_status
49523         only if _LIBC is not defined.
49524         (__P): Remove unused macro.
49525         (match_string): Bring back glibc version, but use it only if _LIBC
49526         is defined.
49527         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
49528         Remove unnecessary assertion and abort() call.
49529         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
49530         * m4/strptime.m4: Fix serial number comment.
49531         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
49532         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
49533         (Depends-on): Add time_r.
49534
49535 2007-01-29  Bruno Haible  <bruno@clisp.org>
49536
49537         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49538         strptime.
49539         * modules/strptime (Depends-on): Add stdbool.
49540         * lib/strptime.h: Include <time.h> always. Add comments.
49541
49542 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
49543
49544         * modules/strptime: New file.
49545         * lib/strptime.h: New file.
49546         * lib/strptime.c: New file.
49547         * m4/strptime.m4: New file.
49548
49549 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
49550
49551         * MODULES.html.sh: New module mpsort.
49552         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
49553
49554         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
49555         a circularity problem with HP-UX ia64 reported by Bob Proulx in
49556         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
49557         All uses changed.
49558         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
49559         All uses changed.
49560         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
49561         to _Restrict_.
49562         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
49563         the parameter matches the prototype.
49564
49565 2007-01-28  Jim Meyering  <jim@meyering.net>
49566
49567         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
49568         sys/time.h here, reverting that part of the previous patch:
49569         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
49570
49571 2007-01-28  Bruno Haible  <bruno@clisp.org>
49572
49573         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
49574         value of $(SYS_TIME_H).
49575         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
49576         remove it conditionally, too. [added by Jim Meyering]
49577         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
49578         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
49579         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
49580         GETTIMEOFDAY_REPLACEMENT to 1.
49581
49582 2007-01-28  Bruno Haible  <bruno@clisp.org>
49583
49584         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
49585         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
49586         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
49587         Set UNISTD_H instead of UNISTD_H2.
49588         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
49589
49590 2007-01-28  Bruno Haible  <bruno@clisp.org>
49591
49592         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
49593         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
49594
49595 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49596
49597         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
49598         (func_create_testdir): Ensure C locale for `grep' and `tr'
49599         character ranges.
49600         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
49601         ACLOCAL_AMFLAGS parsing state machine.
49602
49603 2007-01-27  Bruno Haible  <bruno@clisp.org>
49604
49605         * modules/unistr/base: Update.
49606
49607 2007-01-27  Bruno Haible  <bruno@clisp.org>
49608
49609         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
49610         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
49611         * modules/unistr/u32-mbtouc-unsafe: Renamed from
49612         modules/unistr/u32-mbtouc.
49613         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
49614         * lib/unistr.h: Update.
49615         * lib/linebreak.c: Update.
49616         * modules/unistr/u32-mbtouc: Renamed from
49617         modules/unistr/u32-mbtouc-safe.
49618         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
49619         * lib/unistr.h: Update.
49620         * lib/unistr/u32-to-u8.c: Update.
49621         * lib/unistr/u32-to-u16.c: Update.
49622
49623 2007-01-27  Bruno Haible  <bruno@clisp.org>
49624
49625         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
49626         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
49627         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
49628         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
49629         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
49630         * modules/unistr/u16-mbtouc-unsafe: Renamed from
49631         modules/unistr/u16-mbtouc.
49632         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
49633         * lib/unistr.h: Update.
49634         * lib/linebreak.c: Update.
49635         * modules/linebreak: Update.
49636         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
49637         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
49638         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
49639         * modules/unistr/u16-mbtouc: Renamed from
49640         modules/unistr/u16-mbtouc-safe.
49641         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
49642         * lib/unistr.h: Update.
49643         * lib/unistr/u16-to-u8.c: Update.
49644         * modules/unistr/u16-to-u8: Update.
49645         * lib/unistr/u16-to-u32.c: Update.
49646         * modules/unistr/u16-to-u32: Update.
49647
49648 2007-01-27  Bruno Haible  <bruno@clisp.org>
49649
49650         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
49651         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
49652         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
49653         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
49654         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
49655         * modules/unistr/u8-mbtouc-unsafe: Renamed from
49656         modules/unistr/u8-mbtouc.
49657         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
49658         * lib/unistr.h: Update.
49659         * lib/striconveh.c: Update.
49660         * modules/striconveh: Update.
49661         * lib/linebreak.c: Update.
49662         * modules/linebreak: Update.
49663         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
49664         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
49665         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
49666         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
49667         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
49668         * lib/unistr.h: Update.
49669         * lib/striconveh.c: Update.
49670         * modules/striconveh: Update.
49671         * lib/unistr/u8-to-u16.c: Update.
49672         * modules/unistr/u8-to-u16: Update.
49673         * lib/unistr/u8-to-u32.c: Update.
49674         * modules/unistr/u8-to-u32: Update.
49675
49676 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49677
49678         Sync from Libtool.
49679         * lib/argz.c: Do not include strings.h nor memory.h, include
49680         string.h unconditionally.  Patch by Simon Josefsson.
49681
49682 2007-01-27  Bruno Haible  <bruno@clisp.org>
49683
49684         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
49685         from gl_HEADER_STRING_H_BODY.
49686         (gl_HEADER_STRING_H_BODY): Require it.
49687         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
49688         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
49689         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
49690         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
49691         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49692         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
49693         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49694         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
49695         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
49696         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49697         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
49698         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
49699         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
49700         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49701         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
49702
49703 2007-01-27  Bruno Haible  <bruno@clisp.org>
49704
49705         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
49706         check_PROGRAMS into noinst_PROGRAMS.
49707         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
49708         check_PROGRAMS in this case.
49709         (func_import): Set for_test to false.
49710         (func_create_testdir): Set for_test to true.
49711
49712 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
49713             Bruno Haible  <bruno@clisp.org>
49714
49715         * modules/strcasestr (Files): Remove lib/strcasestr.h.
49716         (Depends-on): Add string.
49717         (Includes): Use <string.h> instead of strcasestr.h.
49718         * modules/string (Makefile.am): Also substitute the value of
49719         REPLACE_STRCASESTR.
49720         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
49721         assume strcasestr is declared in <string.h> not <strings.h>. Also
49722         set REPLACE_STRCASESTR.
49723         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
49724         REPLACE_STRCASESTR.
49725         * lib/strcasestr.h: Remove file.
49726         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
49727         * lib/string_.h (strcasestr): New declaration.
49728
49729 2007-01-27  Bruno Haible  <bruno@clisp.org>
49730
49731         * lib/string_.h: Use 'extern'.
49732
49733 2007-01-27  Jim Meyering  <jim@meyering.net>
49734
49735         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
49736         of set-but-not-used local, "q".
49737
49738         * lib/mempcpy.c: Include <config.h> before <string.h>.
49739         This fixes a compilation error on HP-UX, due to the system's
49740         "restrict"-using mempcpy prototype.
49741
49742 2007-01-26  Bruno Haible  <bruno@clisp.org>
49743
49744         Small optimization.
49745         * lib/javacomp.c: Include c-strstr.h.
49746          (is_envjavac_gcj): Use c_strstr instead of strstr.
49747         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
49748
49749 2007-01-26  Bruno Haible  <bruno@clisp.org>
49750
49751         * MODULES.html.sh (Unicode string functions): Add the new modules.
49752
49753         * modules/uniconv/u32-strconv-to-locale: New file.
49754         * lib/uniconv/u32-strconv-to-locale.c: New file.
49755
49756         * modules/uniconv/u16-strconv-to-locale: New file.
49757         * lib/uniconv/u16-strconv-to-locale.c: New file.
49758
49759         * modules/uniconv/u8-strconv-to-locale: New file.
49760         * lib/uniconv/u8-strconv-to-locale.c: New file.
49761
49762         * modules/uniconv/u32-strconv-from-locale: New file.
49763         * lib/uniconv/u32-strconv-from-locale.c: New file.
49764
49765         * modules/uniconv/u16-strconv-from-locale: New file.
49766         * lib/uniconv/u16-strconv-from-locale.c: New file.
49767
49768         * modules/uniconv/u8-strconv-from-locale: New file.
49769         * lib/uniconv/u8-strconv-from-locale.c: New file.
49770
49771         * modules/uniconv/u32-strconv-to-enc: New file.
49772         * lib/uniconv/u32-strconv-to-enc.c: New file.
49773         * modules/uniconv/u32-strconv-to-enc-tests: New file.
49774         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
49775
49776         * modules/uniconv/u16-strconv-to-enc: New file.
49777         * lib/uniconv/u16-strconv-to-enc.c: New file.
49778         * lib/uniconv/u-strconv-to-enc.h: New file.
49779         * modules/uniconv/u16-strconv-to-enc-tests: New file.
49780         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
49781
49782         * modules/uniconv/u8-strconv-to-enc: New file.
49783         * lib/uniconv/u8-strconv-to-enc.c: New file.
49784         * modules/uniconv/u8-strconv-to-enc-tests: New file.
49785         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
49786
49787         * modules/uniconv/u32-strconv-from-enc: New file.
49788         * lib/uniconv/u32-strconv-from-enc.c: New file.
49789         * modules/uniconv/u32-strconv-from-enc-tests: New file.
49790         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
49791
49792         * modules/uniconv/u16-strconv-from-enc: New file.
49793         * lib/uniconv/u16-strconv-from-enc.c: New file.
49794         * modules/uniconv/u16-strconv-from-enc-tests: New file.
49795         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
49796
49797         * modules/uniconv/u8-strconv-from-enc: New file.
49798         * lib/uniconv/u8-strconv-from-enc.c: New file.
49799         * lib/uniconv/u-strconv-from-enc.h: New file.
49800         * modules/uniconv/u8-strconv-from-enc-tests: New file.
49801         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
49802
49803         * modules/uniconv/u32-conv-from-enc: New file.
49804         * lib/uniconv/u32-conv-from-enc.c: New file.
49805         * modules/uniconv/u32-conv-from-enc-tests: New file.
49806         * tests/uniconv/test-u32-conv-from-enc.c: New file.
49807
49808         * modules/uniconv/u16-conv-from-enc: New file.
49809         * lib/uniconv/u16-conv-from-enc.c: New file.
49810         * lib/uniconv/u-conv-from-enc.h: New file.
49811         * modules/uniconv/u16-conv-from-enc-tests: New file.
49812         * tests/uniconv/test-u16-conv-from-enc.c: New file.
49813
49814         * modules/uniconv/u8-conv-from-enc: New file.
49815         * lib/uniconv/u8-conv-from-enc.c: New file.
49816         * modules/uniconv/u8-conv-from-enc-tests: New file.
49817         * tests/uniconv/test-u8-conv-from-enc.c: New file.
49818
49819         * modules/uniconv/base: New file.
49820         * lib/uniconv.h: New file.
49821
49822 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
49823
49824         * doc/gnulib-tool.texi (Initial import): Update to match current
49825         behavior with strdup module.
49826         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
49827         * lib/memmem.h: Remove; all uses removed.  This is now done
49828         by <string.h>.
49829         * lib/mempcpy.h: Likewise.
49830         * lib/memrchr.h: Likewise.
49831         * lib/stpcpy.h: Likewise.
49832         * lib/stpncpy.h: Likewise.
49833         * lib/strcase.h: Likewise.
49834         * lib/strchrnul.h: Likewise.
49835         * lib/strdup.h: Likewise.
49836         * lib/strndup.h: Likewise.
49837         * lib/strnlen.h: Likewise.
49838         * lib/strpbrk.h: Likewise.
49839         * lib/strsep.h: Likewise.
49840         * lib/strstr.h: Likewise.
49841         * lib/strtok_r.h: Likewise.
49842         * lib/string_.h: New file.
49843         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
49844         Rely on <string.h> instead.
49845         * lib/canon-host.c: Likewise.
49846         * lib/chdir-long.c: Likewise.
49847         * lib/concatpath.c: Likewise.
49848         * lib/exclude.c: Likewise.
49849         * lib/fchdir.c: Likewise.
49850         * lib/getaddrinfo.c: Likewise.
49851         * lib/getcwd.c: Likewise.
49852         * lib/getsubopt.c: Likewise.
49853         * lib/glob.c: Likewise.
49854         * lib/hard-locale.c: Likewise.
49855         * lib/iconvme.c: Likewise.
49856         * lib/javacomp.c: Likewise.
49857         * lib/mempcpy.c: Likewise.
49858         * lib/memrchr.c: Likewise.
49859         * lib/regex_internal.h: Likewise.
49860         * lib/stpncpy.c: Likewise.
49861         * lib/strcasecmp.c: Likewise.
49862         * lib/strchrnul.c: Likewise.
49863         * lib/strdup.c: Likewise.
49864         * lib/striconv.c: Likewise.
49865         * lib/striconveh.c: Likewise.
49866         * lib/striconveha.c: Likewise.
49867         * lib/strncasecmp.c: Likewise.
49868         * lib/strndup.c: Likewise.
49869         * lib/strnlen.c: Likewise.
49870         * lib/strsep.c: Likewise.
49871         * lib/strstr.c: Likewise.
49872         * lib/strtok_r.c: Likewise.
49873         * lib/userspec.c: Likewise.
49874         * lib/w32spawn.h: Likewise.
49875         * lib/xstrndup.c: Likewise.
49876         * lib/mountlist.c (strstr): Remove decl.
49877         * m4/string_h.m4: New file.
49878         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
49879         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
49880         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
49881         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
49882         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
49883         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
49884         Set REPLACE_STRCASECMP if necessary.
49885         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
49886         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
49887         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
49888         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
49889         HAVE_DECL_STRDUP if necessary.
49890         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
49891         since gl_FUNC_STRNDUP does that now.
49892         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
49893         Check for decl here...
49894         (gl_PREREQ_STRNLEN): ... not here.
49895         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
49896         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
49897         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
49898         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
49899         necessary.
49900         * modules/string: New file.
49901         * modules/memmem (Files): Remove special-purpose include file.
49902         (Depends-on): Add string.
49903         (Include): Include <string.h>, not the removed file.
49904         * modules/mempcpy: Likewise.
49905         * modules/memrchr: Likewise.
49906         * modules/stpcpy: Likewise.
49907         * modules/stpncpy: Likewise.
49908         * modules/strcase: Likewise.
49909         * modules/strchrnul: Likewise.
49910         * modules/strdup: Likewise.
49911         * modules/strndup: Likewise.
49912         * modules/strnlen: Likewise.
49913         * modules/strpbrk: Likewise.
49914         * modules/strsep: Likewise.
49915         * modules/strstr: Likewise.
49916         * modules/strtok_r: Likewise.
49917         * tests/test-dirname.c: Don't include "strdup.h", since
49918         <string.h> now suffices.
49919         * tests/test-memmem.c: Don't include "memmem.h", since
49920         <string.h> now suffices.
49921
49922 2007-01-25  Bruno Haible  <bruno@clisp.org>
49923
49924         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
49925         *resultp is 0.
49926
49927         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
49928         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
49929         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
49930         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
49931
49932         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
49933         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
49934         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
49935         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
49936         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
49937         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
49938
49939 2007-01-24  Bruno Haible  <bruno@clisp.org>
49940
49941         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
49942         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
49943         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
49944         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
49945         gl_FUNC_FTS_CORE.
49946         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
49947         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
49948         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49949         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
49950         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
49951         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
49952         gl_FUNC_FCHOWNAT.
49953         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
49954         gl_FUNC_STRFTIME.
49955         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
49956         Reported by Ralf Wildenhues.
49957
49958 2007-01-24  Bruno Haible  <bruno@clisp.org>
49959
49960         Drop AC_REQUIRE calls that are redundant with the module dependencies.
49961         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
49962         gl_GETADDRINFO.
49963         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
49964         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
49965         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
49966
49967 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
49968
49969         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
49970         Don't use 'exit'; just return from 'main'.
49971         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
49972
49973         * lib/fnmatch_.h: Readjust white space and comments to match
49974         glibc, to avoid spurious diffs.
49975
49976 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
49977
49978         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
49979         2004-12-01 change by Jakub Jelinek, since this code won't compile
49980         if !LIBC.  Problem reported by Bob Proulx.
49981
49982 2007-01-23  Bruno Haible  <bruno@clisp.org>
49983
49984         * lib/striconveh.c: Include c-strcaseeq.h.
49985         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
49986         * modules/striconveh (Depends-on): Add c-strcaseeq.
49987
49988 2007-01-23  Bruno Haible  <bruno@clisp.org>
49989
49990         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
49991
49992         * modules/c-strcaseeq: New file.
49993         * lib/c-strcaseeq.h: New file.
49994
49995         * modules/streq: New file.
49996         * lib/streq.h: New file.
49997
49998 2007-01-23  Bruno Haible  <bruno@clisp.org>
49999
50000         * modules/striconveha-tests: New file.
50001         * tests/test-striconveha.c: New file.
50002
50003         * lib/striconveha.h: Include <stdbool.h>.
50004         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
50005         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
50006         (mem_iconveha_notranslit): Renamed from mem_iconveha.
50007         (mem_iconveha): New function.
50008         (str_iconveha_notranslit): Renamed from str_iconveha.
50009         (str_iconveha): New function.
50010         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
50011         c-strcase.
50012
50013 2007-01-23  Bruno Haible  <bruno@clisp.org>
50014
50015         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
50016         encodings without forgiving before trying any encoding with handler.
50017         (str_iconveha): Try all encodings without forgiving before trying any
50018         encoding with handler.
50019
50020 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
50021
50022         Import the following changes from libc.
50023
50024         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
50025
50026         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
50027
50028         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
50029
50030         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
50031         normal_bracket label.
50032
50033         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
50034
50035         [BZ #361]
50036         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
50037         to normal_bracket after fetching the next character.
50038
50039 2007-01-22  Bruno Haible  <bruno@clisp.org>
50040
50041         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
50042         argument.
50043         * lib/striconveh.c (iconv_carefully_1): New function.
50044         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
50045         argument.
50046         (str_cd_iconveh): Update.
50047         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
50048         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
50049         * tests/test-striconveh.c (MAGIC): New macro.
50050         (new_offsets): New function.
50051         (main): Test call with and without offsets.
50052
50053 2007-01-22  Bruno Haible  <bruno@clisp.org>
50054
50055         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
50056         * modules/sys_select (Makefile.am): Likewise.
50057         * modules/sys_socket (Makefile.am): Likewise.
50058         * modules/sys_time (Makefile.am): Likewise.
50059
50060 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
50061
50062         * modules/gettimeofday (License): Change from GPL to LGPL, since
50063         gettimeofday is a library function.
50064
50065 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50066
50067         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
50068
50069 2007-01-21  Bruno Haible  <bruno@clisp.org>
50070
50071         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
50072
50073 2007-01-21  Bruno Haible  <bruno@clisp.org>
50074
50075         * modules/striconveha: New file.
50076         * lib/striconveha.h: New file.
50077         * lib/striconveha.c: New file.
50078         * MODULES.html.sh (Internationalization functions): Add striconveha.
50079         * lib/striconv.c (str_iconv): Optimize the case of an empty input
50080         string.
50081         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
50082
50083 2007-01-21  Bruno Haible  <bruno@clisp.org>
50084
50085         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
50086         * lib/striconveh.c (str_iconveh): Likewise.
50087
50088 2007-01-21  Bruno Haible  <bruno@clisp.org>
50089
50090         * lib/striconveh.h (mem_iconveh): New declaration.
50091         * lib/striconveh.c (mem_iconveh): New function.
50092         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
50093
50094 2007-01-21  Bruno Haible  <bruno@clisp.org>
50095
50096         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
50097
50098         * lib/striconveh.h (mem_cd_iconveh): Change specification.
50099         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
50100         original result buffer.
50101         (str_cd_iconveh): Update.
50102         * tests/test-striconveh.c (main): Update.
50103
50104         * lib/striconv.h (mem_cd_iconv): Change specification.
50105         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
50106         result buffer.
50107         (str_cd_iconv): Update.
50108         * tests/test-striconv.c (main): Update.
50109
50110 2007-01-21  Bruno Haible  <bruno@clisp.org>
50111
50112         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
50113
50114 2007-01-20  Jim Meyering  <jim@meyering.net>
50115
50116         * lib/userspec.c (parse_with_separator): If a user or group string
50117         starts with "+", skip the corresponding name-to-ID look-up, since
50118         such a look-up must fail: user and group names may not include "+".
50119
50120 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
50121
50122         * lib/poll.c: Include sys/time.h and time.h unconditionally,
50123         since we now assume the sys_time module.
50124         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
50125         check for sys/time.h; no longer needed.
50126         * modules/poll (Depends-on): Depend on sys_time.
50127
50128 2007-01-18  Bruno Haible  <bruno@clisp.org>
50129
50130         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
50131         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
50132
50133         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
50134         gettimeofday.
50135
50136         * tests/test-gettimeofday.c: Include <time.h>.
50137         (dummy): Remove variable.
50138
50139         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
50140         gl_HEADER_SYS_TIME_H.
50141         (gl_HEADER_SYS_TIME_H): New macro.
50142
50143         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
50144         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50145         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
50146         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
50147         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50148         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
50149         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
50150         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50151         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
50152         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
50153         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50154
50155         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
50156         last change; it caused a compilation error when cross-compiling to
50157         Cygwin.
50158
50159 2007-01-18  Jim Meyering  <jim@meyering.net>
50160
50161         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
50162         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
50163         than the race-prone "test -d sys || mkdir sys".
50164         (configure.ac): Use AC_PROG_MKDIR_P.
50165         * modules/sys_select: Likewise.
50166         * modules/sys_socket: Likewise.
50167         * modules/sys_time: Likewise.
50168
50169 2007-01-18  Eric Blake  <ebb9@byu.net>
50170
50171         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
50172         replace gettimeofday.
50173         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
50174         name, to avoid infinite recursion.
50175
50176 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
50177
50178         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
50179         module sys_time.
50180         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
50181         assume timespec.h defines struct timeval.
50182         * lib/settime.c: Likewise.
50183         * lib/utimens.c: Likewise.
50184         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
50185         since we now assume the gettimeofday module.
50186         * lib/tempname.c (__gen_tempname): Likewise.
50187         * lib/gettimeofday.h: Remove.
50188         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
50189         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
50190         Include <time.h>, for 'time()'.
50191         (localtime_buffer_addr): Also use this workaround if
50192         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
50193         to simplify the uses.  All uses changed.
50194         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
50195         that #undef is inside {}, and 'const' follows type name consistently.
50196         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
50197         (gettimeofday): Do not use the maximum possible value for
50198         tv->tv_usec, since that might break usages other than ls.c.
50199         Instead, we'll leave ls.c alone.  This undoes today's patch
50200         by Bruno.  Add a compile-time warning for 1s-clock resolution;
50201         we've never observed the problem but might as well keep the
50202         canary.
50203         * lib/nanosleep.c: Include timespec.h first, for interface check.
50204         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
50205         now assume the sys_time module.
50206         * lib/tempname.c: Likewise.
50207         * lib/timespec.h: Likewise.
50208         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
50209         needed.
50210         * lib/strftime.c: Likewise.
50211         * lib/timespec.h: Likewise.
50212         * lib/posixtm.c: Include posixtm.h first, for interface check.
50213         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
50214         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
50215         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
50216         * lib/sys_time_.h: New file.
50217         * lib/timespec.h (struct timespec): Use long int, not long.
50218         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
50219         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
50220         Remove obsolescent call to AC_HEADER_TIME.
50221         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
50222         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
50223         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
50224         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
50225         Likewise.
50226         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
50227         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
50228         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
50229         into the sys_time module.  Check for gettimeofday just once.
50230         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
50231         for gettimeofday signature to just check the signature.  Merely
50232         compile it, since linking doesn't test signature.  Improve test for
50233         whether gettimeofday.o is actually needed.
50234         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
50235         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
50236         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
50237         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50238         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
50239         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
50240         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
50241         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
50242         than worrying about sys/time.h.
50243         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
50244         Don't bother worrying about TIME_WITH_SYS_TIME.
50245         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
50246         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
50247         * m4/sys_time_h.m4: New file.
50248         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
50249         Don't include sys/time.h.  Return from main rather than exiting.
50250         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
50251         all uses changed.
50252         * modules/gethrxtime (Depends-on): Add sys_time.
50253         * modules/gettime (Depends-on): Likewise.
50254         * modules/gettimeofday (Depends-on): Likewise.
50255         * modules/nanosleep (Depends-on): Likewise.
50256         * modules/settime (Depends-on): Likewise.
50257         * modules/tempname (Depends-on): Likewise.
50258         * modules/utimens (Depends-on): Likewise.
50259         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
50260         (Include:) Change back to <sys/time.h>.
50261         (Maintainer:) Add self.
50262         * modules/sys_time: New file.
50263         * modules/tempname (Depends-on): Add gettimeofday.
50264         * tests/test-gettimeofday.c: Include <sys/time.h>
50265         rather than gettimeofday.h.
50266
50267 2007-01-17  Bruno Haible  <bruno@clisp.org>
50268
50269         * gnulib-tool (func_get_license): Revert last patch. Instead, let
50270         the license default to GPL.
50271         (func_create_testdir): Don't complain if a module is LGPL and its
50272         tests module depends on GPLed modules.
50273
50274 2007-01-17  Bruno Haible  <bruno@clisp.org>
50275
50276         * lib/gettimeofday.c (gettimeofday): Add code for the case
50277         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
50278         maximum possible value for tv->tv_usec, rather than the minimum one.
50279
50280 2005-10-08  Martin Lambers  <marlam@marlam.de>
50281 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
50282 2007-01-16  Bruno Haible  <bruno@clisp.org>
50283
50284         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
50285         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
50286         gl_FUNC_GETTIMEOFDAY.
50287         (Include): Add gettimeofday.h.
50288         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
50289         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
50290         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
50291         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
50292         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
50293         * lib/gettimeofday.h: New file.
50294         * lib/gettimeofday.c: Include <sys/timeb.h>.
50295         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
50296         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50297         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
50298         fall back on time().
50299
50300         * tests/test-gettimeofday.c: New file.
50301         * modules/gettimeofday-tests: New file.
50302
50303 2007-01-16  Eric Blake  <ebb9@byu.net>
50304
50305         * modules/fnmatch (Depends-on): Depend on wchar.
50306         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
50307         * m4/fnmatch.m4: Likewise.
50308         * modules/mbchar (Makefile.am): Assume <wchar.h>.
50309         * m4/mbchar.m4: Likewise.
50310         * modules/mbswidth (Depends-on): Depend on wchar.
50311         * lib/mbswidth.c: Assume <wchar.h>.
50312         * m4/mbswidth.m4: Likewise.
50313         * modules/quotearg (Depends-on): Depend on wchar.
50314         * lib/quotearg.c: Assume <wchar.h>.
50315         * m4/quotearg.m4: Likewise.
50316         * modules/regex (Depends-on): Depend on wchar.
50317         * lib/regex_internal.h: Assume <wchar.h>.
50318         * m4/regex.m4: Likewise.
50319         * modules/stdint (Depends-on): Depend on wchar.
50320         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
50321         * m4/stdint.m4: Likewise.
50322         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
50323         * modules/strftime (Depends-on): Depend on wchar.
50324         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
50325         * modules/strtol (Depends-on): Depend on wchar.
50326         * lib/strtol.c: Assume <wchar.h>.
50327         * modules/wcwidth (Depends-on): Depend on wchar.
50328         * lib/wcwidth.h: Assume <wchar.h>.
50329         * m4/wcwidth.m4: Likewise.
50330
50331 2007-01-16  Bruno Haible  <bruno@clisp.org>
50332
50333         * modules/csharpexec-script: New, created from...
50334         * modules/csharpexec: ... this.
50335
50336 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
50337
50338         * modules/javaexec-script: New, created from...
50339         * modules/javaexec: ... this.
50340
50341 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50342
50343         * modules/poll (Dependencies): Add sys_select.
50344
50345 2007-01-15  Jim Meyering  <jim@meyering.net>
50346
50347         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
50348         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
50349         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
50350         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
50351
50352 2007-01-15  Bruno Haible  <bruno@clisp.org>
50353
50354         * modules/striconveh: New file.
50355         * lib/striconveh.h: New file.
50356         * lib/striconveh.c: New file.
50357         * MODULES.html.sh (Internationalization functions): Add striconveh.
50358
50359         * modules/striconveh-tests: New file.
50360         * tests/test-striconveh.c: New file.
50361
50362 2007-01-15  Bruno Haible  <bruno@clisp.org>
50363
50364         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
50365         not from GNU libiconv or GNU libc.
50366
50367 2007-01-15  Bruno Haible  <bruno@clisp.org>
50368
50369         * doc/gnulib-intro.texi (Copyright): Explain the different license
50370         terms for module descriptions, autoconf macros, tests, documentation.
50371
50372 2007-01-14  Bruno Haible  <bruno@clisp.org>
50373
50374         * modules/striconv-tests: New file.
50375         * tests/test-striconv.c: New file.
50376
50377 2007-01-14  Bruno Haible  <bruno@clisp.org>
50378
50379         * modules/iconv-tests: New file.
50380         * tests/test-iconv.c: New file.
50381
50382 2007-01-14  Bruno Haible  <bruno@clisp.org>
50383
50384         * gnulib-tool (func_get_license): For test modules, use the license of
50385         the main module.
50386
50387 2007-01-14  Bruno Haible  <bruno@clisp.org>
50388
50389         * modules/iconv (Include): Clarify that <iconv.h> can only be included
50390         if iconv is found to exist.
50391
50392 2007-01-14  Bruno Haible  <bruno@clisp.org>
50393
50394         * modules/c-ctype-tests: New file.
50395         * tests/test-c-ctype.c: New file.
50396
50397 2007-01-14  Bruno Haible  <bruno@clisp.org>
50398
50399         * modules/binary-io-tests: New file.
50400         * tests/test-binary-io.sh: New file.
50401         * tests/test-binary-io.c: New file.
50402
50403 2007-01-14  Bruno Haible  <bruno@clisp.org>
50404
50405         * modules/array-oset-tests: New file.
50406         * tests/test-array_oset.c: New file.
50407
50408 2007-01-14  Bruno Haible  <bruno@clisp.org>
50409
50410         * modules/array-list-tests: New file.
50411         * tests/test-array_list.c: New file.
50412
50413 2007-01-14  Bruno Haible  <bruno@clisp.org>
50414
50415         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
50416         and make.
50417         Reported by Simon Josefsson in
50418         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
50419
50420 2007-01-14  Bruno Haible  <bruno@clisp.org>
50421
50422         * modules/allocsa-tests: New file.
50423         * tests/test-allocsa.c: New file.
50424
50425 2007-01-14  Bruno Haible  <bruno@clisp.org>
50426
50427         * modules/fchdir (Depends-on): Add absolute-header.
50428         * modules/unistd (Depends-on): Likewise.
50429
50430 2006-12-30  Bruno Haible  <bruno@clisp.org>
50431
50432         * modules/fchdir: New file.
50433         * modules/unistd (Files): Add lib/unistd_.h.
50434         (Makefile.am): Generate unistd.h from unistd_.h.
50435         * lib/fchdir.c: New file.
50436         * lib/dirent_.h: New file.
50437         * lib/unistd_.h: New file.
50438         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
50439         * m4/fchdir.m4: New file.
50440         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
50441         (gl_HEADER_UNISTD): Invoke it.
50442         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
50443         function.
50444         * lib/backupfile.c (opendir, closedir): Undefine.
50445         * lib/chown.c (open, close): Undefine.
50446         * lib/clean-temp.c (open, close): Undefine.
50447         * lib/copy-file.c (open, close): Undefine.
50448         * lib/execute.c (open, close): Undefine.
50449         * lib/fsusage.c (open, close): Undefine.
50450         * lib/gc-gnulib.c (open, close): Undefine.
50451         * lib/getcwd.c (opendir, closedir): Undefine.
50452         * lib/glob.c (opendir, closedir): Undefine.
50453         * lib/javacomp.c (open, close): Undefine.
50454         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
50455         * lib/openat-proc.c (open, close): Undefine.
50456         * lib/pagealign_alloc.c (open, close): Undefine.
50457         * lib/pipe.c (open, close): Undefine.
50458         * lib/progreloc.c (open, close): Undefine.
50459         * lib/savedir.c (opendir, closedir): Undefine.
50460         * lib/utime.c (open, close): Undefine.
50461         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
50462
50463 2007-01-10  Bruno Haible  <bruno@clisp.org>
50464
50465         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
50466
50467 2007-01-12  Eric Blake  <ebb9@byu.net>
50468
50469         Provide a robust <wchar.h>.  Further simplifications are now
50470         possible in other modules, but not included here.
50471         * modules/wchar: New module.
50472         * m4/wchar.m4: New file.
50473         * lib/wchar_.h: Likewise.
50474         * modules/mbchar (Depends-on): Depend on wchar, as the first use
50475         of the new module.
50476         * MODULES.html.sh (Extended multibyte and wide character utilities):
50477         New section.
50478
50479 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
50480
50481         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
50482         to a reasonable default for memory allocation.
50483         (xreadlink): Don't allocate a huge buffer, to work around a buggy
50484         file system that reports garbage st_size values for symlinks.
50485         Problem reported by Liyang Hu.
50486
50487 2007-01-11  Simon Josefsson  <simon@josefsson.org>
50488
50489         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
50490         Emacs .#* auto-save files).
50491
50492 2007-01-11  Bruno Haible  <bruno@clisp.org>
50493
50494         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
50495         directory.
50496
50497 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
50498
50499         Use @...@ consistently in lib/wctype_.h.
50500         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
50501         on it being set to 1 or 0.
50502         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
50503         go back to AC_SUBSTing it.
50504         * modules/wctype (Makefile.am): Undo previous change.
50505
50506 2007-01-10  Eric Blake  <ebb9@byu.net>
50507
50508         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
50509         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
50510         * modules/wctype (Makefile.am): Likewise.
50511         Reported by Chris McGuire.
50512
50513 2007-01-10  Jim Meyering  <jim@meyering.net>
50514
50515         fts.c: a small readability/maintainability improvement
50516         * lib/fts.c (fts_read): Make this code slightly more readable and
50517         maintainable by hoisting the "sp->fts_cur = p" assignments to
50518         immediately follow the statements that set P.  Derived from
50519         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
50520
50521 2007-01-10  Eric Blake  <ebb9@byu.net>
50522
50523         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
50524         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
50525         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
50526         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
50527         Reported by Chris McGuire.
50528
50529 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50530
50531         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
50532         in sed script.
50533
50534 2007-01-09  Bruno Haible  <bruno@clisp.org>
50535
50536         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
50537         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
50538         variables.
50539         (func_module): Use them.
50540
50541 2007-01-09  Bruno Haible  <bruno@clisp.org>
50542
50543         * modules/unistr/base: New file.
50544         * lib/unistr.h: New file.
50545
50546         * modules/unistr/u8-to-u16: New file.
50547         * lib/unistr/u8-to-u16.c: New file.
50548
50549         * modules/unistr/u8-to-u32: New file.
50550         * lib/unistr/u8-to-u32.c: New file.
50551
50552         * modules/unistr/u16-to-u8: New file.
50553         * lib/unistr/u16-to-u8.c: New file.
50554
50555         * modules/unistr/u16-to-u32: New file.
50556         * lib/unistr/u16-to-u32.c: New file.
50557
50558         * modules/unistr/u32-to-u8: New file.
50559         * lib/unistr/u32-to-u8.c: New file.
50560
50561         * modules/unistr/u32-to-u16: New file.
50562         * lib/unistr/u32-to-u16.c: New file.
50563
50564         * modules/unistr/u8-check: New file.
50565         * modules/unistr/u16-check: New file.
50566         * modules/unistr/u32-check: New file.
50567         * lib/unistr/u8-check.c: New file.
50568         * lib/unistr/u16-check.c: New file.
50569         * lib/unistr/u32-check.c: New file.
50570
50571         * modules/unistr/u8-chr: New file.
50572         * modules/unistr/u16-chr: New file.
50573         * modules/unistr/u32-chr: New file.
50574         * lib/unistr/u8-chr.c: New file.
50575         * lib/unistr/u16-chr.c: New file.
50576         * lib/unistr/u32-chr.c: New file.
50577
50578         * modules/unistr/u8-cmp: New file.
50579         * modules/unistr/u16-cmp: New file.
50580         * modules/unistr/u32-cmp: New file.
50581         * lib/unistr/u8-cmp.c: New file.
50582         * lib/unistr/u16-cmp.c: New file.
50583         * lib/unistr/u32-cmp.c: New file.
50584
50585         * modules/unistr/u8-cpy: New file.
50586         * modules/unistr/u16-cpy: New file.
50587         * modules/unistr/u32-cpy: New file.
50588         * lib/unistr/u8-cpy.c: New file.
50589         * lib/unistr/u16-cpy.c: New file.
50590         * lib/unistr/u32-cpy.c: New file.
50591         * lib/unistr/u-cpy.h: New file.
50592
50593         * modules/unistr/u8-cpy-alloc: New file.
50594         * modules/unistr/u16-cpy-alloc: New file.
50595         * modules/unistr/u32-cpy-alloc: New file.
50596         * lib/unistr/u8-cpy-alloc.c: New file.
50597         * lib/unistr/u16-cpy-alloc.c: New file.
50598         * lib/unistr/u32-cpy-alloc.c: New file.
50599         * lib/unistr/u-cpy-alloc.h: New file.
50600
50601         * modules/unistr/u8-endswith: New file.
50602         * modules/unistr/u16-endswith: New file.
50603         * modules/unistr/u32-endswith: New file.
50604         * lib/unistr/u8-endswith.c: New file.
50605         * lib/unistr/u16-endswith.c: New file.
50606         * lib/unistr/u32-endswith.c: New file.
50607         * lib/unistr/u-endswith.h: New file.
50608
50609         * modules/unistr/u8-mblen: New file.
50610         * modules/unistr/u16-mblen: New file.
50611         * modules/unistr/u32-mblen: New file.
50612         * lib/unistr/u8-mblen.c: New file.
50613         * lib/unistr/u16-mblen.c: New file.
50614         * lib/unistr/u32-mblen.c: New file.
50615
50616         * modules/unistr/u8-mbtouc: New file.
50617         * modules/unistr/u16-mbtouc: New file.
50618         * modules/unistr/u32-mbtouc: New file.
50619         * lib/unistr/u8-mbtouc.c: New file.
50620         * lib/unistr/u16-mbtouc.c: New file.
50621         * lib/unistr/u32-mbtouc.c: New file.
50622
50623         * modules/unistr/u8-mbtouc-safe: New file.
50624         * modules/unistr/u16-mbtouc-safe: New file.
50625         * modules/unistr/u32-mbtouc-safe: New file.
50626         * lib/unistr/u8-mbtouc-safe.c: New file.
50627         * lib/unistr/u16-mbtouc-safe.c: New file.
50628         * lib/unistr/u32-mbtouc-safe.c: New file.
50629
50630         * modules/unistr/u8-move: New file.
50631         * modules/unistr/u16-move: New file.
50632         * modules/unistr/u32-move: New file.
50633         * lib/unistr/u8-move.c: New file.
50634         * lib/unistr/u16-move.c: New file.
50635         * lib/unistr/u32-move.c: New file.
50636         * lib/unistr/u-move.h: New file.
50637
50638         * modules/unistr/u8-next: New file.
50639         * modules/unistr/u16-next: New file.
50640         * modules/unistr/u32-next: New file.
50641         * lib/unistr/u8-next.c: New file.
50642         * lib/unistr/u16-next.c: New file.
50643         * lib/unistr/u32-next.c: New file.
50644
50645         * modules/unistr/u8-prev: New file.
50646         * modules/unistr/u16-prev: New file.
50647         * modules/unistr/u32-prev: New file.
50648         * lib/unistr/u8-prev.c: New file.
50649         * lib/unistr/u16-prev.c: New file.
50650         * lib/unistr/u32-prev.c: New file.
50651
50652         * modules/unistr/u8-set: New file.
50653         * modules/unistr/u16-set: New file.
50654         * modules/unistr/u32-set: New file.
50655         * lib/unistr/u8-set.c: New file.
50656         * lib/unistr/u16-set.c: New file.
50657         * lib/unistr/u32-set.c: New file.
50658         * lib/unistr/u-set.h: New file.
50659
50660         * modules/unistr/u8-startswith: New file.
50661         * modules/unistr/u16-startswith: New file.
50662         * modules/unistr/u32-startswith: New file.
50663         * lib/unistr/u8-startswith.c: New file.
50664         * lib/unistr/u16-startswith.c: New file.
50665         * lib/unistr/u32-startswith.c: New file.
50666         * lib/unistr/u-startswith.h: New file.
50667
50668         * modules/unistr/u8-stpcpy: New file.
50669         * modules/unistr/u16-stpcpy: New file.
50670         * modules/unistr/u32-stpcpy: New file.
50671         * lib/unistr/u8-stpcpy.c: New file.
50672         * lib/unistr/u16-stpcpy.c: New file.
50673         * lib/unistr/u32-stpcpy.c: New file.
50674         * lib/unistr/u-stpcpy.h: New file.
50675
50676         * modules/unistr/u8-stpncpy: New file.
50677         * modules/unistr/u16-stpncpy: New file.
50678         * modules/unistr/u32-stpncpy: New file.
50679         * lib/unistr/u8-stpncpy.c: New file.
50680         * lib/unistr/u16-stpncpy.c: New file.
50681         * lib/unistr/u32-stpncpy.c: New file.
50682         * lib/unistr/u-stpncpy.h: New file.
50683
50684         * modules/unistr/u8-strcat: New file.
50685         * modules/unistr/u16-strcat: New file.
50686         * modules/unistr/u32-strcat: New file.
50687         * lib/unistr/u8-strcat.c: New file.
50688         * lib/unistr/u16-strcat.c: New file.
50689         * lib/unistr/u32-strcat.c: New file.
50690         * lib/unistr/u-strcat.h: New file.
50691
50692         * modules/unistr/u8-strchr: New file.
50693         * modules/unistr/u16-strchr: New file.
50694         * modules/unistr/u32-strchr: New file.
50695         * lib/unistr/u8-strchr.c: New file.
50696         * lib/unistr/u16-strchr.c: New file.
50697         * lib/unistr/u32-strchr.c: New file.
50698
50699         * modules/unistr/u8-strcmp: New file.
50700         * modules/unistr/u16-strcmp: New file.
50701         * modules/unistr/u32-strcmp: New file.
50702         * lib/unistr/u8-strcmp.c: New file.
50703         * lib/unistr/u16-strcmp.c: New file.
50704         * lib/unistr/u32-strcmp.c: New file.
50705
50706         * modules/unistr/u8-strcpy: New file.
50707         * modules/unistr/u16-strcpy: New file.
50708         * modules/unistr/u32-strcpy: New file.
50709         * lib/unistr/u8-strcpy.c: New file.
50710         * lib/unistr/u16-strcpy.c: New file.
50711         * lib/unistr/u32-strcpy.c: New file.
50712         * lib/unistr/u-strcpy.h: New file.
50713
50714         * modules/unistr/u8-strcspn: New file.
50715         * modules/unistr/u16-strcspn: New file.
50716         * modules/unistr/u32-strcspn: New file.
50717         * lib/unistr/u8-strcspn.c: New file.
50718         * lib/unistr/u16-strcspn.c: New file.
50719         * lib/unistr/u32-strcspn.c: New file.
50720         * lib/unistr/u-strcspn.h: New file.
50721
50722         * modules/unistr/u8-strdup: New file.
50723         * modules/unistr/u16-strdup: New file.
50724         * modules/unistr/u32-strdup: New file.
50725         * lib/unistr/u8-strdup.c: New file.
50726         * lib/unistr/u16-strdup.c: New file.
50727         * lib/unistr/u32-strdup.c: New file.
50728         * lib/unistr/u-strdup.h: New file.
50729
50730         * modules/unistr/u8-strlen: New file.
50731         * modules/unistr/u16-strlen: New file.
50732         * modules/unistr/u32-strlen: New file.
50733         * lib/unistr/u8-strlen.c: New file.
50734         * lib/unistr/u16-strlen.c: New file.
50735         * lib/unistr/u32-strlen.c: New file.
50736         * lib/unistr/u-strlen.h: New file.
50737
50738         * modules/unistr/u8-strmblen: New file.
50739         * modules/unistr/u16-strmblen: New file.
50740         * modules/unistr/u32-strmblen: New file.
50741         * lib/unistr/u8-strmblen.c: New file.
50742         * lib/unistr/u16-strmblen.c: New file.
50743         * lib/unistr/u32-strmblen.c: New file.
50744
50745         * modules/unistr/u8-strmbtouc: New file.
50746         * modules/unistr/u16-strmbtouc: New file.
50747         * modules/unistr/u32-strmbtouc: New file.
50748         * lib/unistr/u8-strmbtouc.c: New file.
50749         * lib/unistr/u16-strmbtouc.c: New file.
50750         * lib/unistr/u32-strmbtouc.c: New file.
50751
50752         * modules/unistr/u8-strncat: New file.
50753         * modules/unistr/u16-strncat: New file.
50754         * modules/unistr/u32-strncat: New file.
50755         * lib/unistr/u8-strncat.c: New file.
50756         * lib/unistr/u16-strncat.c: New file.
50757         * lib/unistr/u32-strncat.c: New file.
50758         * lib/unistr/u-strncat.h: New file.
50759
50760         * modules/unistr/u8-strncmp: New file.
50761         * modules/unistr/u16-strncmp: New file.
50762         * modules/unistr/u32-strncmp: New file.
50763         * lib/unistr/u8-strncmp.c: New file.
50764         * lib/unistr/u16-strncmp.c: New file.
50765         * lib/unistr/u32-strncmp.c: New file.
50766
50767         * modules/unistr/u8-strncpy: New file.
50768         * modules/unistr/u16-strncpy: New file.
50769         * modules/unistr/u32-strncpy: New file.
50770         * lib/unistr/u8-strncpy.c: New file.
50771         * lib/unistr/u16-strncpy.c: New file.
50772         * lib/unistr/u32-strncpy.c: New file.
50773         * lib/unistr/u-strncpy.h: New file.
50774
50775         * modules/unistr/u8-strnlen: New file.
50776         * modules/unistr/u16-strnlen: New file.
50777         * modules/unistr/u32-strnlen: New file.
50778         * lib/unistr/u8-strnlen.c: New file.
50779         * lib/unistr/u16-strnlen.c: New file.
50780         * lib/unistr/u32-strnlen.c: New file.
50781         * lib/unistr/u-strnlen.h: New file.
50782
50783         * modules/unistr/u8-strpbrk: New file.
50784         * modules/unistr/u16-strpbrk: New file.
50785         * modules/unistr/u32-strpbrk: New file.
50786         * lib/unistr/u8-strpbrk.c: New file.
50787         * lib/unistr/u16-strpbrk.c: New file.
50788         * lib/unistr/u32-strpbrk.c: New file.
50789         * lib/unistr/u-strpbrk.h: New file.
50790
50791         * modules/unistr/u8-strrchr: New file.
50792         * modules/unistr/u16-strrchr: New file.
50793         * modules/unistr/u32-strrchr: New file.
50794         * lib/unistr/u8-strrchr.c: New file.
50795         * lib/unistr/u16-strrchr.c: New file.
50796         * lib/unistr/u32-strrchr.c: New file.
50797
50798         * modules/unistr/u8-strspn: New file.
50799         * modules/unistr/u16-strspn: New file.
50800         * modules/unistr/u32-strspn: New file.
50801         * lib/unistr/u8-strspn.c: New file.
50802         * lib/unistr/u16-strspn.c: New file.
50803         * lib/unistr/u32-strspn.c: New file.
50804         * lib/unistr/u-strspn.h: New file.
50805
50806         * modules/unistr/u8-strstr: New file.
50807         * modules/unistr/u16-strstr: New file.
50808         * modules/unistr/u32-strstr: New file.
50809         * lib/unistr/u8-strstr.c: New file.
50810         * lib/unistr/u16-strstr.c: New file.
50811         * lib/unistr/u32-strstr.c: New file.
50812         * lib/unistr/u-strstr.h: New file.
50813
50814         * modules/unistr/u8-strtok: New file.
50815         * modules/unistr/u16-strtok: New file.
50816         * modules/unistr/u32-strtok: New file.
50817         * lib/unistr/u8-strtok.c: New file.
50818         * lib/unistr/u16-strtok.c: New file.
50819         * lib/unistr/u32-strtok.c: New file.
50820         * lib/unistr/u-strtok.h: New file.
50821
50822         * modules/unistr/u8-uctomb: New file.
50823         * modules/unistr/u16-uctomb: New file.
50824         * modules/unistr/u32-uctomb: New file.
50825         * lib/unistr/u8-uctomb.c: New file.
50826         * lib/unistr/u16-uctomb.c: New file.
50827         * lib/unistr/u32-uctomb.c: New file.
50828
50829         * MODULES.html.sh (Unicode string functions): Add the new modules.
50830
50831 2007-01-08  Bruno Haible  <bruno@clisp.org>
50832
50833         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
50834         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
50835         subdirectories.
50836
50837 2007-01-08  Karl Berry  <karl@gnu.org>
50838
50839         * doc/error.texi: mention that main() fns must set program_name
50840         when progname is used.
50841
50842 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
50843
50844         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
50845         WCTYPE_H is empty, for the benefit of builds from non-distclean
50846         directories.  Problem reported by Eric Blake in
50847         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
50848
50849 2007-01-08  Bruno Haible  <bruno@clisp.org>
50850
50851         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
50852         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
50853         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
50854         PROVIDE_CANONICALIZE_FILENAME_MODE.
50855         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
50856
50857 2007-01-08  Bruno Haible  <bruno@clisp.org>
50858
50859         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
50860         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
50861         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
50862         * lib/fts.c: Likewise.
50863         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
50864
50865 2006-12-25  Bruno Haible  <bruno@clisp.org>
50866
50867         * modules/utf8-ucs4-safe: New file.
50868         * lib/utf8-ucs4-safe.h: New file.
50869         * lib/unistr/utf8-ucs4-safe.c: New file.
50870
50871         * modules/utf16-ucs4-safe: New file.
50872         * lib/utf16-ucs4-safe.h: New file.
50873         * lib/unistr/utf16-ucs4-safe.c: New file.
50874
50875         * MODULES.html.sh (Unicode string functions): Add the new modules.
50876
50877 2007-01-08  Bruno Haible  <bruno@clisp.org>
50878
50879         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
50880         (Depends-on): Add unitypes.
50881         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
50882         (u8_mbtouc_aux): Move out to separate file.
50883         (u8_mbtouc): Use ucs4_t, uint8_t types.
50884         * lib/unistr/utf8-ucs4.c: New file.
50885
50886         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
50887         (Depends-on): Add unitypes.
50888         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
50889         (u16_mbtouc_aux): Move out to separate file.
50890         (u16_mbtouc): Use ucs4_t, uint16_t types.
50891         * lib/unistr/utf16-ucs4.c: New file.
50892
50893         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
50894         (Depends-on): Add unitypes.
50895         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
50896         (u8_uctomb_aux): Move out to separate file.
50897         (u8_uctomb): Use ucs4_t, uint8_t types.
50898         * lib/unistr/ucs4-utf8.c: New file.
50899
50900         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
50901         (Depends-on): Add unitypes.
50902         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
50903         (u16_uctomb_aux): Move out to separate file.
50904         (u16_uctomb): Use ucs4_t, uint16_t types.
50905         * lib/unistr/ucs4-utf16.c: New file.
50906
50907 2006-12-25  Bruno Haible  <bruno@clisp.org>
50908
50909         * modules/unitypes: New file.
50910         * lib/unitypes.h: New file.
50911         * MODULES.html.sh (func_all_modules): New section "Unicode string
50912         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
50913         this section. Add unitypes.
50914
50915 2007-01-08  Bruno Haible  <bruno@clisp.org>
50916
50917         Avoid variable names that conflict with those from libtool.
50918         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
50919         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
50920         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
50921         library_names_spec to acl_library_names_spec, hardcode_* to
50922         acl_hardcode_*.
50923         Reported by Ralf Wildenhues.
50924
50925 2007-01-08  Bruno Haible  <bruno@clisp.org>
50926
50927         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
50928         definition.
50929         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
50930         definition.
50931         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
50932         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
50933         definition.
50934         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
50935         definition.
50936         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
50937         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
50938         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
50939         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
50940         definition.
50941         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
50942         definition.
50943         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
50944         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
50945         GC_USE_<algorithm>.
50946         * lib/gc-libgcrypt.c: Likewise.
50947         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
50948         * modules/gc-arctwo (configure.ac): Likewise.
50949         * modules/gc-des (configure.ac): Likewise.
50950         * modules/gc-hmac-md5 (configure.ac): Likewise.
50951         * modules/gc-hmac-sha1 (configure.ac): Likewise.
50952         * modules/gc-md2 (configure.ac): Likewise.
50953         * modules/gc-md4 (configure.ac): Likewise.
50954         * modules/gc-md5 (configure.ac): Likewise.
50955         * modules/gc-random (configure.ac): Likewise.
50956         * modules/gc-rijndael (configure.ac): Likewise.
50957         * modules/gc-sha1 (configure.ac): Likewise.
50958
50959 2007-01-08  Bruno Haible  <bruno@clisp.org>
50960
50961         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
50962         macro definition.
50963         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
50964         definition.
50965         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
50966         definition.
50967         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
50968         * modules/fcntl-safer (configure.ac): Likewise.
50969         * modules/fopen-safer (configure.ac): Likewise.
50970         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
50971         GNULIB_FWRITEERROR macro definition.
50972
50973 2007-01-08  Bruno Haible  <bruno@clisp.org>
50974
50975         * m4/gnulib-common.m4: New file.
50976         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
50977         (func_get_filelist): Add m4/gnulib-common.m4.
50978
50979 2007-01-08  Bruno Haible  <bruno@clisp.org>
50980
50981         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
50982         command.
50983
50984 2007-01-08  Jim Meyering  <jim@meyering.net>
50985
50986         Use a more robust test for a "can't happen" condition.
50987         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
50988         narrowed the st_size value.  Presuming the "can't happen" condition
50989         is true, that narrowing could conceivably convert an invalid st_size
50990         value into a valid one.  Instead, use a change based on Matthew
50991         Woehlke's original patch.
50992
50993         Slight readability improvement: use an assert-like macro
50994         in place of literal "abort ()" uses.
50995         * lib/fts.c (fts_assert): Define.
50996         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
50997         Use this macro instead of a bare 'abort'.
50998
50999 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
51000
51001         Don't worry about using IRIX 5.3's wctype.h broken definitions;
51002         simply work around them.
51003         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
51004         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
51005         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
51006         declaring.
51007         Don't bother to define as macros, since the standard doesn't require it.
51008         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
51009         longer worry about IRIX 5.3.
51010         (HAVE_WCTYPE_CTMP_BUG): Remove.
51011
51012 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
51013
51014         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
51015         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
51016         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
51017         Problems reported by Georg Schwarz for IRIX 5.3.
51018
51019         * gnulib-tool (autoconf_minversion): Take the maximum version number
51020         found, not the minimum.  Problem reported by James Youngman.
51021
51022 2007-01-03  Karl Berry  <karl@gnu.org>
51023
51024         * doc/error.texi: new file, explaining interaction with progname.
51025         * doc/gnulib.texi: include it.  Update copyright.
51026
51027 2007-01-03  Simon Josefsson  <simon@josefsson.org>
51028
51029         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
51030         AC_CANONICAL_HOST, to improve autobuild outputs.
51031
51032 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
51033             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51034
51035         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
51036         sockets, server sockets, and other file descriptors.  Count errors
51037         to compute the return value.  Reorder the code a bit to be easier
51038         to follow.  Don't set event bits that were not requested (except
51039         POLLERR and POLLHUP).
51040
51041 2007-01-01  Bruno Haible  <bruno@clisp.org>
51042
51043         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
51044
51045 2007-01-03  Jim Meyering  <jim@meyering.net>
51046
51047         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
51048
51049 2007-01-02  Bruno Haible  <bruno@clisp.org>
51050
51051         * modules/settime (Include): Require timespec.h.
51052         * modules/nanosleep (Include): Likewise.
51053
51054 2007-01-01  Bruno Haible  <bruno@clisp.org>
51055
51056         * gnulib-tool (func_emit_copyright_notice): Bump year.
51057         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
51058
51059 2007-01-01  Bruno Haible  <bruno@clisp.org>
51060
51061         Improve support for OpenBSD.
51062         * build-aux/config.rpath (libname_spec): Export.
51063         (library_names_spec): New variable. Export.
51064         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
51065         library_names_spec from the config.rpath output. Locate shared library
51066         through the name pattern in library_names_spec.
51067
51068 2007-01-01  Eric Blake  <ebb9@byu.net>
51069
51070         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
51071
51072 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
51073
51074         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
51075         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
51076         assume the C locale, and avoid an "eval" that could cause trouble.
51077         Problem with SORT reported by Bob Proulx.
51078
51079         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
51080         Define.  Trivial patch from Henning Nielsen Lund, originally
51081         sent to bug-grep@gnu.org today.
51082
51083 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
51084
51085         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
51086         struct stat.  Problem reported by Henning Nielsen Lund.
51087         * lib/acl.c: Include acl.h first, to check interface.  Don't
51088         bother to include sys/types.h and sys/stat.h again.
51089
51090 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
51091
51092         Import the following change from libc; problem reported by
51093         Sven Verdoolaege.
51094
51095         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
51096
51097         [BZ #1373]
51098         * lib/argp.h: Remove __NTH for __argp_usage inline function.
51099
51100 2006-12-28  Jim Meyering  <jim@meyering.net>
51101
51102         * build-aux/announce-gen: Do not assume that the package
51103         builds any of tar.gz, tar.bz2, and .xdelta files.
51104         Suggestion from Simon Josefsson.
51105
51106 2006-12-28  Simon Josefsson  <simon@josefsson.org>
51107
51108         * modules/announce-gen: New file.
51109
51110 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
51111
51112         * lib/mbchar.h: Just include <wctype.h>; the wctype module
51113         handles its gotchas now.
51114         * lib/mbswidth.c: Likewise.
51115         * lib/wcwidth.h: Likewise.
51116         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
51117         and iswcntrl; the wctype module does this stuff now.
51118         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
51119         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
51120         * modules/mbchar (Depends-on): Add wctype.
51121         * modules/mbswidth (Depends-on): Likewise.
51122         * modules/wcwidth (Depends-on): Likewise.
51123
51124 2006-12-27  Eric Blake  <ebb9@byu.net>
51125
51126         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
51127         module uses more than what <wctype.h> is required to provide.
51128
51129 2006-12-26  Eric Blake  <ebb9@byu.net>
51130
51131         * gnulib-tool (sed_extract_prog): Avoid space-tab.
51132
51133 2006-12-26  Eric Blake  <ebb9@byu.net>
51134
51135         * modules/absolute-header: New module.
51136         * modules/fcntl (Depends-on): Depend on it.
51137         * modules/inttypes (Depends-on): Likewise.
51138         * modules/stdint (Depends-on): Likewise.
51139         * modules/sys_stat (Depends-on): Likewise.
51140         * modules/wctype (Depends-on): Likewise.
51141         * MODULES.html.sh (Support for building libraries and
51142         executables): Document it.
51143
51144 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
51145
51146         * gnulib-tool (SED): Remove, undoing previous change.
51147         The problem was that it broke coreutils on Solaris, because
51148         "sed --posix" leaked into a makefile.
51149         (sed): New alias, if 'alias' and GNU sed.
51150
51151 2006-12-24  Jim Meyering  <jim@meyering.net>
51152
51153         Work around an fchownat bug in glibc-2.4:
51154         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
51155         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
51156         in spite of the -P option.
51157         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
51158         New macros.
51159         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
51160         * modules/openat (Files): Add lib/fchownat.c.
51161         * lib/openat.c (fchownat): Don't define here.  Move to...
51162         * lib/fchownat.c: ...this new file.
51163
51164 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
51165
51166         Fix bug reported by Bruno Haible in
51167         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
51168         where quotearg.c didn't compile on Mac OS X 10.2 because it
51169         lacks <wchar.h> and wint_t.
51170         * lib/wctype_.h (__wctype_wint_t): New type.
51171         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
51172         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
51173         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
51174         Arg is now of type __wctype_wint_t, not wint_t.
51175         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
51176         substitute HAVE_WINT_T.
51177         * modules/wctype (Files): Add m4/wint_t.m4.
51178         (wctype.h): Substitute HAVE_WINT_T.
51179
51180 2006-12-23  Bruno Haible  <bruno@clisp.org>
51181
51182         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
51183
51184 2006-12-23  Bruno Haible  <bruno@clisp.org>
51185
51186         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
51187         S_ISLNK.
51188         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
51189         mingw.
51190
51191 2006-12-22  Bruno Haible  <bruno@clisp.org>
51192
51193         * lib/copy-file.c: Include acl.h.
51194         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
51195         Close the file descriptors only after being done with copy_acl.
51196         * modules/copy-file (Depends-on): Add acl.
51197
51198 2006-12-22  Bruno Haible  <bruno@clisp.org>
51199
51200         * gnulib-tool (SED): New variable.
51201         Use $SED instead of sed everywhere.
51202
51203 2006-12-22  Bruno Haible  <bruno@clisp.org>
51204
51205         * modules/no-c++: New file.
51206         * m4/no-c++.m4: New file.
51207         * MODULES.html.sh (Support for building libraries and executables):
51208         Add no-c++.
51209
51210 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
51211
51212         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
51213         Include <limits.h>, and use its INT_MAX to rewrite the
51214         j loop so that it does not overflow 'int'.  Problem reported by
51215         Ralf Wildenhues in
51216         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
51217         Play it safe by shifting left by 1 rather than multiplying by 2,
51218         as GCC is less likely to optimize this away when the value
51219         is signed (when it assumes overflow leads to undefined behavior).
51220         Also, don't assume time_t uses two's complement.
51221
51222 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
51223
51224         * MODULES.html.sh: New module wctype.
51225         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
51226         * lib/fnmatch.c: Don't bother to include <wchar.h> before
51227         <wctype.h>, since the new wctype module should fix this.
51228         * lib/quotearg.c: Include <wctype.h> unconditionally, since
51229         the wctype module should arrange for it.
51230         * lib/regex_internal.h: Likewise.
51231         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
51232         since the wctype module should handle this now.
51233         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
51234         * modules/fnmatch (Depends-on): Add wctype.
51235         * modules/quotearg (Depends-on): Likewise.
51236         * modules/regex (Depends-on): Likewise.
51237
51238 2006-12-19  Bruno Haible  <bruno@clisp.org>
51239
51240         * lib/strdup.h [C++]: Wrap definitions in extern "C".
51241         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
51242
51243 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51244
51245         * modules/savewd (Depends-on): Fix dependency on fcntl.
51246
51247 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
51248
51249         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
51250         conforms to C99, rather than relying on the user's environment
51251         setting of STDINT_H.
51252
51253 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
51254         and Eric Blake  <ebb9@byu.net>
51255
51256         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
51257         This is more consistent with the other defines here.
51258         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
51259         Port to z/OS.  Problem reported by Paul Gilmartin.
51260         Change local vars to use gl_ prefix rather than ac_.
51261         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
51262         with other defines.
51263         * modules/double-slash-root: New module.
51264         * modules/dirname (Files): Remove m4/double-slash-root.m4.
51265         (Depends-on): Add double-slash-root.
51266         * MODULES.html.sh (File system functions): Mention new module.
51267
51268 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
51269
51270         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
51271         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
51272         This is for the benefit of gzip, which doesn't do i18n.
51273
51274 2006-12-12  Jim Meyering  <jim@meyering.net>
51275
51276         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
51277         Reported by Andreas Schwab <schwab@suse.de>.
51278
51279 2006-12-12  Bruno Haible  <bruno@clisp.org>
51280
51281         Merge these changes.
51282         2006-09-05  Bruno Haible  <bruno@clisp.org>
51283         * lib/iconvme.c (iconv_string): No need to save and restore errno when
51284         iconv_alloc succeeded.
51285         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
51286         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
51287         test for " && dest " at the end - dest is always != NULL there. Call
51288         iconv with 4xNULL arguments initially, to reset the state. Call iconv
51289         with 2xNULL arguments, also to flush the state storage. Handle the
51290         IRIX iconv behaviour. Realloc the final result, to throw away unused
51291         memory.
51292
51293 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
51294
51295         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
51296         and fchmodat unconditionally, since glibc 2.4 has them.
51297         Problem reported by Arkadiusz Miskiewicz.
51298
51299 2006-12-10  Bruno Haible  <bruno@clisp.org>
51300
51301         * gnulib-tool (func_import): Show the include files only for those
51302         modules that are copied and specified.
51303         Reported by Karl Berry.
51304
51305 2006-12-08  Jim Meyering  <jim@meyering.net>
51306
51307         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
51308         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
51309
51310         * build-aux/announce-gen: Add two new options, both optional:
51311         --bootstrap-tools=TOOL_LIST
51312               a comma-separated list of tools, e.g.,
51313               autoconf,automake,bison,gnulib
51314         --gnulib-snapshot-date=DATE
51315               if gnulib is in the bootstrap tool list,
51316               then report this as the snapshot date.
51317               If not specified, use the current date/time.
51318               If you specify a date here, be sure it's UTC.
51319
51320 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51321
51322         * tests/test-argp-2.sh: Fix test to match actual output.
51323         (func_compare): Fix sed script to be portable.
51324
51325 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
51326
51327         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
51328         workaround for this case.  It is not autoconfigured now; offhand
51329         it's hard to see how to autoconfigure it.
51330
51331 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
51332
51333         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
51334         a directory that is about to be chowned.  Such a directory's
51335         initial file permissions should permit the owner only and this
51336         should not be changed until after the chown, since the group and
51337         other bits would be incorrect if they granted permission before
51338         the chown.
51339
51340         Fix porting problem for iswctype reported by Georg Schwarz in:
51341         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
51342         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
51343         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
51344         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
51345         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51346
51347 2006-12-03  Jim Meyering  <jim@meyering.net>
51348
51349         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
51350         p->fts_statp may not yet be defined.
51351         (fts_read): Instead, set it in the caller, once p->fts_statp is
51352         sure to be defined, and corresponds to a top-level directory.
51353         This bug made du -x fail.  Here's the coreutils test case:
51354         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
51355         Reported by Mike Frysinger.
51356
51357 2006-12-01  Jim Meyering  <jim@meyering.net>
51358
51359         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
51360         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
51361         Reported by Simon Josefsson.
51362
51363 2006-11-30  Jim Meyering  <jim@meyering.net>
51364
51365         * m4/warning.m4: Use the all-permissive copyright notice
51366         recommended by RMS (rather than LGPL).
51367         * m4/vararrays.m4: Likewise.
51368         * m4/flexmember.m4: Likewise.
51369
51370 2006-11-29  Bruno Haible  <bruno@clisp.org>
51371
51372         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
51373         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
51374         using +=.
51375         Reported by Simon Josefsson <simon@josefsson.org>.
51376
51377 2006-11-28  James Youngman <jay@gnu.org>
51378
51379         * README: Advise users that they might find the bug-gnulib@gnu.org
51380         and autotools-announce@gnu.org mailing lists useful.
51381
51382 2006-11-28  Bruno Haible  <bruno@clisp.org>
51383
51384         * m4/ptrdiff_max.m4: Remove file.
51385
51386 2006-11-21  Bruno Haible  <bruno@clisp.org>
51387
51388         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
51389         _AC_COMPUTE_INT.
51390         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
51391         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
51392         _AC_COMPUTE_INT.
51393         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
51394         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
51395         _AC_COMPUTE_INT.
51396         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
51397
51398 2006-11-28  Jim Meyering  <jim@meyering.net>
51399
51400         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
51401         warning from "gcc -Wshadow" about shadowing the builtin.
51402
51403 2006-11-27  Bruno Haible  <bruno@clisp.org>
51404
51405         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
51406         _AC_COMPUTE_INT.
51407         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
51408
51409 2006-11-27  Bruno Haible  <bruno@clisp.org>
51410             Paul Eggert  <eggert@cs.ucla.edu>
51411
51412         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
51413
51414 2006-11-26  Bruno Haible  <bruno@clisp.org>
51415
51416         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
51417         noinst_LTLIBRARIES.
51418
51419 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
51420             Bruno Haible  <bruno@clisp.org>
51421
51422         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
51423         if compiling with "gcc -ansi".
51424
51425 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
51426
51427         Fix some incompatibilities with gcc -ansi -pedantic.
51428         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
51429         if compiling pedantically with GCC, unless it's C99 or later.
51430         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
51431         it mishandles gcc -ansi -pedantic as well.
51432         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
51433         if gcc -pedantic.
51434         * lib/regexec.c (check_node_accept_bytes): Don't use auto
51435         initializers for struct if -pedantic, unless it's C99 or later.
51436
51437 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
51438
51439         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
51440         Don't close an fd more than once. Identical atimes indicate
51441         success, not failure.
51442
51443 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
51444
51445         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
51446
51447 2006-11-23  Jim Meyering  <jim@meyering.net>
51448
51449         * build-aux/announce-gen: New file.  From coreutils.
51450
51451 2006-11-22  Jim Meyering  <jim@meyering.net>
51452
51453         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
51454         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
51455         (fts_read): Use a temporary to narrow the overused st_size member
51456         before using it in a switch statement.  Reported by Matthew Woehlke.
51457
51458         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
51459         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
51460
51461 2006-11-20  Bruno Haible  <bruno@clisp.org>
51462
51463         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
51464         changequote instead of pairs of brackets.
51465         Reported by Andreas Schwab <schwab@suse.de>.
51466
51467 2006-11-21  Jim Meyering  <jim@meyering.net>
51468
51469         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
51470         so as to remain compatible with older compilers.
51471         Patch from Michael Deutschmann.
51472
51473 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
51474
51475         * MODULES.html.sh (File system functions): Add openat.
51476
51477         * lib/openat.h (rpl_fstatat): New macro, if
51478         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
51479         (fstatat): Define to rpl_fstatat under the same conditions,
51480         unless COMPILING_FSTATAT.
51481         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
51482         seems to have the bug.
51483         * lib/fstatat.c: New file.
51484         * modules/openat (Files): Add it.
51485
51486 2006-11-20  Bruno Haible  <bruno@clisp.org>
51487
51488         * Makefile: New file.
51489
51490 2006-11-20  Jim Meyering  <jim@meyering.net>
51491
51492         The beginnings of syntax-related checks for gnulib.
51493         * lib/Makefile: New file.
51494         * lib/t-idcache: New script.  Ensure that the two halves of
51495         idcache.c stay in sync.
51496
51497         * lib/idcache.c: Adjust comments in user- and group- portions to
51498         be more accurate, and to be consistent with one another.
51499
51500 2006-11-20  Jim Meyering  <jim@meyering.net>
51501
51502         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
51503         continue using the flexible array member (thus, this module performs
51504         half as many malloc calls), with the addition that...
51505         (getgroup, getuser): Consistently record a non-match via an empty
51506         "name" string, and map an empty string match to a NULL return value.
51507         * modules/idcache (Depends-on): Re-add flexmember.
51508
51509         * lib/idcache.c (getuser): Remove all uses of the register keyword.
51510         (getuidbyname, getgroup, getgidbyname): Likewise.
51511
51512         Use cleaner syntax: NULL rather than 0.
51513         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
51514
51515 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
51516
51517         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
51518         It mishandled the case where the group was missing.
51519         Problem reported by Greg Schafer.
51520         * modules/idcache: Likewise.
51521
51522 2006-11-18  Jim Meyering  <jim@meyering.net>
51523
51524         * check-module (%exempt_header): Add exception for some
51525         conditionally-included headers.
51526
51527         * modules/i-ring (Depends-on): Add verify.
51528         (License): Change to LGPL.
51529
51530 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
51531
51532         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
51533         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
51534         and inttostr.h.  Use snprintf rather than uinttostr, so that
51535         LGPLed code doesn't depend on GPLed.
51536
51537 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
51538
51539         * modules/inline (License): Change from GPL to LGPL.
51540
51541 2006-11-17  Jim Meyering  <jim@meyering.net>
51542
51543         * modules/d-type (License): Switch to LGPL.
51544
51545 2006-11-15  Bruno Haible  <bruno@clisp.org>
51546
51547         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
51548
51549 2006-11-15  Eric Blake  <ebb9@byu.net>
51550
51551         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
51552         the module dependency.
51553
51554 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51555             Bruno Haible  <bruno@clisp.org>
51556
51557         * gnulib-tool (func_create_testdir): Add license consistency check.
51558
51559 2006-11-15  Eric Blake  <ebb9@byu.net>
51560
51561         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
51562         random "(cached)" in configure output.
51563
51564 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51565
51566         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
51567         test for conforming inttypes.h is both announced and cached.
51568
51569         * MODULES.html.sh (seen_modules, seen_files): New variables.
51570         (func_module): Rewrite to use a few less gnulib-tool and sed
51571         invocations.  Avoid a couple of quadratic algorithms for ...
51572         (missed_modules, missed_files): ... these, with ...
51573         (func_append, func_tmpdir): ... these new functions, from
51574         gnulib-tool.  Analogously, install traps for cleanup.
51575
51576         * tests/test-gc.c (main): Remove unused variables.
51577         * tests/test-read-file.c: Include stdlib.h, for 'free'.
51578
51579 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
51580
51581         * modules/inttostr (License): Change to LGPL.
51582
51583 2006-11-14  Eric Blake  <ebb9@byu.net>
51584
51585         * modules/tempname (License): Change to LGPL.
51586
51587 2006-11-14  Eric Blake  <ebb9@byu.net>
51588
51589         * doc/functions.texi (Function Portability): *printf functions on
51590         Cygwin now understand all POSIX size specifiers.
51591
51592 2006-11-14  Bruno Haible  <bruno@clisp.org>
51593
51594         * modules/c-ctype (License): Change to LGPL.
51595
51596 2006-11-12  Bruno Haible  <bruno@clisp.org>
51597
51598         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51599         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
51600         for GNOME libraries, for which the include files are installed in
51601         subdirectories of $prefix/include.
51602
51603 2006-11-12  Bruno Haible  <bruno@clisp.org>
51604
51605         * m4/lib-link.m4: Require at least autoconf-2.54.
51606         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
51607         name to underscores for the --with option.
51608
51609 2006-11-13  Bruno Haible  <bruno@clisp.org>
51610
51611         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
51612         the tests directory.
51613         Reported by Ralf Wildenhues.
51614
51615 2006-11-13  Bruno Haible  <bruno@clisp.org>
51616
51617         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
51618         (func_emit_initmacro_end): Undo the override here.
51619         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
51620         Works around the famous automake error in coreutils.
51621
51622 2006-11-13  Eric Blake  <ebb9@byu.net>
51623
51624         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
51625         element, not its node.
51626
51627 2006-11-12  Bruno Haible  <bruno@clisp.org>
51628
51629         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
51630         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
51631
51632 2006-11-12  Bruno Haible  <bruno@clisp.org>
51633
51634         * gnulib-tool: New option --local-symlink.
51635         (func_usage): Document it.
51636         (lsymbolic): New variable.
51637         (func_import, func_create_testdir): If --symlink was not specified,
51638         test whether --local-symlink was specified and the file comes from
51639         the local_gnulib_dir.
51640
51641 2006-11-12  Bruno Haible  <bruno@clisp.org>
51642
51643         * gnulib-tool (func_ln): New function.
51644         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
51645
51646 2006-11-12  Bruno Haible  <bruno@clisp.org>
51647
51648         Finish support for source files in subdirectories.
51649         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
51650         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
51651         AUTOMAKE_OPTIONS.
51652         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
51653
51654 2006-11-12  Bruno Haible  <bruno@clisp.org>
51655
51656         * gnulib-tool (func_get_automake_snippet): Synthesize also an
51657         EXTRA_lib_SOURCES augmentation.
51658         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
51659
51660 2006-11-12  Jim Meyering  <jim@meyering.net>
51661
51662         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
51663         file descriptors.  This also averts a failure on systems with
51664         native openat support when a traversed directory lacks "x" access.
51665         * lib/fts_.h: Include "i-ring.h"
51666         (struct FTS) [fts_fd_ring]: New member.
51667         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
51668         (FCHDIR): Add parentheses.
51669         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
51670         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
51671         When descending, rather than simply closing the previous
51672         fts_cwd_fd value, push that file descriptor onto the ring.
51673         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
51674         (fts_open): Initialize the new fd_ring member.
51675         (fts_close): Clear the ring.
51676         (fts_safe_changedir): When possible, use our new fd_ring to skip
51677         the diropen and fstat and dev/ino comparison that would normally
51678         accompany a virtual `chdir ("..")'.
51679
51680         * modules/fts (Depends-on): Add i-ring.
51681         * modules/i-ring: New module.
51682         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
51683         * m4/i-ring.m4: New file.
51684
51685 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51686
51687         * gnulib-tool (func_create_testdir): Fix replacement of
51688         `build-aux' in configure.ac.  Run autotools in gltests
51689         subdirectory.
51690         (func_create_testdir, func_create_megatestdir, test): There is
51691         no need for '--force' in most autotool invocations in a new
51692         tree.  Actually fail the whole test if any of the tools, or the
51693         configure or make stages fail.
51694
51695         Sync from Automake.
51696         * build-aux/gnupload: Revert last change.  Add pointer to upload
51697         instructions of the GNU Maintenance Instructions.
51698         Suggestion by Karl Berry.
51699
51700 2006-11-10  Jim Meyering  <jim@meyering.net>
51701
51702         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
51703
51704 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
51705
51706         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
51707         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
51708         (bind_textdomain_codeset) [! ENABLE_NLS]:
51709         Evaluate all the arguments.  That way, callers get compatible behavior
51710         if the arguments have side effects.  Also, it avoids some GCC
51711         diagnostics in some cases; Joel E. Denny reported problems when Bison
51712         was configured with --enable-gcc-warnigs.
51713
51714 2006-11-10  Jim Meyering  <jim@meyering.net>
51715
51716         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
51717         relevant options in CFLAGS (like -O, -fno-inline) are taken into
51718         account.
51719
51720 2006-11-10  Jim Meyering  <jim@meyering.net>
51721
51722         * modules/inline: New file/module.
51723         * modules/xalloc (Files): Remove m4/inline.m4.
51724         (Depends-on): Add inline, instead.
51725         * modules/oset: Likewise.
51726         * modules/list: Likewise.
51727
51728 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
51729
51730         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
51731         Problem reported by Matthew Woehlke.
51732
51733 2006-11-09  Bruno Haible  <bruno@clisp.org>
51734
51735         * lib/tempname.c (gen_tempname): Remove variant that invokes
51736         __gen_tempname.
51737         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
51738         __gen_tempname.
51739
51740 2006-11-08  Bruno Haible  <bruno@clisp.org>
51741
51742         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
51743         to 'yes' instead of 'cross-compiling'.
51744
51745 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
51746
51747         * lib/quotearg.h (quotearg_free): New decl.
51748         * lib/quotearg.c (quotearg_free): New function.
51749         (slot0, nslots, slotvec0, slotvec):
51750         Now file-scope so that quotearg_free can get at them.
51751
51752 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51753
51754         Sync from Automake.
51755         * build-aux/gnupload: Add missing 'gnu' to example URL.
51756         Report by Karl Berry.
51757
51758 2006-11-08  Bruno Haible  <bruno@clisp.org>
51759
51760         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
51761         Suggested by Paul Eggert.
51762
51763 2006-11-08  Jim Meyering  <jim@meyering.net>
51764
51765         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
51766         It's already included if !_LIBC.
51767         (fts_safe_changedir): Add a comment.
51768
51769 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
51770
51771         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
51772         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
51773         Matthew Woehlke.
51774
51775         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
51776         definitions up, to avoid colliding with change below.
51777         (static_inline) [HAVE_INLINE]: New macro.
51778         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
51779         Provide extern decls when !HAVE_INLINE.  Do not define unless
51780         static_inline is defined, either by us or by xmalloc.c.  Use
51781         static_inline rather than static inline.
51782         (XCALLOC): Optimize sizeof(T) = 1 case.
51783         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
51784
51785 2006-11-07  Bruno Haible  <bruno@clisp.org>
51786
51787         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
51788         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
51789         AC_C_INLINE.
51790         * modules/xalloc (Files): Add m4/inline.m4.
51791
51792 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51793
51794         * README: Fix typo.
51795         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
51796         (Miscellanous Notes): ...from this.
51797
51798 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
51799
51800         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
51801         Mention that offsetof should be used instead of sizeof.
51802         From Bruno Haible.
51803
51804 2006-11-07  Bruno Haible  <bruno@clisp.org>
51805
51806         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
51807
51808 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
51809
51810         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
51811         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
51812         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
51813         (gl_tree_add_before, gl_tree_add_after):
51814         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
51815         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
51816         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
51817         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
51818         (gl_linked_add_after, gl_linked_add_at): Likewise.
51819         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
51820         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
51821         (gl_tree_add_before, gl_tree_add_after): Likewise.
51822         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
51823         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
51824         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
51825
51826 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51827
51828         * lib/gl_oset.h: Use C comment style, not C++ comment style.
51829
51830 2006-11-06  Bruno Haible  <bruno@clisp.org>
51831
51832         * m4/inline.m4: New file.
51833         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
51834         * modules/list (Files): Add m4/inline.m4.
51835         * modules/oset (Files): Likewise.
51836
51837 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
51838
51839         * lib/idcache.c: Include <stddef.h>, for offsetof.
51840         (struct userid.name): Change from char * to a flexible array member.
51841         All uses changed.
51842         * modules/idcache (Depends-on): Add flexmember.
51843
51844         * MODULES.html.sh (Core language properties): New module flexmember.
51845         * modules/flexmember, m4/flexmember.m4: New files.
51846
51847         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
51848         inline functions that are identical with the old xnmalloc_inline,
51849         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
51850         that we can avoid some unnecessary integer multiplications and
51851         divisions in the common case where the element size is known at
51852         compile time.
51853         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
51854         needed.
51855         (xnboundedmalloc): Remove.
51856         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
51857         arguments, for consistency with rest of this header.
51858         (xcharalloc): Rewrite using XNMALLOC.
51859         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
51860         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
51861         versions have been moved to lib/xalloc.h and renamed to be the
51862         non-*_inline versions.
51863         (xmalloc, xrealloc): Implement without reference to the xnmalloc
51864         and xnrealloc functions, since those functions are now inline and
51865         now call us.
51866         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
51867         renaming described above.
51868         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
51869         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
51870         captures the dependency in AC_C_INLINE.
51871
51872         New module canonicalize-lgpl, proposed by Charles Wilson in
51873         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
51874         with a few small changes afterwards.
51875         * MODULES.html.sh (File system functions): New module
51876         canonicalize-lgpl.
51877         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
51878         and canonicalize_file_name.
51879         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
51880         * modules/canonicalize-lgpl: New files.
51881
51882 2006-11-05  Bruno Haible  <bruno@clisp.org>
51883
51884         * gnulib-tool (func_import, func_create_testdir): Create directories
51885         also for files in subdirectories of lib/.
51886
51887 2006-11-05  Bruno Haible  <bruno@clisp.org>
51888
51889         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
51890         ANSI C compliant.
51891
51892 2006-11-03  Bruno Haible  <bruno@clisp.org>
51893
51894         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
51895         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
51896         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
51897         (xnboundedmalloc): New inline function.
51898         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
51899         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
51900         xmalloc.
51901         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
51902         xmalloc.
51903         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
51904         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
51905         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
51906         xmalloc.
51907         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
51908         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
51909         xmalloc.
51910         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
51911         gl_tree_add_after): Use XMALLOC instead of xmalloc.
51912         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
51913         xmalloc.
51914         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
51915         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
51916         gl_tree_add_after): Use XMALLOC instead of xmalloc.
51917         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
51918         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
51919         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
51920         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
51921
51922 2006-11-03  Bruno Haible  <bruno@clisp.org>
51923
51924         * lib/c-ctype.h [C++]: Define functions without name mangling.
51925         * lib/fwriteerror.h [C++]: Likewise.
51926         * lib/gcd.h [C++]: Likewise.
51927         * lib/linebreak.h [C++]: Likewise.
51928
51929 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
51930
51931         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
51932         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
51933         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
51934         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
51935         Check for functions and headers just once.
51936         Check for declaration of canonicalize_file_name.
51937         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
51938
51939 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
51940
51941         * gnulib-tool (func_import): Fix typo in actioncmd.
51942
51943 2006-11-02  Bruno Haible  <bruno@clisp.org>
51944
51945         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
51946         newline sequence in the Makefile.am snippet as a space, like "make"
51947         does.
51948         Reported by Roger Persson <perrog@gmail.com>.
51949
51950 2006-11-01  Bruno Haible  <bruno@clisp.org>
51951
51952         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
51953         already declared in <string.h>.
51954         * lib/strcase.h (strncasecmp): Don't declare it if yes.
51955
51956 2006-11-01  Bruno Haible  <bruno@clisp.org>
51957
51958         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
51959         * lib/strcase.h: Include <string.h>.
51960         (strcasecmp): Define to rpl_strcasecmp here.
51961
51962 2006-11-01  Bruno Haible  <bruno@clisp.org>
51963
51964         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
51965
51966 2006-11-01  Eric Blake  <ebb9@byu.net>
51967
51968         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
51969
51970         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
51971
51972 2006-10-29  Bruno Haible  <bruno@clisp.org>
51973
51974         Make it compile in C++ mode.
51975         * lib/full-write.c (full_rw): Add a cast.
51976
51977 2006-11-01  Bruno Haible  <bruno@clisp.org>
51978
51979         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
51980         be POSIX compliant.
51981         Reported by Roger Persson <perrog@gmail.com>.
51982
51983 2006-11-01  Eric Blake  <ebb9@byu.net>
51984
51985         * lib/getopt_.h: Fix comments.
51986
51987 2006-10-31  Eric Blake  <ebb9@byu.net>
51988
51989         * modules/tmpdir (Depends-on): Add sys_stat.
51990         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
51991         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
51992         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
51993         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
51994         tempname.
51995
51996 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
51997
51998         Avoid some C++ diagnostics reported by Bruno Haible.
51999         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
52000         xmalloc.
52001         (quotearg_alloc): Use xcharalloc rather than xmalloc.
52002         (struct slotvec): Move to top level.
52003         (quotearg_n_options): Rewrite to avoid xmalloc.
52004         * lib/xalloc.h (xcharalloc): New function.
52005         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
52006         [defined __cplusplus]: Add function template that provides result
52007         type propagation.  This part of the change is from Bruno Haible.
52008
52009 2006-10-29  Bruno Haible  <bruno@clisp.org>
52010
52011         Make it compile in C++ mode.
52012         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
52013         * lib/strnlen1.c (strnlen1): Cast memchr result.
52014         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
52015         * lib/clean-temp.c (string_equals, string_hash): Add casts.
52016         (create_temp_dir): Rename local variable 'template'.
52017         (compile_csharp_using_sscli): Add cast.
52018         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
52019         * lib/findprog.c (find_in_path): Likewise.
52020         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
52021         * lib/wait-process.c (register_slave_subprocess): Likewise.
52022
52023 2006-10-22  Bruno Haible  <bruno@clisp.org>
52024
52025         * modules/tsearch: New file.
52026         * lib/tsearch.h: New file.
52027         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
52028         * m4/tsearch.m4: New file.
52029         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
52030
52031 2006-10-29  Eric Blake  <ebb9@byu.net>
52032
52033         * lib/arcfour.c: Assume config.h.
52034         * lib/arctwo.c: Likewise.
52035         * lib/base64.c: Likewise.
52036         * lib/check-version.c: Likewise.
52037         * lib/crc.c: Likewise.
52038         * lib/des.c: Likewise.
52039         * lib/gc-gnulib.c: Likewise.
52040         * lib/gc-libgcrypt.c: Likewise.
52041         * lib/gc-pbkdf2-sha1.c: Likewise.
52042         * lib/getaddrinfo.c: Likewise.
52043         * lib/getdelim.c: Likewise.
52044         * lib/getline.c: Likewise.
52045         * lib/hmac-md5.c: Likewise.
52046         * lib/hmac-sha1.c: Likewise.
52047         * lib/iconvme.c: Likewise.
52048         * lib/md2.c: Likewise.
52049         * lib/md4.c: Likewise.
52050         * lib/memxor.c: Likewise.
52051         * lib/read-file.c: Likewise.
52052         * lib/readline.c: Likewise.
52053         * lib/rijndael-alg-fst.c: Likewise.
52054         * lib/rijndael-api-fst.c: Likewise.
52055         * lib/xgetdomainname.c: Likewise.
52056
52057 2006-10-28  Eric Blake  <ebb9@byu.net>
52058
52059         * lib/xstrndup.c: Assume config.h.
52060
52061 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
52062
52063         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
52064         stat-macros.h is now for our own macros, whereas stat_h is for
52065         macros in the <sys/stat.h> name space.
52066         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
52067         (STAT_MACROS_H): Remove.
52068         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
52069         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
52070         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
52071         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
52072         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
52073         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
52074         Move these macros to ...
52075         * lib/stat_.h: here.  Don't include stat-macros.h.
52076         * lib/canonicalize.c: Don't include stat-macros.h.
52077         * lib/chown.c: Likewise.
52078         * lib/euidaccess.c: Likewise.
52079         * lib/file-type.c: Likewise.
52080         * lib/filemode.c: Likewise.
52081         * lib/glob.c: Likewise.
52082         * lib/isapipe.c: Likewise.
52083         * lib/lchown.c: Likewise.
52084         * lib/lstat.c: Likewise.
52085         * lib/mkdir-p.c: Likewise.
52086         * lib/rmdir.c: Likewise.
52087         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
52088         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
52089         unless mkdir isn't declared, to speed up 'configure'.
52090         Always create sys/stat.h, since it's unlikely any real sys/stat.h
52091         would define all the S_* symbols.
52092         * modules/canonicalize (Depends-on):
52093         Depend on sys_stat, not stat-macros.
52094         * modules/chown: Likewise.
52095         * modules/euidaccess: Likewise.
52096         * modules/filemode: Likewise.
52097         * modules/file-type: Likewise.
52098         * modules/glob: Likewise.
52099         * modules/isapipe: Likewise.
52100         * modules/lchown: Likewise.
52101         * modules/lstat: Likewise.
52102         * modules/mkancesdirs: Likewise.
52103         * modules/rmdir: Likewise.
52104         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
52105         * modules/modechange: Likewise.
52106         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
52107         (configure.ac): Remove gl_STAT_MACROS.
52108         * modules/sys_stat (Depends-on): Remove stat-macros.
52109
52110 2006-10-27  Bruno Haible  <bruno@clisp.org>
52111
52112         * m4/signed.m4: Remove file.
52113         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
52114         invocation.
52115         * modules/vasnprintf (Files): Remove m4/signed.m4.
52116
52117 2006-10-27  Bruno Haible  <bruno@clisp.org>
52118
52119         Update to GNU gettext 0.16.
52120         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
52121         m4/inttypes-h.m4, m4/signed.m4.
52122         * m4/gettext.m4: Update to GNU gettext 0.16.
52123         * m4/intl.m4: New file, from GNU gettext.
52124         * m4/intldir.m4: New file, from GNU gettext.
52125         * config/srclist.txt: Update
52126
52127 2006-10-27  Eric Blake  <ebb9@byu.net>
52128
52129         * MODULES.html.sh: Document tempname.
52130         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
52131         dependencies.
52132         (Files): Move lib/tempname.c...
52133         * modules/tempname: ...to this new module.
52134         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
52135         (gl_PREREQ_TEMPNAME): Move...
52136         * m4/tempname.m4: ...to this new file.
52137         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
52138         * modules/sys_stat (Depends-on): Add stat-macros.
52139         * lib/stat_.h (includes): Pick up stat macros.
52140         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
52141         if stat macros are broken.
52142         * lib/tempname.c (includes): No need to include "stat-macros.h".
52143         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
52144         (direxists, __path_search) [!_LIBC]: Don't compile these in
52145         gnulib; the tmpdir module covers that.
52146         * lib/tempname.h: New file.
52147
52148 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
52149
52150         * COPYING: Explain how gnulib-tool converts licence headers.
52151         Almost all wording by Eric Blake.
52152
52153 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
52154
52155         * lib/mbchar.h (is_basic_table): Make read-only.
52156         * lib/mbchar.c (is_basic_table): Likewise.
52157         Reported by John Darrington.
52158
52159 2006-10-25  Bruno Haible  <bruno@clisp.org>
52160
52161         * lib/progname.h (set_program_name): Undefine before defining.
52162
52163 2006-10-25  Bruno Haible  <bruno@clisp.org>
52164
52165         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
52166         false for non-gcc C++ compilers.
52167         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
52168
52169 2006-10-24  Bruno Haible  <bruno@clisp.org>
52170
52171         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
52172         iconv implementations like Irix iconv.
52173
52174 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52175
52176         * modules/vararrays: New file.
52177         * m4/vararrays.m4: New file, taken from diffutils.
52178         * MODULES.html.sh: New module vararrays.
52179
52180 2006-10-24  Karl Berry  <karl@gnu.org>
52181
52182         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
52183         Don't call GNU Unix.
52184
52185 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52186
52187         * users.txt: Add Libtool.
52188
52189         Sync from Libtool:
52190
52191         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52192
52193         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
52194         to gnulib's policy of including config.h unconditionally.
52195
52196 2006-10-24  Bruno Haible  <bruno@clisp.org>
52197
52198         * modules/wcwidth (Files): Add m4/wint_t.m4.
52199         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
52200         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
52201
52202 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52203
52204         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
52205         to pacify GCC with some -W flags enabled.  Problem reported by
52206         Bruno Haible.
52207
52208 2006-10-24  Jim Meyering  <jim@meyering.net>
52209
52210         * MODULES.html.sh: Remove uinttostr.  It's not a module.
52211         Reported by Karl Berry.
52212
52213 2006-10-23  Bruno Haible  <bruno@clisp.org>
52214
52215         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
52216
52217 2006-10-24  Bruno Haible  <bruno@clisp.org>
52218
52219         * lib/gl_list.h: Use C comment style, not C++ comment style.
52220
52221 2006-10-23  Eric Blake  <ebb9@byu.net>
52222
52223         * lib/getaddrinfo.c (includes): Add missing include.
52224
52225 2006-10-23  Bruno Haible  <bruno@clisp.org>
52226             Paul Eggert  <eggert@cs.ucla.edu>
52227
52228         Ability to rename obstack_free.
52229         * lib/obstack.h (__obstack_free): New macro. Declare instead of
52230         obstack_free.
52231         (obstack_free): Invoke the __obstack_free macro.
52232         * lib/obstack.c (obstack_free): Use __obstack_free macro.
52233
52234 2006-10-23  Bruno Haible  <bruno@clisp.org>
52235             Paul Eggert  <eggert@cs.ucla.edu>
52236
52237         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
52238         __argc, __argv from the declaration. (They are defined as macros on
52239         mingw.)
52240
52241 2006-10-22  Bruno Haible  <bruno@clisp.org>
52242
52243         * doc/gnulib-intro.texi: New file.
52244         * doc/gnulib.texi: Include it.
52245
52246 2006-10-21  Bruno Haible  <bruno@clisp.org>
52247
52248         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
52249         "Introduction", "Miscellanous Notes", "Particular Modules".
52250
52251 2006-10-21  Bruno Haible  <bruno@clisp.org>
52252
52253         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52254         Change mostlyclean-local rule to avoid sh syntax error from bash
52255         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
52256
52257 2006-10-23  Jim Meyering  <jim@meyering.net>
52258
52259         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
52260         in place of snprintf.
52261
52262         * modules/inttostr (Files): Add lib/uinttostr.c.
52263         * lib/uinttostr.c (inttostr): New file/function.
52264         * lib/inttostr.h (uinttostr): Declare.
52265         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
52266         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
52267         Add uinttostr.
52268         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
52269
52270 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
52271
52272         * lib/canonicalize.c (ELOOP): Define if not already defined.
52273         Problem reported by Bruno Haible in
52274         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
52275
52276 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
52277
52278         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
52279         Problem reported by Perry Smith and Ville Laurikari.
52280
52281         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
52282         uses.
52283
52284 2006-10-19  Bruno Haible  <bruno@clisp.org>
52285
52286         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
52287         for mingw.
52288
52289 2006-10-19  Bruno Haible  <bruno@clisp.org>
52290
52291         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
52292         Needed for mingw.
52293
52294 2006-10-19  Bruno Haible  <bruno@clisp.org>
52295
52296         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
52297
52298 2006-10-19  Bruno Haible  <bruno@clisp.org>
52299
52300         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
52301         it.
52302
52303 2006-10-19  Bruno Haible  <bruno@clisp.org>
52304
52305         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
52306         invocation.
52307
52308 2006-10-19  Bruno Haible  <bruno@clisp.org>
52309
52310         * gnulib-tool (func_create_testdir): Don't include ftruncate and
52311         mountlist by default.
52312
52313 2006-10-16  Bruno Haible  <bruno@clisp.org>
52314
52315         * lib/c-strstr.c: Include c-strstr.h.
52316
52317 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
52318
52319         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
52320         in a slash.
52321
52322 2006-10-18  Bruno Haible  <bruno@clisp.org>
52323
52324         * lib/lock.h [C++]: Wrap definitions in extern "C".
52325
52326 2006-10-18  Bruno Haible  <bruno@clisp.org>
52327
52328         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
52329         gl_LIBOBJS list.
52330
52331 2006-10-18  Bruno Haible  <bruno@clisp.org>
52332
52333         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
52334
52335 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
52336
52337         * lib/xstrtol.h: Include gettext.h.
52338         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
52339         Problem reported by Eric Blake.
52340         * modules/xstrtol (Depends-on): Add gettext-h.
52341
52342 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
52343
52344         * lib/strftime.c (advance): New macro.
52345         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
52346         incomplete type, so you can't add 0 to it.  Problem and patch
52347         reported by Eelco Dolstra for dietlibc.
52348
52349 2006-10-18  Jim Meyering  <jim@meyering.net>
52350
52351         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
52352         type for a local, and rename it: s/up/user_proc/.
52353
52354 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
52355
52356         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
52357         READ_UTMP_USER_PROCESS.
52358         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
52359
52360 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
52361
52362         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
52363         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
52364
52365 2006-10-17  Eric Blake  <ebb9@byu.net>
52366
52367         * lib/sigprocmask.c (sigprocmask): Fix typo.
52368
52369         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
52370
52371         * modules/clean-temp (Makefile.am): Don't add to make output...
52372         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
52373         config.h.
52374
52375 2006-10-17  Bruno Haible  <bruno@clisp.org>
52376
52377         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
52378         differently if DEFAULT_TEXT_DOMAIN is set.
52379
52380 2006-10-16  Bruno Haible  <bruno@clisp.org>
52381
52382         * lib/clean-temp.c: Include fwriteerror.h.
52383
52384 2006-10-16  Bruno Haible  <bruno@clisp.org>
52385
52386         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
52387
52388 2006-10-16  Bruno Haible  <bruno@clisp.org>
52389
52390         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
52391         * lib/sigprocmask.h: Include <sys/types.h>.
52392         (sigset_t): Use the system's definition if present.
52393
52394 2006-10-17  Eric Blake  <ebb9@byu.net>
52395
52396         * lib/xvasprintf.c (includes): Assume config.h.
52397         * lib/xasprintf.c (includes): Likewise.
52398
52399 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52400
52401         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
52402         at least as wide as intmax_t.
52403
52404 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
52405
52406         (Imported from Automake.)
52407         * build-aux/gnupload: Update to version 1.1 of directive file.
52408
52409 2006-10-16  Eric Blake  <ebb9@byu.net>
52410
52411         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
52412         match Automake 1.10a.
52413
52414 2006-10-14  Bruno Haible  <bruno@clisp.org>
52415
52416         * modules/sigprocmask: New file.
52417         * lib/sigprocmask.h: New file.
52418         * lib/sigprocmask.c: New file.
52419         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
52420         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
52421         request sigprocmask.o.
52422         (gl_PREREQ_SIGPROCMASK): New macro.
52423         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
52424         (Depends-on): Add sigprocmask.
52425         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
52426         gt_SIGNALBLOCKING. Test for 'raise' only once.
52427         * lib/fatal-signal.c: Include sigprocmask.h.
52428         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
52429         unblock_fatal_signals): Define always.
52430         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52431         sigprocmask.
52432
52433 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
52434
52435         Sync from Automake.
52436         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
52437         which incorrectly sets the mode of an existing destination
52438         directory.  In some cases the unpatched install-sh could do the
52439         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
52440         system.  We hope this is rare in practice, but it's clearly worth
52441         fixing.  Problem reported by Alex Unleashed in
52442         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
52443         Also, don't bother to check for -m bugs unless we're using -m;
52444         suggested by Stepan Kasal.
52445
52446 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52447
52448         Sync from Automake.
52449         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
52450         `-c' flag, so they appear at the same position as in %FASTDEP%
52451         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
52452         which ignores unknown options only after the first non-option.
52453         Bug report against M4 by Nelson H. F. Beebe.
52454
52455 2006-10-13  Jim Meyering  <jim@meyering.net>
52456
52457         Fix a bug in yesterday's change.
52458         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
52459         p->fts_statp->st_dev would be used uninitialized.
52460         Ensures that we always call fts_stat on the very first entry.
52461         Miklos Szeredi reported that find -xdev stopped working.
52462
52463 2006-10-12  Bruno Haible  <bruno@clisp.org>
52464
52465         * gnulib-tool (func_get_automake_snippet): Append an automatically
52466         computed EXTRA_DIST augmentation.
52467         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
52468         * modules/alloca-opt (Makefile.am): Likewise.
52469         * modules/allocsa (Makefile.am): Likewise.
52470         * modules/arcfour (Makefile.am): Likewise.
52471         * modules/arctwo (Makefile.am): Likewise.
52472         * modules/argmatch (Makefile.am): Likewise.
52473         * modules/argz (Makefile.am): Likewise.
52474         * modules/atexit (Makefile.am): Likewise.
52475         * modules/backupfile (Makefile.am): Likewise.
52476         * modules/byteswap (Makefile.am): Likewise.
52477         * modules/c-strtod (Makefile.am): Likewise.
52478         * modules/c-strtold (Makefile.am): Likewise.
52479         * modules/calloc (Makefile.am): Likewise.
52480         * modules/canon-host (Makefile.am): Likewise.
52481         * modules/canonicalize (Makefile.am): Likewise.
52482         * modules/chdir-long (Makefile.am): Likewise.
52483         * modules/chdir-safer (Makefile.am): Likewise.
52484         * modules/check-version (Makefile.am): Likewise.
52485         * modules/chown (Makefile.am): Likewise.
52486         * modules/cloexec (Makefile.am): Likewise.
52487         * modules/close-stream (Makefile.am): Likewise.
52488         * modules/closeout (Makefile.am): Likewise.
52489         * modules/crc (Makefile.am): Likewise.
52490         * modules/csharpexec (Makefile.am): Likewise.
52491         * modules/cycle-check (Makefile.am): Likewise.
52492         * modules/des (Makefile.am): Likewise.
52493         * modules/dev-ino (Makefile.am): Likewise.
52494         * modules/dirfd (Makefile.am): Likewise.
52495         * modules/dirname (Makefile.am): Likewise.
52496         * modules/dup2 (Makefile.am): Likewise.
52497         * modules/eealloc (Makefile.am): Likewise.
52498         * modules/error (Makefile.am): Likewise.
52499         * modules/euidaccess (Makefile.am): Likewise.
52500         * modules/exclude (Makefile.am): Likewise.
52501         * modules/exitfail (Makefile.am): Likewise.
52502         * modules/fcntl-safer (Makefile.am): Likewise.
52503         * modules/fcntl (Makefile.am): Likewise.
52504         * modules/file-type (Makefile.am): Likewise.
52505         * modules/fileblocks (Makefile.am): Likewise.
52506         * modules/filemode (Makefile.am): Likewise.
52507         * modules/filenamecat (Makefile.am): Likewise.
52508         * modules/fnmatch (Makefile.am): Likewise.
52509         * modules/fopen-safer (Makefile.am): Likewise.
52510         * modules/fpending (Makefile.am): Likewise.
52511         * modules/fprintftime (Makefile.am): Likewise.
52512         * modules/free (Makefile.am): Likewise.
52513         * modules/fsusage (Makefile.am): Likewise.
52514         * modules/ftruncate (Makefile.am): Likewise.
52515         * modules/fts (Makefile.am): Likewise.
52516         * modules/gc-arcfour (Makefile.am): Likewise.
52517         * modules/gc-des (Makefile.am): Likewise.
52518         * modules/gc-hmac-md5 (Makefile.am): Likewise.
52519         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
52520         * modules/gc-md4 (Makefile.am): Likewise.
52521         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
52522         * modules/gc-sha1 (Makefile.am): Likewise.
52523         * modules/gc (Makefile.am): Likewise.
52524         * modules/getaddrinfo (Makefile.am): Likewise.
52525         * modules/getcwd (Makefile.am): Likewise.
52526         * modules/getdelim (Makefile.am): Likewise.
52527         * modules/getdomainname (Makefile.am): Likewise.
52528         * modules/getgroups (Makefile.am): Likewise.
52529         * modules/gethostname (Makefile.am): Likewise.
52530         * modules/gethrxtime (Makefile.am): Likewise.
52531         * modules/getline (Makefile.am): Likewise.
52532         * modules/getloadavg (Makefile.am): Likewise.
52533         * modules/getlogin_r (Makefile.am): Likewise.
52534         * modules/getndelim2 (Makefile.am): Likewise.
52535         * modules/getopt (Makefile.am): Likewise.
52536         * modules/getpagesize (Makefile.am): Likewise.
52537         * modules/getpass-gnu (Makefile.am): Likewise.
52538         * modules/getpass (Makefile.am): Likewise.
52539         * modules/getsubopt (Makefile.am): Likewise.
52540         * modules/gettime (Makefile.am): Likewise.
52541         * modules/gettimeofday (Makefile.am): Likewise.
52542         * modules/getugroups (Makefile.am): Likewise.
52543         * modules/getusershell (Makefile.am): Likewise.
52544         * modules/glob (Makefile.am): Likewise.
52545         * modules/group-member (Makefile.am): Likewise.
52546         * modules/hard-locale (Makefile.am): Likewise.
52547         * modules/hash (Makefile.am): Likewise.
52548         * modules/hmac-md5 (Makefile.am): Likewise.
52549         * modules/hmac-sha1 (Makefile.am): Likewise.
52550         * modules/human (Makefile.am): Likewise.
52551         * modules/idcache (Makefile.am): Likewise.
52552         * modules/imaxabs (Makefile.am): Likewise.
52553         * modules/imaxdiv (Makefile.am): Likewise.
52554         * modules/inet_ntop (Makefile.am): Likewise.
52555         * modules/inet_pton (Makefile.am): Likewise.
52556         * modules/intprops (Makefile.am): Likewise.
52557         * modules/inttostr (Makefile.am): Likewise.
52558         * modules/inttypes (Makefile.am): Likewise.
52559         * modules/isapipe (Makefile.am): Likewise.
52560         * modules/javaversion (Makefile.am): Likewise.
52561         * modules/lchmod (Makefile.am): Likewise.
52562         * modules/lchown (Makefile.am): Likewise.
52563         * modules/localcharset (Makefile.am): Likewise.
52564         * modules/long-options (Makefile.am): Likewise.
52565         * modules/lstat (Makefile.am): Likewise.
52566         * modules/malloc (Makefile.am): Likewise.
52567         * modules/mathl (Makefile.am): Likewise.
52568         * modules/mbchar (Makefile.am): Likewise.
52569         * modules/md2 (Makefile.am): Likewise.
52570         * modules/md4 (Makefile.am): Likewise.
52571         * modules/md5 (Makefile.am): Likewise.
52572         * modules/memcasecmp (Makefile.am): Likewise.
52573         * modules/memchr (Makefile.am): Likewise.
52574         * modules/memcmp (Makefile.am): Likewise.
52575         * modules/memcoll (Makefile.am): Likewise.
52576         * modules/memcpy (Makefile.am): Likewise.
52577         * modules/memmem (Makefile.am): Likewise.
52578         * modules/memmove (Makefile.am): Likewise.
52579         * modules/mempcpy (Makefile.am): Likewise.
52580         * modules/memrchr (Makefile.am): Likewise.
52581         * modules/memset (Makefile.am): Likewise.
52582         * modules/memxor (Makefile.am): Likewise.
52583         * modules/mkancesdirs (Makefile.am): Likewise.
52584         * modules/mkdir-p (Makefile.am): Likewise.
52585         * modules/mkdir (Makefile.am): Likewise.
52586         * modules/mkdtemp (Makefile.am): Likewise.
52587         * modules/mkstemp (Makefile.am): Likewise.
52588         * modules/mktime (Makefile.am): Likewise.
52589         * modules/modechange (Makefile.am): Likewise.
52590         * modules/mountlist (Makefile.am): Likewise.
52591         * modules/nanosleep (Makefile.am): Likewise.
52592         * modules/obstack (Makefile.am): Likewise.
52593         * modules/openat (Makefile.am): Likewise.
52594         * modules/pagealign_alloc (Makefile.am): Likewise.
52595         * modules/pathmax (Makefile.am): Likewise.
52596         * modules/physmem (Makefile.am): Likewise.
52597         * modules/poll (Makefile.am): Likewise.
52598         * modules/posixtm (Makefile.am): Likewise.
52599         * modules/posixver (Makefile.am): Likewise.
52600         * modules/putenv (Makefile.am): Likewise.
52601         * modules/quote (Makefile.am): Likewise.
52602         * modules/quotearg (Makefile.am): Likewise.
52603         * modules/raise (Makefile.am): Likewise.
52604         * modules/read-file (Makefile.am): Likewise.
52605         * modules/readline (Makefile.am): Likewise.
52606         * modules/readlink (Makefile.am): Likewise.
52607         * modules/readtokens (Makefile.am): Likewise.
52608         * modules/readutmp (Makefile.am): Likewise.
52609         * modules/realloc (Makefile.am): Likewise.
52610         * modules/regex (Makefile.am): Likewise.
52611         * modules/rename-dest-slash (Makefile.am): Likewise.
52612         * modules/rename (Makefile.am): Likewise.
52613         * modules/rijndael (Makefile.am): Likewise.
52614         * modules/rmdir (Makefile.am): Likewise.
52615         * modules/rpmatch (Makefile.am): Likewise.
52616         * modules/safe-read (Makefile.am): Likewise.
52617         * modules/safe-write (Makefile.am): Likewise.
52618         * modules/same-inode (Makefile.am): Likewise.
52619         * modules/same (Makefile.am): Likewise.
52620         * modules/save-cwd (Makefile.am): Likewise.
52621         * modules/savedir (Makefile.am): Likewise.
52622         * modules/setenv (Makefile.am): Likewise.
52623         * modules/settime (Makefile.am): Likewise.
52624         * modules/sha1 (Makefile.am): Likewise.
52625         * modules/sig2str (Makefile.am): Likewise.
52626         * modules/snprintf (Makefile.am): Likewise.
52627         * modules/stat-macros (Makefile.am): Likewise.
52628         * modules/stat-time (Makefile.am): Likewise.
52629         * modules/stdbool (Makefile.am): Likewise.
52630         * modules/stdint (Makefile.am): Likewise.
52631         * modules/stdlib-safer (Makefile.am): Likewise.
52632         * modules/stpcpy (Makefile.am): Likewise.
52633         * modules/stpncpy (Makefile.am): Likewise.
52634         * modules/strcase (Makefile.am): Likewise.
52635         * modules/strcasestr (Makefile.am): Likewise.
52636         * modules/strchrnul (Makefile.am): Likewise.
52637         * modules/strcspn (Makefile.am): Likewise.
52638         * modules/strdup (Makefile.am): Likewise.
52639         * modules/strerror (Makefile.am): Likewise.
52640         * modules/strftime (Makefile.am): Likewise.
52641         * modules/strndup (Makefile.am): Likewise.
52642         * modules/strnlen (Makefile.am): Likewise.
52643         * modules/strpbrk (Makefile.am): Likewise.
52644         * modules/strsep (Makefile.am): Likewise.
52645         * modules/strstr (Makefile.am): Likewise.
52646         * modules/strtod (Makefile.am): Likewise.
52647         * modules/strtoimax (Makefile.am): Likewise.
52648         * modules/strtok_r (Makefile.am): Likewise.
52649         * modules/strtol (Makefile.am): Likewise.
52650         * modules/strtoll (Makefile.am): Likewise.
52651         * modules/strtoul (Makefile.am): Likewise.
52652         * modules/strtoull (Makefile.am): Likewise.
52653         * modules/strtoumax (Makefile.am): Likewise.
52654         * modules/strverscmp (Makefile.am): Likewise.
52655         * modules/sys_socket (Makefile.am): Likewise.
52656         * modules/sys_stat (Makefile.am): Likewise.
52657         * modules/sysexits (Makefile.am): Likewise.
52658         * modules/time_r (Makefile.am): Likewise.
52659         * modules/timegm (Makefile.am): Likewise.
52660         * modules/timespec (Makefile.am): Likewise.
52661         * modules/tmpfile-safer (Makefile.am): Likewise.
52662         * modules/trim (Makefile.am): Likewise.
52663         * modules/unistd-safer (Makefile.am): Likewise.
52664         * modules/unlinkdir (Makefile.am): Likewise.
52665         * modules/unlocked-io (Makefile.am): Likewise.
52666         * modules/userspec (Makefile.am): Likewise.
52667         * modules/utime (Makefile.am): Likewise.
52668         * modules/utimecmp (Makefile.am): Likewise.
52669         * modules/utimens (Makefile.am): Likewise.
52670         * modules/vasnprintf (Makefile.am): Likewise.
52671         * modules/vasprintf (Makefile.am): Likewise.
52672         * modules/vsnprintf (Makefile.am): Likewise.
52673         * modules/xalloc (Makefile.am): Likewise.
52674         * modules/xgetcwd (Makefile.am): Likewise.
52675         * modules/xnanosleep (Makefile.am): Likewise.
52676         * modules/xreadlink (Makefile.am): Likewise.
52677         * modules/xstrtod (Makefile.am): Likewise.
52678         * modules/xstrtol (Makefile.am): Likewise.
52679         * modules/xstrtold (Makefile.am): Likewise.
52680         * modules/yesno (Makefile.am): Likewise.
52681         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
52682
52683 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
52684
52685         * modules/error (Makefile.am): Distribute files through
52686         EXTRA_DIST, not lib_SOURCES.
52687
52688 2006-10-12  Eric Blake  <ebb9@byu.net>
52689
52690         * modules/error (Makefile.am): Distribute files in /lib.
52691         * modules/obstack (Makefile.am): Likewise.
52692
52693 2006-10-12  Bruno Haible  <bruno@clisp.org>
52694
52695         * modules/acl (Makefile.am): Distribute all files in lib/ through
52696         EXTRA_DIST.
52697         * modules/arcfour (Makefile.am): Likewise.
52698         * modules/arctwo (Makefile.am): Likewise.
52699         * modules/argmatch (Makefile.am): Likewise.
52700         * modules/argz (Makefile.am): Likewise.
52701         * modules/atexit (Makefile.am): Likewise.
52702         * modules/backupfile (Makefile.am): Likewise.
52703         * modules/c-strtod (Makefile.am): Likewise.
52704         * modules/c-strtold (Makefile.am): Likewise.
52705         * modules/calloc (Makefile.am): Likewise.
52706         * modules/canon-host (Makefile.am): Likewise.
52707         * modules/canonicalize (Makefile.am): Likewise.
52708         * modules/chdir-long (Makefile.am): Likewise.
52709         * modules/chdir-safer (Makefile.am): Likewise.
52710         * modules/check-version (Makefile.am): Likewise.
52711         * modules/chown (Makefile.am): Likewise.
52712         * modules/cloexec (Makefile.am): Likewise.
52713         * modules/close-stream (Makefile.am): Likewise.
52714         * modules/closeout (Makefile.am): Likewise.
52715         * modules/crc (Makefile.am): Likewise.
52716         * modules/cycle-check (Makefile.am): Likewise.
52717         * modules/des (Makefile.am): Likewise.
52718         * modules/dirfd (Makefile.am): Likewise.
52719         * modules/dirname (Makefile.am): Likewise.
52720         * modules/dup2 (Makefile.am): Likewise.
52721         * modules/euidaccess (Makefile.am): Likewise.
52722         * modules/exclude (Makefile.am): Likewise.
52723         * modules/exitfail (Makefile.am): Likewise.
52724         * modules/fcntl-safer (Makefile.am): Likewise.
52725         * modules/file-type (Makefile.am): Likewise.
52726         * modules/fileblocks (Makefile.am): Likewise.
52727         * modules/filemode (Makefile.am): Likewise.
52728         * modules/filenamecat (Makefile.am): Likewise.
52729         * modules/fnmatch (Makefile.am): Likewise.
52730         * modules/fopen-safer (Makefile.am): Likewise.
52731         * modules/fpending (Makefile.am): Likewise.
52732         * modules/fprintftime (Makefile.am): Likewise.
52733         * modules/free (Makefile.am): Likewise.
52734         * modules/fsusage (Makefile.am): Likewise.
52735         * modules/ftruncate (Makefile.am): Likewise.
52736         * modules/fts (Makefile.am): Likewise.
52737         * modules/gc (Makefile.am): Likewise.
52738         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
52739         * modules/getaddrinfo (Makefile.am): Likewise.
52740         * modules/getcwd (Makefile.am): Likewise.
52741         * modules/getdelim (Makefile.am): Likewise.
52742         * modules/getdomainname (Makefile.am): Likewise.
52743         * modules/getgroups (Makefile.am): Likewise.
52744         * modules/gethostname (Makefile.am): Likewise.
52745         * modules/gethrxtime (Makefile.am): Likewise.
52746         * modules/getline (Makefile.am): Likewise.
52747         * modules/getloadavg (Makefile.am): Likewise.
52748         * modules/getlogin_r (Makefile.am): Likewise.
52749         * modules/getopt (Makefile.am): Likewise.
52750         * modules/getpass (Makefile.am): Likewise.
52751         * modules/getpass-gnu (Makefile.am): Likewise.
52752         * modules/getsubopt (Makefile.am): Likewise.
52753         * modules/gettime (Makefile.am): Likewise.
52754         * modules/gettimeofday (Makefile.am): Likewise.
52755         * modules/getugroups (Makefile.am): Likewise.
52756         * modules/getusershell (Makefile.am): Likewise.
52757         * modules/glob (Makefile.am): Likewise.
52758         * modules/group-member (Makefile.am): Likewise.
52759         * modules/hard-locale (Makefile.am): Likewise.
52760         * modules/hash (Makefile.am): Likewise.
52761         * modules/hmac-md5 (Makefile.am): Likewise.
52762         * modules/hmac-sha1 (Makefile.am): Likewise.
52763         * modules/human (Makefile.am): Likewise.
52764         * modules/idcache (Makefile.am): Likewise.
52765         * modules/imaxabs (Makefile.am): Likewise.
52766         * modules/imaxdiv (Makefile.am): Likewise.
52767         * modules/inet_ntop (Makefile.am): Likewise.
52768         * modules/inet_pton (Makefile.am): Likewise.
52769         * modules/inttostr (Makefile.am): Likewise.
52770         * modules/isapipe (Makefile.am): Likewise.
52771         * modules/lchown (Makefile.am): Likewise.
52772         * modules/long-options (Makefile.am): Likewise.
52773         * modules/lstat (Makefile.am): Likewise.
52774         * modules/malloc (Makefile.am): Likewise.
52775         * modules/mathl (Makefile.am): Likewise.
52776         * modules/mbchar (Makefile.am): Likewise.
52777         * modules/md2 (Makefile.am): Likewise.
52778         * modules/md4 (Makefile.am): Likewise.
52779         * modules/md5 (Makefile.am): Likewise.
52780         * modules/memcasecmp (Makefile.am): Likewise.
52781         * modules/memchr (Makefile.am): Likewise.
52782         * modules/memcmp (Makefile.am): Likewise.
52783         * modules/memcoll (Makefile.am): Likewise.
52784         * modules/memcpy (Makefile.am): Likewise.
52785         * modules/memmem (Makefile.am): Likewise.
52786         * modules/memmove (Makefile.am): Likewise.
52787         * modules/mempcpy (Makefile.am): Likewise.
52788         * modules/memrchr (Makefile.am): Likewise.
52789         * modules/memset (Makefile.am): Likewise.
52790         * modules/memxor (Makefile.am): Likewise.
52791         * modules/mkancesdirs (Makefile.am): Likewise.
52792         * modules/mkdir (Makefile.am): Likewise.
52793         * modules/mkdir-p (Makefile.am): Likewise.
52794         * modules/mkdtemp (Makefile.am): Likewise.
52795         * modules/mkstemp (Makefile.am): Likewise.
52796         * modules/mktime (Makefile.am): Likewise.
52797         * modules/modechange (Makefile.am): Likewise.
52798         * modules/mountlist (Makefile.am): Likewise.
52799         * modules/nanosleep (Makefile.am): Likewise.
52800         * modules/openat (Makefile.am): Likewise.
52801         * modules/pagealign_alloc (Makefile.am): Likewise.
52802         * modules/physmem (Makefile.am): Likewise.
52803         * modules/poll (Makefile.am): Likewise.
52804         * modules/posixtm (Makefile.am): Likewise.
52805         * modules/posixver (Makefile.am): Likewise.
52806         * modules/putenv (Makefile.am): Likewise.
52807         * modules/quote (Makefile.am): Likewise.
52808         * modules/quotearg (Makefile.am): Likewise.
52809         * modules/raise (Makefile.am): Likewise.
52810         * modules/read-file (Makefile.am): Likewise.
52811         * modules/readline (Makefile.am): Likewise.
52812         * modules/readlink (Makefile.am): Likewise.
52813         * modules/readtokens (Makefile.am): Likewise.
52814         * modules/readutmp (Makefile.am): Likewise.
52815         * modules/realloc (Makefile.am): Likewise.
52816         * modules/regex (Makefile.am): Likewise.
52817         * modules/rename (Makefile.am): Likewise.
52818         * modules/rename-dest-slash (Makefile.am): Likewise.
52819         * modules/rijndael (Makefile.am): Likewise.
52820         * modules/rmdir (Makefile.am): Likewise.
52821         * modules/rpmatch (Makefile.am): Likewise.
52822         * modules/safe-read (Makefile.am): Likewise.
52823         * modules/safe-write (Makefile.am): Likewise.
52824         * modules/same (Makefile.am): Likewise.
52825         * modules/save-cwd (Makefile.am): Likewise.
52826         * modules/savedir (Makefile.am): Likewise.
52827         * modules/setenv (Makefile.am): Likewise.
52828         * modules/settime (Makefile.am): Likewise.
52829         * modules/sha1 (Makefile.am): Likewise.
52830         * modules/sig2str (Makefile.am): Likewise.
52831         * modules/snprintf (Makefile.am): Likewise.
52832         * modules/stdlib-safer (Makefile.am): Likewise.
52833         * modules/stpcpy (Makefile.am): Likewise.
52834         * modules/stpncpy (Makefile.am): Likewise.
52835         * modules/strcase (Makefile.am): Likewise.
52836         * modules/strcasestr (Makefile.am): Likewise.
52837         * modules/strchrnul (Makefile.am): Likewise.
52838         * modules/strcspn (Makefile.am): Likewise.
52839         * modules/strdup (Makefile.am): Likewise.
52840         * modules/strerror (Makefile.am): Likewise.
52841         * modules/strftime (Makefile.am): Likewise.
52842         * modules/strndup (Makefile.am): Likewise.
52843         * modules/strnlen (Makefile.am): Likewise.
52844         * modules/strpbrk (Makefile.am): Likewise.
52845         * modules/strsep (Makefile.am): Likewise.
52846         * modules/strstr (Makefile.am): Likewise.
52847         * modules/strtod (Makefile.am): Likewise.
52848         * modules/strtoimax (Makefile.am): Likewise.
52849         * modules/strtok_r (Makefile.am): Likewise.
52850         * modules/strtol (Makefile.am): Likewise.
52851         * modules/strtoll (Makefile.am): Likewise.
52852         * modules/strtoul (Makefile.am): Likewise.
52853         * modules/strtoull (Makefile.am): Likewise.
52854         * modules/strtoumax (Makefile.am): Likewise.
52855         * modules/strverscmp (Makefile.am): Likewise.
52856         * modules/time_r (Makefile.am): Likewise.
52857         * modules/timegm (Makefile.am): Likewise.
52858         * modules/tmpfile-safer (Makefile.am): Likewise.
52859         * modules/unistd-safer (Makefile.am): Likewise.
52860         * modules/unlinkdir (Makefile.am): Likewise.
52861         * modules/userspec (Makefile.am): Likewise.
52862         * modules/utime (Makefile.am): Likewise.
52863         * modules/utimecmp (Makefile.am): Likewise.
52864         * modules/utimens (Makefile.am): Likewise.
52865         * modules/vasnprintf (Makefile.am): Likewise.
52866         * modules/vasprintf (Makefile.am): Likewise.
52867         * modules/vsnprintf (Makefile.am): Likewise.
52868         * modules/xalloc (Makefile.am): Likewise.
52869         * modules/xgetcwd (Makefile.am): Likewise.
52870         * modules/xnanosleep (Makefile.am): Likewise.
52871         * modules/xreadlink (Makefile.am): Likewise.
52872         * modules/xstrtod (Makefile.am): Likewise.
52873         * modules/xstrtol (Makefile.am): Likewise.
52874         * modules/xstrtold (Makefile.am): Likewise.
52875         * modules/yesno (Makefile.am): Likewise.
52876
52877 2006-10-12  Jim Meyering  <jim@meyering.net>
52878
52879         * m4/getloadavg.m4: Revert the change below.
52880
52881         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
52882         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
52883         fail with a symlink, which is what coreutils' ./bootstrap now
52884         creates by default.
52885
52886 2006-10-12  Bruno Haible  <bruno@clisp.org>
52887
52888         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
52889         mingw.
52890         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
52891         MSVC and mingw explicitly.
52892
52893 2006-10-11  Simon Josefsson  <jas@extundo.com>
52894             Bruno Haible  <bruno@clisp.org>
52895
52896         Add support for multiple gnulib-tool invocations in the scope of a
52897         single configure.ac file.
52898         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
52899         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
52900         with the same contents as the _LIBADD variable.
52901         (func_emit_initmacro_start, func_emit_initmacro_end,
52902         func_emit_initmacro_done): New functions.
52903         (func_import, func_create_testdir): Invoke them. Allow the identifiers
52904         gl_LIBOBJS and gl_LTLIBOBJS.
52905
52906 2006-10-11  Bruno Haible  <bruno@clisp.org>
52907
52908         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
52909         (func_create_testdir): Don't create po/Makefile.am, don't invoke
52910         autoreconf. Instead, invoke autopoint explicitly but move back the
52911         *.m4 files from gnulib.
52912
52913 2006-10-11  Bruno Haible  <bruno@clisp.org>
52914
52915         * gnulib-tool (func_usage): Make module names after --create-testdir
52916         optional.
52917         (func_create_testdir): If no module was specified, use nearly all
52918         modules.
52919
52920 2006-10-12  Jim Meyering  <jim@meyering.net>
52921
52922         Big performance improvement for fts-based tools that use FTS_NOSTAT.
52923         Avoid spurious inode-mismatch problems on non-POSIX file systems.
52924         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
52925         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
52926         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
52927         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
52928         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
52929         (fts_set_stat_required): New function.
52930         (fts_open): Defer the calls to fts_stat, if possible or requested.
52931         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
52932         into fts_stat itself.
52933         (fts_read): Perform any required (deferred) fts_stat call.
52934         (fts_build): Likewise, for the directory we're about to open and read.
52935         In the readdir loop, carefully decide whether each entry will require
52936         an eventual call to fts_stat, using dirent.d_type info if available.
52937         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
52938         a command line argument into this function.  Update all callers.
52939         Map a return value of FTS_DOT to FTS_D for a command line argument.
52940         * modules/fts (Depends-on): Add d-type.  Alphabetize.
52941         Thanks to Miklos Szeredi for his tenacity and for the initial
52942         bug report about "find" failing on a FUSE-based file system.
52943
52944         * lib/fts.c (fts_open): Use consistent indentation.
52945
52946 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
52947
52948         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
52949         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
52950         reported by Jim Meyering.  All uses of cache variables renamed
52951         to match Autoconf's.
52952         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
52953         the other one.
52954
52955         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
52956         Fix misspelling in diagnostic.
52957
52958 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
52959
52960         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
52961         defined.  Problem reported by Matthew Woehlke.
52962
52963         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
52964         Add support for Tandem NonStop R series.
52965         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
52966         Use new macro.
52967
52968         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
52969         (has_trailing_slash): Omit size arg; all callers changed.
52970         Omit 'inline', since it doesn't help performance and we'd
52971         need to configure it.
52972         Don't count //, ///, etc. as having a trailing slash.
52973         As a side effect, this removes a C99ism reported by Matthew Woehlke.
52974         (rpl_rename_dest_slash): On failure, use rename's errno rather
52975         than (in some cases) an incorrect or junk errno.
52976         Simplify code by removing need to compute length; this does
52977         cause it to make two passes instead of one over the file name,
52978         but it's worth it.
52979
52980         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
52981         change, since Autoconf's version may no longer be appropriate now
52982         that we are using CVS Autoconf's version.  Add support for Tandem.
52983
52984 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
52985             Bruno Haible  <bruno@clisp.org>
52986
52987         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
52988         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
52989         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
52990         gl_AC_TYPE_LONG_LONG.
52991
52992         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
52993         instead of HAVE_LONG_LONG.
52994         * lib/printf-args.c (printf_fetchargs): Likewise.
52995         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
52996         * lib/vasnprintf.c (VASNPRINTF): Likewise.
52997         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
52998         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
52999         gl_AC_TYPE_LONG_LONG.
53000
53001 2006-10-11  Bruno Haible  <bruno@clisp.org>
53002
53003         * m4/longlong.m4: Add comments.
53004         * m4/ulonglong.m4: Likewise.
53005
53006 2006-10-10  Bruno Haible  <bruno@clisp.org>
53007
53008         Make it possible to #define stpcpy, strdup to aliases.
53009         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
53010         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
53011
53012 2006-10-10  Bruno Haible  <bruno@clisp.org>
53013
53014         Make it possible to #define gcd to an alias.
53015         * lib/gcd.c: Include config.h.
53016
53017 2006-10-10  Bruno Haible  <bruno@clisp.org>
53018
53019         Make it possible to #define c_isascii to an alias.
53020         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
53021         defined. Undefine the macros before defining them, to avoid gcc
53022         warnings.
53023         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
53024         define NO_C_CTYPE_MACROS early.
53025
53026 2006-10-10  Bruno Haible  <bruno@clisp.org>
53027
53028         Make it possible to #define set_program_name to an alias.
53029         * lib/progname.c: Don't undefine set_program_name; instead, undefine
53030         ENABLE_RELOCATABLE early.
53031
53032 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
53033
53034         Port to Tandem NSK OSS, which has 64-bit signed int but at most
53035         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
53036         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
53037         More generally, don't assume that 64-bit signed int is available
53038         if unsigned int is, and vice versa.
53039         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
53040         unsigned symbols, not on their signed counterparts.
53041         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
53042         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
53043         (UINT64_C, UINTMAX_C):
53044         Likewise.
53045         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
53046         unsigned counterparts.
53047         (Have_long_long, Unsigned): New macros.
53048         (Int): Renamed from INT.
53049         (strtoimax): Use the new macros.
53050         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
53051         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
53052         * modules/inttypes (inttypes.h): Substitute
53053         HAVE_UNSIGNED_LONG_LONG_INT.
53054         * modules/stdint (stdint.h): Likewise.
53055         (Files): Add m4/ulonglong.m4.
53056
53057 2006-10-10  Bruno Haible  <bruno@clisp.org>
53058
53059         Fix a gcc -Wshadow warning.
53060         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
53061         to 'bucket'.
53062         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
53063         gl_linked_indexof_from_to): Likewise.
53064         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
53065         Likewise.
53066         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
53067         Likewise.
53068         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
53069         Reported by Eric Blake.
53070
53071 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
53072
53073         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
53074         for NetBSD.  Problem reported by Bruno Haible.
53075
53076 2006-10-09  Jim Meyering  <jim@meyering.net>
53077
53078         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
53079         Patch from Bruno Haible.
53080
53081 2006-10-09  Jim Meyering  <jim@meyering.net>
53082
53083         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
53084         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
53085         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
53086
53087 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
53088
53089         Don't include <config.h> twice; this doesn't work in some cases,
53090         e.g., when config.h has "#define intmax_t long long int" and
53091         we include <config.h>, <inttypes.h>, <config.h> in that order.
53092         Problem reported by Matthew Woehlke in:
53093         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
53094         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
53095         * lib/fts-cycle.c: Don't include config.h.
53096         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
53097         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
53098         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
53099         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
53100         inttypes.h.
53101         * lib/xstrtoumax.c: Likewise.
53102         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
53103         __strtol and the like, so that this module is more like its siblings.
53104         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
53105         Remove; no longer needed now that we assume gnulib inttypes.h.
53106
53107 2006-10-08  Bruno Haible  <bruno@clisp.org>
53108
53109         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
53110         option.
53111
53112 2006-10-07  Jim Meyering  <jim@meyering.net>
53113
53114         * modules/inttypes (inttypes.h): Revert what seems to have been
53115         an inadvertent part of today's change: use "|", not "/" in the
53116         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
53117
53118 2006-10-07  Bruno Haible  <bruno@clisp.org>
53119
53120         * modules/sublist: New file.
53121
53122 2006-10-07  Bruno Haible  <bruno@clisp.org>
53123
53124         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
53125         * modules/argz (argz.h): Likewise.
53126         * modules/arpa_inet (arpa/inet.h): Likewise.
53127         * modules/byteswap (byteswap.h): Likewise.
53128         * modules/configmake (configmake.h): Likewise.
53129         * modules/fcntl (fcntl.h): Likewise.
53130         * modules/fnmatch (fnmatch.h): Likewise.
53131         * modules/getopt (getopt.h): Likewise.
53132         * modules/glob (glob.h): Likewise.
53133         * modules/inttypes (inttypes.h): Likewise.
53134         * modules/netinet_in (netinet/in.h): Likewise.
53135         * modules/poll (poll.h): Likewise.
53136         * modules/stdbool (stdbool.h): Likewise.
53137         * modules/stdint (stdint.h): Likewise.
53138         * modules/sys_select (sys/select.h): Likewise.
53139         * modules/sys_socket (sys/socket.h): Likewise.
53140         * modules/sys_stat (sys/stat.h): Likewise.
53141         * modules/sysexits (sysexits.h): Likewise.
53142         * modules/unistd (unistd.h): Likewise.
53143         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53144         Add a "DO NOT EDIT" comment to the generated file.
53145         (func_import): Likewise for gnulib-comp.m4.
53146
53147 2006-10-07  Bruno Haible  <bruno@clisp.org>
53148
53149         * lib/gl_sublist.h: New file.
53150         * lib/gl_sublist.c: New file.
53151
53152 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
53153
53154         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
53155         name (relative to the original working directory) and the file
53156         name component (relative to the temporary working directory).  All
53157         callers changed.
53158         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
53159         * lib/mkdir-p.c (make_dir_parents): Likewise.
53160         * lib/mkdir-p.h (make_dir_parents): Likewise.
53161
53162 2006-10-06  Eric Blake  <ebb9@byu.net>
53163
53164         Define several macros for use by the clean-temp module.
53165         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
53166         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
53167         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
53168
53169         * lib/clean-temp.h (close_stream_temp): New declaration.
53170         * lib/clean-temp.c (includes): Pull in headers according to what
53171         other modules are in use.
53172         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
53173
53174 2006-10-06  Bruno Haible  <bruno@clisp.org>
53175
53176         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
53177         instead of fopen, fwriteerror.
53178
53179 2006-10-06  Bruno Haible  <bruno@clisp.org>
53180
53181         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
53182         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
53183         int.
53184         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
53185         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
53186         Return an error indicator.
53187         Suggested by Eric Blake.
53188
53189 2006-10-06  Bruno Haible  <bruno@clisp.org>
53190
53191         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
53192         Reported by Eric Blake.
53193
53194 2006-10-06  Bruno Haible  <bruno@clisp.org>
53195
53196         * modules/closeout (Description): Mention stderr too.
53197
53198 2006-10-06  Bruno Haible  <bruno@clisp.org>
53199         and Paul Eggert  <eggert@cs.ucla.edu>
53200
53201         * lib/closeout.c (close_stdout): Also close stderr.
53202         * lib/closeout.h: Update comment.
53203
53204 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
53205
53206         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
53207         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
53208         * lib/dirchownmod.c: Include lchown.h.
53209         * lib/lchown.c: Don't include files that lchown.h now includes.
53210         Don't declare chown, since lchown.h now does that.
53211         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
53212         (lchown): Define to rpl_chown if lchown is declared but
53213         does not exist.  Declare using a prototype if lchown is not
53214         declared.  Add a copyright notice.
53215         * lib/mkstemp.h: Include <unistd.h>.
53216         * lib/openat.c: Include lchown.h.
53217
53218         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
53219         we now test for that separately.
53220         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
53221         rather than O_NOFOLLOW, when testing whether it's possible to
53222         avoid a race condition reliably.
53223         * lib/savewd.c (savewd_chdir): Likewise.
53224
53225         Remove macros that are no longer needed now that stdint.h is
53226         reliable.
53227         * lib/fsusage.c (UINTMAX_MAX): Remove.
53228         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
53229         * lib/utimecmp.c (SIZE_MAX): Remove.
53230
53231         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
53232
53233         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
53234         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
53235         O_NOATIME works.
53236
53237 2006-10-05  Bruno Haible  <bruno@clisp.org>
53238
53239         * lib/gl_list.h (gl_sortedlist_search_from_to,
53240         gl_sortedlist_indexof_from_to): New declarations.
53241         (gl_list_implementation): New fields sortedlist_search_from_to,
53242         sortedlist_indexof_from_to.
53243         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
53244         inline functions.
53245         * lib/gl_list.c (gl_sortedlist_search_from_to,
53246         gl_sortedlist_indexof_from_to): New functions.
53247         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
53248         function.
53249         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
53250         (gl_array_sortedlist_search_from_to): New function.
53251         (gl_array_list_implementation): Update.
53252         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
53253         function.
53254         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
53255         (gl_carray_sortedlist_search_from_to): New function.
53256         (gl_carray_list_implementation): Update.
53257         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
53258         gl_linked_sortedlist_indexof_from_to): New functions.
53259         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
53260         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
53261         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
53262         gl_tree_sortedlist_indexof_from_to): New functions.
53263         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
53264         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
53265         Update.
53266         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
53267         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
53268         Update.
53269
53270 2006-10-05  Bruno Haible  <bruno@clisp.org>
53271
53272         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
53273         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
53274         (struct gl_list_implementation): Add fields search_from_to,
53275         indexof_from_to. Remove fields search, indexof.
53276         (gl_list_search): Use the search_from_to method.
53277         (gl_list_search_from, gl_list_search_from_to): New functions.
53278         (gl_list_indexof): Use the indexof_from_to method.
53279         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
53280         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
53281         (gl_list_search_from, gl_list_search_from_to): New functions.
53282         (gl_list_indexof): Use the indexof_from_to method.
53283         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
53284         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
53285         gl_array_indexof. Add start_index, end_index arguments.
53286         (gl_array_search_from_to): Renamed from gl_array_search. Add
53287         start_index, end_index arguments.
53288         (gl_array_remove, gl_array_list_implementation): Update.
53289         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
53290         gl_carray_indexof. Add start_index, end_index arguments.
53291         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
53292         start_index, end_index arguments.
53293         (gl_carray_remove, gl_carray_list_implementation): Update.
53294         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
53295         gl_linked_search. Add start_index, end_index arguments.
53296         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
53297         start_index, end_index arguments.
53298         (gl_linked_remove): Update.
53299         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
53300         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
53301         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
53302         field to 'size_t'.
53303         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
53304         gl_tree_search. Add start_index, end_index arguments.
53305         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
53306         start_index, end_index arguments.
53307         (gl_tree_remove): Update.
53308         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
53309         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
53310         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
53311         function.
53312         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
53313         gl_tree_search. Add start_index, end_index arguments.
53314         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
53315         start_index, end_index arguments.
53316         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
53317         Update.
53318         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
53319
53320 2006-10-05  Bruno Haible  <bruno@clisp.org>
53321
53322         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
53323
53324         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
53325         fwriteerror_temp): New declarations.
53326         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
53327         (descriptors): New variable.
53328         (cleanup): First, close the descriptors.
53329         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
53330         fclose_temp, fwriteerror_temp): New functions.
53331
53332 2006-10-04  Jim Meyering  <jim@meyering.net>
53333
53334         * lib/fts.c (fts_open): Tiny comment change.
53335
53336 2006-10-04  Bruno Haible  <bruno@clisp.org>
53337
53338         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
53339         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
53340         gl_LOCK_BODY.
53341         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
53342         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
53343         gl_LOCK_EARLY_BODY.
53344         (gl_LOCK): Require gl_LOCK_BODY.
53345
53346 2006-10-04  Bruno Haible  <bruno@clisp.org>
53347
53348         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
53349         (gl_oset_search_atleast): New declaration.
53350         (struct gl_oset_implementation): Add field 'search_atleast'.
53351         (gl_oset_search_atleast): New inline function.
53352         * lib/gl_oset.c (gl_oset_search_atleast): New function.
53353         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
53354         (gl_array_oset_implementation): Update.
53355         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
53356         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
53357         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
53358
53359 2006-10-04  Bruno Haible  <bruno@clisp.org>
53360
53361         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
53362
53363 2006-10-03  Bruno Haible  <bruno@clisp.org>
53364
53365         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
53366         from gl_avltreehash_list_implementation.
53367
53368 2006-10-03  Bruno Haible  <bruno@clisp.org>
53369
53370         * lib/gl_oset.c (gl_oset_add): Fix return type.
53371
53372 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
53373
53374         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
53375
53376 2006-10-02  Eric Blake  <ebb9@byu.net>
53377
53378         * modules/strnlen (Depends-on): Add extensions.
53379
53380 2006-10-02  Eric Blake  <ebb9@byu.net>
53381
53382         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
53383         definition in 2.60+.
53384
53385 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
53386
53387         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
53388         checks.
53389
53390 2006-10-02  Bruno Haible  <bruno@clisp.org>
53391
53392         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
53393         to the AUTOMAKE_OPTIONS.
53394         Reported by Jim Meyering.
53395
53396 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
53397
53398         Work around bug in Solaris 10 /proc file system:
53399         /proc/self/fd/NNN/.. isn't the parent directory of
53400         the directory whose file descriptor is NNN.  This needs to
53401         be worked around at run time, not compile time, since a
53402         program might be built on Solaris 8, where things work, and
53403         run on Solaris 10.
53404         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
53405         to use the following interface instead:
53406         (OPENAT_BUFFER_SIZE): New macro.
53407         (openat_proc_name): New function.
53408         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
53409         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
53410         Likewise.
53411         * lib/openat-proc.c: New file.
53412         * modules/openat (Files): Add lib/openat-proc.c.
53413         (Depends-on): Add same-inode, stdbool.
53414         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
53415
53416 2006-09-29  Bruno Haible  <bruno@clisp.org>
53417
53418         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
53419         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
53420         argument. Set stdout_closed before testing for ferror, not after.
53421         (fwriteerror, fwriteerror_no_ebadf): New functions.
53422
53423 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53424
53425         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
53426
53427 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
53428
53429         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
53430         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
53431
53432 2006-09-28  Jim Meyering  <jim@meyering.net>
53433
53434         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
53435         Include <unistd.h>.
53436
53437 2006-09-28  Bruno Haible  <bruno@clisp.org>
53438
53439         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
53440         * modules/linkedhash-list (Depends-on): Likewise.
53441         * modules/rbtreehash-list (Depends-on): Likewise.
53442
53443 2006-09-28  Bruno Haible  <bruno@clisp.org>
53444
53445         * lib/strndup.h: Simplify the redefinition of strndup.
53446         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
53447         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
53448
53449 2006-09-28  Bruno Haible  <bruno@clisp.org>
53450
53451         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
53452         * lib/gl_linkedhash_list.c: Likewise.
53453         * lib/gl_rbtreehash_list.c: Likewise.
53454
53455 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
53456
53457         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
53458         getaddrinfo.
53459
53460         * lib/__fpending.h: Don't include <stdio_ext.h> unless
53461         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
53462         it causes <stdio_ext.h> to cause a compile-time error.
53463         Problem reported by Nelson H. F. Beebe.
53464         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
53465         of HAVE_DECL___PENDING.
53466
53467         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
53468         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
53469         declaration.
53470
53471 2006-09-27  Jim Meyering  <jim@meyering.net>
53472
53473         This file could end up with a definition for a function
53474         named __strndup, rather than rpl_strndup on a system with
53475         incomplete weak_alias support.
53476         * lib/strndup.c (strndup): Rename from __strndup.
53477         Remove #defines that used to map __strndup to strndup.
53478         Don't use K&R prototypes.
53479         Remove LIBC-related code, since this file is not sync'd with glibc.
53480         * lib/strndup.h: Revamp, accordingly.
53481         * m4/strndup.m4: Modernize.
53482
53483 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
53484
53485         * modules/savewd (Depends-on): Add 'raise'.
53486         * lib/savewd.c: Include <signal.h>, for 'raise'.
53487
53488 2006-09-26  Jim Meyering  <jim@meyering.net>
53489
53490         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
53491         when we detect Darwin 8.7.0's acl_get_file bug.
53492         Rearrange to perform the new (below) run-test while $LIBS
53493         contains any acl-related library.  Set USE_ACL at the end.
53494         (gl_ACL_GET_FILE): New function.
53495
53496 2006-09-26  Eric Blake  <ebb9@byu.net>
53497
53498         * lib/verror.c: Include <config.h> unconditionally.
53499
53500 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
53501
53502         * modules/clock-time (Maintainer): Add self.
53503         * modules/getlogin_r (Depends-on): Add extensions.
53504
53505 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53506
53507         * modules/clock-time: New module.
53508         * modules/nanosleep (Depends-on): Add clock-time.
53509         * modules/gethrxtime (Depends-on): Likewise.
53510         * modules/gettime (Depends-on): Likewise.
53511         * modules/settime (Depends-on): Likewise.
53512
53513         * modules/fts-lgpl: Depend on openat.
53514         * modules/mkancesdirs: Depend on savewd.
53515         * modules/mkdir-p: Likewise.
53516
53517 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53518
53519         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
53520
53521         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
53522         `gl_have_arbitrary_file_name_length_limit' to
53523         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
53524         actually works between configure runs.
53525
53526 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53527             Bruno Haible  <bruno@clisp.org>
53528
53529         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
53530
53531 2006-09-25  Jim Meyering  <jim@meyering.net>
53532
53533         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
53534         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
53535
53536 2006-09-25  Eric Blake  <ebb9@byu.net>
53537
53538         * gnulib-tool (func_import, func_create_testdir): Fix typos in
53539         exec's in 2006-09-18 patch when shuffling fds.
53540
53541 2006-09-25  Bruno Haible  <bruno@clisp.org>
53542
53543         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
53544         Reported by Jim Meyering.
53545
53546 2006-09-24  Jim Meyering  <jim@meyering.net>
53547
53548         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
53549         compare a pointer against a literal "0".  That caused failures with
53550         at least HP-UX's hpcc.
53551
53552 2006-09-22  Simon Josefsson  <jas@extundo.com>
53553
53554         * modules/gc-sha1:
53555         * modules/gc-md4:
53556         * modules/gc-hmac-sha1:
53557         * modules/gc-hmac-md5:
53558         * modules/gc-des:
53559         * modules/gc-arcfour: Distribute more files.
53560
53561 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53562
53563         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
53564         (gl_linked_iterator_from_to): Initialize struct completely.
53565         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
53566         (gl_tree_iterator_from_to): Likewise
53567         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
53568         * lib/gl_array_list.c [lint] (gl_array_iterator)
53569         (gl_array_iterator_from_to): Likewise.
53570         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
53571         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
53572         (gl_carray_iterator_from_to): Likewise.
53573
53574         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
53575         * lib/md4.c (md4_process_block): Remove unused variable.
53576         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
53577         parentheses for clarity.
53578
53579 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53580
53581         * modules/bison-i18n (Depends-on): Add gettext.
53582
53583 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53584
53585         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
53586         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
53587         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
53588         also add missing comma that caused broken test.
53589         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
53590         stdlib.h, for `abort'.
53591         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
53592         variables.
53593         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
53594         include unistd.h if present, for `rmdir'.
53595         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
53596         variables.
53597         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
53598         in the process include standard headers for prototypes.
53599         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
53600         gets declared on GNU/Linux.
53601         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
53602         unistd.h, for `rmdir'.
53603         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
53604
53605         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
53606         always true.
53607         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
53608
53609         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
53610
53611 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53612
53613         * gnulib-tool (func_version): Create output all at once.  This
53614         may help avoid triggering unnecessary SIGPIPEs, and at any
53615         rate it doesn't hurt.
53616
53617 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53618             Bruno Haible  <bruno@clisp.org>
53619
53620         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
53621         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
53622         * m4/signed.m4 (bh_C_SIGNED): Likewise.
53623
53624         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
53625         (gl_FUNC_VASPRINTF): Invoke it.
53626
53627 2006-09-22  Bruno Haible  <bruno@clisp.org>
53628
53629         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
53630         getloadavg.c as first argument.
53631
53632 2006-09-22  Bruno Haible  <bruno@clisp.org>
53633
53634         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
53635         at the beginning of the gl_INIT macro.
53636         * modules/getloadavg (configure.ac): Pass $gl_source_base to
53637         gl_GETLOADAVG.
53638
53639 2006-09-22  Bruno Haible  <bruno@clisp.org>
53640
53641         * gnulib-tool (func_create_megatestdir): Don't include the config-h
53642         module.
53643         Suggested by Ralf Wildenhues.
53644
53645 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
53646
53647         Import this patch from libc:
53648
53649         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
53650
53651         * lib/regex_internal.c (re_string_reconstruct): Handle
53652         offset < pstr->valid_raw_len && pstr->offsets_needed case.
53653         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
53654         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
53655         re_string_context_at.
53656
53657         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
53658         now requires it.
53659         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
53660         gl_REGEX now does it for us.
53661         (gl_REGEX): Add test taken from
53662         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
53663
53664         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
53665         Check that large offsets work.  Modernize Autoconf usages.
53666         Prefer "yes" to mean a good thing rather than a bad.
53667         Don't put "#define mkstemp" in config.h, as this might interfere
53668         with standard system headers that "#define mkstemp mkstemp64".
53669
53670         * modules/mkstemp (Depends-on): Add extensions, so that
53671         mkstemp is visible on some platforms.
53672         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
53673         (Include): Change to "mkstemp.h" from <stdlib.h>.
53674         (Files): Add mkstemp.h.
53675
53676         * lib/mkstemp.h: New file, since some standard headers
53677         #define mkstemp.
53678         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
53679         Include "mkstemp.h".
53680         Make the _LIBC code resemble glibc original more,
53681         e.g., use K&R style.
53682         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
53683         (mkstemp): Remove, since mkstemp.h does this for us.
53684         * lib/stdlib--.h: Include mkstemp.h.
53685
53686         Import this patch from libc:
53687
53688         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
53689
53690         * lib/tempname.c (__gen_tempname): Change attempts_min
53691         into a macro.  Use preprocessor to decide how to initialize
53692         attempts [Coverity CID 67].
53693
53694 2006-09-20  Bruno Haible  <bruno@clisp.org>
53695
53696         * lib/mkdtemp.c: Import from libc.
53697         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
53698                 * sysdeps/posix/tempname.c (__gen_tempname): Change
53699                 attempts_min into a macro.  Use preprocessor to decide how to
53700                 initialize attempts [Coverity CID 67].
53701         2001-11-27  Paul Eggert  <eggert@twinsun.com>
53702                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
53703                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
53704
53705 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53706
53707         * gnulib-tool (func_exit): New function, to allow to pass the
53708         exit status portably through the trap.  Use everywhere.
53709         (--help, --version): Signal a write error.
53710         (trap): catch SIGPIPE, for write errors.
53711         Exit at the end of the trap, with the correct exit status.
53712
53713 2006-09-19  Karl Berry  <karl@gnu.org>
53714
53715         * doc/gnulib.texi: note about the license texinfo files.
53716
53717 2006-09-19  Eric Blake  <ebb9@byu.net>
53718
53719         * gnulib-tool: Avoid space-tab.
53720
53721 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
53722
53723         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
53724         that prevented coreutils 6.1 from building.  Problem reported
53725         by Petter Reinholdtsen.
53726
53727 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
53728
53729         * gnulib-tool (avoidlist): Fix typo that broke options like
53730         --avoid=lock that are used by coreutils bootstrap.
53731
53732 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
53733
53734         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
53735         more systematically.
53736
53737 2006-09-18  Jim Meyering  <jim@meyering.net>
53738
53739         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
53740
53741 2006-09-18  Bruno Haible  <bruno@clisp.org>
53742
53743         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
53744
53745 2006-09-18  Bruno Haible  <bruno@clisp.org>
53746
53747         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
53748         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
53749         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
53750         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
53751         * m4/gettext.m4: Require autoconf >= 2.52.
53752         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
53753         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
53754         of gl_cv_header_inttypes_h.
53755
53756 2006-09-18  Bruno Haible  <bruno@clisp.org>
53757
53758         * lib/javaversion.c: Include configmake.h.
53759
53760 2006-09-18  Bruno Haible  <bruno@clisp.org>
53761
53762         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
53763         avoid that the while loops be executed in a subshell.
53764
53765 2006-09-18  Bruno Haible  <bruno@clisp.org>
53766
53767         * MODULES.html.sh (func_module): Break long lines.
53768         Suggested by Bruce Korb <bkorb@gnu.org>.
53769
53770 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53771
53772         Speed up by a factor of 1.12.
53773         * gnulib-tool (nl): New variable.
53774         (func_import): Rewrite include directive extraction to only read each
53775         directive once.
53776
53777 2006-09-17  Bruno Haible  <bruno@clisp.org>
53778
53779         * modules/javaversion (Makefile.am): Remove DEFS setting.
53780         (Depends-on): Add configmake, for PKGDATADIR definition.
53781
53782 2006-09-17  Bruno Haible  <bruno@clisp.org>
53783
53784         * gnulib-tool (func_create_testdir): Rewrite all files at once.
53785
53786 2006-09-17  Bruno Haible  <bruno@clisp.org>
53787
53788         * gnulib-tool (func_append): New function, stolen from libtool.m4.
53789         (func_modules_transitive_closure, func_modules_add_dummy,
53790         func_modules_to_filelist, func_import, func_create_testdir,
53791         func_create_megatestdir, ...): Use it wherever possible.
53792         Suggested by Ralf Wildenhues.
53793
53794 2006-09-16  Karl Berry  <karl@gnu.org>
53795
53796         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
53797         to avoid sectioning errors.
53798         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
53799         [ifinfo]: blank line after @center-ed titles.
53800         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
53801         Spell FSF address consistently with others.
53802         (These changes approved by rms.)
53803
53804 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53805
53806         Speed up by a factor of 1.61.
53807         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
53808         already checked module names again.
53809
53810 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53811
53812         Speed up by a factor of 1.13.
53813         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
53814         for new_files, and the input to func_add_or_update.
53815
53816 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53817
53818         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
53819         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
53820
53821 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
53822
53823         * modules/mkancesdirs (Depends-on): Add fcntl.
53824         * modules/savewd: New file.
53825         * MODULES.html.sh (File system functions): Add savewd.
53826
53827         * modules/configmake (Makefile.am): Add support for the
53828         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
53829
53830 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
53831
53832         * m4/savewd.m4: New file.
53833
53834 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
53835
53836         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
53837         (dirchownmod): New arg FD.  All callers changed.
53838         Use FD rather than opening the directory ourself, as opening is
53839         now the caller's responsibility.
53840         * lib/dirchownmod.h: Likewise.
53841         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
53842         hosts that require <sys/types.h> before <sys/stat.h>.  Include
53843         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
53844         (test_dir): Remove.
53845         (mkancesdirs): Return length of prefix of FILE that has already
53846         been made, or -2 if there is a child doing the work.  Redo
53847         algorithm so that it is O(N) rather than O(N**2).  Optimize away
53848         ".", and treat ".." specially since it might stray back into
53849         already-created areas.  Use a subprocess if necessary.  New arg
53850         WD; all users changed.  MAKE_DIR function should now return 1
53851         if it creates a directory that is not readable.  Return -2 if
53852         a child process is spun off.
53853         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
53854         Adjust signature to match code.
53855         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
53856         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
53857         all users changed.
53858         * lib/savewd.c, lib/savewd.h: New files.
53859
53860 2006-09-15  Jim Meyering  <jim@meyering.net>
53861
53862         * modules/rename-dest-slash: New module.
53863         * MODULES.html.sh (posix_compat): Add it here.
53864
53865         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
53866
53867 2006-09-15  Jim Meyering  <jim@meyering.net>
53868
53869         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
53870         file.
53871
53872         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
53873
53874 2006-09-15  Jim Meyering  <jim@meyering.net>
53875
53876         * lib/rename-dest-slash.c (has_trailing_slash): Use
53877         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
53878         (rpl_rename_dest_slash): Perform the cheaper trailing slash
53879         test before testing whether SRC is a directory.
53880         Suggestions from Bruno Haible.
53881
53882         Avoid a warning about an unused variable.
53883         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
53884         into the #ifdef block where it's used.
53885
53886         * lib/rename-dest-slash.c: New file.
53887
53888 2006-09-14  Bruno Haible  <bruno@clisp.org>
53889
53890         * lib/allocsa.c: Include <config.h> unconditionally.
53891         * lib/asnprintf.c: Likewise.
53892         * lib/asprintf.c: Likewise.
53893         * lib/c-strcasecmp.c: Likewise.
53894         * lib/c-strcasestr.c: Likewise.
53895         * lib/c-strncasecmp.c: Likewise.
53896         * lib/c-strstr.c: Likewise.
53897         * lib/classpath.c: Likewise.
53898         * lib/clean-temp.c: Likewise.
53899         * lib/concatpath.c: Likewise.
53900         * lib/copy-file.c: Likewise.
53901         * lib/csharpcomp.c: Likewise.
53902         * lib/csharpexec.c: Likewise.
53903         * lib/execute.c: Likewise.
53904         * lib/fatal-signal.c: Likewise.
53905         * lib/findprog.c: Likewise.
53906         * lib/fwriteerror.c: Likewise.
53907         * lib/gl_array_list.c: Likewise.
53908         * lib/gl_array_oset.c: Likewise.
53909         * lib/gl_avltree_list.c: Likewise.
53910         * lib/gl_avltree_oset.c: Likewise.
53911         * lib/gl_avltreehash_list.c: Likewise.
53912         * lib/gl_carray_list.c: Likewise.
53913         * lib/gl_linked_list.c: Likewise.
53914         * lib/gl_linkedhash_list.c: Likewise.
53915         * lib/gl_list.c: Likewise.
53916         * lib/gl_oset.c: Likewise.
53917         * lib/gl_rbtree_list.c: Likewise.
53918         * lib/gl_rbtree_oset.c: Likewise.
53919         * lib/gl_rbtreehash_list.c: Likewise.
53920         * lib/imaxabs.c: Likewise.
53921         * lib/imaxdiv.c: Likewise.
53922         * lib/javacomp.c: Likewise.
53923         * lib/javaexec.c: Likewise.
53924         * lib/javaversion.c: Likewise.
53925         * lib/linebreak.c: Likewise.
53926         * lib/localcharset.c: Likewise.
53927         * lib/lock.c: Likewise.
53928         * lib/mbchar.c: Likewise.
53929         * lib/mbswidth.c: Likewise.
53930         * lib/mkdtemp.c: Likewise.
53931         * lib/pipe.c: Likewise.
53932         * lib/printf-args.c: Likewise.
53933         * lib/printf-parse.c: Likewise.
53934         * lib/progname.c: Likewise.
53935         * lib/progreloc.c: Likewise.
53936         * lib/readlink.c: Likewise.
53937         * lib/sh-quote.c: Likewise.
53938         * lib/stpcpy.c: Likewise.
53939         * lib/stpncpy.c: Likewise.
53940         * lib/strcasecmp.c: Likewise.
53941         * lib/strcasestr.c: Likewise.
53942         * lib/strcspn.c: Likewise.
53943         * lib/striconv.c: Likewise.
53944         * lib/strncasecmp.c: Likewise.
53945         * lib/strnlen1.c: Likewise.
53946         * lib/strstr.c: Likewise.
53947         * lib/strtok_r.c: Likewise.
53948         * lib/tls.c: Likewise.
53949         * lib/tmpdir.c: Likewise.
53950         * lib/unicodeio.c: Likewise.
53951         * lib/unsetenv.c: Likewise.
53952         * lib/vasnprintf.c: Likewise.
53953         * lib/vasprintf.c: Likewise.
53954         * lib/wait-process.c: Likewise.
53955         * lib/xallocsa.c: Likewise.
53956         * lib/xsetenv.c: Likewise.
53957         * lib/xstriconv.c: Likewise.
53958
53959 2006-09-13  Simon Josefsson  <jas@extundo.com>
53960
53961         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
53962         that internally, suggested by Ralf Wildenhues
53963         <Ralf.Wildenhues@gmx.de>.
53964
53965 2006-09-13  Simon Josefsson  <jas@extundo.com>
53966
53967         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
53968         @LIBOBJS@.
53969         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53970
53971 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
53972
53973         * lib/_fpending.c: Include <config.h> unconditionally, since we no
53974         longer worry about uses that don't define HAVE_CONFIG_H.
53975         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
53976         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
53977         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
53978         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
53979         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
53980         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
53981         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
53982         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
53983         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
53984         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
53985         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
53986         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
53987         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
53988         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
53989         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
53990         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
53991         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
53992         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
53993         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
53994         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
53995         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
53996         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
53997         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
53998         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
53999         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
54000         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
54001         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
54002         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
54003         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
54004         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
54005         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
54006         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
54007         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
54008         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
54009         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
54010         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
54011         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
54012         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
54013         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
54014         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
54015         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
54016         Likewise.
54017
54018 2006-09-13  Eric Blake  <ebb9@byu.net>
54019
54020         * lib/getopt.c: Fix typo in last commit.
54021
54022 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
54023
54024         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
54025         dgettext.
54026
54027 2006-09-12  Jim Meyering  <jim@meyering.net>
54028
54029         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
54030         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
54031         Reported by Nelson H. F. Beebe.
54032
54033 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54034
54035         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
54036         program_invocation_name and program_invocation_short_name are
54037         initialized.
54038         * lib/argp-namefrob.h: Move declarations of program_invocation_name
54039         and program_invocation_short_name to argp.h, so they are visible
54040         to user programs.
54041         * lib/argp.h: Likewise
54042
54043 2006-09-10  Bruno Haible  <bruno@clisp.org>
54044
54045         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
54046         m4/inttypes_h.m4, m4/uintmax_t.m4.
54047
54048 2006-09-10  Bruno Haible  <bruno@clisp.org>
54049
54050         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
54051         gl_AC_TYPE_UINTMAX_T.
54052
54053 2006-09-10  Bruno Haible  <bruno@clisp.org>
54054
54055         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
54056
54057 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54058
54059         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
54060         convention.  Text proposed by Bruno Haible.
54061         (struct argp_option): Document the use of N_() wrappers.
54062
54063         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
54064         '\v', and translate the two parts separately, instead of feeding
54065         the whole string to gettext.  This allows to exclude
54066         '\v' from the strings visible to the translator by writing doc
54067         strings as N_("..") "\v" N_("..").
54068
54069 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
54070
54071         * config/srclist.txt: Undo latest change; the bug was fixed.
54072
54073 2006-09-09  Bruno Haible  <bruno@clisp.org>
54074
54075         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
54076         assignments if building a library without libtool.
54077         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
54078         in func_emit_lib_Makefile_am.
54079         (func_import): When building a static library libfoo.a, arrange to
54080         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
54081         (func_create_testdir): Likewise.
54082         * modules/gc (configure.ac, Makefile.am): If building statically,
54083         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
54084         * modules/iconvme (configure.ac, Makefile.am): Likewise.
54085         * modules/striconv (configure.ac, Makefile.am): Likewise.
54086         Based on a suggestion by Ralf Wildenhues.
54087
54088 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
54089
54090         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
54091         Check for unistd.h too, since Autoconf doesn't assume POSIX.
54092         Also:
54093
54094         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
54095         Add year_2050_test to catch glibc bug 2821
54096         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
54097
54098         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54099         Prefer #ifdef to #if.
54100
54101         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
54102         Return from 'main' instead of calling 'exit'.
54103
54104 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
54105
54106         * lib/mktime.c (guess_time_tm): Fix bug where mktime
54107         returned the maximum time_t value rather than (time_t) -1.
54108         Problem originally reported by William Bardwell
54109         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
54110
54111         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
54112         Moved to here ...
54113         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
54114         ... from here.
54115
54116 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
54117
54118         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
54119         2821 is fixed.
54120
54121 2006-09-08  Jim Meyering  <jim@meyering.net>
54122
54123         Don't make generated files read-only.  That would bother too many
54124         people.  However, do retain the ability to work when targets are
54125         read-only: remove the destination and temporary files before writing
54126         them (when generated via sed or echo), or by using the -f option for
54127         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
54128         * modules/alloca-opt, modules/argz, modules/arpa_inet:
54129         * modules/byteswap, modules/configmake, modules/fcntl:
54130         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
54131         * modules/localcharset, modules/netinet_in, modules/poll:
54132         * modules/stdbool, modules/stdint, modules/sys_select:
54133         * modules/sys_socket, modules/sys_stat, modules/sysexits:
54134
54135 2006-09-08  Jim Meyering  <jim@meyering.net>
54136
54137         Avoid new build failure on FreeBSD 6.0.
54138         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
54139         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
54140         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
54141
54142 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54143
54144         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
54145
54146 2006-09-07  Jim Meyering  <jim@meyering.net>
54147
54148         Fix global typo in last change: use chmod u-w, not chmod u-x.
54149         Spotted by Paul Eggert and Bruce Korb.
54150         * modules/alloca-opt, modules/argz, modules/arpa_inet:
54151         * modules/byteswap, modules/configmake, modules/fcntl:
54152         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
54153         * modules/localcharset, modules/netinet_in, modules/poll:
54154         * modules/stdbool, modules/stdint, modules/sys_select:
54155         * modules/sys_socket, modules/sys_stat, modules/sysexits:
54156
54157 2006-09-06  Jim Meyering  <jim@meyering.net>
54158
54159         Make generated files be read-only.
54160         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
54161         Ensure that each generated file is now read-only.
54162         * modules/argz: Likewise.
54163         * modules/arpa_inet: Likewise.
54164         * modules/byteswap: Likewise.
54165         * modules/configmake: Likewise.
54166         * modules/fcntl: Likewise.
54167         * modules/fnmatch: Likewise.
54168         * modules/getopt: Likewise.
54169         * modules/glob: Likewise.
54170         * modules/inttypes: Likewise.
54171         * modules/netinet_in: Likewise.
54172         * modules/poll: Likewise.
54173         * modules/stdbool: Likewise.
54174         * modules/stdint: Likewise.
54175         * modules/sys_select: Likewise.
54176         * modules/sys_socket: Likewise.
54177         * modules/sys_stat: Likewise.
54178         * modules/sysexits: Likewise.
54179         * modules/localcharset: Same as above, but continue using temporary
54180         file named "t-$@" (why different?) rather than the "$@-t" used
54181         everywhere else.
54182
54183         * modules/sysexits (Makefile.am): Replace literal occurrences
54184         of "sysexit.h" more readable, and more consistent, "$@".
54185
54186 2006-09-06  Bruno Haible  <bruno@clisp.org>
54187
54188         * modules/striconv: New file.
54189         * modules/xstriconv: New file.
54190         * MODULES.html.sh (Internationalization functions): Add striconv,
54191         xstriconv.
54192
54193 2006-09-06  Bruno Haible  <bruno@clisp.org>
54194
54195         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
54196         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
54197         not using libtool correctly.
54198
54199 2006-09-06  Bruno Haible  <bruno@clisp.org>
54200
54201         * lib/striconv.h: New file.
54202         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
54203         iconvstring.c.
54204         * lib/xstriconv.h: New file.
54205         * lib/xstriconv.c: New file.
54206
54207 2006-09-06  Bruno Haible  <bruno@clisp.org>
54208
54209         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54210         lib_..._LDFLAGS.
54211
54212 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54213
54214         * lib/argz_.h: Sync from Libtool.
54215
54216         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
54217                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
54218
54219         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
54220
54221 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
54222
54223         * modules/trim: New file.
54224
54225 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
54226
54227         * lib/trim.h: New file.
54228         * lib/trim.c: New file.
54229
54230 2006-09-05  Bruno Haible  <bruno@clisp.org>
54231
54232         * MODULES.html.sh (String handling): Add trim.
54233
54234 2006-09-04  Karl Berry  <karl@gnu.org>
54235
54236         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
54237         until next release.
54238
54239 2006-09-03  Bruno Haible  <bruno@clisp.org>
54240
54241         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
54242         correctly.
54243
54244 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
54245
54246         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
54247         not gl_GETLOADAVG.  Omit unneeded semicolons.
54248         Problems reported by Ralf Wildenhues in
54249         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
54250         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
54251         at the end, which is the usual gnulib style.
54252
54253         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
54254         of doing all the work ourselves.
54255         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
54256         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
54257
54258 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
54259
54260         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
54261         Problem reported by Ralf Wildenhues in
54262         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
54263
54264         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
54265         HAVE_STRUCT_STATFS_F_FSTYPENAME.
54266
54267 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
54268
54269         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
54270         yesterday's patch by changing test -n to test -z.
54271
54272 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54273
54274         * modules/getloadavg (Files): Add m4/getloadavg.m4.
54275         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
54276         the former is now obsolescent.
54277
54278         * modules/chdir-long (Depends-on): Add fcntl.
54279
54280 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54281
54282         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
54283         obsolescent, and programs should use gnulib instead.
54284         * m4/getloadavg.m4: New file, with contents taken from Autoconf
54285         but with prefixes changed.
54286
54287 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54288
54289         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
54290         or stdbool.h, because they might not exist while configuring.
54291
54292         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
54293         Don't include unistd.h or limits.h; not needed, since chdir-long.h
54294         does that for us.
54295         (O_DIRECTORY): Remove.
54296
54297 2006-08-31  Eric Blake  <ebb9@byu.net>
54298
54299         * gnulib-tool: Don't let emacs change spaces to TAB.
54300
54301 2006-08-31  Bruno Haible  <bruno@clisp.org>
54302
54303         * gnulib-tool: When calling func_import more than once, do it in a
54304         subshell.
54305         Reported by Eric Blake <ebb9@byu.net>.
54306
54307 2006-08-31  Bruno Haible  <bruno@clisp.org>
54308
54309         * gnulib-tool (nl): Remove variable.
54310         (sed_transform_lib_file): Use more robust test for config-h module.
54311         (func_import): Fix typo in 2006-08-25 patch.
54312
54313 2006-08-31  Bruno Haible  <bruno@clisp.org>
54314
54315         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
54316         specified, augment Makefile.am variables instead of assigning them.
54317
54318 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
54319
54320         Work around a bug in both the Linux and SunOS 64-bit kernels:
54321         nanosleep mishandles sleeps for longer than 2**31 seconds.
54322         Problem reported by Frank v Waveren in
54323         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
54324         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
54325         Check for nanosleep bug.
54326         (LIB_NANOSLEEP): Append clock_gettime library if needed.
54327
54328 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
54329
54330         Work around a bug in both the Linux and SunOS 64-bit kernels:
54331         nanosleep mishandles sleeps for longer than 2**31 seconds.
54332         Problem reported by Frank v Waveren in
54333         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
54334         * lib/nanosleep.c (BILLION): New constant.
54335         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
54336         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
54337         implementation.
54338
54339 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
54340
54341         * modules/nanosleep (Depends-on): Add gettime.
54342
54343 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
54344         and Simon Josefsson  <jas@extundo.com>
54345         and Oskar Liljeblad  <oskar@osk.mine.nu>
54346
54347         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
54348         * gnulib-tool (func_import): New license type 'unmodifiable license
54349         text'.
54350         * modules/fdl: Use it.  Longer description.
54351         * module/gpl, module/lgpl: New files.
54352
54353 2006-08-30  Jim Meyering  <jim@meyering.net>
54354
54355         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
54356         shadowing the parameter.
54357
54358 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54359
54360         Sync from Libtool:
54361
54362         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54363
54364         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
54365         sharing with gnulib.  Report by Eric Blake.
54366
54367 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
54368
54369         * modules/isapipe: New file.
54370         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
54371
54372 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
54373
54374         * modules/configmake (Makefile.am): Add a comment, and omit
54375         the CONFIGMAKE_ prefix from generated macro names.  Suggested
54376         by Bruno Haible.
54377
54378 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
54379
54380         * m4/isapipe.m4: New file.
54381
54382 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
54383
54384         * lib/isapipe.c, lib/isapipe.h: New files.
54385
54386 2006-08-29  Jim Meyering  <jim@meyering.net>
54387
54388         * modules/configmake (Makefile.am): Make configmake.h depend on
54389         Makefile.  Otherwise, a stale configmake.h could hang around.
54390
54391 2006-08-29  Eric Blake  <ebb9@byu.net>
54392
54393         * lib/error.c (error_at_line, print_errno_message): Match libc, after
54394         resolution of upstream bug 3044.
54395
54396 2006-08-29  Bruno Haible  <bruno@clisp.org>
54397
54398         * modules/localcharset (Depends-on): Add configmake.
54399         (Makefile.am): Remove setting of LIBDIR through DEFS.
54400
54401 2006-08-29  Bruno Haible  <bruno@clisp.org>
54402
54403         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
54404         defined.
54405
54406 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
54407
54408         * modules/fcntl: New file.
54409         * modules/chdir-safer (Depends-on): Add fcntl.
54410         * modules/fts: Likewise.
54411         * modules/mkdir-p: Likewise.
54412
54413         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
54414         This undoes the most recent change, since we're now addressing the
54415         problem in a different way.
54416
54417         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
54418         into output, since the output might be called Makefile.am even
54419         if $makefile_name is something different.
54420         (func_import): Use $makefile_am rather than
54421         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
54422         empty.
54423
54424         * modules/inttypes (Files): Add m4/inttypes-h.m4.
54425
54426 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
54427
54428         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
54429         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
54430         recent change to stdint.m4, since we're now addressing the problem in a
54431         different way.
54432
54433 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
54434
54435         * m4/fcntl_h.m4: New file.
54436
54437 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
54438
54439         * lib/fcntl_.h: New file.
54440         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
54441         the fcntl module.
54442         * lib/dirchownmod.c: Likewise.
54443         * lib/fts.c: Likewise.
54444
54445         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
54446         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
54447         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
54448         just before including <inttypes.h>, to avoid circular inclusion.
54449
54450 2006-08-28  Jim Meyering  <jim@meyering.net>
54451
54452         * doc/visibility.texi: Actually read and correct the grammar of the
54453         sentence affected by yesterday's change.
54454
54455 2006-08-28  Eric Blake  <ebb9@byu.net>
54456
54457         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
54458         needs wrapper.
54459
54460 2006-08-28  Eric Blake  <ebb9@byu.net>
54461
54462         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
54463
54464 2006-08-28  Eric Blake  <ebb9@byu.net>
54465
54466         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
54467
54468 2006-08-28  Bruno Haible  <bruno@clisp.org>
54469
54470         * modules/c-strstr: New file, from GNU gettext.
54471         * MODULES.html.sh (String handling): Add c-strstr.
54472
54473 2006-08-28  Bruno Haible  <bruno@clisp.org>
54474
54475         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
54476         macros.
54477         Reported by Eric Blake.
54478
54479 2006-08-28  Bruno Haible  <bruno@clisp.org>
54480
54481         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
54482         (VASNPRINTF): Return a string of length > INT_MAX without failing.
54483         * lib/vasprintf.c: Include errno.h, limits.h.
54484         (EOVERFLOW): New fallback definition.
54485         (vasprintf): Test here whether the string length is > INT_MAX.
54486         * lib/vsnprintf.c: Include errno.h, limits.h.
54487         (EOVERFLOW): New fallback definition.
54488         (vsnprintf): Fix bug when generated string was too long for the buffer.
54489         Test here whether the string length is > INT_MAX.
54490
54491 2006-08-28  Bruno Haible  <bruno@clisp.org>
54492
54493         * lib/inttypes_.h (SCNX*): Remove definitions.
54494         Reported by Eric Blake.
54495
54496 2006-08-28  Bruno Haible  <bruno@clisp.org>
54497
54498         * lib/c-strstr.h: New file, from GNU gettext.
54499         * lib/c-strstr.c: New file, from GNU gettext.
54500
54501 2006-08-28  Bruno Haible  <bruno@clisp.org>
54502
54503         * gnulib-tool: Reorder some statements.
54504
54505 2006-08-28  Bruno Haible  <bruno@clisp.org>
54506
54507         * gnulib-tool: New option --makefile-name.
54508         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
54509         $makefile_name.
54510         (func_import): Write $makefile_name to the cache file, and read it from
54511         there unless explicitly specified. Use $makefile_name as file name
54512         instead of Makefile.am. Adjust the recommendations accordingly.
54513
54514 2006-08-28  Bruno Haible  <bruno@clisp.org>
54515
54516         * gnulib-tool (func_verify_module): Check against misapplying patch.
54517
54518 2006-08-28  Bruno Haible  <bruno@clisp.org>
54519
54520         * gnulib-tool (func_relativize, func_relconcat): New functions.
54521         Give an error if --local-dir is given with --update.
54522         Remove trailing slashes from $local_gnulib_dir.
54523         (func_import): Store the relativized $local_gnulib_dir in
54524         gnulib-cache.m4, and read it from there if not specified explicitly.
54525
54526 2006-08-28  Bruno Haible  <bruno@clisp.org>
54527
54528         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
54529         is the current directory. Respect also $local_gnulib_dir.
54530
54531 2006-08-28  Bruno Haible  <bruno@clisp.org>
54532             Simon Josefsson  <jas@extundo.com>
54533
54534         BeOS portability.
54535         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
54536
54537 2006-08-27  Jim Meyering  <jim@meyering.net>
54538
54539         * doc/visibility.texi: Remove duplicate word: "pointer".
54540
54541 2006-08-26  Bruno Haible  <bruno@clisp.org>
54542
54543         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
54544         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
54545         (Makefile.am): Create inttypes.h from inttypes_.h.
54546         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
54547
54548         * modules/imaxabs: New file.
54549
54550         * modules/imaxdiv: New file.
54551
54552 2006-08-26  Bruno Haible  <bruno@clisp.org>
54553
54554         * m4/inttypes.m4: New file.
54555         * m4/_inttypes_h.m4: Remove file.
54556         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
54557         PRI_MACROS_BROKEN.
54558         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
54559
54560         * m4/imaxabs.m4: New file.
54561
54562         * m4/imaxdiv.m4: New file.
54563
54564 2006-08-26  Bruno Haible  <bruno@clisp.org>
54565
54566         * lib/inttypes_.h: New file.
54567         * lib/inttypes.h: Remove file.
54568         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
54569
54570         * lib/imaxabs.c: New file.
54571
54572         * lib/imaxdiv.c: New file.
54573
54574 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54575
54576         New config-h module, so that "make" output needn't be cluttered
54577         by -DHAVE_CONFIG_H.
54578         * MODULES.html.sh (Support for building libraries and executables):
54579         Add config-h.
54580         * modules/config-h: New file.
54581         * gnulib-tool (nl, sed_transform_lib_file): New vars.
54582         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
54583         the config-h module is used.
54584
54585         New configmake module, so that "make" output needn't be cluttered
54586         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
54587         * MODULES.html.sh (Support for building libraries and executables):
54588         Add configmake.
54589         * modules/configmake: New file.
54590
54591 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54592
54593         * m4/config-h.m4: New file.
54594
54595 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54596
54597         * config/srclist.txt: Add elisp-comp.
54598
54599 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54600
54601         * MODULES.html.sh (Support for building libraries and executables):
54602         Add elisp-comp.
54603         * build-aux/elisp-comp: New file.
54604         * modules/elisp-comp: New file.
54605
54606 2006-08-24  Bruno Haible  <bruno@clisp.org>
54607
54608         * gnulib-tool (func_create_testdir): Use non-default values of
54609         sourcebase and m4base.
54610
54611 2006-08-24  Bruno Haible  <bruno@clisp.org>
54612
54613         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
54614         HTML structure.
54615
54616 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54617
54618         * modules/openat (Depends-on): Add lchown.
54619
54620 2006-08-23  Bruno Haible  <bruno@clisp.org>
54621
54622         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
54623         of gl_LOCK_EARLY instead of gl_LOCK.
54624
54625 2006-08-23  Bruno Haible  <bruno@clisp.org>
54626
54627         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
54628         on OSF/1 to no.
54629         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
54630
54631 2006-08-23  Bruno Haible  <bruno@clisp.org>
54632
54633         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
54634         as unusable.
54635
54636         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
54637         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
54638         (gl_LOCK): New macro.
54639
54640 2006-08-22  Simon Josefsson  <jas@extundo.com>
54641
54642         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
54643         to md5 module.
54644
54645 2006-08-22  Simon Josefsson  <jas@extundo.com>
54646
54647         * MODULES.html.sh: Add "Support for maintaining and release
54648         projects".
54649
54650         * build-aux/gnupload: New file, from coreutils.
54651
54652 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
54653
54654         Avoid the need for AC_LIBSOURCES in m4 macros.
54655         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
54656         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
54657         * modules/check-version (EXTRA_DIST): Add check-version.h.
54658         * modules/crc (EXTRA_DIST): Add crc.h.
54659         * modules/des (EXTRA_DIST): Add des.h.
54660         * modules/gc (EXTRA_DIST): Add gc.h.
54661         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
54662         * modules/getline (EXTRA_DIST): Add getline.h.
54663         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
54664         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
54665         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
54666         * modules/md2 (EXTRA_DIST): Add md2.h.
54667         * modules/md4 (EXTRA_DIST): Add md4.h.
54668         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
54669         * modules/read-file (EXTRA_DIST): Add read-file.h.
54670         * modules/readline (EXTRA_DIST): Add readline.h.
54671         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
54672         rijndael-api-fst.h.
54673
54674 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
54675
54676         * m4/rijndael.m4 (gl_ARCFOUR):
54677         * m4/arctwo.m4 (gl_ARCTWO):
54678         * m4/check-version.m4 (gl_CHECK_VERSION):
54679         * m4/crc.m4 (gl_CRC):
54680         * m4/des.m4 (gl_DES):
54681         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
54682         * m4/gc.m4 (gl_GC):
54683         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
54684         * m4/getline.m4 (gl_FUNC_GETLINE):
54685         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
54686         * m4/hmac-md5.m4 (gl_HMAC_MD5):
54687         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
54688         * m4/md2.m4 (gl_MD2):
54689         * m4/md4.m4 (gl_MD4):
54690         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
54691         * m4/read-file.m4 (gl_FUNC_READ_FILE):
54692         * m4/readline.m4 (gl_FUNC_READLINE):
54693         * m4/rijndael.m4 (gl_RIJNDAEL):
54694         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
54695         to get the necessary .h files and whatnot.
54696
54697 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
54698
54699         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
54700         gnulib rather than the other way around.
54701         * config/srclistvars.sh (COREUTILS): Remove.
54702
54703 2006-08-22  Jim Meyering  <jim@meyering.net>
54704
54705         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
54706
54707         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
54708
54709 2006-08-22  Eric Blake  <ebb9@byu.net>
54710
54711         * modules/regexprops-generic: New file.
54712         * MODULES.html.sh (Support for building documentation): List it.
54713
54714 2006-08-22  Eric Blake  <ebb9@byu.net>
54715
54716         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
54717         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
54718         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
54719         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
54720
54721 2006-08-22  Bruno Haible  <bruno@clisp.org>
54722
54723         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
54724         and lib_LTLIBRARIES like the other lib_* variables.
54725
54726 2006-08-22  Bruno Haible  <bruno@clisp.org>
54727
54728         * build-aux/x-to-1.in: New file, from GNU gettext.
54729
54730 2006-08-22  Bruno Haible  <bruno@clisp.org>
54731
54732         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
54733         <utmpx.h> exists.
54734
54735 2006-08-22  Bruno Haible  <bruno@clisp.org>
54736
54737         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
54738         <utmpx.h> exists.
54739
54740 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
54741
54742         BeOS portability.
54743         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
54744         exist.
54745         Problem reported by Bruno Haible.
54746
54747 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
54748
54749         Avoid the need for AC_LIBSOURCES in m4 macros.
54750         * modules/acl (EXTRA_DIST): Add acl.h.
54751         * modules/argmatch (Files): Add m4/argmatch.m4.
54752         (configure.ac): Add gl_ARGMATCH.
54753         (EXTRA_DIST): Renamed from lib_SOURCES, for
54754         consistency with the other modules.  Remove argmatch.c.
54755         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
54756         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
54757         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
54758         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
54759         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
54760         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
54761         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
54762         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
54763         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
54764         * modules/closeout (EXTRA_DIST): Add closeout.h.
54765         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
54766         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
54767         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
54768         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
54769         dirname.h; remove basename.c and stripslash.c.
54770         * modules/exclude (EXTRA_DIST): Add exclude.h.
54771         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
54772         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
54773         * modules/file-type (EXTRA_DIST): Add file-type.h.
54774         * modules/filemode (EXTRA_DIST): Add filemode.h.
54775         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
54776         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
54777         * modules/fpending (EXTRA_DIST): Add __fpending.h.
54778         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
54779         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
54780         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
54781         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
54782         * modules/getdate (EXTRA_DIST): Add getdate.c.
54783         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
54784         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
54785         * modules/getpass (EXTRA_DIST): Add getpass.h.
54786         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
54787         * modules/group-member (EXTRA_DIST): Add group-member.h.
54788         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
54789         * modules/hash (EXTRA_DIST): Add hash.h.
54790         * modules/human (EXTRA_DIST): Add human.h.
54791         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
54792         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
54793         * modules/lchown (EXTRA_DIST): Add lchown.h.
54794         * modules/long-options (EXTRA_DIST): Add long-options.h.
54795         * modules/lstat (EXTRA_DIST): Add lstat.h.
54796         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
54797         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
54798         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
54799         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
54800         * modules/memxor (EXTRA_DIST): Add memxor.h.
54801         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
54802         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
54803         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
54804         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
54805         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
54806         * modules/physmem (EXTRA_DIST): Add physmem.h.
54807         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
54808         * modules/posixver (EXTRA_DIST): Add posixver.h.
54809         * modules/quote (EXTRA_DIST): Add quote.h.
54810         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
54811         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
54812         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
54813         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
54814         regex_internal.h regexec.c.
54815         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
54816         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
54817         * modules/same (EXTRA_DIST): Add same.h.
54818         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
54819         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
54820         * modules/savedir (EXTRA_DIST): Add savedir.h.
54821         * modules/sha1 (EXTRA_DIST): Add sha1.h.
54822         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
54823         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
54824         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
54825         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
54826         * modules/strdup (EXTRA_DIST): Add strdup.h.
54827         * modules/strftime (EXTRA_DIST): Add strftime.h.
54828         * modules/strndup (EXTRA_DIST): Add strndup.h.
54829         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
54830         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
54831         * modules/time_r (EXTRA_DIST): Add time_r.h.
54832         * modules/timespec (EXTRA_DIST): Add timespec.h.
54833         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
54834         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
54835         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
54836         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
54837         * modules/userspec (EXTRA_DIST): Add userspec.h.
54838         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
54839         * modules/utimens (EXTRA_DIST): Add utimens.h.
54840         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
54841         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
54842         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
54843         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
54844         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
54845         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
54846         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
54847         * modules/yesno (EXTRA_DIST): Add yesno.h.
54848
54849 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
54850
54851         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
54852
54853         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
54854         * m4/dev-ino.m4, same-inode.m4: Remove.
54855
54856         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
54857         * m4/acl.m4 (AC_FUNC_ACL):
54858         * m4/backupfile.m4 (gl_BACKUPFILE):
54859         * m4/c-strtod.m4 (gl_C99_STRTOLD):
54860         * m4/canon-host.m4 (gl_CANON_HOST):
54861         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
54862         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
54863         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
54864         * m4/cloexec.m4 (gl_CLOEXEC):
54865         * m4/close-stream.m4 (gl_CLOSE_STREAM):
54866         * m4/closeout.m4 (gl_CLOSEOUT):
54867         * m4/dirfd.m4 (gl_FUNC_DIRFD):
54868         * m4/dirname.m4 (gl_DIRNAME):
54869         * m4/exclude.m4 (gl_EXCLUDE):
54870         * m4/exitfail.m4 (gl_EXITFAIL):
54871         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
54872         * m4/file-type.m4 (gl_FILE_TYPE):
54873         * m4/filemode.m4 (gl_FILEMODE):
54874         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
54875         * m4/fpending.m4 (gl_FUNC_FPENDING):
54876         * m4/fprintftime.m4 (gl_FPRINTFTIME):
54877         * m4/fts.m4 (gl_FUNC_FTS):
54878         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
54879         * m4/getdate.m4 (gl_GETDATE):
54880         * m4/gethrxtime.m4 (gl_GETHRXTIME):
54881         * m4/getpagesize.m4 (gl_GETPAGESIZE):
54882         * m4/getpass.m4 (gl_FUNC_GETPASS):
54883         * m4/gettime.m4 (gl_GETTIME):
54884         * m4/getugroups.m4 (gl_GETUGROUPS):
54885         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
54886         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
54887         * m4/hard-locale.m4 (gl_HARD_LOCALE):
54888         * m4/hash.m4 (gl_HASH):
54889         * m4/idcache.m4 (gl_IDCACHE):
54890         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
54891         * m4/lchown.m4 (gl_FUNC_LCHOWN):
54892         * m4/long-options.m4 (gl_LONG_OPTIONS):
54893         * m4/lstat.m4 (gl_FUNC_LSTAT):
54894         * m4/md5.m4 (gl_MD5):
54895         * m4/memcasecmp.m4 (gl_MEMCASECMP):
54896         * m4/memcoll.m4 (gl_MEMCOLL):
54897         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
54898         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
54899         * m4/memxor.m4 (gl_MEMXOR):
54900         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
54901         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
54902         * m4/modechange.m4 (gl_MODECHANGE):
54903         * m4/mountlist.m4 (gl_MOUNTLIST):
54904         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
54905         * m4/openat.m4 (gl_FUNC_OPENAT):
54906         * m4/pathmax.m4 (gl_PATHMAX):
54907         * m4/physmem.m4 (gl_PHYSMEM):
54908         * m4/posixtm.m4 (gl_POSIXTM):
54909         * m4/posixver.m4 (gl_POSIXVER):
54910         * m4/quote.m4 (gl_QUOTE):
54911         * m4/quotearg.m4 (gl_QUOTEARG):
54912         * m4/readtokens.m4 (gl_READTOKENS):
54913         * m4/readutmp.m4 (gl_READUTMP):
54914         * m4/regex.m4 (gl_REGEX):
54915         * m4/safe-read.m4 (gl_SAFE_READ):
54916         * m4/safe-write.m4 (gl_SAFE_WRITE):
54917         * m4/same.m4 (gl_SAME):
54918         * m4/save-cwd.m4 (gl_SAVE_CWD):
54919         * m4/savedir.m4 (gl_SAVEDIR):
54920         * m4/settime.m4 (gl_SETTIME):
54921         * m4/sha1.m4 (gl_SHA1):
54922         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
54923         * m4/stat-macros.m4 (gl_STAT_MACROS):
54924         * m4/stat-time.m4 (gl_STAT_TIME):
54925         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
54926         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
54927         * m4/strdup.m4 (gl_FUNC_STRDUP):
54928         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
54929         * m4/strndup.m4 (gl_FUNC_STRNDUP):
54930         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
54931         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
54932         * m4/time_r.m4 (gl_TIME_R):
54933         * m4/timespec.m4 (gl_TIMESPEC):
54934         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
54935         * m4/unlinkdir.m4 (gl_UNLINKDIR):
54936         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
54937         * m4/userspec.m4 (gl_USERSPEC):
54938         * m4/utimecmp.m4 (gl_UTIMECMP):
54939         * m4/utimens.m4 (gl_UTIMENS):
54940         * m4/xalloc.m4 (gl_XALLOC):
54941         * m4/xgetcwd.m4 (gl_XGETCWD):
54942         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
54943         * m4/xreadlink.m4 (gl_XREADLINK):
54944         * m4/xstrtod.m4 (gl_XSTRTOD):
54945         * m4/yesno.m4 (gl_YESNO):
54946         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
54947         to get the necessary .h files and whatnot.
54948
54949 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
54950             Bruno Haible  <bruno@clisp.org>
54951
54952         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
54953         /bin/sh understanding of '!' conditional negation.
54954
54955 2006-08-21  Jim Meyering  <jim@meyering.net>
54956
54957         * modules/openat (Depends-on): Really alphabetize.
54958
54959         * modules/acl (Depends-on): Add error and quote.
54960
54961         * check-module (find_included_lib_files): Add at-func.c to the
54962         ok-to-include-more-than-once white list.
54963
54964         * modules/openat (Depends-on): Add lstat.  Alphabetize.
54965
54966 2006-08-21  Bruno Haible  <bruno@clisp.org>
54967
54968         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54969         Emit a pkgdata_DATA variable only if some snippets add contents to it.
54970         Reported by Martin Lambers <marlam@marlam.de>.
54971
54972 2006-08-21  Bruno Haible  <bruno@clisp.org>
54973
54974         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
54975         specify an installation location, don't emit a noinst_LIBRARIES or
54976         noinst_LTLIBRARIES assignment.
54977
54978 2006-08-21  Bruno Haible  <bruno@clisp.org>
54979
54980         BeOS portability.
54981         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
54982         BeOS has mbrtowc() but no <wctype.h>.
54983
54984 2006-08-21  Bruno Haible  <bruno@clisp.org>
54985
54986         BeOS portability.
54987         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
54988         exist.
54989
54990 2006-08-21  Bruno Haible  <bruno@clisp.org>
54991
54992         BeOS portability.
54993         * lib/mbchar.h: Include <wctype.h> only if it exists.
54994
54995 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54996
54997         Remove files that are no longer needed by their respective modules.
54998         * m4/obstack.m4: Remove.
54999         * m4/strerror_r.m4: Remove.
55000         * m4/uint32_t.m4: Remove.
55001         * m4/uintptr_t.m4: Remove.
55002         * m4/ullong_max.m4: Remove.
55003         * m4/xstrtoimax.m4: Remove.
55004         * m4/xstrtoumax.m4: Remove.
55005
55006         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
55007         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
55008         dependencies now capture this.
55009
55010         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
55011         Do not use AC_LIBSOURCES, since gnulib modules now do this.
55012         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
55013         * m4/human.m4 (gl_HUMAN): Likewise.
55014         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
55015         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
55016
55017         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
55018
55019         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
55020         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
55021         stdint.
55022         * m4/human.m4 (gl_HUMAN): Likewise.
55023         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
55024         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
55025         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
55026         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
55027         * m4/xstrtol (gl_XSTRTOL): Likewise.
55028
55029         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
55030         AC_TYPE_LONG_LONG_INT.
55031         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
55032         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
55033         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
55034         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
55035
55036         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
55037         on stdbool.
55038
55039         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
55040         (gl_PREREQ_XSTRTOUL): Remove.
55041
55042         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
55043
55044         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
55045         mode.
55046
55047 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
55048
55049         Add and change modules to make it easier for coreutils to use
55050         gnulib-tool.
55051         * modules/backupfile (Files): Remove m4/d-ino.m4.
55052         (Depends-on): Add d-ino.
55053         * modules/cycle-check (Depends-on): Add stdint.
55054         (lib_SOURCES): Add cycle-check.h.
55055         * modules/d-ino: New module.
55056         * modules/d-type: New module.
55057         * modules/error (Files): Remove m4/strerror_r.m4.
55058         * modules/filemode (Files): Add m4/st_dm_mode.m4.
55059         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
55060         m4/inttypes_h.m4, m4/uintmax_t.m4.
55061         (Depends-on): Add stdint.
55062         (lib_SOURCES): Add fsusage.h.
55063         * modules/getcwd (Files): Remove d-ino.m4.
55064         (Depends-on): Add d-ino.
55065         * modules/getndelim2 (Depends-on): Add stdint.
55066         * modules/glob (Files): Remove m4/d-type.m4.
55067         (Depends-on): Add d-type.
55068         * modules/host-os: New module.
55069         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
55070         m4/inttypes_h.m4, m4/uintmax_t.m4.
55071         * Depends-on: Add stdint.
55072         (lib_SOURCES): Add human.h.
55073         * modules/inttostr (Files): Remove m4/intmax_t.m4,
55074         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
55075         m4/uintmax_t.m4, m4/ulonglong.m4.
55076         (Depends-on): Add stdint.
55077         (EXTRA_DIST): Add inttostr.h.
55078         * modules/lchmod: New module.
55079         * modules/link-follow: New module.
55080         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
55081         (Depends-on): Add lchmod.
55082         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
55083         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
55084         (Depends-on): Add stdint.
55085         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
55086         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
55087         (Depends-on): Add stdint.
55088         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
55089         * modules/perl: New module.
55090         * modules/regex (Depends-on): Add stdint.
55091         * modules/rmdir-errno: New module.
55092         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
55093         m4/intmax_t.m4.
55094         (Depends-on): Add stdint.
55095         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
55096         m4/uintmax_t.m4.
55097         (Depends-on): Add stdint.
55098         * modules/unlink-busy: New module.
55099         * modules/utimecmp (Depends-on): Add stdint.
55100         * modules/uptime: New module.
55101         * modules/winsz-ioctl: New module.
55102         * modules/winsz-termios: New module.
55103         * modules/xnanosleep (Depends-on): Add nanosleep.
55104         * modules/ullong_max: Remove.
55105         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
55106         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
55107         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
55108         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
55109         (Depends-on): Add inttypes.
55110         (lib_SOURCES): Add xstrtol.h.
55111         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
55112         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
55113         * MODULES.html.sh: Move 'assert' into the assert section.
55114         Move 'dummy' into the linking section.
55115         Remove ullong_max.
55116         Add section for compatibility checks for POSIX:2001 functions,
55117         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
55118         winsz-ioctl, and winsz-termios into it.
55119         Add lchmod.
55120         Add top-level Misc section and put host-os, perl, and uptime
55121         into it.
55122
55123 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
55124
55125         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
55126         now assume the stdint module.  Do not include inttypes.h.
55127         * lib/fsusage.h: Likewise.
55128         * lib/getndelim2.c: Likewise.
55129         * lib/human.h: Likewise.
55130         * lib/inttostr.h: Likewise.
55131         * lib/obstack.c: Likewise.
55132         * lib/regex_internal.h: Likewise.
55133         * lib/tempname.c: Likewise.
55134         * lib/utimecmp.c: Likewise.
55135         * lib/xstrtol.h: Likewise.
55136
55137         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
55138
55139         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
55140         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
55141         * lib/xtime.h: Likewise.
55142
55143 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55144
55145         * modules/openat (Files): Add lib/fchmodat.c.
55146         Fixes problem reported by Jay Youngman.
55147
55148 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55149
55150         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
55151         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
55152
55153 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
55154             Bruno Haible  <bruno@clisp.org>
55155
55156         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
55157         and is a script that invokes bison. Tighten the code. Add comments.
55158
55159 2006-08-18  Jim Meyering  <jim@meyering.net>
55160
55161         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
55162         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
55163         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
55164         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
55165
55166 2006-08-18  Bruno Haible  <bruno@clisp.org>
55167
55168         * modules/bison-i18n: New file.
55169         * MODULES.html.sh (Internationalization functions): Add it.
55170
55171 2006-08-18  Bruno Haible  <bruno@clisp.org>
55172
55173         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
55174         sys/statvfs.h. When getmntinfo was found, check its declaration and
55175         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
55176
55177 2006-08-18  Bruno Haible  <bruno@clisp.org>
55178
55179         * m4/bison-i18n.m4: New file, from bison.
55180
55181 2006-08-18  Bruno Haible  <bruno@clisp.org>
55182
55183         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
55184         (ME_DUMMY): Treat "kernfs" as a dummy.
55185         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
55186
55187 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
55188
55189         Update from coreutils.
55190
55191         2006-08-15  Jim Meyering  <jim@meyering.net>
55192
55193         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
55194
55195         2006-01-17  Jim Meyering  <jim@meyering.net>
55196
55197         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
55198
55199         2006-01-11  Jim Meyering  <jim@meyering.net>
55200
55201         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
55202         Check for the lchmod function.
55203
55204 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
55205
55206         Update from coreutils.
55207
55208         * lib/__fpending.h: Add copyright notice.
55209         * lib/fprintftime.h: Likewise.
55210         * lib/savedir.c: Use (C) in copyright notice.
55211         * lib/savedir.h: Likewise.
55212
55213         2006-08-15  Jim Meyering  <jim@meyering.net>
55214
55215         * lib/at-func.c: New file, with the logic of all emulated at-functions.
55216         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
55217         in support of the EXPECTED_ERRNO macro.
55218         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
55219         definitions.  Instead, define the appropriate symbols and include
55220         "at-func.c".
55221         * lib/mkdirat.c (mkdirat): Likewise.
55222         * lib/fchmodat.c (fchmodat): Likewise.
55223         (ENOSYS): Remove definition.
55224         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
55225         it.  Don't include "unistd--.h" -- it wasn't ever used.
55226
55227         2006-01-17  Jim Meyering  <jim@meyering.net>
55228
55229         Rewrite fts.c not to change the current working directory,
55230         by using openat, fstatat, fdopendir, etc..
55231
55232         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
55233         (HAVE_OPENAT_SUPPORT): Define.
55234         [_LIBC] (fchdir): Don't undef or define; no longer used.
55235         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
55236         Now, this `function' always succeeds, and consumes its file descriptor
55237         parameter -- so callers must not close such FDs.  Update callers.
55238         (diropen_fd, opendirat, cwd_advance_fd): New functions.
55239         (diropen): Add parameter, SP.  Adjust all callers.
55240         Implement using diropen_fd, rather than open.
55241         (fts_open): Initialize new member, fts_cwd_fd.
55242         Remove fts_rft-setting code.
55243         (fts_close): Close fts_cwd_fd, if necessary.
55244         (__opendir2): Define in terms of opendir or opendirat,
55245         depending on whether the FST_NOCHDIR flag is set.
55246         (fts_build): Since fts_safe_changedir consumes its FD, and since
55247         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
55248         and close the dup'd file descriptor upon failure.
55249         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
55250         (fts_safe_changedir): Tweak semantics to reflect that this function
55251         now calls cwd_advance_fd and hence consumes its FD argument.
55252         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
55253         [struct FTS] (fts_rft): Remove now-unused member.
55254         [struct FTS] (fts_cycle.state): Improve comment.
55255
55256         * lib/openat.c (openat_needs_fchdir): New function.
55257         * lib/openat.h (openat_needs_fchdir): Declare it.
55258
55259 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
55260
55261         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
55262         Problem and fix reported by Pádraig Brady in
55263         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
55264
55265 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55266
55267         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
55268
55269 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55270
55271         * lib/memcoll.c (memcoll): Optimize for the common case where the
55272         arguments are bytewise equal.
55273
55274 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55275
55276         * doc/regexprops-generic.texi: Add a copyright notice.
55277
55278 2006-08-15  Bruno Haible  <bruno@clisp.org>
55279
55280         * modules/tmpdir (License): Change to LGPL.
55281
55282 2006-08-15  Bruno Haible  <bruno@clisp.org>
55283
55284         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
55285         module.
55286
55287 2006-08-14  Simon Josefsson  <jas@extundo.com>
55288
55289         * config/srclist.txt: Add gnupload.
55290
55291 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55292
55293         Change copyright notice from LGPL 2 to GPL 2, since that's the
55294         standard form used in the gnulib repository.
55295         * tests/test-lock.c: Likewise.
55296         * tests/test-stdint.c: Likewise.
55297         * tests/test-tls.c: Likewise.
55298
55299         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
55300         prelude-manager.  User shorter URLs for GNU projects, without '?'.
55301         Add copyright notice.
55302
55303         * check-module: Add copyright notice.  Output a copyright
55304         notice if "--version" is specified.
55305         * modules/COPYING: New file.
55306         * tests/test-getaddrinfo.c: Add copyright notice.
55307         * tests/test-verify.c: Likewise.
55308
55309 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55310
55311         Change copyright notice from LGPL 2 to GPL 2, since that's the
55312         standard form used in the gnulib repository.
55313         * lib/lock.c: LGPL -> GPL.
55314         * lib/lock.h: Likewise.
55315         * lib/strnlen1.c: Likewise.
55316         * lib/strnlen1.h: Likewise.
55317         * lib/tls.c: Likewise.
55318         * lib/tls.h: Likewise.
55319         * lib/tmpdir.c: Likewise.
55320
55321         * lib/TODO: Remove; this belongs only in coreutils.
55322
55323 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55324
55325         Add copyright notices to long-enough files that lack them, since
55326         otherwise the files aren't clearly free.  Use the same notice that
55327         getdate.texi already uses.
55328         * doc/alloca-opt.texi: Add copyright notice.
55329         * doc/alloca.texi: Likewise.
55330         * doc/ctime.texi: Likewise.
55331         * doc/functions.texi: Likewise.
55332         * doc/gcd.texi: Likewise.
55333         * doc/gnulib-tool.texi: Likewise.
55334         * doc/inet_ntoa.texi: Likewise.
55335         * doc/visibility.texi: Likewise.
55336
55337         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
55338         * doc/quote.texi: Add copyright notice.
55339
55340         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
55341         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
55342         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
55343         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
55344         is now obsolete, and give a pointer to the Sun list.
55345         Add copyright notice.
55346
55347 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55348
55349         * config/srclistvars.sh: Add copyright notice.
55350
55351 2006-08-14  Eric Blake  <ebb9@byu.net>
55352
55353         Import the following change from libc:
55354
55355         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
55356
55357         Upstream bug 2997.
55358         * lib/misc/error.c: Add space between program name and message if file
55359         name is missing.
55360
55361 2006-08-12  Karl Berry  <karl@gnu.org>
55362
55363         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
55364         remove, these originate in gnulib now.
55365
55366 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55367
55368         * doc/Makefile (standards.info standards.html standards.dvi):
55369         Also depend on make-stds.texi.
55370
55371 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55372
55373         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
55374         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
55375
55376         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
55377         in wchar_t.  Problem reported by Eric Blake.
55378
55379         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
55380         LEN is smaller than SIZE.  Suggested by Bruno Haible.
55381         Also, help the compiler to keep LEN in a register.
55382
55383 2006-08-11  Eric Blake  <ebb9@byu.net>
55384
55385         * users.txt: Sort.  Add tar.
55386
55387 2006-08-11  Bruno Haible  <bruno@clisp.org>
55388
55389         * users.txt: New file.
55390
55391 2006-08-11  Bruno Haible  <bruno@clisp.org>
55392
55393         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
55394         before <wchar.h>. Needed for OSF/1 and BSD/OS.
55395
55396 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
55397
55398         * modules/snprintf (Depends-on): Remove minmax.
55399         (Maintainer): Add self and Bruno.
55400
55401 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
55402
55403         * lib/.cppi-disable: Add snprintf.h, socket_.h.
55404         * lib/snprintf.c: Include <errno.h> and <limits.h>.
55405         (EOVERFLOW): Define if the system does not.
55406         Do not include "minmax.h"; it wasn't used.
55407         (snprintf): Don't assume size_t promotes to an unsigned type.
55408         Fix bug when generated string was too long for the buffer: the
55409         buffer's contents are supposed to be the initial prefix of the
55410         output.  Don't assume vasnprintf returns EOVERFLOW if the size
55411         exceeds INT_MAX; do the check ourselves.
55412
55413         Import the following changes from libc:
55414
55415         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
55416
55417         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
55418         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
55419         set wc to the byte which couldn't be converted.
55420         (re_string_reconstruct): Don't clear valid_raw_len before calling
55421         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
55422         tip_context using re_string_context_at.
55423
55424         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
55425
55426         * lib/posix/regex.h: g++ still cannot handled [restrict].
55427
55428         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
55429
55430         * lib/posix/regex.h: Remove special handling for VMS.
55431
55432 2006-08-10  Jim Meyering  <jim@meyering.net>
55433
55434         * modules/same-inode: New module.
55435         * modules/dev-ino: New module.
55436         * modules/cycle-check: Depend on these modules, rather than simply
55437         including their .h files.
55438         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
55439         required via m4/cycle-check.m4.
55440         * modules/same: Depend on new same-inode module, rather than
55441         including same-inode.h.
55442         * modules/chdir-safer: New file.
55443
55444         * modules/chown (Depends-on): Add stat-macros.
55445
55446 2006-08-10  Jim Meyering  <jim@meyering.net>
55447
55448         * m4/cycle-check.m4: New file.
55449         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
55450         * m4/dev-ino.m4, m4/same-inode.m4: New files.
55451
55452 2006-08-10  Eric Blake  <ebb9@byu.net>
55453
55454         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
55455         in from original proposal.
55456
55457 2006-08-10  Eric Blake  <ebb9@byu.net>
55458         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
55459
55460         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
55461         namespace.
55462
55463 2006-08-10  Bruno Haible  <bruno@clisp.org>
55464
55465         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
55466         as well.
55467
55468 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55469
55470         Sync from coreutils.
55471
55472         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
55473
55474         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
55475         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
55476
55477 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55478
55479         * modules/restrict: Remove; no longer needed now that we assume
55480         Autoconf 2.59 or later.
55481         * MODULES.html.sh: Remove 'restrict'.
55482         * modules/argp (Depends-on): Remove 'restrict'.
55483         * modules/base64 (Depends-on): Likewise.
55484         * modules/gc (Depends-on): Likewise.
55485         * modules/getaddrinfo (Depends-on): Likewise.
55486         * modules/glob (Depends-on): Likewise.
55487         * modules/inet_ntop (Depends-on): Likewise.
55488         * modules/inet_pton (Depends-on): Likewise.
55489         * modules/memxor (Depends-on): Likewise.
55490         * modules/regex (Depends-on): Likewise.
55491         * modules/strtok_r (Depends-on): Likewise.
55492         * modules/time_r (Depends-on): Likewise.
55493
55494 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55495
55496         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
55497         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
55498         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
55499         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
55500         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
55501         * m4/memxor.m4 (gl_MEMXOR): Likewise.
55502         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
55503         gl_C_RESTRICT replaced by AC_C_RESTRICT.
55504
55505         Merge from coreutils.
55506         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
55507         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
55508         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55509         * m4/time_r.m4 (gl_TIME_R): Likewise.
55510
55511 2006-08-09  Karl Berry  <karl@gnu.org>
55512
55513         * config/srclist.txt: no more gettext-tools, per Bruno.
55514
55515 2006-08-08  Eric Blake  <ebb9@byu.net>
55516
55517         * modules/verror: New module.
55518         * MODULES.html.sh: Document it.
55519
55520 2006-08-08  Eric Blake  <ebb9@byu.net>
55521
55522         * lib/verror.h, lib/verror.c: New files.
55523
55524 2006-08-08  Eric Blake  <ebb9@byu.net>
55525
55526         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
55527         verror_at_line output complies with GNU Coding Standards even when
55528         file is NULL.
55529
55530 2006-08-07  Bruno Haible  <bruno@clisp.org>
55531
55532         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
55533         versions of AIX.
55534         Reported by Ralf Wildenhues.
55535
55536 2006-08-07  Bruno Haible  <bruno@clisp.org>
55537
55538         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
55539         in an AC_DEFUN. Needed so that the autoconf snippets can use
55540         AC_REQUIRE.
55541
55542 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55543
55544         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55545         Initialize pkgdata_DATA.
55546         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
55547         overriding it.
55548
55549 2006-08-06  Eric Blake  <ebb9@byu.net>
55550
55551         * lib/error.h: Fold in some upstream changes from glibc.
55552         * lib/error.c: Likewise.
55553
55554 2006-08-04  Bruno Haible  <bruno@clisp.org>
55555
55556         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55557         Make the mostlyclean-local rule depend on mostlyclean-generic.
55558         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
55559
55560 2006-07-31  Bruno Haible  <bruno@clisp.org>
55561
55562         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
55563         <stdlib.h>, <string.h>.
55564
55565 2006-07-30  Bruno Haible  <bruno@clisp.org>
55566
55567         * modules/readlink (License): Change to LGPL.
55568
55569 2006-07-30  Bruno Haible  <bruno@clisp.org>
55570
55571         * modules/javaversion (Makefile.am): Distribute javaversion.java and
55572         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
55573         set PKGDATADIR to point to it.
55574
55575 2006-07-30  Bruno Haible  <bruno@clisp.org>
55576
55577         * modules/csharpexec (configure.ac): Comment out macro invocation.
55578         * modules/javaexec (configure.ac): Likewise.
55579         * modules/javacomp-script (configure.ac): Likewise.
55580
55581         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
55582
55583 2006-07-30  Bruno Haible  <bruno@clisp.org>
55584
55585         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
55586         linked-list.
55587
55588 2006-07-30  Bruno Haible  <bruno@clisp.org>
55589
55590         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
55591
55592 2006-07-30  Bruno Haible  <bruno@clisp.org>
55593
55594         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55595         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
55596         get removed.
55597
55598 2006-07-29  Bruno Haible  <bruno@clisp.org>
55599
55600         Make it possible for gnulib-tool to work with locally modified or
55601         augmented gnulib repositories.
55602         * gnulib-tool (func_usage): Document --local-dir option.
55603         (local_gnulib_dir): New variable.
55604         Handle --local-dir option.
55605         (func_lookup_file): New function.
55606         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
55607         (func_get_description, func_get_filelist, func_get_description,
55608         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
55609         func_get_automake_snippet, func_get_include_directive,
55610         func_get_license, func_get_maintainer): Use func_lookup_file.
55611         (func_import, func_create_testdir): Use func_lookup_file.
55612
55613 2006-07-29  Bruno Haible  <bruno@clisp.org>
55614
55615         * modules/setenv (Depends-on): Add unistd.
55616
55617 2006-07-29  Bruno Haible  <bruno@clisp.org>
55618
55619         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
55620
55621 2006-07-29  Bruno Haible  <bruno@clisp.org>
55622
55623         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
55624
55625 2006-07-29  Bruno Haible  <bruno@clisp.org>
55626
55627         * gnulib-tool (import, update): If there is no Makefile.am, look at
55628         aclocal.m4, instead of bailing out.
55629
55630 2006-07-29  Bruno Haible  <bruno@clisp.org>
55631
55632         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
55633         Categorize the options by when they are useful.
55634
55635 2006-07-29  Bruno Haible  <bruno@clisp.org>
55636
55637         * gnulib-tool (func_usage): Document option --no-libtool.
55638         Handle option --no-libtool.
55639         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
55640         for changed semantics of $libtool variable.
55641         (func_import): Likewise. If libtool is not used, show this through
55642         an option --no-libtool.
55643         (func_create_testdir): Update.
55644
55645 2006-07-29  Bruno Haible  <bruno@clisp.org>
55646
55647         * gnulib-tool (func_import): Extend error message about missing
55648         --doc-base.
55649
55650 2006-07-29  Bruno Haible  <bruno@clisp.org>
55651
55652         * gnulib-tool (func_import): Don't create the $docbase directory if
55653         there is no file to store there.
55654
55655 2006-07-29  Bruno Haible  <bruno@clisp.org>
55656
55657         * gnulib-tool (autoconf_minversion): If a --dir option is given and
55658         relevant, look for configure.ac there, not in the current directory.
55659         Also use a simple search for AC_PREREQ, not "autoconf --trace".
55660
55661 2006-07-29  Bruno Haible  <bruno@clisp.org>
55662
55663         * gnulib-tool (SORT): New variable.
55664         (func_usage): Undocument --assume-autoconf option.
55665         Remove --assume-autoconf option handling.
55666         (autoconf_minversion): Determine from the contents of configure.ac.
55667         (func_import): Remove autoconf_minversion handling.
55668         Suggested by Eric Blake.
55669
55670 2006-07-29  Bruno Haible  <bruno@clisp.org>
55671
55672         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
55673
55674 2006-07-29  Bruno Haible  <bruno@clisp.org>
55675
55676         * config/srclist.txt (*setenv.[ch]): Remove rules.
55677
55678 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55679
55680         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
55681
55682 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55683
55684         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
55685         arpa/inet.h.
55686
55687 2006-07-28  Simon Josefsson  <jas@extundo.com>
55688
55689         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
55690         * modules/inet_pton (Depends-on): Likewise.
55691
55692 2006-07-28  Simon Josefsson  <jas@extundo.com>
55693
55694         * m4/netinet_in_h.m4: New file.
55695
55696 2006-07-28  Simon Josefsson  <jas@extundo.com>
55697
55698         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
55699         #include's.
55700
55701 2006-07-28  Simon Josefsson  <jas@extundo.com>
55702
55703         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
55704         #include's.
55705
55706 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
55707
55708         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
55709         setgid on directories only if they set these bits.
55710         * lib/modechange.h: Remove obsolete comment about masks.
55711
55712 2006-07-28  Eric Blake  <ebb9@byu.net>
55713
55714         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
55715         macro expansion.
55716
55717 2006-07-28  Bruno Haible  <bruno@clisp.org>
55718
55719         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
55720
55721 2006-07-28  Bruno Haible  <bruno@clisp.org>
55722
55723         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
55724
55725 2006-07-28  Bruno Haible  <bruno@clisp.org>
55726
55727         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55728         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55729         Define fallbacks.
55730         Avoids link error on FreeBSD 4.x.
55731         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55732
55733         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
55734         encoding.
55735         * lib/mbswidth.c (iswcntrl): Likewise.
55736
55737 2006-07-27  Bruno Haible  <bruno@clisp.org>
55738
55739         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
55740         test.
55741
55742 2006-07-27  Bruno Haible  <bruno@clisp.org>
55743
55744         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
55745         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
55746         defined.
55747
55748 2006-07-26  Eric Blake  <ebb9@byu.net>
55749
55750         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
55751
55752 2006-07-26  Eric Blake  <ebb9@byu.net>
55753
55754         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
55755         like mingw that lack mkstemp.
55756         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
55757         avoid compilation warning on mingw.
55758
55759 2006-07-26  Bruno Haible  <bruno@clisp.org>
55760
55761         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
55762         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
55763         INT_FAST*_MIN, INTPTR_MIN.
55764
55765 2006-07-25  Bruno Haible  <bruno@clisp.org>
55766
55767         * modules/version-etc (Depends-on): Add stdarg.
55768
55769 2006-07-25  Bruno Haible  <bruno@clisp.org>
55770
55771         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
55772         complex commands.
55773
55774 2006-07-25  Bruno Haible  <bruno@clisp.org>
55775
55776         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
55777         defined in <stdarg.h> or config.h.
55778
55779 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
55780
55781         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
55782         (gl_STDIO_SAFER): Remove.
55783
55784 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
55785
55786         * MODULES.html.sh (File stream based Input/Output):
55787         Add fopen-safer, tmpfile-safer; remove stdio-safer.
55788         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
55789         * modules/fopen-safer, modules/tmpfile-safer: New files.
55790         * modules/stdio-safer: Remove.
55791
55792 2006-07-24  Bruno Haible  <bruno@clisp.org>
55793
55794         * modules/tmpdir: New file.
55795         * MODULES.html.sh (File system functions): Add it.
55796
55797 2006-07-24  Bruno Haible  <bruno@clisp.org>
55798
55799         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
55800         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
55801
55802 2006-07-24  Bruno Haible  <bruno@clisp.org>
55803
55804         * modules/clean-temp: New file.
55805
55806 2006-07-24  Bruno Haible  <bruno@clisp.org>
55807
55808         * m4/tmpdir.m4: New file, from GNU gettext.
55809
55810 2006-07-24  Bruno Haible  <bruno@clisp.org>
55811
55812         * lib/tmpdir.h: New file, from GNU gettext.
55813         * lib/tmpdir.c: New file, from GNU gettext.
55814
55815 2006-07-24  Bruno Haible  <bruno@clisp.org>
55816
55817         * lib/clean-temp.h: New file, from GNU gettext.
55818         * lib/clean-temp.c: New file, from GNU gettext.
55819
55820 2006-07-23  Eric Blake  <ebb9@byu.net>
55821
55822         * modules/stdio-safer (Files): Add tmpfile-safer.c.
55823         (Depends-on): Add binary-io.
55824
55825 2006-07-23  Eric Blake  <ebb9@byu.net>
55826
55827         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
55828
55829 2006-07-23  Eric Blake  <ebb9@byu.net>
55830
55831         * lib/tmpfile-safer.c: New file.
55832         * lib/stdio-safer.h (fopen_safer): Add prototype.
55833         * lib/stdio--.h (tmpfile): Make safer.
55834
55835 2006-07-23  Bruno Haible  <bruno@clisp.org>
55836
55837         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
55838         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
55839         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
55840         gl_linked_remove_at): Use it.
55841
55842 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55843         and Simon Josefsson <jas@extundo.com>
55844
55845         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
55846
55847         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
55848
55849 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
55850
55851         * modules/close-stream: New file.
55852         * modules/closeout (Description): Make it clear that it exits
55853         with a diagnostic on error.
55854         (Depends-on): Add close-stream.  Remove fpending, stdbool.
55855         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
55856
55857 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
55858
55859         * m4/close-stream.m4: New file.
55860
55861 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
55862
55863         * lib/close-stream.c, lib/close-stream.h: New files.
55864
55865 2006-07-22  Bruno Haible  <bruno@clisp.org>
55866
55867         Merge from GNU gettext 0.15.
55868
55869         2006-05-01  Bruno Haible  <bruno@clisp.org>
55870
55871                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
55872
55873         2006-07-22  Bruno Haible  <bruno@clisp.org>
55874
55875                 * modules/javaversion: New file.
55876                 * MODULES.html.sh (Java): Add javaversion.
55877
55878         2006-03-12  Bruno Haible  <bruno@clisp.org>
55879
55880                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
55881
55882         2005-12-04  Bruno Haible  <bruno@clisp.org>
55883
55884                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
55885                 (untested).
55886
55887         2006-06-21  Bruno Haible  <bruno@clisp.org>
55888
55889                 Avoid warnings from recent versions of mcs.
55890                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
55891                 -o, -L, -r any more. Use options documented since mcs-1.0
55892                 instead. Similarly for -g.
55893
55894         2005-12-04  Bruno Haible  <bruno@clisp.org>
55895
55896                 * build-aux/csharpcomp.sh.in: Suffix for resources is
55897                 .resources, not .resource.
55898
55899         2005-07-09  Bruno Haible  <bruno@clisp.org>
55900
55901                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
55902                 add a .dll suffix.
55903                 Reported by Mark Junker <mjscod@gmx.de>.
55904
55905         2006-07-22  Bruno Haible  <bruno@clisp.org>
55906
55907                 * modules/gettext: Upgrade to gettext-0.15.
55908                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
55909                 m4/visibility.m4.
55910                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
55911
55912 2006-07-22  Bruno Haible  <bruno@clisp.org>
55913
55914         Merge from GNU gettext 0.15.
55915
55916         2006-03-25  Bruno Haible  <bruno@clisp.org>
55917
55918                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
55919
55920         2006-07-21  Bruno Haible  <bruno@clisp.org>
55921
55922                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
55923                 "1.1".
55924
55925         2006-05-09  Bruno Haible  <bruno@clisp.org>
55926
55927                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
55928                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
55929                 for the conftestver execution.
55930
55931         2006-05-01  Bruno Haible  <bruno@clisp.org>
55932
55933                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
55934                 optional target-version argument. Verify that the compiler
55935                 groks source of the specified source-version, or add -source
55936                 option as necessary. Verify that the compiler produces
55937                 bytecode in the specified target-version, or add -target and
55938                 -source options as necessary. Make the result of the test
55939                 available as variable CONF_JAVAC. Also log error output in
55940                 config.log.
55941
55942         2006-03-11  Bruno Haible  <bruno@clisp.org>
55943
55944                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
55945
55946         2006-05-09  Bruno Haible  <bruno@clisp.org>
55947
55948                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
55949                 CLASSPATH_SEPARATOR to a semicolon.
55950
55951         2006-03-12  Bruno Haible  <bruno@clisp.org>
55952
55953                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
55954                 available as variable CONF_JAVA, for subsequent autoconf
55955                 tests. Also log error output in config.log.
55956
55957         2006-07-19  Bruno Haible  <bruno@clisp.org>
55958
55959                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
55960                 that getline works on glibc2 systems. Needed to avoid trouble
55961                 in relocatable.c.
55962                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
55963
55964         2005-12-04  Bruno Haible  <bruno@clisp.org>
55965
55966                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
55967                 launcher (untested).
55968
55969         2005-12-04  Bruno Haible  <bruno@clisp.org>
55970
55971                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
55972
55973         2006-07-22  Bruno Haible  <bruno@clisp.org>
55974
55975                 * gettext.m4: Update from GNU gettext-0.15.
55976                 * nls.m4: Likewise.
55977                 * po.m4: Likewise.
55978                 * inttypes-pri.m4: Likewise.
55979                 * inttypes-h.m4: Renamed from inttypes.m4.
55980                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
55981
55982 2006-07-22  Bruno Haible  <bruno@clisp.org>
55983
55984         Merge from GNU gettext 0.15.
55985
55986         2005-07-05  Bruno Haible  <bruno@clisp.org>
55987
55988                 * printf-args.c (printf_fetchargs): Work around broken
55989                 definition of wint_t on mingw.
55990
55991         2005-02-12  Bruno Haible  <bruno@clisp.org>
55992
55993                 * xallocsa.h: Add extern "C" for C++.
55994
55995         2006-05-17  Bruno Haible  <bruno@clisp.org>
55996
55997                 Cygwin portability.
55998                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
55999
56000         2006-04-30  Bruno Haible  <bruno@clisp.org>
56001
56002                 * progreloc.c: Include <mach-o/dyld.h> if available.
56003                 (find_executable): Use _NSGetExecutablePath when possible.
56004
56005         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56006
56007                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
56008                 function.
56009
56010         2005-12-29  Bruno Haible  <bruno@clisp.org>
56011
56012                 * progreloc.c (set_program_name_and_installdir): Fix
56013                 compilation error.
56014
56015         2005-12-04  Bruno Haible  <bruno@clisp.org>
56016
56017                 Cygwin portability.
56018                 * progreloc.c: Include <windows.h> also on Cygwin.
56019                 (find_executable): Add support for Cygwin.
56020                 (set_program_name_and_installdir): Handle also platforms with
56021                 nonempty EXEEXT.
56022
56023         2006-07-11  Bruno Haible  <bruno@clisp.org>
56024
56025                 * javacomp.c: Fix a comment.
56026                 Reported by Jim Meyering.
56027
56028         2006-04-30  Bruno Haible  <bruno@clisp.org>
56029
56030                 * javacomp.h (compile_java_class): Add source_version,
56031                 target_version arguments.
56032                 * javacomp.c: Rewritten to choose only a compiler that
56033                 respects the specified source_version and target_version.
56034
56035         2006-06-27  Bruno Haible  <bruno@clisp.org>
56036
56037                 Assume correct S_ISDIR macro.
56038                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
56039
56040         2006-07-22  Bruno Haible  <bruno@clisp.org>
56041
56042                 * javaversion.h: New file, from GNU gettext.
56043                 * javaversion.c: New file, from GNU gettext.
56044                 * javaversion.java: New file, from GNU gettext.
56045                 * javaversion.class: New file, from GNU gettext.
56046
56047         2006-05-17  Bruno Haible  <bruno@clisp.org>
56048
56049                 Cygwin portability.
56050                 * javaexec.c (execute_java_class): Test for jview program
56051                 also on Cygwin.
56052
56053         2006-04-09  Bruno Haible  <bruno@clisp.org>
56054
56055                 * fatal-signal.c: Don't include string.h.
56056                 (at_fatal_signal): Use a copying loop instead of memcpy.
56057
56058         2005-12-04  Bruno Haible  <bruno@clisp.org>
56059
56060                 * csharpexec.c: Add support for 'clix' launcher (untested).
56061                 (execute_csharp_using_sscli): New function.
56062                 (execute_csharp_program): Call it.
56063
56064         2006-06-21  Bruno Haible  <bruno@clisp.org>
56065
56066                 Avoid warnings from recent versions of mcs.
56067                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
56068                 -o, -L, -r any more. Use options documented since mcs-1.0
56069                 instead. Similarly for -g.
56070
56071         2005-07-09  Bruno Haible  <bruno@clisp.org>
56072
56073                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
56074                 add a .dll suffix.
56075                 Reported by Mark Junker <mjscod@gmx.de>.
56076
56077         2006-06-17  Bruno Haible  <bruno@clisp.org>
56078
56079                 * config.charset: Update for NetBSD 3.0.
56080
56081         2006-05-17  Bruno Haible  <bruno@clisp.org>
56082
56083                 Cygwin portability.
56084                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
56085
56086         2006-05-16  Bruno Haible  <bruno@clisp.org>
56087
56088                 * localcharset.c [CYGWIN]: Include <windows.h>.
56089                 (get_charset_aliases): For Cygwin, return the same CPxxx
56090                 aliases list as under WIN32.
56091                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
56092                 the environment variables. Fall back to GetACP().
56093
56094         2006-04-05  Bruno Haible  <bruno@clisp.org>
56095
56096                 * config.charset: Update Juan Manuel Guerrero's address.
56097
56098         2005-02-12  Bruno Haible  <bruno@clisp.org>
56099
56100                 * allocsa.h: Add extern "C" for C++.
56101
56102         2005-02-10  Bruno Haible  <bruno@clisp.org>
56103
56104                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
56105                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
56106
56107         2006-07-22  Bruno Haible  <bruno@clisp.org>
56108
56109                 * gettext.h: Update to GNU gettext-0.15.
56110
56111 2006-07-22  Bruno Haible  <bruno@clisp.org>
56112
56113         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
56114         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
56115         lib-prefix.m4, longdouble.m4, ssize_t.m4.
56116
56117 2006-07-21  Eric Blake  <ebb9@byu.net>
56118
56119         * modules/stdlib-safer: New file.
56120         * MODULES.html.sh (File stream based Input/Output): Add
56121         stdlib-safer.
56122
56123 2006-07-21  Eric Blake  <ebb9@byu.net>
56124
56125         * lib/stdlib-safer.h: New file from coreutils, required by
56126         stdlib--.h.
56127
56128 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
56129
56130         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
56131
56132 2006-07-20  Bruno Haible  <bruno@clisp.org>
56133
56134         * gnulib-tool: Recognize new option --assume-autoconf.
56135         (autoconf_minversion): New variable.
56136         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
56137
56138 2006-07-20  Bruno Haible  <bruno@clisp.org>
56139
56140         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
56141
56142 2006-07-19  Derek R. Price  <derek@ximbiot.com>
56143
56144         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
56145         Reindent and repaginate.
56146
56147 2006-07-19  Derek Price  <derek@ximbiot.com>
56148
56149         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
56150         Correct grammar.
56151
56152 2006-07-17  Bruno Haible  <bruno@clisp.org>
56153
56154         * modules/list: New file.
56155         * modules/array-list: New file.
56156         * modules/carray-list, modules/carray-list-tests: New files.
56157         * modules/linked-list, modules/linked-list-tests: New files.
56158         * modules/avltree-list, modules/avltree-list-tests: New files.
56159         * modules/rbtree-list, modules/rbtree-list-tests: New files.
56160         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
56161         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
56162         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
56163         * modules/oset: New file.
56164         * modules/array-oset: New file.
56165         * modules/avltree-oset, modules/avltree-oset-tests: New files.
56166         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
56167         * tests/test-carray_list.c: New file.
56168         * tests/test-linked_list.c: New file.
56169         * tests/test-avltree_list.c: New file.
56170         * tests/test-rbtree_list.c: New file.
56171         * tests/test-linkedhash_list.c: New file.
56172         * tests/test-avltreehash_list.c: New file.
56173         * tests/test-rbtreehash_list.c: New file.
56174         * tests/test-avltree_oset.c: New file.
56175         * tests/test-rbtree_oset.c: New file.
56176         * MODULES.html.sh (Container data structures): New section.
56177
56178 2006-07-17  Bruno Haible  <bruno@clisp.org>
56179
56180         * m4/gl_list.m4: New file.
56181
56182 2006-07-17  Bruno Haible  <bruno@clisp.org>
56183
56184         * lib/gl_list.h: New file.
56185         * lib/gl_list.c: New file.
56186         * lib/gl_array_list.h: New file.
56187         * lib/gl_array_list.c: New file.
56188         * lib/gl_carray_list.h: New file.
56189         * lib/gl_carray_list.c: New file.
56190         * lib/gl_linked_list.h: New file.
56191         * lib/gl_linked_list.c: New file.
56192         * lib/gl_anylinked_list1.h: New file.
56193         * lib/gl_anylinked_list2.h: New file.
56194         * lib/gl_avltree_list.h: New file.
56195         * lib/gl_avltree_list.c: New file.
56196         * lib/gl_anyavltree_list1.h: New file.
56197         * lib/gl_anyavltree_list2.h: New file.
56198         * lib/gl_rbtree_list.h: New file.
56199         * lib/gl_rbtree_list.c: New file.
56200         * lib/gl_anyrbtree_list1.h: New file.
56201         * lib/gl_anyrbtree_list2.h: New file.
56202         * lib/gl_anytree_list1.h: New file.
56203         * lib/gl_anytree_list2.h: New file.
56204         * lib/gl_linkedhash_list.h: New file.
56205         * lib/gl_linkedhash_list.c: New file.
56206         * lib/gl_anyhash_list1.h: New file.
56207         * lib/gl_anyhash_list2.h: New file.
56208         * lib/gl_avltreehash_list.h: New file.
56209         * lib/gl_avltreehash_list.c: New file.
56210         * lib/gl_rbtreehash_list.h: New file.
56211         * lib/gl_rbtreehash_list.c: New file.
56212         * lib/gl_anytreehash_list1.h: New file.
56213         * lib/gl_anytreehash_list2.h: New file.
56214
56215         * lib/gl_oset.h: New file.
56216         * lib/gl_oset.c: New file.
56217         * lib/gl_array_oset.h: New file.
56218         * lib/gl_array_oset.c: New file.
56219         * lib/gl_avltree_oset.h: New file.
56220         * lib/gl_avltree_oset.c: New file.
56221         * lib/gl_rbtree_oset.h: New file.
56222         * lib/gl_rbtree_oset.c: New file.
56223         * lib/gl_anytree_oset.h: New file.
56224
56225 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
56226
56227         * m4/mkancesdirs.m4: New file.
56228         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
56229         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
56230         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
56231         it.
56232
56233 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
56234
56235         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
56236         * lib/mkancesdirs.h: New files.
56237         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
56238         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
56239         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
56240         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
56241         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
56242         callers changed.  Revamp internals significantly, by not
56243         attempting to create directories that are temporarily more
56244         permissive than the final results.  Do not attempt to use
56245         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
56246         This removes some race conditions, fixes some bugs, and simplifies
56247         things.  Use new dirchownmod function to do owner and mode changes.
56248         * lib/mkdir-p.h: Likewise.
56249         * lib/modechange.c (octal_to_mode): New function.
56250         (struct mode_change): New member mentioned.
56251         (make_node_op_equals): New arg mentioned.  All callers changed.
56252         (mode_compile): Keep track of which mode bits the user has explicitly
56253         mentioned.
56254         (mode_adjust): New arg DIR, so that we implement the X op correctly.
56255         New arg PMODE_BITS, to keep track of which mode bits the user
56256         mentioned; it treats S_ISUID and S_ISGID speciall.
56257         All callers changed.
56258         * lib/modechange.h: Likewise.
56259
56260 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
56261
56262         * MODULES.html.sh: Add mkancestors.
56263         * modules/mkancesdirs: New module.
56264         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
56265         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
56266         The chdir-safer and afs files are now orphans; I'll remove them
56267         unless someone speaks up.
56268         Add lib/dirchownmod.c, lib/dirchownmod.h.
56269         (Depends-on): Remove alloca, chown, save-cwd, dirname.
56270         Add lchown, mkancesdirs.
56271         (Maintainer): Add self.
56272
56273 2006-07-15  Karl Berry  <karl@gnu.org>
56274
56275         * gnulib-tool: help message wording/arrangement.
56276
56277 2006-07-14  Simon Josefsson  <jas@extundo.com>
56278
56279         * doc/gnulib.texi (Libtool and Windows): New section.
56280
56281 2006-07-12  Simon Josefsson  <jas@extundo.com>
56282
56283         * modules/gendocs (License): Fix license, approved by Karl.
56284
56285 2006-07-12  Eric Blake  <ebb9@byu.net>
56286
56287         * MODULES.html.sh: Add gendocs.
56288
56289 2006-07-11  Eric Blake  <ebb9@byu.net>
56290
56291         * modules/fdl: New module, to install doc/fdl.texi.
56292         * MODULES.html.sh: Add new section for documentation modules.
56293         * gnulib-tool: Avoid space-tab.
56294         (--doc-base): New option, to manage files from doc.
56295
56296 2006-07-11  Eric Blake  <ebb9@byu.net>
56297
56298         * m4/absolute-header.m4: Fix comments to match recent change.
56299
56300 2006-07-11  Eric Blake  <ebb9@byu.net>
56301
56302         * gnulib-tool: List --doc-base before --tests-base.
56303
56304 2006-07-11  Derek R. Price  <derek@ximbiot.com>
56305
56306         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
56307
56308 2006-07-11  Bruno Haible  <bruno@clisp.org>
56309
56310         * README: Mention where to put documentation.
56311
56312 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56313
56314         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
56315
56316 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
56317
56318         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
56319         to stdint.m4.
56320
56321 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
56322
56323         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
56324         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
56325         "no/such/file/stdint.h" when there is no such file, so that
56326         the resulting C code can be parsed by dodgy compilers.
56327         Problems reported by Bob Proulx.
56328
56329 2006-07-10  Derek R. Price  <derek@ximbiot.com>
56330
56331         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
56332         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
56333         macros into the GNU _D_EXACT_NAMLEN.
56334         * lib/savedir.c:  Likewise.
56335         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
56336
56337 2006-07-10  Derek R. Price  <derek@ximbiot.com>
56338         and Paul Eggert  <eggert@cs.ucla.edu>
56339
56340         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
56341         * m4/savedir.m4:
56342         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
56343         macros into the GNU _D_EXACT_NAMLEN.
56344
56345 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
56346
56347         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
56348         around the absolute name, to work around a problem with the HP-UX
56349         11.23 native C compiler, reported by Bob Proulx.
56350
56351 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
56352
56353         * doc/maintain.texi, make-stds.texi: Sync from
56354         <http://savannah.gnu.org/projects/gnustandards>.
56355
56356 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
56357
56358         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
56359
56360 2006-07-09  Jim Meyering  <jim@meyering.net>
56361
56362         * m4/glob.m4: Remove a doubled word in a comment.
56363
56364 2006-07-09  Jim Meyering  <jim@meyering.net>
56365
56366         * lib/argp-pv.c: Remove a doubled word in a comment.
56367         * lib/check-version.c (check_version): Likewise.
56368         * lib/javacomp.c (compile_java_class): Likewise.
56369
56370 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
56371
56372         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
56373         for the benefit of people using Autoconf 2.60.  If you want to
56374         support older Autoconf versions you can copy m4/onceonly_2_57.m4
56375         (or m4/onceonly.m4, if pre-2.57) manually.
56376
56377 2006-07-08  Jim Meyering  <jim@meyering.net>
56378
56379         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
56380         comment.
56381         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
56382         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
56383         comment.
56384
56385 2006-07-08  Jim Meyering  <jim@meyering.net>
56386
56387         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
56388
56389 2006-07-07  Simon Josefsson  <jas@extundo.com>
56390
56391         * tests/test-crc.c: Change expected crc value, the test vector
56392         were probably computed using the old broken crc.c?
56393
56394 2006-07-06  Simon Josefsson  <jas@extundo.com>
56395
56396         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
56397         now the canonical place for the M4 file).
56398
56399         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
56400         from the sys_socket dependency now.
56401
56402         * modules/inet_pton (Files): Ditto.
56403
56404         * modules/inet_ntop (Files): Ditto.
56405
56406 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56407
56408         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
56409         not gl_PREREQ_GETUSERSHELL.
56410
56411 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56412
56413         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
56414         with only one argument, for Autoconf 2.60.
56415         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
56416         expand to nothing, so add a shell command to avoid syntax error.
56417         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
56418
56419 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56420
56421         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
56422
56423 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56424
56425         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
56426         no longer needed.  Check for isblank decl.
56427         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
56428         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
56429         of existence.
56430
56431 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56432
56433         * lib/getloadavg.c: Use __VMS, not VMS.
56434         * lib/getopt.c: Likewise.
56435         * lib/getpagesize.h: Likewise.
56436         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
56437         and probably does not work.
56438
56439 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56440
56441         * lib/.cppi-disable: Add wcwidth.
56442         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
56443         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
56444         (ISGRAPH): Remove.  All uses changed to isgraph.
56445         (FOLD) [!defined _LIBC]: Remove special case.
56446         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
56447         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
56448         HAVE_ISBLANK.
56449         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
56450         case.
56451
56452 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
56453
56454         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
56455         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
56456         brackets.  Other minor changes to suppress some compiler
56457         warnings.
56458
56459 2006-07-06  Derek R. Price  <derek@ximbiot.com>
56460         and Paul Eggert  <eggert@cs.ucla.edu>
56461
56462         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
56463         of invoking obsolescent AC_HEADER_DIRENT macro.
56464         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
56465         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
56466         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
56467         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
56468         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
56469         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
56470         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
56471         * m4/readdir.m4: Remove; no longer needed.
56472
56473 2006-07-06  Derek R. Price  <derek@ximbiot.com>
56474         and Paul Eggert  <eggert@cs.ucla.edu>
56475
56476         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
56477         Don't worry about this obsolete case any more.
56478         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
56479         directories.
56480         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
56481         worry about this obsolete case any more.
56482         * lib/fts.c: Likewise.
56483         * lib/getcwd.c: Likewise.
56484         * lib/glob.h: Likewise.
56485         * lib/savedir.c: Likewise.
56486
56487 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
56488
56489         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
56490         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
56491         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
56492         needed.
56493         All uses removed.
56494         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
56495         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
56496         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
56497         needed.
56498         * m4/getdate.m4 (gl_GETDATE): Likewise.
56499         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
56500         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
56501         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
56502         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
56503         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
56504         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56505         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
56506         needed.
56507
56508 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
56509
56510         * lib/memcasecmp.c: Include <limits.h>.
56511         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
56512         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
56513         Don't assume isdigit succeeds only on '0' through '9'.
56514
56515 2006-07-05  Eric Blake  <ebb9@byu.net>
56516
56517         * modules/getaddrinfo (Depends-on): Add snprintf.
56518
56519 2006-07-05  Eric Blake  <ebb9@byu.net>
56520
56521         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
56522         to avoid 'header present but could not be compiled' on cygwin.
56523
56524 2006-07-05  Eric Blake  <ebb9@byu.net>
56525
56526         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
56527         missing from netdb.h.
56528         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
56529
56530 2006-07-05  Derek R. Price  <derek@ximbiot.com>
56531
56532         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
56533         no longer needed.
56534         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
56535         * m4/getdate.m4 (gl_GETDATE): Likewise.
56536         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
56537         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
56538         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
56539         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
56540         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56541
56542 2006-07-05  Derek R. Price  <derek@ximbiot.com>
56543
56544         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
56545         All uses of is_space replaced by isspace.
56546         * lib/exit.h: Don't talk about STDC_HEADERS.
56547         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
56548         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
56549         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
56550         replaced by isprint etc.
56551         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
56552         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
56553         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
56554         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
56555         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
56556         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
56557
56558 2006-07-05  Bruno Haible  <bruno@clisp.org>
56559
56560         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
56561         the function exists, before testing against AIX.
56562         Reported by Martin Lambers <marlam@marlam.de>.
56563
56564 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
56565
56566         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
56567         From Mark D. Baushke.
56568
56569 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
56570
56571         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
56572         to the absolute name, not just one, to bypass Sun C 5.8's
56573         "warning: #include of /usr/include/... may be non-portable".
56574
56575 2006-07-04  Eric Blake  <ebb9@byu.net>
56576
56577         * modules/dirname-tests: New test module.
56578         * tests/test-dirname.c: New file, replacing dirname.c
56579         TEST_DIRNAME section that was recently deleted.
56580
56581 2006-07-04  Bruno Haible  <bruno@clisp.org>
56582
56583         Assume ANSI C header files and <ctype.h> functions.
56584         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
56585         (mbsnwidth): Use isprint, iscntrl instead.
56586
56587 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56588
56589         Merge from coreutils.
56590         * MODULES.html.sh: Add xstrtold.
56591         * modules/xstrtold: New file.
56592         * modules/cycle-check (Files): Add lib/same-inode.h.
56593         * modules/dirname (Files): Add m4/double-slash-root.m4.
56594         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
56595         * modules/mkdir-p (Files): Add lib/same-inode.h.
56596         * modules/same (Files): Add lib/same-inode.h.
56597
56598 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56599
56600         * m4/absolute-header.m4: Renamed from full-header-path.m4.
56601         This is to keep the terminology clean; POSIX talks about
56602         "absolute pathnames", not "full pathnames", but the GNU
56603         Coding Standards say to use "path" for something else;
56604         so use "absolute" to keep both sides happy.
56605         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
56606         Set gl_absolute_header, not gl_full_header_path.
56607         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
56608         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
56609         All uses changed.
56610
56611         Merge from coreutils.
56612
56613         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
56614
56615         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
56616         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
56617         want to require the building of c-strtod.o.
56618         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
56619         needs -lm directly.
56620         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
56621
56622         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
56623
56624         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
56625         --as-needed option if available.  Problem reported by Albert Chin in
56626         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
56627         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
56628         cc merely issues a bunch of annoying warnings for --as-needed
56629         (this problem was reported by Bob Proulx).  Also, try linking with
56630         -lm to detect a bug in binutils 2.16 (this problem was reported
56631         by Ralf Wildenhues).
56632
56633         2006-06-18  Jim Meyering  <jim@meyering.net>
56634
56635         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
56636         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
56637         macro.
56638         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
56639         also check for glibc-2.4's abort-inducing bug.
56640
56641         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
56642         Low-probability clean-up should be to use rmdir to get rid of
56643         the just-created directory, not unlink.
56644
56645         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
56646         configure fail, and request a bug report to inform us about it.
56647         Add a comment that, barring reports to the contrary, in 2007 we'll
56648         assume ftruncate is universally available.
56649
56650         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
56651
56652         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
56653
56654         2006-03-12  Jim Meyering  <jim@meyering.net>
56655
56656         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
56657         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
56658         * m4/same.m4 (gl_SAME): Likewise.
56659         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
56660
56661         2006-03-11  Eric Blake  <ebb9@byu.net>
56662
56663         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
56664         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
56665         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
56666         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
56667
56668 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56669
56670         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
56671         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
56672         reported by Mark D. Baushke, one in
56673         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
56674
56675         Merge from coreutils.
56676
56677         * lib/.cppi-disable: Add stdint_.h.
56678         * lib/.cvsignore: Add stdint.h.
56679
56680         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
56681
56682         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
56683         both double and long double versions.
56684         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
56685         * lib/xstrtold.c: New file.
56686         * lib/xstrtod.h (xstrtold): New decl.
56687
56688         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
56689
56690         * lib/filemode.c (setst): Remove.
56691         (strmode): Rewrite to avoid setst.  This makes the code shorter,
56692         (arguably) clearer, and the generated code is a bit smaller on my
56693         Debian GNU/Linux stable x86 host.
56694
56695         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
56696
56697         * lib/filemode.c: Include "filemode.h" first, to test the interface.
56698         Assume that filemode.h includes sys/types.h and sys/stat.h.
56699         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
56700         (ftypelet): Reorder to put common cases first, for efficiency.
56701         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
56702         to do 'M'.
56703         (strmode): Renamed from mode_string, and now stores 12 bytes instead
56704         of 10, for compatibility with FreeBSD.  All callers changed.
56705         (filemodestring): Now stores 12 bytes instead of 10, and sets file
56706         types that can't be deduced solely from st_mode.  First arg is now a
56707         const pointer.
56708         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
56709         (strmode): Renamed from mode_string.
56710         (filemodestring): New decl.
56711         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
56712         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
56713         needed.
56714         (S_ISPORT, S_ISWHT): New macros, if not already defined.
56715
56716         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
56717
56718         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
56719         fsusage.h now does that.  Include fsusage.h first, to test interface.
56720         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
56721         at most one method (the old code could have generated decls that
56722         didn't conform to C89, not that this was ever exercised).
56723         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
56724
56725         2006-03-19  Jim Meyering  <jim@meyering.net>
56726
56727         Work even in a chroot where d_ino values for entries in "/"
56728         don't match the stat.st_ino values for the same names.
56729         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
56730         number, iterate through all entries again, using lstat instead.
56731         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
56732         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
56733
56734         * lib/getcwd.c (__getcwd): Clarify a comment.
56735         Use memcpy in place of a call to strcpy.
56736
56737         2006-03-12  Jim Meyering  <jim@meyering.net>
56738
56739         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
56740         matches that of the current directory (which we're about to chdir ".."
56741         out of), then save the dev-ino of the parent, instead.
56742
56743         * lib/same-inode.h (SAME_INODE): New file/macro.
56744         * lib/chdir-safer.c (SAME_INODE): Remove definition.
56745         Include "same-inode.h", instead.
56746         * lib/same.c: Likewise.
56747         * lib/cycle-check.h: Include "same-inode.h".
56748         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
56749         * lib/cycle-check.c (SAME_INODE): Remove definition.
56750         * lib/root-dev-ino.h: Include "same-inode.h".
56751
56752         2006-03-11  Eric Blake  <ebb9@byu.net>
56753
56754         * lib/same.c (same_name): s/base_name/last_component/
56755         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
56756         * lib/filenamecat.c (file_name_concat): Likewise.
56757
56758         2006-03-11  Eric Blake  <ebb9@byu.net>,
56759                     Paul Eggert  <eggert@cs.ucla.edu>
56760
56761         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
56762         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
56763         drive prefix.
56764         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
56765         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
56766         (last_component): New method.
56767         * lib/dirname.c (dir_len): Determine when drive letters need a
56768         subsequent slash.  Preserve // when it is special.
56769         (dir_name): Don't append dot when drive letter is absolute.
56770         [TEST_DIRNAME]: Move into a full-blown gnulib test.
56771         * lib/basename.c (base_name): New semantics - malloc the result.
56772         Preserve // when it is special.  Preserve relative files that look
56773         like drive letters.
56774         (base_len): Preserve // when it is special.
56775         (last_component): New method, similar to old base_name semantics.
56776         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
56777         base_name.  Strip redundant slashes from ///.
56778
56779 2006-07-03  Jim Meyering  <jim@meyering.net>
56780
56781         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
56782         macro is used before the first cycle_check call.
56783
56784 2006-07-03  Eric Blake  <ebb9@byu.net>
56785
56786         * modules/dirname (Depends-on): Add xstrndup.
56787
56788 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
56789
56790         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
56791         test cases, so that config.log is a bit easier to follow.
56792
56793 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
56794
56795         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
56796         both are 64 bits, since this seems to be the tradition, and this
56797         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
56798         we ever run into a host that prefers long long to long in this
56799         case, we'll need another configure-time test.  Problem reported by
56800         Jim Meyering.
56801
56802 2006-07-02  Eric Blake  <ebb9@byu.net>
56803
56804         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
56805
56806 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56807
56808         * modules/inttypes (Depends-on): No longer depends on stdint.
56809         * modules/stdint (Description): Say more about assumptions.
56810         Say that the fast types might differ.  Say macros are used.
56811         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
56812         (Makefile.am): Revise list of substituted symbols to match
56813         new stdint.m4.
56814         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
56815         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
56816         * tests/test-stdint.c (verify_same_types)
56817         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
56818         the code conforms to C99/C89.
56819         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
56820         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
56821
56822 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56823
56824         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
56825         but fix a bug, by requiring at least 64 bits.
56826         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
56827         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
56828         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
56829         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
56830
56831         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
56832         changes.  Make 2.59 a prerequisite.  Check and substitute for
56833         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
56834         inttypes.h.  Do not use special include files; just use the
56835         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
56836         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
56837         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
56838         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
56839         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
56840         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
56841         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
56842         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
56843         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
56844         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
56845         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
56846         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
56847         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
56848         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
56849         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
56850         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
56851         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
56852         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
56853         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
56854         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
56855         WINT_MAX.  Check for C99 conformance more strictly, by detecting
56856         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
56857         not check for things that C99 does not require, e.g., int8_t.  If
56858         a test isn't needed unless <stdint.h> isn't working, and is
56859         unlikely to be needed for any other reason, then don't do it
56860         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
56861         size_t, since we assume C89 freestanding at least.  Do not check
56862         for sig_atomic_t, wchar_t, or wint_t, since the code now does
56863         the right thing even if the types are not defined.  Instead use:
56864         (gl_STDINT_TYPE_PROPERTIES): New macro.
56865         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
56866         testing whether <sys/types.h> clashes, as Autoconf does this for
56867         us now.  All uses removed.
56868         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
56869         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
56870         (gl_CHECK_TYPE_SAME):
56871         Remove; no longer needed.
56872         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
56873         exists, since we'll return 0 anyway in that case.
56874         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
56875
56876 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56877
56878         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
56879         possible collision with system files.
56880         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
56881         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
56882         WCHAR_MIN and WCHAR_MAX in this case.
56883         (<stddef.h>): Do not include; no longer needed.
56884         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
56885         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
56886         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
56887         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
56888         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
56889         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
56890         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
56891         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
56892         !defined(__c99))]: Include in this case too, since it's harmless
56893         now.
56894         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
56895         dangerous to do so.
56896         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
56897         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
56898         (_STDINT_MIN, _STDINT_MAX): New macros.
56899         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
56900         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
56901         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
56902         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
56903         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
56904         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
56905         macros, not typedefs; this simplifies things quite a bit.
56906         Use long int for all types narrower than int64_t.
56907         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
56908         Define in terms of long long int or int64_t or long int,
56909         not int64_t or int32_t.  This saves some compile-time testing.
56910         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
56911         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
56912         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
56913         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
56914         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
56915         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
56916         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
56917         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
56918         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
56919         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
56920         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
56921         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
56922         undef any previous version and define our own version, for
56923         simplicity and consistency with the new macros for types.
56924         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
56925         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
56926         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
56927         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
56928         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
56929         @WINT_T_SUFFIX@ to keep things simple here.
56930         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
56931         Simplify by assuming typical 8/16/32/64 host, since we're
56932         already doing that elsewhere anyway.
56933         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
56934         and assume long long int is 64 bits if available.  This
56935         speeds up 'configure'.
56936
56937 2006-07-01  Eric Blake  <ebb9@byu.net>
56938
56939         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
56940         Reported by Andreas Buening.
56941
56942 2006-07-01  Eric Blake  <ebb9@byu.net>
56943
56944         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
56945
56946 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
56947
56948         * lib/getaddrinfo.c: fixed typo
56949
56950 2006-06-29  Jim Meyering  <jim@meyering.net>
56951
56952         * modules/strftime (Maintainer): Add my name, since with the
56953         FPRINTFTIME changes strftime.c has forked from glibc.
56954
56955 2006-06-29  Eric Blake  <ebb9@byu.net>
56956
56957         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
56958
56959 2006-06-29  Eric Blake  <ebb9@byu.net>
56960
56961         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
56962
56963 2006-06-29  Eric Blake  <ebb9@byu.net>
56964
56965         * lib/stat_.h: New file.
56966
56967 2006-06-29  Eric Blake  <ebb9@byu.net>
56968
56969         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
56970         unused static function.
56971
56972 2006-06-29  Eric Blake  <ebb9@byu.net>
56973
56974         * doc/functions.texi (Function Portability): Document missing lstat
56975         on mingw.
56976
56977 2006-06-29  Eric Blake  <ebb9@byu.net>
56978
56979         * MODULES.html.sh: Add sys_stat.
56980         * modules/sys_stat: New module.
56981         * modules/mkstemp (Depends-on): Add sys_stat.
56982
56983 2006-06-29  Derek R. Price  <derek@ximbiot.com>
56984
56985         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
56986
56987 2006-06-29  Derek R. Price  <derek@ximbiot.com>
56988
56989         * m4/c-bs-a.m4: Removed.
56990
56991 2006-06-29  Derek R. Price  <derek@ximbiot.com>
56992
56993         * lib/strftime.c: Assume strftime() exists.
56994
56995 2006-06-29  Derek Price  <derek@ximbiot.com>
56996
56997         * modules/c-bs-a: Removed - \a is C89.
56998         * MODULES.html.sh: Remove c-bs-a.
56999
57000 2006-06-29  Bruno Haible  <bruno@clisp.org>
57001
57002         * modules/wcwidth (License): Change to LGPL.
57003
57004 2006-06-28  Simon Josefsson  <jas@extundo.com>
57005
57006         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
57007         on _WIN32.
57008
57009         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
57010         getnameinfo.
57011
57012 2006-06-28  Simon Josefsson  <jas@extundo.com>
57013
57014         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
57015
57016 2006-06-28  Simon Josefsson  <jas@extundo.com>
57017
57018         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
57019         functions there.  It will succeed on Windows XP, but on Windows
57020         2000 and (presumably) earlier, it will fail, and use the internal
57021         re-implementation.
57022         (use_win32_p): New function.
57023         (getaddrinfo): Use strtoul on servname, to support numeric ports.
57024         Support AI_NUMERICSERV to disable getservbyname.
57025         (getnameinfo): New function, only supports
57026         NI_NUMERICHOST|NI_NUMERICSERV for now.
57027
57028         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
57029         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
57030         getnameinfo.
57031
57032 2006-06-28  Eric Blake  <ebb9@byu.net>
57033
57034         * modules/wcwidth: New file.
57035         * modules/mbchar (Depends-on): Add wcwidth.
57036         * modules/mbswidth (Depends-on): Add wcwidth.
57037         * MODULES.html.sh: Add wcwidth.
57038
57039 2006-06-28  Eric Blake  <ebb9@byu.net>
57040
57041         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
57042         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
57043
57044 2006-06-28  Eric Blake  <ebb9@byu.net>
57045
57046         * lib/xvasprintf.h: Fix comments.
57047
57048 2006-06-28  Eric Blake  <ebb9@byu.net>
57049
57050         * lib/mbchar.h (wcwidth): Include wcwidth.h.
57051         * lib/mbswidth.c (wcwidth): Move from here...
57052         * lib/wcwidth.h: ...to this new file.
57053
57054 2006-06-28  Derek R. Price  <derek@ximbiot.com>
57055
57056         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
57057
57058         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
57059         it's obsolete.
57060         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
57061
57062 2006-06-28  Derek R. Price  <derek@ximbiot.com>
57063
57064         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
57065         Autoconf 2.60 says this stuff was obsolete.
57066
57067 2006-06-28  Bruno Haible  <bruno@clisp.org>
57068
57069         * modules/wcwidth (Files): Add m4/wchar_t.m4.
57070
57071 2006-06-28  Bruno Haible  <bruno@clisp.org>
57072
57073         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
57074         gt_TYPE_WCHAR_T.
57075
57076 2006-06-28  Bruno Haible  <bruno@clisp.org>
57077
57078         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
57079         declaration for wcwidth.
57080         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
57081
57082 2006-06-28  Bruno Haible  <bruno@clisp.org>
57083
57084         * lib/mkdtemp.c [MINGW]: Include <io.h>.
57085         (mkdir): Define using _mkdir.
57086
57087 2006-06-28  Bruno Haible  <bruno@clisp.org>
57088
57089         * lib/getaddrinfo.h: Fix POSIX URL.
57090         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
57091         _WIN32.
57092         (use_win32_p): Make static.
57093         (getaddrinfo): Reject service name if it is empty or does not consist
57094         solely of decimal digits, or if its value is > 65535.
57095         (getnameinfo): Remove useless casts.
57096
57097 2006-06-27  Simon Josefsson  <jas@extundo.com>
57098
57099         * modules/sys_select: New file, suggested by Bruno Haible, Paul
57100         Eggert and Martin Lambers.
57101
57102 2006-06-27  Simon Josefsson  <jas@extundo.com>
57103
57104         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
57105         Eggert and Martin Lambers.
57106
57107 2006-06-27  Bruno Haible  <bruno@clisp.org>
57108
57109         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
57110         result to 0, not to empty.
57111         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
57112
57113 2006-06-27  Bruno Haible  <bruno@clisp.org>
57114
57115         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
57116
57117 2006-06-26  Simon Josefsson  <jas@extundo.com>
57118
57119         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
57120         present.
57121
57122 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
57123
57124         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
57125         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
57126         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
57127
57128 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
57129
57130         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
57131
57132 2006-06-26  Bruno Haible  <bruno@clisp.org>
57133
57134         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
57135
57136 2006-06-26  Bruno Haible  <bruno@clisp.org>
57137
57138         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
57139
57140 2006-06-26  Bruno Haible  <bruno@clisp.org>
57141
57142         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
57143         SGI C compiler in pre-C99 mode.
57144         Suggested by Mark D. Baushke and Larry Jones.
57145
57146 2006-06-26  Bruno Haible  <bruno@clisp.org>
57147
57148         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
57149         WCHAR_MAX.
57150         Reported by Mark D. Baushke and Larry Jones.
57151
57152 2006-06-26  Bruno Haible  <bruno@clisp.org>
57153
57154         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
57155         in pre-C99 mode.
57156         Suggested by Mark D. Baushke and Larry Jones.
57157
57158 2006-06-23  Simon Josefsson  <jas@extundo.com>
57159             Bruno Haible  <bruno@clisp.org>
57160
57161         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
57162         Emit mostlyclean-local rule.
57163         (func_emit_tests_Makefile_am): Likewise.
57164         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
57165
57166 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
57167
57168         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
57169
57170 2006-06-23  Bruno Haible  <bruno@clisp.org>
57171
57172         * tests/test-stdint.c: Update to match ISO C 99 Technical
57173         Corrigendum 1.
57174
57175 2006-06-23  Bruno Haible  <bruno@clisp.org>
57176
57177         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
57178
57179 2006-06-23  Bruno Haible  <bruno@clisp.org>
57180
57181         * lib/stdint_.h: Treat IRIX like OpenBSD.
57182
57183 2006-06-23  Bruno Haible  <bruno@clisp.org>
57184
57185         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
57186         ISO C 99 Technical Corrigendum 1.
57187
57188 2006-06-22  Simon Josefsson  <jas@extundo.com>
57189
57190         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
57191         MinGW.
57192
57193 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
57194
57195         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
57196         needed.  Some compiler complained about some of them.  Problem reported
57197         by Larry Jones in
57198         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
57199
57200 2006-06-21  Simon Josefsson  <jas@extundo.com>
57201
57202         * tests/test-getaddrinfo.c: New file.
57203
57204         * modules/getaddrinfo-tests: New file.
57205
57206         * MODULES.html.sh: Add inet_pton.
57207
57208         * modules/inet_pton: New file.
57209
57210 2006-06-21  Simon Josefsson  <jas@extundo.com>
57211
57212         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
57213         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
57214         of using the (limited) gnulib implementation on Windows XP.
57215
57216         * m4/inet_pton.m4: New file.
57217
57218 2006-06-21  Simon Josefsson  <jas@extundo.com>
57219
57220         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
57221         variable.
57222
57223         * lib/socket_.h: Don't define WINVER.
57224
57225         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
57226         slightly modified to work in gnulib.
57227
57228 2006-06-21  Simon Josefsson  <jas@extundo.com>
57229
57230         * doc/gnulib.texi (Windows sockets): Add.
57231
57232 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
57233
57234         * lib/read-file.c (fread_file): Start with buffer allocation of
57235         0 bytes rather than 1 byte; this simplifies the code.
57236         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
57237         code to free buffer and save/restore errno.
57238         (internal_read_file): Remove unused local.
57239
57240 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
57241
57242         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
57243         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
57244         Problem reported by Denis Excoffier in
57245         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
57246
57247 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57248
57249         * modules/sys_socket, modules/socklen: Include sys/types since
57250         FreeBSD 4.x's sys/socket.h needs it.
57251
57252 2006-06-19  Simon Josefsson  <jas@extundo.com>
57253
57254         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
57255
57256 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
57257
57258         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
57259
57260 2006-06-19  Bruno Haible  <bruno@clisp.org>
57261
57262         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
57263         and FULL_PATH_INTTYPES_H in angle brackets.
57264         Reported by Mark D. Baushke <mdb@gnu.org>.
57265
57266 2006-06-17  Eric Blake  <ebb9@byu.net>
57267
57268         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
57269         errno.
57270
57271 2006-06-17  Bruno Haible  <bruno@clisp.org>
57272
57273         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
57274         <sys/inttypes.h>.
57275
57276 2006-06-17  Bruno Haible  <bruno@clisp.org>
57277
57278         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
57279         whether errno is declared. Assume <errno.h> declares errno.
57280
57281 2006-06-17  Bruno Haible  <bruno@clisp.org>
57282
57283         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
57284
57285 2006-06-17  Bruno Haible  <bruno@clisp.org>
57286
57287         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
57288         problem on Solaris 2.5.1.
57289
57290 2006-06-16  Eric Blake  <ebb9@byu.net>
57291
57292         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
57293         * lib/unicodeio.c [!defined errno]: Likewise.
57294         * lib/strtol.c [!defined errno]: Likewise.
57295         * lib/strtod.c [!defined errno]: Likewise.
57296
57297 2006-06-15  Eric Blake  <ebb9@byu.net>
57298
57299         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
57300
57301 2006-06-15  Eric Blake  <ebb9@byu.net>
57302
57303         * config/srclist.txt (ssize_t.m4): Lose sync.
57304
57305 2006-06-15  Bruno Haible  <bruno@clisp.org>
57306
57307         * modules/stdint (Files): Include m4/full-header-path.m4,
57308         m4/size_max.m4, m4/wchar_t.m4.
57309         (Makefile.am): Many more substitutions.
57310         * modules/stdint-tests: New file.
57311         * tests/test-stdint.c: New file.
57312
57313 2006-06-15  Bruno Haible  <bruno@clisp.org>
57314
57315         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
57316         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
57317         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
57318         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
57319         gl_CHECK_TYPE_SAME): New macros.
57320
57321 2006-06-15  Bruno Haible  <bruno@clisp.org>
57322
57323         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
57324
57325 2006-06-15  Bruno Haible  <bruno@clisp.org>
57326
57327         * lib/stdint_.h: Rewritten to be fully auto-configured.
57328         Fixes bug on HP-UX/IA64.
57329
57330 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
57331
57332         * lib/getdate.y (__attribute__): Don't define if already defined.
57333         Problem reported by Larry Jones.
57334         * lib/utimens.c (__attribute__): Likewise.
57335
57336 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
57337
57338         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
57339         reported by Andreas Schwab.
57340
57341 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57342             Bruno Haible  <bruno@clisp.org>
57343
57344         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
57345         check for the declaration of strnlen and a run test that exposes the
57346         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
57347         rpl_strndup.
57348
57349 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57350             Bruno Haible  <bruno@clisp.org>
57351
57352         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
57353
57354 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57355
57356         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
57357         compile test, for Tru64 4.0D.
57358
57359 2006-05-28  Karl Berry  <karl@gnu.org>
57360
57361         * config/srclist.txt (printf-args.c): lose sync.
57362
57363 2006-05-26  Martin Lambers  <marlam@marlam.de>
57364
57365         * lib/getpass.c: Updates the test for the native W32 API, and adds
57366         missing includes, thus fixing compilation warnings.
57367
57368 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
57369
57370         * lib/exclude.c (exclude_fnmatch): New function.
57371         (excluded_file_name): Call exclude_fnmatch.
57372         * lib/exclude.h (excluded_file_name): New prototype
57373
57374 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
57375
57376         * lib/tempname.c (small_open, large_open): New macros.
57377         (__open, __open64) [!_LIBC]: Remove.
57378         (__gen_tempname): Use small_open and large_open instead of __open
57379         and __open64.  This fixes a portability bug on HP-UX 11.11i
57380         reported by Simon Wing-Tang in
57381         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
57382
57383 2006-05-24  Bruno Haible  <bruno@clisp.org>
57384
57385         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
57386         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
57387         Reported by Thorsten Maerz <torte@netztorte.de> via
57388         Aaron Stone <aaron@serendipity.cx>.
57389
57390 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
57391
57392         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
57393         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
57394         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
57395         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
57396         not really conditional on the cache.
57397         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
57398
57399 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
57400
57401         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
57402         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
57403         (my_usleep): Don't mishandle maximum value.
57404
57405 2006-05-19  Jim Meyering  <jim@meyering.net>
57406
57407         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
57408
57409 2006-05-17  Bruno Haible  <bruno@clisp.org>
57410
57411         Cygwin portability.
57412         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
57413
57414 2006-05-17  Bruno Haible  <bruno@clisp.org>
57415
57416         * lib/stdint_.h: Fix recognition of Cygwin.
57417
57418 2006-05-15  Bruno Haible  <bruno@clisp.org>
57419
57420         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
57421         on libtool patch by Ralf Wildenhues.
57422
57423 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57424
57425         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
57426         test for C99 conformance; (bool) 0.5 is an integer constant
57427         expression, but (bool) -0.5 is not.  Problem reported by Fedor
57428         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
57429
57430 2006-05-11  Simon Josefsson  <jas@extundo.com>
57431
57432         * m4/xvasprintf.m4: Fix obvious typo.
57433
57434 2006-05-11  Jim Meyering  <jim@meyering.net>
57435
57436         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
57437         James Lemley.
57438
57439 2006-05-10  Simon Josefsson  <jas@extundo.com>
57440
57441         * lib/md4.c: Typo fix, update copyright years.
57442         (K1, K2): Don't use L because it turn computations into 64-bit on
57443         64-bit platforms.
57444
57445 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
57446
57447         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
57448         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
57449         unwanted sign propagation, e.g., on hosts with 64-bit int.
57450         There still are some problems with reeelly weird theoretical hosts
57451         (e.g., 33-bit int) but it's not worth worrying about now.
57452         * lib/sha1.c (rol): Likewise.
57453         (K1, K2, K3, K4): Remove unnecessary L suffix.
57454
57455 2006-05-10  Bruno Haible  <bruno@clisp.org>
57456
57457         * lib/des.c: Cast to avoid warnings.
57458
57459 2006-05-09  Bruno Haible  <bruno@clisp.org>
57460
57461         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
57462         (Depends-on): Depend also on xsize, stdarg.
57463         (configure.ac): Add gl_XVASPRINTF.
57464
57465 2006-05-09  Bruno Haible  <bruno@clisp.org>
57466
57467         * m4/xvasprintf.m4: New file.
57468
57469 2006-05-09  Bruno Haible  <bruno@clisp.org>
57470
57471         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
57472         (EOVERFLOW): Define fallback value.
57473         (xstrcat): New function.
57474         (xvasprintf): Recognize the special case of a string concatenation.
57475
57476 2006-05-08  Eric Blake  <ebb9@byu.net>
57477
57478         * gnulib-tool (func_version): Base copyright year on CVS date.
57479         (func_emit_copyright_notice): New function.
57480         (func_emit_lib_Makefile_am): Use it.
57481         (func_emit_tests_Makefile_am): Likewise.
57482         (func_import): Likewise.
57483
57484 2006-05-08  Bruno Haible  <bruno@clisp.org>
57485
57486         * modules/stdarg: New file.
57487         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
57488
57489 2006-05-08  Bruno Haible  <bruno@clisp.org>
57490
57491         * m4/stdarg.m4: New file, from GNU gettext.
57492
57493 2006-05-08  Bruno Haible  <bruno@clisp.org>
57494
57495         * config/srclist.txt (build-aux/config.rpath): different from latest
57496         release.
57497
57498 2006-05-08  Bruno Haible  <bruno@clisp.org>
57499
57500         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
57501
57502 2006-05-05  Jim Meyering  <jim@meyering.net>
57503
57504         * m4/warning.m4: New file, derived from bison's file by the same name.
57505
57506 2006-05-03  Bruno Haible  <bruno@clisp.org>
57507
57508         * lib/stdint_.h: Shorter URL.
57509         * lib/inttypes.h: Likewise.
57510
57511 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
57512
57513         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
57514
57515 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
57516
57517         * lib/verify.h: Document the internals better.  Most of this change
57518         was written by Bruno Haible.
57519
57520 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
57521
57522         * doc/verify.texi: New file, partly based on a proposal by
57523         Bruno Haible.
57524
57525 2006-05-02  Bruno Haible  <bruno@clisp.org>
57526
57527         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
57528         test from here...
57529         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
57530
57531 2006-04-29  Bruno Haible  <bruno@clisp.org>
57532
57533         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
57534         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
57535
57536 2006-04-29  Bruno Haible  <bruno@clisp.org>
57537
57538         * gnulib-tool: Make --update option actually work.
57539
57540 2006-04-29  Bruno Haible  <bruno@clisp.org>
57541
57542         * doc/gcd.texi: New file.
57543         * doc/gnulib.texi: Include it.
57544
57545 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
57546
57547         * lib/getdate.y (get_date): When adding relative date, start with the
57548         initial time, not with the result of the first mktime call.
57549
57550 2006-04-25  Bruno Haible  <bruno@clisp.org>
57551
57552         * gnulib-tool (func_import): Output the include directives in three
57553         blocks, sorted separately.
57554         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57555
57556 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
57557
57558         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
57559         to define main with arguments, for C++.  Reported by Eric Blake.
57560         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
57561         Prefer 'int main ()' to 'int main (void)', for C++.
57562         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
57563         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
57564         for 'main', for C99 and C++.
57565
57566 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
57567
57568         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
57569         Don't assume that exit status -1 is valid.
57570         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57571         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
57572         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
57573         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
57574         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
57575         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
57576         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
57577         functions can be used without declaring them, or that you can
57578         exit with status -1.
57579         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
57580
57581 2006-04-24  Karl Berry  <karl@gnu.org>
57582
57583         * config/srclist.txt (longdouble.m4): sync lost.
57584
57585 2006-04-24  Eric Blake  <ebb9@byu.net>
57586
57587         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
57588
57589 2006-04-24  Bruno Haible  <bruno@clisp.org>
57590
57591         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
57592         poll() implementation in AIX.
57593         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57594
57595 2006-04-24  Bruno Haible  <bruno@clisp.org>
57596
57597         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
57598         assigned exactly once.
57599
57600 2006-04-23  Claudio Fontana  <claudio@gnu.org>
57601             Bruno Haible  <bruno@clisp.org>
57602
57603         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
57604         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
57605         for AM_CPPFLAGS.
57606
57607 2006-04-23  Bruno Haible  <bruno@clisp.org>
57608
57609         * modules/copy-file: Depend on unistd.
57610         * modules/execute: Likewise.
57611         * modules/fatal-signal: Likewise.
57612         * modules/findprog: Likewise.
57613         * modules/mkdtemp : Likewise.
57614         * modules/pipe: Likewise.
57615         * modules/wait-process: Likewise.
57616
57617 2006-04-23  Bruno Haible  <bruno@clisp.org>
57618
57619         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
57620         condition was already detected.
57621         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57622
57623 2006-04-23  Bruno Haible  <bruno@clisp.org>
57624
57625         * lib/copy-file.c: Include <unistd.h> unconditionally.
57626         * lib/execute.c: Likewise.
57627         * lib/fatal-signal.c: Likewise.
57628         * lib/findprog.c: Likewise.
57629         * lib/mkdtemp.c: Likewise.
57630         * lib/pipe.h: Likewise.
57631         * lib/pipe.c: Likewise.
57632         * lib/wait-process.h: Likewise.
57633
57634 2006-04-23  Bruno Haible  <bruno@clisp.org>
57635
57636         * gnulib-tool (func_usage): Fix --import description. Document
57637         --update.
57638         (func_import): Create temporary file in a temporary directory, if
57639         --dry-run is specified. Silence errors from 'grep' when there are no
57640         m4 files in $m4dir.
57641         (func_create_testdir): Silence errors from 'grep' when there are no
57642         m4 files in $m4dir.
57643         Reported by Karl Berry <karl@freefriends.org>.
57644
57645 2006-04-20  Bruno Haible  <bruno@clisp.org>
57646
57647         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
57648         one argument, so that the code will be portable to Autoconf 2.60.
57649         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
57650         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
57651         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
57652
57653 2006-04-19  Derek Price  <derek@ximbiot.com>
57654             Eric Blake  <ebb9@byu.net>
57655
57656         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
57657         rather than "/full/path.h".  Update comment to match.  Shorten &
57658         generalize m4_translit call via AS_TR_CPP.
57659
57660 2006-04-19  Derek Price  <derek@ximbiot.com>
57661             Eric Blake  <ebb9@byu.net>
57662
57663         * lib/inttypes.h: Correct grammar in comment.
57664
57665 2006-04-18  Derek Price  <derek@ximbiot.com>
57666             Paul Eggert  <eggert@cs.ucla.edu>
57667
57668         * modules/inttypes: New file.
57669         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
57670
57671 2006-04-18  Derek Price  <derek@ximbiot.com>
57672             Paul Eggert  <eggert@cs.ucla.edu>
57673
57674         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
57675         New files.
57676
57677 2006-04-18  Derek Price  <derek@ximbiot.com>
57678             Paul Eggert  <eggert@cs.ucla.edu>
57679
57680         * lib/inttypes.h: New file.
57681         * lib/strtoimax.c: Assume <inttypes.h>.
57682
57683 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
57684
57685         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
57686         isn't mounted.  Problem reported by Kir Kolyshkin.
57687
57688 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
57689
57690         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
57691         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
57692         Derek R. Price.
57693         * lib/regex.h (RE_DUP_MAX): Update comment to match current
57694         implementation.
57695
57696 2006-04-12  Eric Blake  <ebb9@byu.net>
57697
57698         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
57699         is now done automatically by the corresponding Autoconf macro.
57700
57701 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
57702
57703         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
57704         time_r.h.
57705
57706 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57707
57708         Merge regex changes from libc, removing some of our
57709         POSIX-conformance changes that were rejected and redoing them in a
57710         less-intrusive way.
57711
57712         * lib/regcomp.c (re_compile_internal, init_dfa):
57713         Length arg is now size_t, not Idx.  All uses changed.
57714         (peek_token): Forward decl now says internal_function.
57715         (__re_error_msgid, __re_error_msgid_idx):
57716         Now static rather than extern with attribute_hidden.
57717         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
57718         For some reason libc prefers K&R style defns for external functions.
57719         (regerror) [!defined _LIBC]: Likewise.
57720         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
57721         (seek_collating_symbol_entry, lookup_collation_sequence_value):
57722         (build_range_exp, build_collating_symbol):
57723         Use K&R-style defn.
57724         (re_compile_fastmap): Use '\0' to memset, not 0.
57725         (utf8_sb_map): Make the calculations more obvious.
57726         (init_dfa, parse_bracket_exp, build_charclass_op):
57727         Call calloc and cast result, as glibc does.
57728         (init_word_char, fetch_token, peek_token, peek_token_bracket):
57729         (build_range_exp, build_collating_symbol):
57730         Now internal functions.
57731
57732         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
57733
57734         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
57735         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
57736         Don't depend on VMS; depend on __VMS instead, for POSIX
57737         namespace cleanness.
57738         (regoff_t): Define to ssize_t, not long int.
57739
57740         Remove the REG_ macros named below.  Instead, make the old names
57741         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
57742         __USE_GNU_REGEX.
57743         (REG_BACKSLASH_ESCAPE_IN_LISTS):
57744         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
57745         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
57746         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
57747         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
57748         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
57749         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
57750         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
57751         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
57752         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
57753         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
57754         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
57755         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
57756         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
57757         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
57758         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
57759         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
57760         (REG_NREGS):
57761         Remove.  All uses replaced by the old RE_* names.
57762         (RE_BACKSLASH_ESCAPE_IN_LISTS):
57763         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
57764         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
57765         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
57766         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
57767         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
57768         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
57769         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
57770         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
57771         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
57772         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
57773         Don't bother having these macros be independent of each others'
57774         values, since they no longer exist in the POSIX name space.
57775
57776         Rename the following member names back to their old names,
57777         unless !__USE_GNU_REGEX.  All uses changed back.
57778         (buffer): Renamed from re_buffer.
57779         (allocated): Renamed from re_allocated.
57780         (used): Renamed from re_used.
57781         (syntax): Renamed from re_syntax.
57782         (fastmap): Renamed from re_fastmap.
57783         (translate): Renamed from re_translate.
57784         (can_be_null): Renamed from re_can_be_null.
57785         (regs_allocated): Renamed from re_regs_allocated.
57786         (fastmap_accurate): Renamed from re_fastmap_accurate.
57787         (no_sub): Renamed from re_no_sub.
57788         (not_bol): Renamed from re_not_bol.
57789         (not_eol): Renamed from re_not_eol.
57790         (newline_anchor): Renamed from re_newline_anchor.
57791         (num_regs): Renamed from rm_num_regs.
57792         (start): Renamed from rm_start.
57793         (end): Renamed from rm_end.
57794
57795         (free_state): Move up a bit.
57796
57797         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
57798         #define to be empty.
57799         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
57800         when that is what is intended.
57801         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
57802         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
57803         (MAX): New macro.
57804         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
57805         All uses changed back to re_malloc, etc.  It's now the caller's
57806         responsibility to check for overflow; all callers changed.
57807         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
57808         (re_x2nrealloc): Remove.
57809         (free_state): Remove decl.
57810
57811         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
57812         (re_set_registers, re_exec):
57813         Use K&R-style defn.
57814
57815         2006-01-31  Roland McGrath  <roland@redhat.com>
57816
57817         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
57818         Reported by Mike Frysinger <vapier@gentoo.org>.
57819
57820         2006-01-15  Andreas Jaeger  <aj@suse.de>
57821
57822         [BZ #1950]
57823         * lib/regex_internal.c (re_string_reconstruct): Adjust for
57824         build_wcs_upper_buffer change.
57825         (build_wcs_upper_buffer): Change return type.
57826
57827         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
57828
57829         * lib/regex_internal.h: Include <stdint.h> if available.
57830
57831         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
57832
57833         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
57834
57835         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
57836
57837         * lib/regcomp.c: Adjust for changed secondary hash function.
57838
57839         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
57840
57841         * lib/regex.h: Pretty printing.
57842         Clean up namespace a bit.
57843
57844         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
57845
57846         * lib/regexec.c (update_cur_sifted_state, check_arrival,
57847         check_arrival_add_next_nodes): Avoid using uninitialized variable.
57848
57849         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57850                     Ulrich Drepper  <drepper@redhat.com>
57851
57852         [BZ #1302]
57853         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
57854         changed.
57855         (bitset_word_t): Renamed from bitset_word.  All uses changed.
57856
57857         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
57858
57859         [BZ #281]
57860         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
57861         * lib/regcomp.c: Remove unnecessary uses of
57862         unsigned RE_TRANSLATE_TYPE.
57863         * lib/regex_internal.h: Likewise.
57864         * lib/regex_internal.c: Likewise.
57865         * lib/regexec.c: Likewise.
57866         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
57867
57868         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
57869
57870         * lib/regexec.c (find_recover_state): Remove unnecessary
57871         initialization.
57872         (transit_state_bkref): Make DFA a const pointer.
57873         (get_subexp): Likewise.
57874         (check_arrival): Likewise.
57875         (update_cur_sifted_state): Likewise.
57876         (re_search_internal): Likewise.
57877         (prune_impossible_nodes): Likewise.
57878         (acquire_init_state_context): Likewise.
57879         (proceed_next_node): Likewise.
57880         (set_regs): Likewise.
57881         (free_fail_stack_return): Likewise.
57882         (check_arrival_expand_ecl): Mark DFA parameter as const.
57883         (check_arrival_expand_ecl_sub): Likewise.
57884         (check_subexp_limits): Likewise.
57885         (sub_epsilon_src_nodes):  Likewise.
57886         (add_epsilon_src_nodes):  Likewise.
57887         (merge_state_array): Likewise.
57888         (update_regs): Likewise.
57889         (build_trtable): Likewise.
57890         (sift_states_backward): Mark MCTX parameter as const.
57891         (build_sifted_states): Likewise.
57892         (update_cur_sifted_state): Likewise.
57893         (sift_states_mkref): Likewise.
57894         (check_arrival_expand_ecl): Mark eclosure as const.
57895         (check_dst_limits_calc_pos_1): Likewise.
57896         * lib/regex_internal.h (re_match_context_t): Make dfa a const
57897         pointer.
57898
57899         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
57900
57901         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
57902         (transit_state_sb): Likewise.
57903         (transit_state_mb): Likewise.
57904         (sift_states_iter_mb): Likewise.
57905         (check_arrival_add_next_nodes): Likewise.
57906         (check_node_accept_bytes): Change first parameter to pointer-to-const.
57907         [_LIBC] (re_search_2_stub): Use mempcpy.
57908
57909         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
57910         mbrtowc for very simple UTF-8 case.
57911
57912         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
57913         a pointer-to-const.
57914         (re_acquire_state_context): Likewise.
57915         * lib/regex_internal.h: Adjust prototypes.
57916
57917         * lib/regex.c: Prevent using C++ compilers.
57918
57919         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
57920         (re_acquire_state_context): Likewise.
57921
57922 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57923
57924         * modules/regex (Depends-on): Add ssize_t.
57925
57926 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57927
57928         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
57929         translation table.
57930
57931 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57932
57933         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
57934
57935 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
57936             Bruno Haible  <bruno@clisp.org>
57937
57938         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
57939         <sys/types.h> and <inttypes.h>.
57940
57941 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57942
57943         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
57944         `__error_t_defined', so argp.h will not typedef the former.
57945
57946 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
57947
57948         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
57949         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
57950         glibc names.  Even if glibc is changed to conform to POSIX, the
57951         traditional names will be available anyway, since regex depends on
57952         the extensions module.  Also, fix a longstanding typo in the
57953         implementation of Spencer ERE test #75 from grep 2.3.  Problems
57954         reported by Emanuele Giaquinta.  Also, change sense of cached
57955         variable, so that the message makes sense.
57956
57957 2006-03-24  Simon Josefsson  <jas@extundo.com>
57958
57959         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
57960         including some doc fixes.
57961         (base64_encode_alloc): Fix +1 bug on allocation failures.
57962
57963 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57964
57965         * lib/base64.c (base64_encode): Do not read past end of array with
57966         unsanitized input on systems with CHAR_BIT > 8.
57967
57968 2006-03-24  Eric Blake  <ebb9@byu.net>
57969
57970         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
57971
57972 2006-03-22  Karl Berry  <karl@gnu.org>
57973
57974         * config/srclist.txt (*setenv.[ch]): get from coreutils.
57975         * config/srclistvars.sh (COREUTILS): new var.
57976
57977 2006-03-17  Jim Meyering  <jim@meyering.net>
57978
57979         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
57980         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
57981
57982 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
57983
57984         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
57985         no longer needs it.  Instead, check that regoff_t is as least
57986         as wide as ptrdiff_t.
57987
57988         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
57989         so that our regex.h stays compatible with the installed regex.
57990         This is helpful for installers who configure --without-included-regex.
57991         Problem reported by Emanuele Giaquinta.
57992
57993 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
57994
57995         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
57996         Typedef to long int, not to off_, as POSIX will likely change
57997         in that direction.
57998
57999 2006-03-15  Eric Blake  <ebb9@byu.net>
58000
58001         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
58002
58003 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
58004
58005         * lib/argp-help.c (validate_uparams): Fix typo
58006         * lib/argp-parse.c (argp_default_options): Consistently begin help
58007         messages with a lowercase letter.
58008
58009 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
58010
58011         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
58012         overrun buffers and shouldn't be used (much as gets shouldn't be
58013         used).
58014         * lib/time_r.c (asctime_r, ctime_r): Likewise.
58015
58016 2006-03-08  Simon Josefsson  <jas@extundo.com>
58017
58018         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
58019         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58020
58021 2006-03-08  Simon Josefsson  <jas@extundo.com>
58022
58023         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
58024         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58025
58026 2006-03-08  Simon Josefsson  <jas@extundo.com>
58027
58028         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
58029         signal that configure disabled the device.
58030
58031 2006-03-08  Simon Josefsson  <jas@extundo.com>
58032
58033         * build-aux/maint.mk: Fix refresh-po, to handle no translated
58034         languages.
58035
58036 2006-03-07  Simon Josefsson  <jas@extundo.com>
58037
58038         * modules/getopt (Depends-on): Add unistd.
58039
58040         * modules/unistd: New file.
58041
58042 2006-03-07  Simon Josefsson  <jas@extundo.com>
58043
58044         * modules/gc-random: New file.
58045
58046 2006-03-07  Simon Josefsson  <jas@extundo.com>
58047
58048         * m4/unistd_h.m4: New file.
58049
58050 2006-03-07  Simon Josefsson  <jas@extundo.com>
58051
58052         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
58053         test to be side-effect free by storing the result in the cache
58054         variable gl_cv_lib_readline, and moving the assignment of
58055         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
58056         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58057
58058 2006-03-07  Simon Josefsson  <jas@extundo.com>
58059
58060         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
58061         error on missing devices (the functions will return an error).
58062
58063         * m4/gc.m4: Move random stuff to gc-random.m4
58064
58065 2006-03-07  Simon Josefsson  <jas@extundo.com>
58066
58067         * lib/unistd_.h: New file.
58068
58069 2006-03-07  Simon Josefsson  <jas@extundo.com>
58070
58071         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
58072
58073 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
58074
58075         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
58076         Problem reported by Juan Manuel Guerrero.
58077
58078 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
58079
58080         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
58081         the unistd module.
58082         * lib/getlogin_r.c: Likewise.
58083         * lib/getlogin_r.h: Likewise.
58084         * lib/glob.c: Likewise.
58085         * lib/pagealign_alloc.c: Likewise.
58086         * lib/unistd_.h: Remove; no longer needed.
58087
58088 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
58089
58090         * MODULES.html.sh (Support for systems lacking POSIX:2001):
58091         Add unistd.
58092         * modules/c-stack (Depends-on): Add unistd.
58093         * modules/getlogin_r: Likewise.
58094         * modules/glob: Likewise.
58095         * modules/pagealign_alloc: Likewise.
58096         * modules/unistd (Files): Remove lib/unistd_.h.
58097         (EXTRA_DIST): Remove.
58098         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
58099         need unistd_.h.
58100         (MOSTLYCLEANFILES): Remove unistd.h-t.
58101
58102 2006-03-03  Simon Josefsson  <jas@extundo.com>
58103
58104         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
58105
58106 2006-03-03  Simon Josefsson  <jas@extundo.com>
58107
58108         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
58109         libidn and bison.
58110
58111 2006-03-03  Simon Josefsson  <jas@extundo.com>
58112
58113         * build-aux/maint.mk: Add indent target.
58114
58115 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
58116
58117         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
58118         our replacement poll.h in any case, to avoid a differing
58119         declaration from a system header.  Seen on AIX.
58120
58121 2006-03-01  Simon Josefsson  <jas@extundo.com>
58122
58123         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
58124         <kasal@ucw.cz>.
58125
58126 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58127
58128         * modules/gettime (Depends-on): Add extensions module.
58129         * modules/nanosleep (Depends-on): Likewise.
58130         * modules/settime (Depends-on): Likewise.
58131
58132 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58133
58134         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
58135         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
58136         pedantically.
58137         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58138         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
58139
58140         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
58141         not "==".  Reported by Ralf Wildenhues.
58142
58143 2006-03-01  Karl Berry  <karl@gnu.org>
58144
58145         * doc/Copyright/request-*: new files, synced from gnuorg.
58146
58147 2006-03-01  Karl Berry  <karl@gnu.org>
58148
58149         * config/srclist.txt (Copyright/*): new entries.
58150
58151 2006-02-28  Simon Josefsson  <jas@extundo.com>
58152
58153         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
58154
58155 2006-02-27  Simon Josefsson  <jas@extundo.com>
58156
58157         * lib/base64.h: Indent #define's.  From Jim Meyering
58158         <jim@meyering.net>.
58159
58160 2006-02-27  Jim Meyering  <jim@meyering.net>
58161
58162         Revert the change of 2006-02-24, so these files can continue
58163         to be sync'd from gettext.
58164         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
58165         of `config.h'.
58166
58167 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
58168
58169         * modules/intprops: New file.
58170         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
58171         Add intprops.
58172         * modules/getloadavg (Files): Remove lib/intprops.h.
58173         (Depends-on): Add intprops.
58174         * modules/human: Likewise.
58175         * modules/inttostr: Likewise.
58176         * modules/openat: Likewise.
58177         * modules/sig2str: Likewise.
58178         * modules/userspec: Likewise.
58179         * modules/utimecmp: Likewise.
58180         * modules/xnanosleep: Likewise.
58181         * modules/xstrtol: Likewise.
58182
58183 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
58184
58185         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
58186         * modules/lock-tests (TESTS): Use $(EXEEXT).
58187         * modules/tls-tests: Likewise.
58188         * modules/argp-tests: Likewise.
58189         (check_PROGRAMS): New var, replacing...
58190         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
58191
58192 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58193
58194         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
58195         `config.h'.
58196
58197 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
58198
58199         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
58200
58201 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58202
58203         Sync from coreutils.
58204         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
58205         gl_CHDIR_SAFER.
58206
58207 2006-02-22  Jim Meyering  <jim@meyering.net>
58208
58209         Sync from coreutils.
58210         * m4/chdir-safer.m4: New file.
58211
58212 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
58213
58214         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
58215         AT_FDCWD exceeds INT_MAX.
58216         * lib/openat.h (AT_FDCWD): Likewise.
58217
58218 2006-02-17  Eric Blake  <address@hidden>
58219
58220         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
58221
58222 2006-02-16  Simon Josefsson  <jas@extundo.com>
58223
58224         * modules/getaddrinfo (Depends-on): Add sys_socket.
58225
58226 2006-02-15  Simon Josefsson  <jas@extundo.com>
58227
58228         * build-aux/maint.mk: Add dsyntax-check rule.
58229
58230 2006-02-15  Eric Blake  <ebb9@byu.net>
58231
58232         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
58233         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
58234         'present but cannot compile' warnings on cygwin.
58235         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
58236         use ws2tcpip.h if sys/socket.h works.
58237         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
58238         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
58239
58240 2006-02-14  Simon Josefsson  <jas@extundo.com>
58241
58242         * modules/maintainer-makefile (Files): Rename.
58243
58244         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
58245         and (the local) Makefile.cfg to maint-cfg.mk.
58246
58247         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
58248         to the latter.
58249
58250         * modules/maintainer-makefile: New module.
58251
58252         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
58253         severaly stripped to make it possible to build it up from scratch
58254         with reliable tests.
58255
58256         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
58257         fixes to permit overriding the default actions when configure and
58258         makefile are not available.
58259
58260 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
58261
58262         Sync from coreutils.
58263         * modules/lstat (Depends-on): Don't depend on xalloc.
58264         (License): Change from GPL to LGPL, since this is now simply a
58265         replacement for a libc function.
58266
58267 2006-02-14  Jim Meyering  <jim@meyering.net>
58268
58269         Sync from coreutils.
58270
58271         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
58272         failure on deficient systems, and simplify gnulib lgpl dependencies.
58273         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
58274         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
58275
58276         * lib/xalloc-die.c: Remove unused definition of N_.
58277
58278 2006-02-14  Jim Meyering  <jim@meyering.net>
58279
58280         Sync from coreutils.
58281         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
58282         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
58283         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
58284         double-quote uses of that variable, to accommodate the rare case in
58285         which getmntent is available in none of the libraries checked.  This
58286         happens at least on FreeBSD 5.0.
58287
58288 2006-02-13  Simon Josefsson  <jas@extundo.com>
58289
58290         * gnulib-tool (Usage): Fix --import, from
58291         karl@freefriends.org (Karl Berry).
58292
58293 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
58294
58295         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
58296
58297 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
58298
58299         * lib/argp-namefrob.h: Restore changes accidentally lost during the
58300         "autoupdate" on 2005-12-12.
58301
58302 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
58303
58304         * modules/closeout (Depends-on): Remove atexit.
58305
58306 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
58307
58308         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
58309         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
58310
58311 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
58312
58313         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
58314         __EXTENSIONS__ if this causes compilation to fail.  Problem
58315         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
58316         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
58317
58318 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
58319
58320         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
58321         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
58322         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
58323         All uses changed.
58324
58325 2006-01-26  Simon Josefsson  <jas@extundo.com>
58326
58327         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
58328         prototype is visible on mingw32.
58329
58330         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
58331         for mingw32.
58332
58333         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
58334         mingw32).
58335
58336 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
58337
58338         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
58339         attempt to open for write; this always fails, at least on POSIX
58340         hosts.  This reinstates the 2006-01-09 change, which was
58341         inadvertently removed.
58342
58343 2006-01-26  Bruno Haible  <bruno@clisp.org>
58344
58345         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
58346         Reported by Paul Eggert.
58347
58348 2006-01-26  Bruno Haible  <bruno@clisp.org>
58349             Paul Eggert  <eggert@cs.ucla.edu>
58350
58351         * lib/stdbool_.h (_Bool)
58352         [(! (defined __cplusplus || defined __BEOS__)
58353           && !defined __GNUC__
58354           && !(defined __HP_cc || defined __xlc__
58355                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
58356                || defined __sgi))]:
58357         #define to signed char in these cases too; this simplifies
58358         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
58359         etc., separately) and makes it more conservative.
58360
58361 2006-01-25  Simon Josefsson  <jas@extundo.com>
58362
58363         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
58364         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
58365         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
58366
58367 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
58368
58369         * lib/argp-namefrob.h: Bugfix. Remove stray #
58370
58371 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58372
58373         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
58374         so that we test the test.
58375         Check for yet another HP-UX cc bug involving *bool |= bool.
58376
58377 2006-01-25  Karl Berry  <karl@gnu.org>
58378
58379         * config/srclist.txt (vasnprintf.c): sync lost.
58380
58381 2006-01-25  Jim Meyering  <jim@meyering.net>
58382
58383         Sync from the stable (b5) branch of coreutils:
58384
58385         * lib/fts.c (fts_children): Don't let close() clobber errno from
58386         failed fchdir().
58387
58388         * lib/fts.c (fts_stat): When following a symlink-to-directory,
58389         don't necessarily interpret stat-fails+lstat-succeeds as indicating
58390         a dangling symlink.  That can also happen at least for ELOOP.
58391         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
58392         FYI, this bug predates the inclusion of fts.c in coreutils.
58393
58394         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
58395         in their own block, so pre-c99 compilers don't object.
58396
58397         Avoid the double-free (first in fts_read, second in fts_close) that
58398         would occur when an `active' directory is made inaccessible (e.g.,
58399         via chmod a-x) during a traversal.
58400         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
58401         before returning.  Reproduce this failure by
58402         mkdir -p a/b; cd a; chmod a-x . b
58403         Reported by Stavros Passas.
58404
58405 2006-01-25  Jim Meyering  <jim@meyering.net>
58406
58407         * lib/fileblocks.c: Remove more useless parentheses.
58408         * lib/readutmp.h: Likewise.
58409
58410 2006-01-25  Bruno Haible  <bruno@clisp.org>
58411
58412         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
58413         warnings.
58414         Reported by Paul Eggert.
58415
58416 2006-01-25  Bruno Haible  <bruno@clisp.org>
58417
58418         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
58419         rid of a trap command. For Solaris sh.
58420         Reported by Mark D. Baushke <mdb@gnu.org>.
58421
58422 2006-01-24  Simon Josefsson  <jas@extundo.com>
58423
58424         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
58425         Bruno.
58426
58427 2006-01-24  Karl Berry  <karl@gnu.org>
58428
58429         * config/srclist.txt (argp-namefrob.h): sync lost.
58430
58431 2006-01-24  Jim Meyering  <jim@meyering.net>
58432
58433         * modules/openat (Files): Add lib/intprops.h.
58434         From Mark D. Baushke.
58435
58436 2006-01-24  Jim Meyering  <jim@meyering.net>
58437
58438         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
58439         Reported by Mark D. Baushke.
58440
58441 2006-01-24  Jim Meyering  <jim@meyering.net>
58442
58443         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
58444
58445 2006-01-24  Bruno Haible  <bruno@clisp.org>
58446
58447         * modules/strnlen (Maintainer): Change from glibc to all.
58448
58449 2006-01-24  Bruno Haible  <bruno@clisp.org>
58450
58451         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
58452         Patch by Paul Eggert.
58453
58454 2006-01-24  Bruno Haible  <bruno@clisp.org>
58455
58456         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
58457         already has it.
58458         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
58459         2005-11-26.
58460
58461         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
58462         'signed char' to avoid problems with the built-in _Bool type.
58463         Reported by Paul Eggert on 2005-11-26.
58464
58465 2006-01-24  Bruno Haible  <bruno@clisp.org>
58466
58467         * gnulib-tool (func_import): Avoid constructing complicated sed
58468         expressions inside backquote.
58469         Report and solution by Mark D. Baushke <mdb@gnu.org>.
58470
58471 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
58472
58473         These changes imported from libc.
58474         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
58475         test and two separate function calls.
58476         * lib/strndup.c (__strndup): Add libc_hidden_def.
58477
58478 2006-01-23  Simon Josefsson  <jas@extundo.com>
58479
58480         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
58481         Remove the test_*_SOURCES variable: automake infers it by default.
58482         * modules/tls-tests: Likewise.
58483
58484 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58485
58486         Work around porting bugs reported by Dieter in
58487         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
58488         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
58489         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
58490         Include "getopt.h" first, to check interface.
58491         (getenv): Declare only if defined HAVE_DECL_GETENV &&
58492         !HAVE_DECL_GETENV.
58493         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
58494         (__strndup): Revert to K&R-style function dfns, the glibc style.
58495         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
58496         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
58497         Include strnlen.h first, to get prototype properly.
58498         (strnlen): Renamed from __strnlen.
58499         Remove weak alias.
58500
58501 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58502
58503         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
58504
58505 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58506
58507         * config/srclist.txt: Adjust to reflect glibc reorganization.
58508         This affects only comments.
58509
58510 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
58511
58512          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
58513          Reported by Bruce Korb <bkorb@gnu.org>.
58514
58515 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
58516
58517         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
58518         to pacify gcc -Wswitch-default.
58519
58520 2006-01-22  Bruno Haible  <bruno@clisp.org>
58521
58522         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
58523         temporary buffer for sprintf, take into account the precision also
58524         for 'd', 'i', 'u', 'o', 'x', 'X'.
58525
58526 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
58527
58528         * modules/argp-tests: New module
58529         * tests/test-argp.c: New file
58530         * tests/test-argp-2.sh: New file
58531
58532 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
58533
58534         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
58535         (__argp_base_name): Removed
58536         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
58537         typo.
58538         (__argp_base_name): Provide macro definition or extern declaration
58539         depending on the configuration
58540
58541 2006-01-20  Simon Josefsson  <jas@extundo.com>
58542
58543         * modules/inet_ntop (Depends-on): Depend on sys_socket.
58544
58545 2006-01-20  Simon Josefsson  <jas@extundo.com>
58546
58547         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
58548
58549 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58550
58551         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
58552         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
58553         Suggested by Bruno Haible.
58554
58555 2006-01-20  Karl Berry  <karl@gnu.org>
58556
58557         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
58558         until changes propagate, I guess.
58559
58560 2006-01-19  Simon Josefsson  <jas@extundo.com>
58561
58562         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
58563
58564 2006-01-19  Simon Josefsson  <jas@extundo.com>
58565
58566         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
58567
58568 2006-01-19  Simon Josefsson  <jas@extundo.com>
58569
58570         * gnulib-tool: Set check_PROGRAMS.
58571
58572         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
58573         modules/des-tests, modules/gc-arcfour-tests,
58574         modules/gc-arctwo-tests, modules/gc-des-tests,
58575         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
58576         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
58577         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
58578         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
58579         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
58580         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
58581         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
58582         test_*_SOURCES.
58583
58584 2006-01-18  Simon Josefsson  <jas@extundo.com>
58585
58586         * modules/socklen (Depends-on): Depend on sys_socket.
58587
58588 2006-01-18  Simon Josefsson  <jas@extundo.com>
58589
58590         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
58591         modules/des-tests, modules/gc-arcfour-tests,
58592         modules/gc-arctwo-tests, modules/gc-des-tests,
58593         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
58594         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
58595         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
58596         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
58597         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
58598         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
58599         $(EXEEXT) to automake TESTS variable, for mingw32.
58600
58601 2006-01-17  Simon Josefsson  <jas@extundo.com>
58602
58603         * modules/socklen (Include): Need sys/socket.h.
58604
58605 2006-01-17  Bruno Haible  <bruno@clisp.org>
58606
58607         * modules/ssize_t (Include): Add <sys/types.h>.
58608
58609 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
58610
58611         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
58612         it's not portable and it doesn't work with cross-compiles.
58613         Problem reported by Bruno Haible.  Fix missing-$ typo in
58614         'test "gl_cv_ignore_unused_libraries" ...' that prevented
58615         -zignore from being used with Sun's C compiler.
58616
58617 2006-01-12  Simon Josefsson  <jas@extundo.com>
58618
58619         * lib/base64.c: Fix warning, reported by Bruno Haible
58620         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
58621
58622 2006-01-12  Bruno Haible  <bruno@clisp.org>
58623
58624         * modules/ldd: New file.
58625         * build-aux/ldd.sh.in: New file.
58626         * MODULES.html.sh (Support for building libraries and executables): Add
58627         ldd.
58628
58629 2006-01-12  Bruno Haible  <bruno@clisp.org>
58630
58631         * m4/ldd.m4: New file.
58632
58633 2006-01-12  Bruno Haible  <bruno@clisp.org>
58634
58635         * gnulib-tool (func_import, func_create_testdir): Don't go into an
58636         endless loop while replacing $auxdir with build-aux.
58637
58638 2006-01-11  Simon Josefsson  <jas@extundo.com>
58639
58640         * lib/stdint_.h (SIZE_MAX): Add missing (.
58641
58642 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
58643
58644         Sync from coreutils.
58645         * lib/md5.c: Fix commentary typos.
58646         (alignof, UNALIGNED_P): No need for a GCC-specific version.
58647         * lib/md5.h (__attribute__): Remove; unused.
58648         * lib/sha1.c: Fix commentary to match md5 better.
58649         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
58650         so that we don't need to worry about alignment.  All uses changed.
58651         This merges the 2005-10-28 md5 change into sha1.
58652
58653 2006-01-11  Jim Meyering  <jim@meyering.net>
58654
58655         Sync from coreutils.
58656         * lib/md5.c (OP): Fix spacing.
58657
58658 2006-01-11  Bruno Haible  <bruno@clisp.org>
58659
58660         Ensure automatic ordering between gl_LOCK and gl_ARGP.
58661         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
58662         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
58663
58664 2006-01-11  Bruno Haible  <bruno@clisp.org>
58665
58666         Ensure automatic ordering between gl_LOCK and gl_ARGP.
58667         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
58668         the "early" section as well.
58669
58670 2006-01-11  Bruno Haible  <bruno@clisp.org>
58671
58672         Avoid "ar: no archive members specified" error on MacOS X.
58673         * gnulib-tool (func_modules_add_dummy): New function.
58674         (func_import, func_create_testdir): Invoke it.
58675
58676 2006-01-11  Bruno Haible  <bruno@clisp.org>
58677
58678         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
58679         with $auxdir in AC_CONFIG_FILES statements.
58680
58681 2006-01-11  Bruno Haible  <bruno@clisp.org>
58682
58683         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58684         Initialize also noinst_HEADERS to empty.
58685
58686 2006-01-11  Bruno Haible  <bruno@clisp.org>
58687
58688         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
58689         variables.
58690         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
58691         autoreconf.
58692
58693 2006-01-11  Bruno Haible  <bruno@clisp.org>
58694
58695         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
58696         overridable by the user.
58697         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58698
58699 2006-01-10  Simon Josefsson  <jas@extundo.com>
58700
58701         * modules/sys_socket: New file.
58702
58703 2006-01-10  Simon Josefsson  <jas@extundo.com>
58704
58705         * m4/sys_socket_h.m4: New file.
58706
58707 2006-01-10  Simon Josefsson  <jas@extundo.com>
58708
58709         * lib/socket_.h: New file.
58710
58711 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
58712
58713         * modules/readutmp (Maintainer): Add myself.
58714
58715 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
58716
58717         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
58718         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
58719         People who are still concerned with buggy memcmp implementations
58720         can invoke gl_FUNC_MEMCMP themselves.
58721
58722 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
58723
58724         * lib/regex_internal.h (BITSET_WORD_BITS):
58725         Work around a bug in 64-bit PGC (before version 6.1-2), where the
58726         preprocessor mishandles large unsigned values as if they were signed.
58727         Problem reported by Claudio Fontana in
58728         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
58729
58730 2006-01-10  Jim Meyering  <jim@meyering.net>
58731
58732         Avoid the double-free (first in fts_read, second in fts_close) that
58733         would occur when an `active' directory is made inaccessible (e.g.,
58734         via chmod a-x) during a traversal.
58735         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
58736         before returning.  Reproduce this failure by
58737         mkdir -p a/b; cd a; chmod a-x . b
58738         Reported by Stavros Passas.
58739
58740         Sync from coreutils.
58741         * lib/sha1.c: Tweak grammar in a comment.
58742
58743 2006-01-10  Jim Meyering  <jim@meyering.net>
58744
58745         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
58746         Patch by Joerg Sonnenberger.
58747
58748 2006-01-10  Bruno Haible  <bruno@clisp.org>
58749
58750         * modules/readutmp: Depend on module free.
58751         * modules/strtok_r: Depend on module restrict.
58752
58753 2006-01-10  Bruno Haible  <bruno@clisp.org>
58754
58755         * modules/gettext (configure.ac): Add an invocation of
58756         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
58757
58758 2006-01-10  Bruno Haible  <bruno@clisp.org>
58759
58760         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
58761         Reported by Werner Lemberg <wl@gnu.org>.
58762
58763 2006-01-10  Bruno Haible  <bruno@clisp.org>
58764
58765         * lib/localcharset.c: Update from GNU gettext.
58766
58767 2006-01-10  Bruno Haible  <bruno@clisp.org>
58768
58769         * lib/argp.h (__const): Remove macro. Use const instead.
58770         * lib/argp-fmtstream.h (__const): Likewise.
58771         * lib/glob_.h (__const): Remove macro.
58772         * lib/glob-libc.h: Use const instead of __const.
58773
58774 2006-01-10  Bruno Haible  <bruno@clisp.org>
58775
58776         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
58777         variable.
58778         Needed to avoid an automake error regarding the 'gettext' module.
58779
58780 2006-01-09  Simon Josefsson  <jas@extundo.com>
58781
58782         * modules/inet_ntop (Depends-on): Add restrict.
58783
58784 2006-01-09  Simon Josefsson  <jas@extundo.com>
58785
58786         * modules/gc-rijndael-tests (License): Put under LGPL.
58787
58788         * modules/gc-des-tests (License): Likewise.
58789
58790         * modules/gc-arcfour-tests (License): Likewise.
58791
58792         * modules/gc-arctwo-tests (License): Likewise.
58793
58794         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
58795
58796         * modules/gc-hmac-sha1-tests (Files): Likewise.
58797
58798         * modules/gc-hmac-md5-tests (License): Likewise.
58799
58800         * modules/gc-sha1-tests (License): Likewise.
58801
58802         * modules/gc-md5-tests (License): Likewise.
58803
58804         * modules/gc-md4-tests (License): Likewise.
58805
58806         * modules/gc-md2-tests (License): Likewise.
58807
58808         * modules/gc-tests (License): Likewise.
58809
58810         * modules/des-tests (License): Likewise.
58811
58812         * modules/md4-tests (License): Likewise.
58813
58814         * modules/md2-tests (License): Likewise.
58815
58816 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58817
58818         Sync from coreutils:
58819
58820         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
58821         * modules/lib-ignore: New file.
58822         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
58823         chdir-safer.m4, lchmod.m4.
58824         * modules/openat: Add mkdirat.c, openat-priv.h.
58825
58826 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58827
58828         Sync from coreutils.
58829         * m4/lib-ignore.m4: New file.
58830         * m4/lchmod.m4: New file.
58831
58832 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58833
58834         Sync from coreutils.
58835         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
58836         for write access: POSIX says that must fail.
58837         * lib/fts.c (diropen): Likewise.
58838         * lib/save-cwd.c (save_cwd): Likewise.
58839         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
58840         well, for minor improvements on hosts that lack O_DIRECTORY.
58841         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
58842         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
58843         Fall back on chown if open failed with EACCES.
58844
58845         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
58846         Report an error at compile-time if only a 1-second nominal clock
58847         resolution is found.
58848
58849         * lib/lchmod.h: New file.
58850         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
58851         (make_dir_parents): Use lchown rather than chown, and
58852         lchmod rather than chmod.
58853
58854         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
58855         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
58856         "proc" reported by n0dalus.
58857
58858         * lib/mountlist.c: Include <limits.h>.
58859         (dev_from_mount_options)
58860         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
58861         New function.  It no longer assumes "dev=" has the System V meaning
58862         on Linux (since it doesn't).  It also parses "dev=" more carefully.
58863         (read_file_system_list)
58864         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
58865         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
58866         dev= in that case.
58867
58868         * lib/posixtm.h (PDS_PRE_2000): New macro.
58869         * lib/posixtm.c (year): Arg is now syntax_bits rather than
58870         allow_century.  All usages changed.  Reject dates outside the range
58871         1969-1999 if PDS_PRE_2000 is used.
58872
58873 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58874
58875         Sync from coreutils.
58876         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
58877         (Time of day items): Mention the possibility of leap seconds.
58878         Problem reported by Dr. David Alan Gilbert.
58879
58880 2006-01-09  Jim Meyering  <jim@meyering.net>
58881
58882         Sync from coreutils.
58883
58884         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
58885
58886         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
58887
58888         * lib/modechange.c (mode_compile): Reject an invalid mode string
58889         that starts with an octal digit.  From Andreas Gruenbacher.
58890
58891         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
58892         and dup to open_safer and dup_safer, respectively.
58893         (openat_permissive): Fix typo in comment.
58894
58895         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
58896         "gettext.h"; either no longer needed or are guaranteed by openat.h.
58897         (_): Remove; no longer needed.
58898         (openat): Renamed from rpl_openat; no need for rpl_openat
58899         since openat.h renames openat for us.
58900         Replace most of the body with a call to openat_permissive,
58901         to avoid duplicate code.
58902         Port to (probably hypothetical) environments were mode_t is
58903         wider than int.
58904         (openat_permissive): Require mode arg, so that we can check
58905         types better.  Put it just after flags.  Change cwd failure
58906         indicator from pointer-to-bool to pointer-to-errno-value.
58907         All callers changed.
58908         Invoke openat_save_fail and/or openat_restore_fail if
58909         cwd_errno is null, so that openat can call us.
58910         (openat_permissive, fdopendir, fstatat, unlinkat):
58911         Simplify errno handling to avoid some duplicate code,
58912         as it's OK to set errno on success.
58913         * lib/openat.h: Revamp code so that function macros depend on
58914         __OPENAT_PREFIX only, not also on AT_FDCWD.
58915         (openat_ro): Remove.  Caller changed to use openat_permissive.
58916         (openat_permissive): Now a macro, if not a function.
58917         (openat_restore_fail, openat_save_fail): Now always functions,
58918         since mkdirat needs them even if __OPENAT_PREFIX is defined.
58919
58920         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
58921         and openat.c.
58922         * lib/mkdirat.c: Include openat-priv.h.
58923         Remove definitions of macros defined therein.
58924         * lib/openat.c: Likewise.
58925
58926         * lib/mkdirat.c (mkdirat): New file and function.
58927         * lib/openat.h (mkdirat): Declare.
58928
58929         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
58930
58931         * lib/openat.h (openat_permissive): Declare.
58932         (openat_ro): Define.
58933
58934         * lib/openat.c (EXPECTED_ERRNO): New macro.
58935         (openat_permissive): New function -- used in remove.c rewrite.
58936         (all functions): Set errno just before returning, only if there
58937         was an actual failure.
58938         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
58939
58940         Emulate openat-family functions using Linux's procfs, if possible.
58941         Idea and some code based on Ulrich Drepper's glibc changes.
58942
58943         * lib/openat.c: (BUILD_PROC_NAME): New macro.
58944         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
58945         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
58946         before falling back on save_cwd and restore_cwd.
58947         (fdopendir, fstatat, unlinkat): Likewise.
58948
58949         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
58950         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
58951
58952         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
58953         as second argument to va_arg.  Otherwise, some versions of gcc
58954         warn that `if this code is reached, the program will abort'.
58955
58956 2006-01-09  Jim Meyering  <jim@meyering.net>
58957
58958         Sync from coreutils.
58959         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
58960         Require openat-priv.h.
58961
58962 2006-01-09  Bruno Haible  <bruno@clisp.org>
58963
58964         * modules/strnlen (Include): Use strnlen.h.
58965
58966 2006-01-09  Bruno Haible  <bruno@clisp.org>
58967
58968         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
58969
58970 2006-01-09  Bruno Haible  <bruno@clisp.org>
58971
58972         * lib/sysexit_.h (EX_OK): New macro.
58973         Suggested by Martin Lambers <marlam@marlam.de>.
58974
58975 2006-01-09  Bruno Haible  <bruno@clisp.org>
58976
58977         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
58978         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
58979
58980 2006-01-09  Bruno Haible  <bruno@clisp.org>
58981
58982         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
58983         numbers.
58984
58985 2006-01-09  Bruno Haible  <bruno@clisp.org>
58986
58987         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
58988         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
58989         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
58990         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
58991
58992 2006-01-09  Bruno Haible  <bruno@clisp.org>
58993
58994         * build-aux/javacomp.sh.in: New file, moved from lib/.
58995         * modules/javacomp-script (Files): Update.
58996         (configure.ac): Add AC_CONFIG_FILES invocation.
58997         (EXTRA_DIST): Remove variable.
58998
58999         * build-aux/javaexec.sh.in: New file, moved from lib/.
59000         * modules/javaexec (Files): Update.
59001         (configure.ac): Add AC_CONFIG_FILES invocation.
59002         (EXTRA_DIST): Remove javaexec.sh.in.
59003
59004         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
59005         * modules/csharpcomp-script (Files): Update.
59006         (configure.ac): Add AC_CONFIG_FILES invocation.
59007         (EXTRA_DIST): Remove variable.
59008
59009         * build-aux/csharpexec.sh.in: New file, moved from lib/.
59010         * modules/csharpexec (Files): Update.
59011         (configure.ac): Add AC_CONFIG_FILES invocation.
59012         (EXTRA_DIST): Remove csharpexec.sh.in.
59013
59014 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
59015
59016         Sync from coreutils.
59017
59018         Add POSIX ACL support
59019         * lib/acl.h (copy_acl, set_acl): Add declarations.
59020         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
59021         systems other than Linux.
59022         (chmod_or_fchmod): New function: use fchmod when possible,
59023         and chmod otherwise.
59024         (file_has_acl): Add a POSIX ACL implementation, with a
59025         Linux-specific subcase.
59026         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
59027         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
59028         acls are unsupported.
59029         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
59030         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
59031         are unsupported.
59032
59033 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
59034
59035         Sync from coreutils.
59036         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
59037
59038 2006-01-07  Bruno Haible  <bruno@clisp.org>
59039
59040         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
59041         gl_EARLY.
59042
59043 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
59044
59045         * lib/strftime.c (tzname): Don't declare if it is already #defined.
59046         Problem reported for Mingw by Mark Junker.
59047
59048 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
59049
59050         * README: Gnulib normally doesn't generate a tarball.
59051
59052 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
59053
59054         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
59055         long int, not int, for nanosecond counts, so that people who are
59056         used to POSIX struct timespec won't be surprised.  Reported by Jim
59057         Meyering.
59058
59059 2005-12-28  Bruno Haible  <bruno@clisp.org>
59060
59061         * build-aux/config.rpath: Update from GNU gettext.
59062
59063 2005-12-16  Jim Meyering  <jim@meyering.net>
59064
59065         * modules/fprintftime: New module.
59066         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
59067
59068 2005-12-16  Jim Meyering  <jim@meyering.net>
59069
59070         * m4/fprintftime.m4: New file.
59071
59072 2005-12-16  Jim Meyering  <jim@meyering.net>
59073
59074         * lib/fprintftime.c, lib/fprintftime.h: New files.
59075
59076 2005-12-15  Simon Josefsson  <jas@extundo.com>
59077
59078         * modules/socklen (configure.ac): Fix M4 macro name, to align with
59079         new m4/socklen.m4.
59080
59081 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59082
59083         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
59084         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
59085
59086 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59087
59088         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
59089         * lib/argp-help.c (fill_in_uparams): Check if the constructed
59090         struct uparams is valid. Fall back to the default values if it is
59091         not.
59092
59093 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59094
59095         * modules/argp (Files): Add argp-pin.c
59096         (Depends-on): dirname
59097         (lib_SOURCES): Add argp-pin.c
59098
59099 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59100
59101         * m4/argp.m4:  Check if program_invocation_name and
59102         program_invocation_short_name are declared and define appropriate
59103         macros if they are not.
59104
59105 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59106
59107         * lib/argp-help.c (__argp_base_name): New function
59108         (__argp_short_program_name): Rewrite using __argp_base_name
59109         * lib/argp-namefrob.h: Define program_invocation_name and
59110         program_invocation_short_name if requested
59111         (__argp_base_name): Add prototype
59112         * lib/argp-parse.c (argp_def): Use gettext wrappers
59113         (argp_default_parser): Use __argp_base_name
59114         * lib/argp-pin.c: New file. Defines program_invocation_name and
59115         program_invocation_short_name on systems that lack them.
59116
59117 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
59118
59119         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
59120         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
59121         porting problem reported by Georg Schwarz in
59122         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
59123
59124 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
59125
59126         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
59127         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
59128         porting problem reported by Georg Schwarz in
59129         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
59130
59131 2005-12-05  Bruno Haible  <bruno@clisp.org>
59132
59133         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
59134         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
59135         Reported by Mark Junker <mjscod@gmx.de>.
59136
59137 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
59138
59139         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
59140         Use implementation from Albert Chin, with some
59141         comments/corrections by Stepan Kasal and myself.
59142
59143 2005-12-02  Bruno Haible  <bruno@clisp.org>
59144
59145         * gnulib-tool (func_import): Accept GPLed build tool modules when
59146         --lgpl is given.
59147         * modules/csharpcomp-script: New file.
59148         * modules/csharpcomp: Depend on it.
59149         * modules/javacomp-script: New file.
59150         * modules/javacomp: Depend on it.
59151         Suggested by Simon Josefsson.
59152
59153 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
59154
59155         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
59156         statement, to work around an HP-UX 10.20 compiler bug reported by
59157         Peter O'Gorman.
59158
59159 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
59160
59161         * modules/savedir (Depends-on): Add openat.
59162
59163 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
59164
59165         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
59166         (uintmax_t) [defined uintmax_t]: Do not declare.
59167         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
59168         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
59169         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
59170         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
59171         sake of portability to weird hosts that C allows (though we don't
59172         know of any practical examples).
59173
59174         * lib/savedir.h (fdsavedir): New decl.
59175         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
59176         contains most of the former guts of savedir.
59177         (savedir): Use savedirstream.
59178         Include "openat.h".
59179
59180 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
59181
59182         * modules/obstack (Files): Add m4/ulonglong.m4.
59183         Problem reported by Davide Angelocola.
59184
59185 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59186
59187         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
59188         coreutils no longer futzes with rounding modes.
59189
59190 2005-11-14  Jim Meyering  <jim@meyering.net>
59191
59192         * lib/mkstemp-safer.c: Include <config.h>, required for possible
59193         replacement of mkstemp.
59194
59195 2005-11-10  Simon Josefsson  <jas@extundo.com>
59196
59197         * lib/readline.c: Remove EOL.
59198
59199 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59200
59201         * modules/gethrxtime (Depends-on): Add gettime.
59202
59203 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59204
59205         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
59206         or gettimeofday; no longer needed.
59207
59208 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59209
59210         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
59211         time business.
59212         (gethrxtime) [! (HAVE_NANOUPTIME
59213         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
59214         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
59215         our own approximation.
59216
59217 2005-11-08  Eric Blake  <ebb9@byu.net>
59218
59219         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
59220
59221 2005-11-08  Eric Blake  <ebb9@byu.net>
59222
59223         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
59224
59225 2005-11-04  Bruno Haible  <bruno@clisp.org>
59226
59227         * gnulib-tool: Implement --update mode.
59228
59229 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
59230
59231         Fix porting problem reported by Theodoros V. Kalamatianos.
59232         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
59233         Don't assume that futimes failing means we must fail.
59234
59235 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
59236
59237         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
59238         variables to suggest the intended function of the PATH_MAX check.
59239
59240 2005-10-30  Kean Johnston  <jkj@sco.com>
59241
59242         Trivial changes to support SCO systems.
59243         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
59244         as PATH_MAX.
59245         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
59246         where __ptr is null when no I/O is pending.
59247
59248 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59249
59250         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
59251         leave errno alone.  Problem reported by Dmitry V. Levin.
59252
59253 2005-10-28  Simon Josefsson  <jas@extundo.com>
59254
59255         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
59256         Test more.
59257
59258         * tests/test-gc-md2.c, tests/test-md2.c: New files.
59259
59260         * modules/md2, modules/md2-tests: New files.
59261
59262 2005-10-28  Simon Josefsson  <jas@extundo.com>
59263
59264         * m4/inet_ntop.m4: More tests.
59265
59266         * m4/gc-md2.m4, md2.m4: New file.
59267
59268 2005-10-28  Simon Josefsson  <jas@extundo.com>
59269
59270         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
59271         "restrict" keywords, as per POSIX.  Protect the function
59272         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
59273         Don't use K&R prototypes.  Check the sprintf return values.
59274         Re-define EAFNOSUPPORT if not present.  Indent.
59275
59276         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
59277         suggested by Bruno Haible <bruno@clisp.org>.
59278
59279         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
59280
59281         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
59282
59283         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
59284         libgcrypt).
59285
59286         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
59287
59288         * lib/md2.h, lib/md2.c: New files.
59289
59290 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
59291
59292         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
59293         errno alone.  Problem reported by Frederic Jolliton.
59294
59295 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
59296
59297         * modules/verify (License): Change from GPL to LGPL.  This is a
59298         tiny module and there are apparently near-equivalents that are
59299         under the BSD license.
59300
59301 2005-10-24  Simon Josefsson  <jas@extundo.com>
59302
59303         * modules/sha1: Relicense to LGPL.
59304
59305 2005-10-24  Simon Josefsson  <jas@extundo.com>
59306
59307         * lib/md4.h: Shrink buffer size, now that we changed the type.
59308
59309 2005-10-23  Simon Josefsson  <jas@extundo.com>
59310
59311         * gnulib-tool (func_import): Fix --tests-base.
59312
59313 2005-10-22  Simon Josefsson  <jas@extundo.com>
59314
59315         * modules/arcfour (Depends-on): Need stdint.
59316
59317 2005-10-22  Simon Josefsson  <jas@extundo.com>
59318
59319         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
59320         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
59321
59322 2005-10-22  Simon Josefsson  <jas@extundo.com>
59323
59324         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
59325         suggested by Bruno Haible <bruno@clisp.org>.
59326
59327 2005-10-22  Simon Josefsson  <jas@extundo.com>
59328
59329         * lib/crc.h: Include stddef.h, for size_t.
59330
59331 2005-10-22  Simon Josefsson  <jas@extundo.com>
59332
59333         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
59334         arcfour_context struct (simplify test vector testing in GNU
59335         Shishi).
59336
59337 2005-10-21  Simon Josefsson  <jas@extundo.com>
59338
59339         * modules/des, modules/des-tests: New files.
59340
59341         * modules/gc-des, modules/gc-des-tests: New files.
59342
59343         * tests/test-des.c, tests/test-gc-des.c: New file.
59344
59345 2005-10-21  Simon Josefsson  <jas@extundo.com>
59346
59347         * modules/arctwo, modules/arctwo-tests: New files.
59348
59349         * tests/test-arctwo.c: New file.
59350
59351         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
59352
59353         * tests/test-gc-arctwo.c: New file.
59354
59355 2005-10-21  Simon Josefsson  <jas@extundo.com>
59356
59357         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
59358         Bruno Haible <bruno@clisp.org>.
59359
59360         * m4/gc-des.m4: New file.
59361
59362 2005-10-21  Simon Josefsson  <jas@extundo.com>
59363
59364         * m4/arctwo.m4: New file.
59365
59366         * m4/gc-arctwo.m4: New file.
59367
59368 2005-10-21  Simon Josefsson  <jas@extundo.com>
59369
59370         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
59371         block.
59372
59373 2005-10-21  Simon Josefsson  <jas@extundo.com>
59374
59375         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
59376         <bruno@clisp.org>.
59377
59378         * lib/hmac-sha1.c (hmac_sha1): Likewise.
59379
59380         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
59381         Bruno Haible <bruno@clisp.org>.
59382
59383         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
59384         <bruno@clisp.org>.
59385
59386 2005-10-21  Simon Josefsson  <jas@extundo.com>
59387
59388         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
59389
59390 2005-10-21  Simon Josefsson  <jas@extundo.com>
59391
59392         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
59393
59394 2005-10-21  Simon Josefsson  <jas@extundo.com>
59395
59396         * lib/des.h, lib/des.c: New files.
59397
59398         * lib/gc-gnulib.c: Support DES.c
59399
59400 2005-10-21  Simon Josefsson  <jas@extundo.com>
59401
59402         * lib/arctwo.h, lib/arctwo.c: New files.
59403
59404         * lib/gc-gnulib.c: Support ARCTWO.
59405
59406 2005-10-21  Simon Josefsson  <jas@extundo.com>
59407
59408         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
59409         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59410
59411 2005-10-21  Simon Josefsson  <jas@extundo.com>
59412
59413         * gnulib-tool (func_import, func_create_testdir): Define automake
59414         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
59415         Makefile.am snippet),
59416         suggested by Bruno Haible <bruno@clisp.org>.
59417
59418         * modules/gc (Makefile.am): Use it.
59419
59420 2005-10-21  Bruno Haible  <bruno@clisp.org>
59421
59422         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
59423         patch.
59424
59425 2005-10-19  Simon Josefsson  <jas@extundo.com>
59426
59427         * tests/test-gc-rijndael.c: New file.
59428
59429         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
59430
59431 2005-10-19  Simon Josefsson  <jas@extundo.com>
59432
59433         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
59434         interface too.
59435
59436 2005-10-19  Simon Josefsson  <jas@extundo.com>
59437
59438         * tests/test-gc-arcfour.c: New file.
59439
59440         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
59441
59442 2005-10-19  Simon Josefsson  <jas@extundo.com>
59443
59444         * modules/gc-md4, modules/gc-md4-tests: New file.
59445
59446         * tests/test-gc-md4.c: New file.
59447
59448 2005-10-19  Simon Josefsson  <jas@extundo.com>
59449
59450         * m4/gc-md4.m4: New file.
59451
59452 2005-10-19  Simon Josefsson  <jas@extundo.com>
59453
59454         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
59455         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
59456         <kasal@ucw.cz>.
59457
59458 2005-10-19  Simon Josefsson  <jas@extundo.com>
59459
59460         * m4/gc-arcfour.m4: New file.
59461
59462         * m4/gc-rijndael.m4: New file.
59463
59464 2005-10-19  Simon Josefsson  <jas@extundo.com>
59465
59466         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
59467
59468 2005-10-19  Simon Josefsson  <jas@extundo.com>
59469
59470         * lib/gc-gnulib.c: Support ARCFOUR.
59471
59472 2005-10-19  Simon Josefsson  <jas@extundo.com>
59473
59474         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
59475         support.
59476
59477         * lib/gc.h: Add ECB enum type.
59478
59479         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
59480
59481 2005-10-18  Simon Josefsson  <jas@extundo.com>
59482
59483         * tests/test-md5.c: New file.
59484
59485         * modules/md5-tests: New file.
59486
59487 2005-10-18  Simon Josefsson  <jas@extundo.com>
59488
59489         * tests/test-md4.c: New file.
59490
59491         * modules/md4, modules/md4-tests: New files.
59492
59493 2005-10-18  Simon Josefsson  <jas@extundo.com>
59494
59495         * m4/md4.m4: New file.
59496
59497 2005-10-18  Simon Josefsson  <jas@extundo.com>
59498
59499         * lib/md4.h, lib/md4.c: New files, based on md5.?.
59500
59501 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
59502
59503         * gnulib-tool (func_create_testdir): Omit the second check whether
59504         BUILT_SOURCES in nonempty.
59505
59506 2005-10-17  Simon Josefsson  <jas@extundo.com>
59507
59508         * tests/test-rijndael.c: New file.
59509
59510 2005-10-17  Simon Josefsson  <jas@extundo.com>
59511
59512         * modules/sha1: Depend on stdint instead of md5.
59513
59514         * modules/md5: Depend on stdint, remove uint32_t.
59515
59516 2005-10-17  Simon Josefsson  <jas@extundo.com>
59517
59518         * modules/gc-sha1-tests: New file.
59519
59520         * tests/test-gc-sha1.c: New file.
59521
59522 2005-10-17  Simon Josefsson  <jas@extundo.com>
59523
59524         * m4/md5.m4: Remove call to uint32_t.m4.
59525
59526 2005-10-17  Simon Josefsson  <jas@extundo.com>
59527
59528         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
59529
59530         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
59531         md5.h.
59532
59533         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
59534
59535         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
59536
59537 2005-10-17  Simon Josefsson  <jas@extundo.com>
59538
59539         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
59540
59541 2005-10-17  Simon Josefsson  <jas@extundo.com>
59542
59543         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
59544
59545 2005-10-17  Simon Josefsson  <jas@extundo.com>
59546
59547         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
59548
59549         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
59550
59551 2005-10-17  Bruno Haible  <bruno@clisp.org>
59552
59553         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
59554         that it can also be used in a test.
59555
59556 2005-10-16  Bruno Haible  <bruno@clisp.org>
59557
59558         * gnulib-tool (func_emit_tests_Makefile_am): Also define
59559         TESTS_ENVIRONMENT, so that individual tests can augment it.
59560
59561         * gnulib-tool (func_create_testdir): Use an intermediate target for
59562         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
59563         macros, like $(ALLOCA_H), which cannot be passed through the command
59564         line.
59565
59566 2005-10-15  Simon Josefsson  <jas@extundo.com>
59567
59568         * modules/rijndael-tests: New file.
59569
59570         * modules/rijndael: New file.
59571
59572 2005-10-15  Simon Josefsson  <jas@extundo.com>
59573
59574         * m4/rijndael.m4: New file.
59575
59576 2005-10-15  Simon Josefsson  <jas@extundo.com>
59577
59578         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
59579
59580         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
59581
59582 2005-10-14  Simon Josefsson  <jas@extundo.com>
59583
59584         * tests/test-arcfour.c: New file.
59585
59586         * modules/arcfour, modules/arcfour-tests: New files.
59587
59588 2005-10-14  Simon Josefsson  <jas@extundo.com>
59589
59590         * m4/arcfour.m4: New file.
59591
59592 2005-10-14  Simon Josefsson  <jas@extundo.com>
59593
59594         * lib/arcfour.h, lib/arcfour.c: New files.
59595
59596 2005-10-14  Roland McGrath  <roland@redhat.com>
59597
59598         Import from libc.  [BZ #1331]
59599         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
59600         macro argument.
59601         Reported by Matej Vela <vela@debian.org>.
59602
59603 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
59604
59605         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
59606         include <wchar.h>; no longer needed.
59607
59608 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
59609
59610         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
59611
59612 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
59613         and  Ulrich Drepper  <drepper@redhat.com>
59614
59615         Import from libc.
59616         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
59617         instead of inline stream orientation test and two separate
59618         function calls.  Pay no attention to USE_IN_LIBIO.
59619
59620 2005-10-13  Simon Josefsson  <jas@extundo.com>
59621
59622         * modules/gc-hmac-md5-tests: New file.
59623
59624         * tests/test-gc-hmac-sha1.c: New file.
59625
59626         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
59627
59628         * modules/gc-hmac-md5-tests: New file.
59629
59630         * tests/test-gc-md5.c: New file.
59631
59632         * modules/gc-md5-tests: New file.
59633
59634 2005-10-13  Simon Josefsson  <jas@extundo.com>
59635
59636         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
59637         Move memory allocation outside of loop.
59638
59639 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
59640
59641         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
59642         intermediate directory is in a read-only file system.  Problem
59643         reported by Eric Blake.
59644
59645 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
59646
59647         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
59648
59649 2005-10-12  Simon Josefsson  <jas@extundo.com>
59650
59651         * tests/test-hmac-sha1.c: New file.
59652
59653         * modules/hmac-sha1-tests: New file.
59654
59655         * modules/hmac-sha1: New file.
59656
59657 2005-10-12  Simon Josefsson  <jas@extundo.com>
59658
59659         * modules/gc-sha1: New file.
59660
59661 2005-10-12  Simon Josefsson  <jas@extundo.com>
59662
59663         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
59664
59665         * tests/test-gc-pbkdf2-sha1.c: New file.
59666
59667 2005-10-12  Simon Josefsson  <jas@extundo.com>
59668
59669         * modules/gc-md5, modules/gc-hmac-md5: New files.
59670
59671         * modules/gc (Files): Remove md5, memxor and hmac files.
59672
59673 2005-10-12  Simon Josefsson  <jas@extundo.com>
59674
59675         * m4/gc-pbkdf2-sha1.m4: New file.
59676
59677         * m4/gc-hmac-sha1.m4: New file.
59678
59679         * m4/gc-sha1: New file.
59680
59681         * m4/hmac-sha1.m4: New file.
59682
59683 2005-10-12  Simon Josefsson  <jas@extundo.com>
59684
59685         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
59686
59687         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
59688
59689 2005-10-12  Simon Josefsson  <jas@extundo.com>
59690
59691         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
59692         suggested by Bruno Haible <bruno@clisp.org>.
59693
59694 2005-10-12  Simon Josefsson  <jas@extundo.com>
59695
59696         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
59697
59698 2005-10-12  Simon Josefsson  <jas@extundo.com>
59699
59700         * lib/gc-pbkdf2-sha1.c: New file.
59701
59702         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
59703
59704 2005-10-12  Simon Josefsson  <jas@extundo.com>
59705
59706         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
59707
59708         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
59709
59710 2005-10-12  Simon Josefsson  <jas@extundo.com>
59711
59712         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
59713         GC_USE_HMAC_MD5, respectively.
59714
59715         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
59716         (gc_md5): Fix typo.
59717
59718         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
59719
59720         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
59721
59722         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
59723
59724 2005-10-12  Bruno Haible  <bruno@clisp.org>
59725
59726         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
59727         Reported by Stepan Kasal <kasal@ucw.cz>.
59728
59729 2005-10-11  Simon Josefsson  <jas@extundo.com>
59730
59731         * tests/test-crc.c: New file.
59732
59733         * modules/crc, modules/crc-tests: New files.
59734
59735 2005-10-11  Simon Josefsson  <jas@extundo.com>
59736
59737         * m4/crc.m4: New file.
59738
59739 2005-10-11  Simon Josefsson  <jas@extundo.com>
59740
59741         * lib/gc.h: Add gc_hash and gc_hash_buffer.
59742
59743         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
59744
59745         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
59746
59747 2005-10-11  Simon Josefsson  <jas@extundo.com>
59748
59749         * lib/crc.h, lib/crc.c: New files.
59750
59751         * lib/gc.h (gc_hash_buffer): Add doc.
59752
59753 2005-10-11  Bruno Haible  <bruno@clisp.org>
59754
59755         * modules/c-strcasestr: New file.
59756         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
59757
59758 2005-10-11  Bruno Haible  <bruno@clisp.org>
59759
59760         * modules/c-strcase: New file.
59761         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
59762
59763 2005-10-11  Bruno Haible  <bruno@clisp.org>
59764
59765         * lib/strcasecmp.c: Include limits.h.
59766         (strcasecmp): Avoid integer overflow on exotic platforms.
59767         * lib/strncasecmp.c: Include limits.h.
59768         (strncasecmp): Avoid integer overflow on exotic platforms.
59769         Reported by Paul Eggert.
59770
59771 2005-10-11  Bruno Haible  <bruno@clisp.org>
59772
59773         * lib/c-strcasestr.h: New file, from GNU gettext.
59774         * lib/c-strcasestr.c: New file, from GNU gettext.
59775
59776 2005-10-11  Bruno Haible  <bruno@clisp.org>
59777
59778         * lib/c-strcase.h: New file, from GNU gettext.
59779         * lib/c-strcasecmp.c: New file, from GNU gettext.
59780         * lib/c-strncasecmp.c: New file, from GNU gettext.
59781
59782 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59783
59784         * modules/mempcpy (License): GPL -> LGPL.
59785         * modules/strchrnul (License): Likewise.
59786         * modules/sysexits (License): Likewise.
59787
59788 2005-10-08  Simon Josefsson  <jas@extundo.com>
59789
59790         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
59791
59792 2005-10-07  Simon Josefsson  <jas@extundo.com>
59793
59794         * m4/memxor.m4: Remove gl_C_RESTRICT call.
59795
59796 2005-10-06  Simon Josefsson  <jas@extundo.com>
59797
59798         * tests/test-hmac-md5.c: New file.
59799
59800         * modules/hmac-md5-tests: New file.
59801
59802         * modules/hmac-md5: New file.
59803
59804 2005-10-06  Simon Josefsson  <jas@extundo.com>
59805
59806         * m4/hmac-md5.m4: New file.
59807
59808         * m4/memxor.m4: Require gl_C_RESTRICT.
59809
59810 2005-10-06  Simon Josefsson  <jas@extundo.com>
59811
59812         * lib/memxor.c (memxor): Avoid casts and warnings.
59813
59814 2005-10-06  Simon Josefsson  <jas@extundo.com>
59815
59816         * lib/hmac-md5.c: New file.
59817
59818         * lib/hmac.h: New file.
59819
59820 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
59821
59822         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
59823         promotes to int, not unsigned int, to catch the AIX 5.3
59824         compiler bug.
59825
59826 2005-10-05  Simon Josefsson  <jas@extundo.com>
59827
59828         * modules/memxor: New file.
59829
59830         * modules/iconv (Files): Move config.rpath to havelib, it is used
59831         there.
59832
59833         * modules/havelib (Files): Add config.rpath.
59834
59835 2005-10-05  Simon Josefsson  <jas@extundo.com>
59836
59837         * m4/memxor.m4: New file.
59838
59839 2005-10-05  Simon Josefsson  <jas@extundo.com>
59840
59841         * lib/memxor.c (memxor): Fix compiler error.
59842
59843         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
59844         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
59845
59846         * lib/memxor.h, lib/memxor.c: New files.
59847
59848         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
59849         we assume all systems have it, suggested by Jim Meyering
59850         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
59851         any systems lack sys/socket.h; mingw32 is known to lack it, but we
59852         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
59853         same reasons.
59854
59855 2005-10-05  Simon Josefsson  <jas@extundo.com>
59856
59857         * config/srclist.txt: Add glibc bug 1423 for md5.h.
59858
59859 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
59860
59861         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
59862         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
59863         needed, since the source code now assumes these .h files.
59864
59865 2005-10-05  Derek Price  <derek@ximbiot.com>
59866
59867         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
59868
59869 2005-10-05  Bruno Haible  <bruno@clisp.org>
59870
59871         * modules/stdint (License): Change to LGPL.
59872
59873 2005-10-04  Simon Josefsson  <jas@extundo.com>
59874
59875         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
59876         D. Baushke" <mdb@gnu.org>.
59877
59878 2005-10-04  Bruno Haible  <bruno@clisp.org>
59879
59880         * lib/verify.h (verify_true): Provide alternative definition for C++.
59881
59882 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
59883
59884         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
59885         (SSIZE_MAX): New macro, if not already defined.
59886         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
59887         than 2 GiB.
59888
59889 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
59890
59891         Sync from coreutils.
59892         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
59893         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
59894         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
59895         ULLONG_MAX doesn't work with 2.7.2.1.
59896
59897 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
59898
59899         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
59900         From Ben Pfaff.
59901
59902         * modules/exclude (Depends-on): Depend on verify.
59903         * modules/strtoimax (Depends-on): Likewise.
59904         * modules/utimecmp (Depends-on): Likewise.
59905
59906 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
59907
59908         * lib/exclude.c: Include verify.h.
59909         (verify): Remove.  All callers changed to use verify.h's version.
59910         * lib/strtoimax.c: Likewise.
59911         * lib/utimecmp.c: Likewis.e
59912
59913         Sync from coreutils.
59914         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
59915         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
59916         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
59917         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
59918         bother returning ENOSYS if settimeofday or stime fails; just let
59919         them return whatever errno they want to return.
59920         * lib/utimens.c: Include unistd.h, for dup2.
59921         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
59922         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
59923
59924 2005-10-02  Jim Meyering  <jim@meyering.net>
59925
59926         Sync from coreutils.
59927         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
59928         from glibc-2.2.5 that fails for read-only files.
59929
59930 2005-10-02  Jim Meyering  <jim@meyering.net>
59931
59932         Sync from coreutils.
59933         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
59934         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
59935         `#if HAVE_CONFIG_H'.
59936         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
59937         Remove AT_FDCWD test.
59938         Do not consume the fd unless successful.
59939         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
59940         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
59941         block, so that we don't even try to compile it if settimeofday is
59942         available.  This works around a compilation failure on OSF1 V5.1,
59943         due to stime requiring a `long int*' while tv_sec is `int'.
59944
59945 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
59946
59947         Sync from coreutils.
59948         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
59949         against `yes', rather than just testing for nonempty.
59950
59951 2005-10-01  Simon Josefsson  <jas@extundo.com>
59952
59953         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
59954         and Darwin.
59955
59956         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
59957         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
59958         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
59959         freeaddrinfo and gai_strerror are declared by the POSIX headers.
59960         Check if struct addrinfo is declared.
59961
59962 2005-10-01  Simon Josefsson  <jas@extundo.com>
59963
59964         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
59965         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
59966         AI_* and EAI_* definitions.  Protect function declarations.
59967
59968 2005-10-01  Jim Meyering  <jim@meyering.net>
59969
59970         Sync from coreutils.
59971
59972         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
59973         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
59974         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
59975         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
59976         in the inet and nsl libraries.  Required on Solaris 5.7.
59977
59978 2005-10-01  Jim Meyering  <jim@meyering.net>
59979
59980         Sync from coreutils.
59981         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
59982         in the inet and nsl libraries.  Required on Solaris 5.7.
59983
59984 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
59985
59986         * lib/getdelim.c (getdelim): Remove unused variables.
59987
59988 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
59989
59990         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
59991         so that the code works even with ancient cpp.  Portability problem
59992         with GCC 2.7.2.1 reported by Thomas M.Ott.
59993
59994 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
59995
59996         * modules/regex (Depends-on): Add strcase.
59997
59998         * modules/gethostname (Licence): Change from GPL to LGPL, since
59999         gethostname.c is a trivial implementation of a standard library
60000         function.
60001         * modules/poll (License): Change from GPL to LGPL, since it's
60002         derived from LGPL code.
60003
60004 2005-09-27  Jim Meyering  <jim@meyering.net>
60005
60006         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
60007         HAVE_CONFIG_H.
60008
60009         * lib/intprops.h (signed_type_or_expr__): Define.
60010         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
60011         for unsigned types.
60012
60013 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
60014
60015         * lib/verify.h (verify_expr): Remove, replacing with:
60016         (verify_true): New macro that returns true instead of void.
60017         (verify_type__): Remove.
60018         (verify): Use verify_true rather than verify_type__.
60019
60020 2005-09-26  Bruno Haible  <bruno@clisp.org>
60021
60022         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
60023         is necessary.
60024         (lib_SOURCES): Remove mbchar.c.
60025         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
60026         (Files): Add m4/mbrtowc.m4.
60027         * modules/mbiter: Likewise.
60028         * modules/mbuiter: Likewise.
60029
60030 2005-09-26  Bruno Haible  <bruno@clisp.org>
60031
60032         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
60033         compile mbchar.c if they are not both present.
60034         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
60035         * m4/mbiter.m4 (gl_MBITER): Likewise.
60036         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
60037         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
60038         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
60039
60040 2005-09-25  Jim Meyering  <jim@meyering.net>
60041
60042         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
60043         also uses socklen_t.
60044
60045 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
60046
60047         * lib/utimens.c (ENOSYS): Define if not already defined.
60048         (futimens): Support having a null PATH if the file descriptor
60049         is nonnegative.
60050
60051         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
60052         Remove.
60053         (__attribute): Define to empty unless GCC 3.1 or later.
60054         This works around a core dump on OpenBSD 3.4, which has GCC
60055         2.95.3, which dumps core when given __attribute__(()).  It also
60056         simplifies other tests, since we really don't want to bother with
60057         worrying about which ancient version of GCC supported what.
60058         Original problem reported by Yoann Vandoorselaere, with part of
60059         the fix suggested by Derek Price.
60060
60061 2005-09-24  Jim Meyering  <jim@meyering.net>
60062
60063         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
60064         so we can once again use a positive bitfield width of 1 -- now we
60065         don't have to explain why we were using a bitfield width of 2.
60066
60067 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
60068
60069         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
60070         and similarly for the other external symbols.  Problem reported
60071         by James Gallager.
60072
60073         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
60074         bug reported by Jim Meyering.
60075
60076         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
60077         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
60078         not needed, since socklen is a prerequisite module.
60079
60080 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
60081
60082         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
60083         Problem reported by Eric Blake.
60084         (getaddrinfo): Initialize se so that it's not garbage.
60085         Redo internal storage allocation so that it doesn't make unportable
60086         assumptions about alignment.
60087         Fix a memory leak.
60088
60089         * lib/utimens.c (futimens): Use futimesat if available.
60090         Prefer it to futimes since it doesn't have the futimes bug.
60091
60092         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
60093         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
60094         Instead, declare a function that returns a pointer to an array,
60095         and use verify_type__ to declare the size of the array.
60096         Problem and germ of a solution reported by Bruno Haible.
60097         (verify_type__): Use 2, not 1, for bitfield size, to avoid
60098         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
60099
60100 2005-09-23  Jim Meyering  <jim@meyering.net>
60101
60102         Sync from coreutils.
60103         Correct build failure (socklen_t not defined) on at least
60104         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
60105         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
60106
60107 2005-09-23  Jim Meyering  <jim@meyering.net>
60108
60109         * modules/getaddrinfo (Depends-on): Add socklen.
60110
60111 2005-09-23  Bruno Haible  <bruno@clisp.org>
60112
60113         * tests/test-verify.c: New file.
60114
60115 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
60116
60117         Sync from coreutils.
60118
60119         * modules/argmatch (Depends-on): Add verify.
60120         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
60121         unistd-safer.
60122         * modules/save-cwd (Depends-on): Likewise.
60123
60124         * modules/openat (Files): Add lib/openat-die.c.
60125         (Depends-on): Remove error, exitfail.
60126         Add dirname.
60127
60128         * modules/verify: New file.
60129         * MODULES.html.sh (Diagnostics <assert.h>): New section,
60130         with "verify" module.
60131
60132 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
60133
60134         Sync from coreutils.
60135
60136         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
60137         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
60138         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
60139         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
60140         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
60141         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
60142         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
60143         Don't bother checking for string.h, stdlib.h, unistd.h.
60144         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
60145         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
60146         module's job.
60147         * m4/jm-macros.m4 (gl_MACROS): Likewise.
60148         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
60149
60150         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
60151         (gl_GETDATE): Use it.
60152
60153         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
60154
60155 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
60156
60157         Sync from coreutils.
60158
60159         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
60160         stat-time.h.
60161         * lib/argmatch.h: Include verify.h
60162         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
60163         (ARGMATCH_ASSERT): Remove; unused.
60164         * lib/canonicalize.c: Assume STDC_HEADERS.
60165         * lib/exclude.c: Include "strcase.h".
60166         * lib/regex_internal.h [!defined _LIBC]: Likewise.
60167         * lib/getusershell.c: Include stdio--.h rather than stdio.h
60168         and stdio-safer.h.
60169         (getusershell): Call fopen, not fopen_safer.
60170         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
60171         Do not include unistd-safer.h.
60172         (save_cwd): Don't call fd_safer; no longer needed
60173         now that we include fcntl--.h.
60174
60175         * lib/getdate.y (relative_time): New type.
60176         (RELATIVE_TIME_0): New constant.
60177         (parser_control): Use relative_time instead of doing it ourselves.
60178         (%union): Add new relative_time rel member.
60179         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
60180         Now typeless.
60181         (relunit, relunit_snumber): Now of type rel.
60182         (zone, rel, relunit, get_date): Adjust to above changes.
60183
60184         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
60185         Do not include unistd-safer.h.
60186         (getloadavg): Don't call fd_safer; no longer needed
60187         now that we include fcntl--.h.
60188
60189         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
60190         (make_dir_parents): Treat ENOSYS like EEXIST.
60191
60192         Improve quality of diagnostics on restore_cwd failure.
60193         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
60194         (make_dir_parents): Last arg is now int * (for errno), not bool *.
60195         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
60196         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
60197         each time through the loop.  Do not diagnose restore_cwd failure;
60198         that is the caller's job (and perhaps the caller does not care).
60199
60200         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
60201         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
60202         If the file already exists but is not a directory, don't bother
60203         to try to make its parents.
60204         Close potential file descriptor leak if we can't chdir("/") (!).
60205         Don't always return true if chdir($PWD) fails; return true only
60206         if the requested action was done successfully (except for the
60207         chdir($PWD)).
60208         Don't log final directory unless we actually made it.
60209         Refactor to avoid duplicate code to fix up permissions.
60210         Don't attempt to fix up parent permissions if chdir($PWD) fails.
60211
60212         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
60213         to make it a bit faster and (I hope) clearer.
60214         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
60215         Fix bug in formats like %2N.
60216
60217         * lib/verify.h: New file.
60218
60219 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
60220
60221         Sync from coreutils.
60222         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
60223
60224 2005-09-22  Jim Meyering  <jim@meyering.net>
60225
60226         Sync from coreutils.
60227
60228         * m4/lstat.m4 (gl_FUNC_LSTAT):
60229         Use AC_LIBSOURCES to require lstat.c and lstat.h.
60230         Remove obsolete comment.
60231         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
60232         * m4/xstrtod.m4: Likewise.
60233
60234         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
60235
60236 2005-09-22  Jim Meyering  <jim@meyering.net>
60237
60238         Sync from coreutils.
60239
60240         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
60241
60242         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
60243         the .tm_year member, since otherwise gcc-4.0 would now warn about
60244         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
60245
60246         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
60247         order to avoid an unsuppressible warning from gcc on 64-bit systems.
60248
60249         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
60250         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
60251         when run in a time zone for which daylight savings time is in effect
60252         for the starting date.
60253
60254         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
60255         stop us from restricting permissions of just-created absolute-named
60256         directories.
60257         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
60258         to restore initial working directory.
60259         * lib/mkdir-p.c (make_dir_parents): New parameter:
60260         different_working_dir, to tell caller if/when we change the working
60261         directory and are unable to return to the initial one.
60262         * lib/mkdir-p.h (make_dir_parents): Update prototype.
60263         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
60264         `return false'.  This fixes a bug introduced on 2004-07-30.
60265
60266         * lib/openat.c (fdopendir): Be sure to close the supplied
60267         file descriptor before returning.  This makes our replacement
60268         implementation a little closer to Solaris's, where fdopendir
60269         ties the file descriptor to the returned DIR* pointer.
60270         * lib/openat.c (unlinkat): New function.
60271         * lib/openat.h (unlinkat): Add prototype.
60272         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
60273         (openat_restore_fail): Rename from openat_restore_die.
60274         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
60275
60276         Provide an alternative to exiting immediately upon save_cwd or
60277         restore_cwd failure.  Now, an application can arrange e.g.,
60278         to perform a longjump in that case.
60279         * lib/openat.c: Include dirname.h.
60280         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
60281         (rpl_openat, fdopendir, fstatat): Call openat_save_die
60282         and openat_restore_die rather than calling error directly.
60283         Don't include "error.h" or "exitfail.h"; they're no longer needed.
60284
60285         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
60286         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
60287         define.
60288
60289         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
60290         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
60291                             int utc, int nanoseconds);
60292         Background:
60293         date should not have to allocate a megabyte of virtual memory to
60294         handle a format argument like +%1048575T.  When implemented with
60295         strftime, it must allocate such a buffer, use strftime to fill it
60296         in, print it, then free it.
60297         With fprintftime, it simply prints everything and exits.
60298         With no need for memory allocation, that's one fewer way to fail.
60299         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
60300         optional field width, not before, so we accept %9:z, not %:9z.
60301         (my_strftime): Be sure to use L_('x') for literals.
60302
60303         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
60304         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
60305         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
60306         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
60307         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
60308         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
60309         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
60310         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
60311         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
60312         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
60313         * lib/xgethostname.c, lib/xreadlink.c:
60314         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
60315
60316         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
60317         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
60318         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
60319         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
60320         and don't include <sys/file.h>).
60321
60322 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
60323
60324         Sync from coreutils.
60325
60326         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
60327         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
60328         [!LDAV_DONE]: Avoid unused variable warning.
60329
60330 2005-09-21  Bruno Haible  <bruno@clisp.org>
60331
60332         * lib/unicodeio.h (unicode_to_mb): New declaration.
60333
60334 2005-09-20  Derek Price  <derek@ximbiot.com>
60335
60336         * lib/getaddrinfo.c: Don't include <netdb.h> included from
60337         getaddrinfo.h.
60338
60339 2005-09-20  Bruno Haible  <bruno@clisp.org>
60340
60341         * gnulib-tool: Remove trailing slashes from the values specified for
60342         --source-base, --m4-base, --tests-base, --aux-dir.
60343         Suggested by Simon Josefsson <jas@extundo.com>.
60344
60345 2005-09-20  Bruno Haible  <bruno@clisp.org>
60346
60347         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
60348         func_modules_to_filelist, func_import, func_create_testdir): Make all
60349         sorting results locale-independent, so that gnulib-cache.m4 doesn't
60350         change when gnulib-tool is invoked in a different locale.
60351
60352 2005-09-19  Simon Josefsson  <jas@extundo.com>
60353
60354         * m4/socklen.m4: Fix typo.
60355
60356 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60357
60358         Use a consistent style for including <config.h>.
60359         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
60360         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
60361         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
60362         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
60363         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
60364         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
60365         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
60366         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
60367         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
60368         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
60369         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
60370         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
60371         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
60372         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
60373         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
60374         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
60375         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
60376         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
60377         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
60378         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
60379         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
60380         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
60381         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
60382         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
60383         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
60384         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
60385         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
60386         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
60387         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
60388         lib/xstrtoumax.c, lib/yesno.c:
60389         Standardize inclusion of config.h.
60390         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
60391         lib/inttostr.h:  Removed inclusion of config.h from header files.
60392         * lib/inttostr.c:  Adjusted in-tree users.
60393         * lib/timespec.h: Remove superfluous warning to include config.h.
60394         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
60395         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
60396         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
60397         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
60398         config.h with HAVE_CONFIG_H.
60399
60400 2005-09-19  Jim Meyering  <jim@meyering.net>
60401
60402         * modules/pathmax (License): Change to LGPL.
60403
60404 2005-09-19  Derek Price  <derek@ximbiot.com>
60405
60406         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
60407
60408 2005-09-19  Bruno Haible  <bruno@clisp.org>
60409
60410         * gnulib-tool (import): Provide default for --tests-base.
60411
60412 2005-09-19  Bruno Haible  <bruno@clisp.org>
60413
60414         * doc/quote.texi: New file, extracted from gnulib.texi.
60415         * doc/ctime.texi: New file, extracted from gnulib.texi.
60416         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
60417         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
60418         * doc/gnulib.texi: Include them.
60419
60420 2005-09-18  Bruno Haible  <bruno@clisp.org>
60421
60422         Portability fix.
60423         * gnulib-tool (func_readlink): New function.
60424         (func_ln_if_changed): Use it.
60425
60426 2005-09-18  Bruno Haible  <bruno@clisp.org>
60427
60428         * gnulib-tool: Support --with-tests also with --import.
60429         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
60430         (func_import): Use variables $testsbase and $inctests. Emit a
60431         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
60432         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
60433         SUBDIRS += $testsdir.
60434         (func_create_testdir): Update.
60435
60436 2005-09-18  Bruno Haible  <bruno@clisp.org>
60437
60438         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
60439         instead of $dry_run.
60440         (func_cp_if_changed, func_mv_if_changed): Remove functions.
60441         (func_ln_if_changed): Don't handle dry-run here.
60442         (func_import): In dry-run mode, detect more precisely which actions
60443         would be performed, and don't use "...ing" verbs.
60444
60445 2005-09-18  Bruno Haible  <bruno@clisp.org>
60446
60447         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
60448         (func_import): Use join on two temporary files instead of three nested
60449         loops, in order to determine which files are new or old.
60450
60451 2005-09-18  Bruno Haible  <bruno@clisp.org>
60452
60453         * gnulib-tool (func_import): Comment out code that spits out the
60454         new files with --dry-run.
60455
60456 2005-09-18  Bruno Haible  <bruno@clisp.org>
60457
60458         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
60459
60460 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
60461
60462         * lib/stat-time.h: New file.
60463         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
60464         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
60465         in a different way.
60466         (timespec_cmp): New function.
60467         * lib/utimecmp.c: Include stat-time.h.
60468         (SYSCALL_RESOLUTION): Depend on whether various struct stat
60469         members exist, not on the obsolescent ST_MTIM_NSEC.
60470         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
60471
60472 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
60473
60474         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
60475
60476 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
60477
60478         * MODULES.html.sh (File system functions): Add stat-time.
60479         * modules/stat-time: New file.
60480         * modules/timespec (Files): Remove m4/st_mtim.m4; this
60481         is now done in a different way, by the stat-time module.
60482         * modules/utimecmp (Depends-on): Add stat-time.
60483
60484 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60485
60486         * m4/st_mtim.m4: Remove.  Superseded by...
60487         * m4/stat-time.m4: New file.
60488         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
60489         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
60490
60491 2005-09-15  Derek Price  <derek@ximbiot.com>
60492
60493         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
60494
60495 2005-09-15  Derek Price  <derek@ximbiot.com>
60496
60497         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
60498         * lib/regex_internal.c: Ditto, using this...
60499         (__GNUC_PREREQ): ...new macro.
60500         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
60501         using...
60502         (__GNUC_PREREQ): ...this new macro.
60503
60504         * lib/strstr.h: Include string.h. Define strstr as a macro here.
60505
60506 2005-09-15  Derek Price  <derek@ximbiot.com>
60507             Paul Eggert  <eggert@cs.ucla.edu>
60508
60509         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
60510         changes, consolidating in...
60511         * lib/regex_internal.h: ...this file.
60512
60513 2005-09-13  Jim Meyering  <jim@meyering.net>
60514
60515         * lib/canon-host.c: Filter through gnu indent and reword comments
60516         slightly.
60517         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
60518
60519 2005-09-13  Derek Price  <derek@ximbiot.com>
60520
60521         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
60522         failure.
60523         Reported by Jim Meyering  <jim@meyering.net>.
60524
60525 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60526
60527         * lib/base64.c: Typo.
60528         (base64_encode): Put b64str in initialized data section.
60529
60530 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
60531
60532         Merge glibc and coreutils changes into gnulib, plus a few
60533         extra fixes.
60534         * lib/md5.c: Use #error rather than a string.
60535         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
60536         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
60537         (__attribute__): Define to empty for non recent-GCC.
60538         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
60539         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
60540         Renamed from their non-__ counterparts, with new macros replacing
60541         them if not _LIBC.  Add __THROW attribute.
60542         (rol): Remove.
60543         (struct md5_ctx): Align buffer if using GCC.
60544         * lib/sha1.h (struct sha1_ctx): Likewise.
60545         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
60546         The old name was backwards.
60547         (NOTSWAP): Remove; not used.
60548         (rol): New macro, moved here from md5.h.
60549         (sha1_process_block): Remove a FIXME that doesn't make sense.
60550
60551 2005-09-12  Derek Price  <derek@ximbiot.com>
60552
60553         Return usable errors from canon-host.
60554         * lib/canon-host.h: New file.
60555         * lib/canon-host.c (canon_host): Wrap...
60556         (canon_host_r): ...this new function, which now relies exclusively on
60557         getaddrinfo.
60558         (ch_strerror): New function.
60559         (last_cherror): New global.
60560         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
60561         interface.
60562         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
60563         void *.
60564         (freeaddrinfo): Free ai->ai_canonname when set.
60565
60566 2005-09-12  Derek Price  <derek@ximbiot.com>
60567
60568         Make canon-host require getaddrinfo.
60569         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
60570         AC_LIBSOURCE canon-host.h.  Call...
60571         (gl_PREREQ_CANON_HOST): ...this new function, which requires
60572         gl_GETADDRINFO.
60573         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
60574
60575 2005-09-12  Derek Price  <derek@ximbiot.com>
60576
60577         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
60578         LGPL.
60579         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
60580
60581 2005-09-12  Derek Price  <derek@ximbiot.com>
60582
60583         * lib/gai_strerror.c: Include config.h when available.  Include
60584         getaddrinfo.h before other headers to test interface.
60585         Reported by Larry Jones <lawrence.jones@ugs.com>.
60586
60587 2005-09-12  Derek Price  <derek@ximbiot.com>
60588             Paul Eggert  <eggert@cs.ucla.edu>
60589
60590         * modules/glob (Files): Add glob-libc.h.
60591
60592 2005-09-12  Derek Price  <derek@ximbiot.com>
60593             Paul Eggert  <eggert@cs.ucla.edu>
60594
60595         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
60596         glob_.h, glob-libc.h.
60597         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
60598
60599 2005-09-12  Derek Price  <derek@ximbiot.com>
60600             Paul Eggert  <eggert@cs.ucla.edu>
60601
60602         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
60603         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
60604         protecting things that should be done only in gnulib contexts.
60605         * lib/glob_.h: New file, containing only the glob things needed for
60606         gnulib.
60607         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
60608         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
60609         (glob, globfree, glob_pattern_p): Now defined simply in terms of
60610         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
60611         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
60612         and to respect the namespace rules better.
60613
60614 2005-09-08  Simon Josefsson  <jas@extundo.com>
60615
60616         * modules/socklen: New file.
60617
60618 2005-09-08  Simon Josefsson  <jas@extundo.com>
60619
60620         * m4/socklen.m4: New file.
60621
60622 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60623
60624         * modules/utimens (Files): Add m4/utimbuf.m4, since
60625         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
60626         Reported by Sergey Poznyakoff.
60627
60628 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60629
60630         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
60631         definitions, since that's the preferred style in glibc.
60632         Fix a minor spacing issue, and update copyright notice to match
60633         glibc's.
60634
60635 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60636
60637         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
60638
60639 2005-09-06  Simon Josefsson  <jas@extundo.com>
60640
60641         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
60642         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
60643
60644 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
60645
60646         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
60647         warning.
60648
60649 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
60650
60651         * config/srclist.txt: Add glibc bug 1302.
60652
60653 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
60654
60655         Change bitset word type from unsigned int to unsigned long int,
60656         as this has better performance on typical 64-bit hosts.
60657         Port bitset code to hosts with unusual word sizes.
60658         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
60659         (build_collating_symbol):
60660         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
60661         argument is a bitset.  This is merely a style issue, but it makes
60662         it clearer that an entire array is expected.
60663         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
60664         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
60665         Port to the case where bitset_word is not the same as unsigned int.
60666         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
60667         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
60668         Likewise.
60669         * lib/regexec.c (check_dst_limits_calc_pos_1,
60670         check_subexp_matching_top):
60671         (build_trtable, group_nodes_into_DFAstates):
60672         Likewise.
60673         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
60674         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
60675         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
60676         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
60677         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
60678         * lib/regcomp.c (optimize_subexps, lower_subexp):
60679         Work even if bitset_word has holes in its bitwise representation.
60680         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
60681         * lib/regexec.c (check_dst_limits_calc_pos_1,
60682         check_subexp_matching_top):
60683         Likewise.
60684         * lib/regex_internal.c (re_string_reconstruct):
60685         Don't assume UCHAR_MAX == 255.
60686         * lib/regex_internal.h (bitset_set_all): Likewise.
60687         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
60688         All uses changed.
60689         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
60690         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
60691         All uses changed.
60692         (BITSET_WORD_MAX): New macro.
60693         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
60694         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
60695         (bitset_empty, bitset_copy):
60696         Prefer sizeof (bitset) to multiplying it out ourselves.
60697         (bitset_not_merge): Remove; unused.
60698         (bitset_contain): Return bool, not unsigned int with one bit on.
60699         All callers changed.
60700         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
60701         alignment than re_node_set; do this by defining a new internal
60702         type struct dests_alloc and using it to allocate memory.
60703
60704 2005-09-05  Bruno Haible  <bruno@clisp.org>
60705
60706         * gnulib-tool (func_import): Fix comparison in handling of symbolic
60707         links.
60708
60709 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
60710
60711         * modules/size_max (Makefile.am): Add size_max.h
60712
60713 2005-09-04  Derek Price  <derek@ximbiot.com>
60714
60715         * gnulib-tool (func_import): Fix reversed $symbolic logic.
60716
60717 2005-09-03  Simon Josefsson  <jas@extundo.com>
60718
60719         * gnulib-tool: Fix typo.
60720
60721 2005-09-03  Simon Josefsson  <jas@extundo.com>
60722
60723         * config/srclist.txt: Add glibc bug 1293.
60724
60725 2005-09-03  Derek Price  <derek@ximbiot.com>
60726
60727         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
60728         From Larry Jones <lawrence.jones@ugs.com>.
60729
60730 2005-09-02  Simon Josefsson  <jas@extundo.com>
60731
60732         * modules/socklen: New file.
60733
60734 2005-09-02  Simon Josefsson  <jas@extundo.com>
60735
60736         * modules/havelib: New module.
60737
60738         * modules/gettext, modules/iconv, modules/lock, modules/readline:
60739         Use havelib.
60740
60741 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
60742
60743         Check for arithmetic overflow when calculating sizes, to prevent
60744         some buffer-overflow issues.  These patches are conservative, in the
60745         sense that when I couldn't determine whether an overflow was possible,
60746         I inserted a run-time check.
60747         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
60748         macros.
60749         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
60750         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
60751         (re_xnrealloc, re_x2nrealloc): New inline functions.
60752         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
60753         parse_bracket_exp):
60754         (build_equiv_class, build_charclass): Check for arithmetic overflow
60755         in size expression calculations.
60756         * lib/regex_internal.c (re_string_realloc_buffers):
60757         (build_wcs_upper_buffer, re_node_set_add_intersect):
60758         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
60759         (re_dfa_add_node, register_state): Likewise.
60760         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
60761         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
60762         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
60763         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
60764
60765 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
60766
60767         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
60768         m4/ulonglong.m4.  Problem reported by Martin Lambers.
60769
60770 2005-09-02  Bruno Haible  <bruno@clisp.org>
60771
60772         Support for lib vs. lib64 distinction on biarch platforms.
60773         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
60774         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
60775         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
60776
60777 2005-09-02  Bruno Haible  <bruno@clisp.org>
60778
60779         * gnulib-tool (import): In the other first-use case, provide defaults
60780         as well.
60781
60782 2005-09-02  Bruno Haible  <bruno@clisp.org>
60783
60784         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
60785         patches not yet found in the latest gettext release.
60786
60787 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60788
60789         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
60790         to avoid a collision with bits/local_lim.h in glibc.
60791         All uses changed.  Problem reported by Dmitry V. Levin in
60792         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
60793
60794         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
60795         bugs in int versus size_t comparisons.
60796         (re_string_context_at): Fix bug where the code assumed that
60797         Idx is signed.
60798
60799         Use bool where appropriate.
60800         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
60801         All callers changed.
60802         (calc_eclosure_iter): Likewise, for ROOT arg.
60803         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
60804         (build_charclass_op): Likewise, for NON_MATCH arg.
60805         * lib/regex_internal.c (re_string_allocate, re_string_construct):
60806         (re_string_construct_common): Likewise, for ICASE arg.
60807         * lib/regexec.c (re_search_2_stub, re_search_stub):
60808         Likewise, for RET_LEN arg.
60809         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
60810         (set_regs): Likewise, for FL_BACKTRACK arg.
60811         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
60812         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
60813         (calc_eclosure_iter, parse_bracket_exp):
60814         Use bool for internal variables that are booleans.
60815         * lib/regexec.c (re_search_internal, check_matching,
60816         proceed_next_node):
60817         (set_regs, build_sifted_states, sift_states_bkref):
60818         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
60819         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
60820         (find_collation_sequence_value):
60821         Likewise.
60822         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
60823         (re_node_set_compare):
60824         Return bool, not int. All callers changed.
60825         * lib/regexec.c (check_halt_node_context, check_dst_limits):
60826         (build_trtable, check_node_accept): Likewise.
60827         * lib/regex_internal.h: Include stdbool.h.
60828
60829         Fix bugs uncovered when converting to bool.
60830         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
60831         failure instead of charging ahead blindly.
60832         * lib/regex_internal.c (register_state): Likewise.
60833         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
60834         for freeing internal storage.
60835         (group_nodes_into_DFA_states): Use unsigned int, not int, for
60836         bitset pieces used as boolean, to avoid undefined behavior
60837         on hosts that do int overflow checking.
60838
60839 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60840
60841         * config/srclist.txt: Add glibc bugs 1285-1287.
60842
60843 2005-09-01  Jim Meyering  <jim@meyering.net>
60844
60845         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
60846         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
60847         Require gl_STAT_MACROS, too.
60848
60849 2005-09-01  Bruno Haible  <bruno@clisp.org>
60850
60851         * gnulib-tool (import): In the first-use case, provide defaults.
60852
60853 2005-09-01  Bruno Haible  <bruno@clisp.org>
60854
60855         * gnulib-tool (func_import): Remove the .tmp files.
60856
60857 2005-09-01  Bruno Haible  <bruno@clisp.org>
60858
60859         * gnulib-tool (func_import): Fix handling of symbolic links.
60860
60861 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60862
60863         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
60864         old glibc regex code mishandles strings longer than 2**31 bytes.
60865         This patch fixes this when the regex code is used in gnulib
60866         (i.e., outside glibc).
60867
60868         This patch should not affect the use of the regex code inside
60869         glibc.  No doubt this problem also needs to be handled for glibc
60870         as well, but the result will be an incompatible change to the
60871         glibc ABI, and the old ABI will have to be supported too.  That
60872         can be the the subject for another patch.
60873
60874         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
60875         governing whether the rest of this patch is active.  By default,
60876         the macro is disabled and the patch has no effect.
60877         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
60878         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
60879         (struct re_pattern_buffer, re_search, re_search_2, re_match):
60880         (re_match_2, re_set_registers): Use the new types.
60881         * lib/regex_internal.h (Idx, re_hashval_t): New types.
60882         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
60883         New macros.
60884         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
60885         (re_string_context_at, bin_tree_t, re_dfastate_t):
60886         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
60887         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
60888         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
60889         (re_string_char_size_at, re_string_wchar_at):
60890         (re_string_elem_size_at):
60891         Use the new types and macros to port to 64-bit hosts.
60892         Use unsigned types for internal values, so that the code
60893         mostly works even for arrays larger than SSIZE_MAX.
60894         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
60895         (search_duplicated_node, calc_eclosure_iter, fetch_number):
60896         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
60897         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
60898         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
60899         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
60900         (calc_inveclosure, parse_dup_op, build_range_exp):
60901         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
60902         (fetch_number, create_token_tree, mark_opt_subexp):
60903         Likewise.
60904         * lib/regex_internal.c (re_string_construct_common,
60905         create_ci_newstate):
60906         (create_cd_newstate, re_string_allocate, re_string_construct):
60907         (re_string_realloc_buffers, build_wcs_upper_buffer):
60908         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
60909         (re_string_reconstruct, re_string_peek_byte_case):
60910         (re_string_fetch_byte_case, re_string_context_at):
60911         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
60912         (re_node_set_init_copy, re_node_set_add_intersect):
60913         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
60914         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
60915         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
60916         (re_acquire_state, re_acquire_state_context, register_state):
60917         Likewise.
60918         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
60919         search_cur_bkref_entry):
60920         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
60921         (re_search_internal, re_search_2_stub, re_search_stub)
60922         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
60923         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
60924         (update_cur_sifted_state, check_dst_limits):
60925         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
60926         (check_subexp_limits, sift_states_bkref, merge_state_array):
60927         (check_subexp_matching_top, get_subexp, get_subexp_sub):
60928         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
60929         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
60930         (expand_bkref_cache, check_node_accept_bytes):
60931         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
60932         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
60933         (acquire_init_state_context, check_halt_node_context):
60934         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
60935         (sift_states_backward, clean_state_log_if_needed):
60936         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
60937         (find_recover_state, transit_state_sb, transit_state_mb):
60938         (transit_state_bkref, build_trtable, match_ctx_clean):
60939         Likewise.
60940         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
60941         to work around an assumption that REG_MISSING is negative.
60942
60943         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
60944         (seek_collating_symbol_entry) [defined _LIBC]:
60945         (lookup_collation_sequence_value) [defined _LIBC]:
60946         (build_range_exp, build_collating_symbol) [defined _LIBC]:
60947         Use prototypes rather than old-style function definitions.
60948         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
60949         (transit_state_sb) [0]:
60950         (find_collation_sequence_value) [defined _LIBC]: Likewise.
60951
60952         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
60953         rm_eo.
60954
60955         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
60956         (optimize_subexps, lower_subexp):
60957         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
60958         since the signed shift might overflow.  Use 1u<<31 instead.
60959         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
60960         Likewise.
60961         * lib/regexec.c (check_dst_limits_calc_pos_1,
60962         check_subexp_matching_top): Likewise.
60963
60964         * lib/regcomp.c (optimize_subexps, lower_subexp):
60965         Use CHAR_BIT rather than 8, for clarity.
60966         * lib/regexec.c (check_dst_limits_calc_pos_1):
60967         (check_subexp_matching_top): Likewise.
60968         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
60969         have to worry about portability issues when shifting it left.
60970         Remove no-longer-needed test for table_size > 0.
60971         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
60972         in a word, as the resulting behavior is undefined.
60973         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
60974         in one case, a <= should have been an <, and in another case the
60975         whole test was missing.
60976         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
60977         the standard name CHAR_BIT.
60978         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
60979         this is not true on one's complement and signed-magnitude hosts.
60980
60981         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
60982         next_last_offset.
60983         (struct re_dfa_t): Remove unused member states_alloc.
60984         * lib/regcomp.c (init_dfa): Don't initialize unused members.
60985
60986 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60987
60988         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
60989         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
60990         and large-file glibc and in 32-bit large-file Solaris.
60991
60992 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60993
60994         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
60995         lengths fit in regoff_t; this isn't true if regoff_t is the same
60996         width as size_t.
60997         * lib/regex.c (re_search_internal): 5th arg is LAST_START
60998         (= START + RANGE) instead of RANGE.  This avoids overflow
60999         problems when regoff_t is the same width as size_t.
61000         All callers changed.
61001         (re_search_2_stub): Check for overflow when adding the
61002         sizes of the two strings.
61003         (re_search_stub): Check for overflow when adding START
61004         to RANGE; if it occurs, substitute the extreme value.
61005
61006 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61007
61008         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
61009
61010 2005-08-31  Jim Meyering  <jim@meyering.net>
61011
61012         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
61013         a pointer-to-const.
61014         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
61015         (register_state): Likewise.
61016         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
61017         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
61018         (group_nodes_into_DFAstates): Likewise.
61019
61020 2005-08-31  Jim Meyering  <jim@meyering.net>
61021
61022         * check-module: Add a FIXME comment.
61023
61024 2005-08-31  Eric Blake  <ebb9@byu.net>
61025
61026         * modules/unistd-safer (Files): Add unistd--.h.
61027         * modules/stdio-safer (Files): Add stdio--.h.
61028
61029 2005-08-31  Derek Price  <derek@ximbiot.com>
61030
61031         * lib/getdelim.c (getdelim): Return EOF on EOF.
61032         Reported by Larry Jones <lawrence.jones@ugs.com>.
61033
61034 2005-08-31  Bruno Haible  <bruno@clisp.org>
61035
61036         Avoid unnecessary diffs in the generated lib/Makefile.am.
61037         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
61038         the generated files.
61039         (func_import): Don't set cmd.
61040
61041 2005-08-31  Bruno Haible  <bruno@clisp.org>
61042
61043         * lib/strstr.c: Include <stddef.h>, for NULL.
61044         * lib/strcasestr.c: Likewise.
61045         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61046
61047 2005-08-31  Bruno Haible  <bruno@clisp.org>
61048
61049         * gnulib-tool: New option --macro-prefix.
61050         (func_import): Use macro_prefix.
61051         (import): Handle option --macro-prefix.
61052
61053 2005-08-31  Bruno Haible  <bruno@clisp.org>
61054
61055         * gnulib-tool (import): Rename most ac_* variables to cached_*.
61056         Also use new variables cached_lgpl, cached_libtool.
61057
61058 2005-08-31  Bruno Haible  <bruno@clisp.org>
61059
61060         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
61061         always instantiating them.
61062
61063 2005-08-31  Bruno Haible  <bruno@clisp.org>
61064
61065         * gnulib-tool (func_import): Read the previous cached settings
61066         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
61067         earlier added by gnulib but are now dropped. Warn when a gnulib file
61068         overwrites a non-gnulib file.
61069
61070 2005-08-31  Bruno Haible  <bruno@clisp.org>
61071
61072         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
61073         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
61074         projects that don't keep autogenerated files in CVS. Put into
61075         actioncmd only the specified modules, not the transitive closure.
61076
61077 2005-08-31  Bruno Haible  <bruno@clisp.org>
61078
61079         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
61080         Create directories that shall be filled.
61081         (import): Don't look for gl_* macros in configure.ac. Recurse across
61082         all directories containing a gnulib-cache.m4 files, if meaningful.
61083
61084 2005-08-31  Bruno Haible  <bruno@clisp.org>
61085
61086         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
61087         (import): Set seen_libtool when we see gl_LIBTOOL.
61088
61089 2005-08-31  Bruno Haible  <bruno@clisp.org>
61090
61091         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
61092         declaration macro definitions from generated gnulib.m4.
61093
61094 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
61095
61096         * lib/iconvme.h: Add prototype for iconv_alloc.
61097
61098 2005-08-29  Simon Josefsson  <jas@extundo.com>
61099
61100         * lib/iconvme.c: Fix errno.
61101
61102 2005-08-29  Bruno Haible  <bruno@clisp.org>
61103
61104         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
61105         that it works when the directory contains spaces.
61106
61107 2005-08-29  Bruno Haible  <bruno@clisp.org>
61108
61109         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
61110
61111 2005-08-29  Bruno Haible  <bruno@clisp.org>
61112
61113         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
61114         Emit more advice.
61115
61116 2005-08-29  Bruno Haible  <bruno@clisp.org>
61117         and Stepan Kasal  <kasal@ucw.cz>
61118
61119         * check-module: If more parameters are given, check each of them
61120         separately; add more exceptions, as noted by Jim Meyering.
61121         (check_module): New procedure.
61122         (%exempt_header): Now contains all exceptions.
61123
61124 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
61125
61126         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
61127
61128 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
61129
61130         * lib/iconvme.c: Split iconv_string into iconv_alloc.
61131
61132 2005-08-28  Bruno Haible  <bruno@clisp.org>
61133
61134         * m4/gnulib-tool.m4: New file.
61135
61136 2005-08-27  Jim Meyering  <jim@meyering.net>
61137
61138         * modules/unistd-safer (Files): Add pipe-safer.c.
61139         * modules/fcntl-safer (Files): Add creat-safer.c.
61140
61141 2005-08-27  Jim Meyering  <jim@meyering.net>
61142
61143         * m4/stdlib-safer.m4: New file.  From coreutils.
61144         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
61145         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
61146         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
61147         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
61148         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
61149
61150 2005-08-27  Jim Meyering  <jim@meyering.net>
61151
61152         * lib/fopen-safer.c: Merge minor changes from coreutils.
61153         * lib/dup-safer.c: Likewise.
61154         * lib/fd-safer.c: Likewise.
61155
61156         Merge from coreutils.
61157         * lib/stdio--.h: New file.
61158         * lib/stdlib--.h: New file.
61159         * lib/mkstemp-safer.c: New file.
61160
61161         GNU tar needs these.
61162         * lib/pipe-safer.c: New file.
61163         * lib/creat-safer.c: New file.
61164         * lib/fcntl--.h (creat): Define to creat_safer.
61165         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
61166         * lib/unistd--.h (pipe): Define to pipe_safer.
61167         * lib/unistd-safer.h: Declare pipe_safer.
61168
61169 2005-08-26  Simon Josefsson  <jas@extundo.com>
61170
61171         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
61172         Haible <bruno@clisp.org>.
61173
61174 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
61175
61176         * lib/regex_internal.h: Remove all references to
61177         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
61178         or better.
61179         (bitset_not, bitset_merge, bitset_not_merge):
61180         (bitset_mask, re_string_allocate, re_string_construct):
61181         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
61182         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
61183         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
61184         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
61185         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
61186         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
61187         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
61188         (re_acquire_state_context):
61189         Remove unnecessary forward decls.
61190         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
61191         Put __attribute at function definition,
61192         now that the function decl has been removed.
61193         * lib/regex_internal.c (re_string_peek_byte_case):
61194         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
61195         Likewise.
61196
61197 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
61198
61199         * m4/regex.m4: Add AC_PREREQ(2.50).
61200         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
61201
61202 2005-08-25  Simon Josefsson  <jas@extundo.com>
61203
61204         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
61205         __fsetlocking.
61206
61207 2005-08-25  Simon Josefsson  <jas@extundo.com>
61208
61209         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
61210         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
61211         GLIBC specific code.
61212
61213 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61214
61215         Make regex safe for g++.  This fixes one real bug (an "err"
61216         that should have been "*err").  g++ problem reported by
61217         Sam Steingold.
61218         * lib/regex_internal.h (re_calloc): New macro, consistent with
61219         re_malloc etc.  All callers of calloc changed to use re_calloc.
61220         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
61221         not int.  All callers changed.
61222         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
61223         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
61224         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
61225         (find_recover_state): Change "err" to "*err"; this fixes what
61226         appears to be a real bug.
61227         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
61228         versus int.
61229
61230 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61231
61232         * modules/regex (Depends-on): Add malloc, since the code
61233         assumes that !malloc(0) means failure.
61234
61235 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61236
61237         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
61238
61239         alloca modernization/simplification for regex.
61240         * lib/regex.c: Remove portability cruft for alloca.  This no longer
61241         needs to be at the start of the file, and can be moved into
61242         regex_internal.h and simplified.
61243         * lib/regex_internal.h: Include <alloca.h>.
61244         (__libc_use_alloca) [!defined _LIBC]: New macro.
61245         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
61246         now works outside glibc.
61247
61248 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61249
61250         * config/srclist.txt: Add glibc bugs 1241, 1245.
61251
61252 2005-08-25  Jim Meyering  <jim@meyering.net>
61253
61254         * lib/open-safer.c: Include <config.h>.
61255         Otherwise, we'd lose LARGEFILE support in any file using
61256         e.g. "fcntl--.h"
61257
61258 2005-08-25  Bruno Haible  <bruno@clisp.org>
61259
61260         * m4/minmax.m4: Require autoconf 2.52.
61261         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
61262         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
61263         alternatives of translit over the alphabet.
61264         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
61265
61266 2005-08-24  Simon Josefsson  <jas@extundo.com>
61267
61268         * tests/test-getpass.c: New file.
61269
61270 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61271
61272         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
61273         for GNU regex features.
61274
61275 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61276
61277         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
61278         * lib/regex.h (regerror): Likewise.
61279
61280         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
61281         requires this.  (The code never needed it.)
61282
61283         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
61284         All uses of recently-renamed identifiers changed to use the new,
61285         POSIX-compliant names.  The code will build and run just fine
61286         without these changes, but it's better to eat our own dog food
61287         and use the standard-conforming names.
61288
61289         * lib/regex.h: Fix a multitude of POSIX name space violations.
61290         These changes have an effect only for programs that define
61291         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
61292         do not change anything for programs compiled in the normal way.
61293         Also, there is no effect on the ABI.
61294
61295         (_REGEX_SOURCE): New macro.
61296         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
61297         defined and _GNU_SOURCE is not; this fixes a name space violation.
61298
61299         Rename the following macros to obey POSIX requirements.
61300         The old names are still visible as macros if _REGEX_SOURCE is defined.
61301         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
61302         RE_BACKSLASH_ESCAPE_IN_LISTS.
61303         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
61304         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
61305         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
61306         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
61307         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
61308         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
61309         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
61310         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
61311         (REG_INTERVALS): renamed from RE_INTERVALS.
61312         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
61313         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
61314         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
61315         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
61316         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
61317         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
61318         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
61319         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
61320         RE_UNMATCHED_RIGHT_PAREN_ORD.
61321         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
61322         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
61323         (REG_DEBUG): renamed from RE_DEBUG.
61324         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
61325         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
61326         unusual, since we can't clash with the POSIX REG_ICASE.
61327         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
61328         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
61329         (REG_NO_SUB): renamed from RE_NO_SUB.
61330         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
61331         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
61332         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
61333         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
61334         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
61335         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
61336         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
61337         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
61338         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
61339         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
61340         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
61341         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
61342         RE_SYNTAX_POSIX_MINIMAL_BASIC.
61343         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
61344         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
61345         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
61346         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
61347         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
61348         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
61349         (REG_FIXED): Renamed from REGS_FIXED.
61350         (REG_NREGS): Renamed from RE_NREGS.
61351
61352         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
61353         of other REG_* macros, since POSIX says the user is allowed to
61354         #undef these macros selectively.
61355
61356         (reg_errcode_t): Update comment stating what other tables need
61357         to be consistent.
61358
61359         Rename the following enum values to obey POSIX requirements.
61360         The old names are still visible as macros.
61361         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
61362         is not defined, since GNU is supposed to be a superset of POSIX as
61363         much as possible, and since we want reg_errcode_t to be a signed
61364         type for implementation consistency.
61365         (_REG_NOERROR): Renamed from REG_NOERROR.
61366         (_REG_NOMATCH): Renamed from REG_NOMATCH.
61367         (_REG_BADPAT): Renamed from REG_BADPAT.
61368         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
61369         (_REG_ECTYPE): Renamed from REG_ECTYPE.
61370         (_REG_EESCAPE): Renamed from REG_EESCAPE.
61371         (_REG_ESUBREG): Renamed from REG_ESUBREG.
61372         (_REG_EBRACK): Renamed from REG_EBRACK.
61373         (_REG_EPAREN): Renamed from REG_EPAREN.
61374         (_REG_EBRACE): Renamed from REG_EBRACE.
61375         (_REG_BADBR): Renamed from REG_BADBR.
61376         (_REG_ERANGE): Renamed from REG_ERANGE.
61377         (_REG_ESPACE): Renamed from REG_ESPACE.
61378         (_REG_BADRPT): Renamed from REG_BADRPT.
61379         (_REG_EEND): Renamed from REG_EEND.
61380         (_REG_ESIZE): Renamed from REG_ESIZE.
61381         (_REG_ERPAREN): Renamed from REG_ERPAREN.
61382         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
61383         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
61384         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
61385         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
61386
61387         (_REG_RE_NAME, _REG_RM_NAME): New macros.
61388         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
61389         changed.  But support the old name if the new one is not defined
61390         and if _REGEX_SOURCE.
61391
61392         Change the following member names in struct re_pattern_buffer.
61393         The old names are still supported if !_REGEX_SOURCE.
61394         The new names are always supported, regardless of _REGEX_SOURCE.
61395         (re_buffer): Renamed from buffer.
61396         (re_allocated): Renamed from allocated.
61397         (re_used): Renamed from used.
61398         (re_syntax): Renamed from syntax.
61399         (re_fastmap): Renamed from fastmap.
61400         (re_translate): Renamed from translate.
61401         (re_can_be_null): Renamed from can_be_null.
61402         (re_regs_allocated): Renamed from regs_allocated.
61403         (re_fastmap_accurate): Renamed from fastmap_accurate.
61404         (re_no_sub): Renamed from no_sub.
61405         (re_not_bol): Renamed from not_bol.
61406         (re_not_eol): Renamed from not_eol.
61407         (re_newline_anchor): Renamed from newline_anchor.
61408
61409         Change the following member names in struct re_registers.
61410         The old names are still supported if !_REGEX_SOURCE.
61411         The new names are always supported, regardless of _REGEX_SOURCE.
61412         (rm_num_regs): Renamed from num_regs.
61413         (rm_start): Renamed from start.
61414         (rm_end): Renamed from end.
61415
61416         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
61417         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
61418         Prepend __ to parameter names.
61419
61420         Undo yesterday's changes.
61421
61422 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61423
61424         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
61425         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
61426         lib/regex.c.
61427
61428 2005-08-24  Jim Meyering  <jim@meyering.net>
61429
61430         Sync from coreutils.
61431         * m4/fcntl-safer.m4: New file.
61432
61433         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
61434         and object files for this module.
61435
61436 2005-08-24  Jim Meyering  <jim@meyering.net>
61437
61438         Sync from coreutils.
61439         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
61440
61441 2005-08-24  Jim Meyering  <jim@meyering.net>
61442
61443         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
61444         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
61445
61446 2005-08-24  Jim Meyering  <jim@meyering.net>
61447
61448         * modules/fcntl-safer: New module.
61449         * modules/fts (Depends-on): Add fcntl-safer.
61450         * MODULES.html.sh (File descriptor based Input/Output):
61451         Add fcntl-safer.
61452
61453 2005-08-24  Bruno Haible  <bruno@clisp.org>
61454
61455         Support for unit test modules.
61456         * modules/README: Mention tests modules.
61457         * modules/TEMPLATE-TESTS: New file.
61458         * gnulib-tool: New options --extract-tests-module, --with-tests and
61459         --tests-base (unused for the moment).
61460         (testsbase, inctests): New variables.
61461         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
61462         (func_verify_module): Exclude TEMPLATE-TESTS.
61463         (func_verify_nontests_module, func_verify_tests_module): New functions.
61464         (func_get_dependencies): Add implicit dependency for tests modules.
61465         (func_get_tests_module): New function.
61466         (func_modules_transitive_closure): When --with-tests was specified,
61467         include the unit tests as well, unless explicitly avoided.
61468         (func_emit_lib_Makefile_am): Ignore the tests modules here.
61469         (func_emit_tests_Makefile_am): New function.
61470         (func_create_testdir): When --with-tests was specified, emit a
61471         tests/ directory.
61472         * MODULES.html.sh (Future developments): Update.
61473
61474 2005-08-24  Bruno Haible  <bruno@clisp.org>
61475
61476         * modules/tls-tests: New file.
61477         * tests/test-tls.c: New file, from GNU gettext.
61478
61479 2005-08-24  Bruno Haible  <bruno@clisp.org>
61480
61481         * modules/lock-tests: New file.
61482         * tests/test-lock.c: New file, from GNU gettext.
61483
61484 2005-08-24  Bruno Haible  <bruno@clisp.org>
61485
61486         * lib/lock.h: Add multiple inclusion guard.
61487         * lib/tls.h: Add multiple inclusion guard.
61488
61489 2005-08-24  Bruno Haible  <bruno@clisp.org>
61490
61491         * gnulib-tool: Add support for the --aux-dir option to
61492         --create-testdir, --create-megatestdir, --test, --megatest.
61493         (func_create_testdir, func_create_megatestdir): Optionally emit a
61494         AC_CONFIG_AUX_DIR directive.
61495         (create-testdir, create-megatestdir, test, megatest): Provide a
61496         default value for $auxdir.
61497
61498 2005-08-24  Bruno Haible  <bruno@clisp.org>
61499
61500         * gnulib-tool (import): Use compound statement instead of subshell
61501         where possible.
61502
61503 2005-08-24  Bruno Haible  <bruno@clisp.org>
61504
61505         * gnulib-tool (import): Change --aux-dir default to "build-aux".
61506
61507 2005-08-24  Bruno Haible  <bruno@clisp.org>
61508
61509         * gnulib-tool (func_version): Update.
61510
61511 2005-08-24  Bruno Haible  <bruno@clisp.org>
61512
61513         * gnulib-tool (func_import, func_create_testdir,
61514         func_create_megatestdir): Quote all autoconf macro arguments.
61515
61516 2005-08-24  Bruno Haible  <bruno@clisp.org>
61517
61518         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
61519         option --force, because --force causes the aclocal.m4 of each
61520         subdirectory to be newer than the corresponding config.h.in.
61521
61522 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61523
61524         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
61525         All contents moved to gl_REGEX.
61526         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
61527         assume that it does.
61528
61529 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61530
61531         * lib/regex.h (REG_NOSYS)
61532         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
61533         Define, since POSIX requires it as of 2001.
61534         (_REG_ENOSYS)
61535         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
61536         New private symbol, used to keep the enum signed in all cases.
61537         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
61538         Youngman in
61539         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
61540
61541         * lib/regex_internal.c (re_string_skip_chars, register_state):
61542         (calc_state_hash):
61543         Remove forward decls; no longer needed now that we use prototypes.
61544         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
61545         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
61546         (clean_state_log_if_needed): Likewise.
61547
61548 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61549
61550         * config/srclist.txt: Add glibc bugs 1231-1233.
61551
61552 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61553
61554         Fix problems reported by Sam Steingold in
61555         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
61556         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
61557         assumed that reg_errcode_t is a signed type, which is not
61558         necessarily true if _XOPEN_SOURCE is not defined.
61559         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
61560         since some compilers warn about it otherwise.
61561
61562 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61563
61564         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
61565         (init_word_char, create_initial_state, duplicate_node_closure):
61566         (fetch_token, peek_token_bracket, build_range_exp):
61567         (build_collating_symbol): Remove forward decls; no longer needed
61568         now that we use prototypes.
61569
61570         * lib/regcomp.c:
61571         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
61572         (re_compile_fastmap_iter, regcomp, regerror, regfree):
61573         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
61574         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
61575         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
61576         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
61577         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
61578         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
61579         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
61580         (build_range_exp, build_collating_symbol, parse_bracket_exp):
61581         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
61582         (build_charclass, build_charclass_op, fetch_number, create_tree):
61583         (create_token_tree, mark_opt_subexp, duplicate_tree):
61584         Use prototypes rather than old-style definitions.
61585
61586         * lib/regex_internal.c:
61587         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
61588         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
61589         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
61590         (re_string_reconstruct, re_string_peek_byte_case):
61591         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
61592         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
61593         (re_node_set_init_copy, re_node_set_add_intersect):
61594         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
61595         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
61596         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
61597         (re_acquire_state, re_acquire_state_context, register_state):
61598         (create_ci_newstate, create_cd_newstate, free_state):
61599         Likewise.
61600         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
61601         re_search_2):
61602         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
61603         (re_search_internal, prune_impossible_nodes):
61604         (acquire_init_state_context, check_matching, static):
61605         (check_halt_node_context, check_halt_state_context, proceed_next_node):
61606         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
61607         (update_regs, sift_states_backward, build_sifted_states):
61608         (clean_state_log_if_needed, merge_state_array):
61609         (update_cur_sifted_state, add_epsilon_src_nodes):
61610         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
61611         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
61612         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
61613         (find_recover_state, check_subexp_matching_top, transit_state_mb):
61614         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
61615         (check_arrival, check_arrival_add_next_nodes):
61616         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
61617         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
61618         (check_node_accept_bytes, check_node_accept, extend_buffers):
61619         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
61620         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
61621         (sift_ctx_init):
61622         Likewise.
61623
61624         * lib/regex_internal.h:
61625         (re_string_allocate, re_string_construct, re_string_reconstruct):
61626         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
61627         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
61628         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
61629         (re_string_context_at, re_string_peek_byte_case):
61630         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
61631         is defined, since we now use prototypes always.
61632
61633         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
61634         C89 or better.  All uses removed.
61635
61636 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61637
61638         * config/srclist.txt: Add glibc bugs 1220-1227.
61639
61640 2005-08-20  Jim Meyering  <jim@meyering.net>
61641
61642         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
61643         of unused local, dfa.
61644
61645 2005-08-20  Bruno Haible  <bruno@clisp.org>
61646
61647         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
61648
61649 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61650
61651         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
61652         (re_node_set_insert_last, re_dfa_add_node):
61653         Rename local variables to avoid GCC shadowing warnings.
61654
61655 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61656
61657         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
61658         [defined lint]: Suppress bogus uninitialized-variable warnings.
61659
61660         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
61661         and let the caller return REG_ESPACE if out of space.  This
61662         removes an uninitialied-variable warning with GCC 4.0.1, and also
61663         avoids taking the address of a local variable.  All callers
61664         changed.
61665
61666 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61667
61668         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
61669         $LIBCSRC/posix/regexec.c.
61670         Add glibc bug 1217 for regcomp.c.
61671
61672 2005-08-19  Jim Meyering  <jim@meyering.net>
61673
61674         * lib/regexec.c (proceed_next_node): Redo local variables to
61675         avoid GCC shadowing warnings.
61676
61677 2005-08-18  Bruno Haible  <bruno@clisp.org>
61678
61679         * lib/strstr.c (strstr): Fix return value in multibyte case.
61680         * lib/strcasestr.c (strcasestr): Likewise.
61681
61682 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61683
61684         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
61685
61686 2005-08-17  Jim Meyering  <jim@meyering.net>
61687
61688         Make the %s format (seconds since the epoch) work for a negative
61689         number and when used with a zero-padded field width, e.g. %015s.
61690
61691         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
61692         label so that it precedes the code to set `digits'.  Otherwise,
61693         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
61694         print `00-22'.  Now, it prints `-0022', as it should.
61695
61696 2005-08-17  Bruno Haible  <bruno@clisp.org>
61697
61698         * modules/strstr (Files): Add m4/mbrtowc.m4.
61699         (Depends-on): Add mbuiter.
61700
61701 2005-08-17  Bruno Haible  <bruno@clisp.org>
61702
61703         * modules/strcasestr: New file.
61704         * MODULES.html.sh (String handling, based on ANSI C 89): Add
61705         strcasestr.
61706
61707 2005-08-17  Bruno Haible  <bruno@clisp.org>
61708
61709         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
61710
61711 2005-08-17  Bruno Haible  <bruno@clisp.org>
61712
61713         * modules/mbuiter: New file.
61714         * MODULES.html.sh (Extended multibyte and wide character utilities):
61715         Add mbuiter.
61716
61717 2005-08-17  Bruno Haible  <bruno@clisp.org>
61718
61719         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
61720         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
61721
61722 2005-08-17  Bruno Haible  <bruno@clisp.org>
61723
61724         * m4/strcasestr.m4: New file.
61725
61726 2005-08-17  Bruno Haible  <bruno@clisp.org>
61727
61728         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
61729         * lib/strstr.c: Completely rewritten, with multibyte locale support.
61730
61731 2005-08-17  Bruno Haible  <bruno@clisp.org>
61732
61733         * lib/strcasestr.h: New file.
61734         * lib/strcasestr.c: New file.
61735
61736 2005-08-17  Bruno Haible  <bruno@clisp.org>
61737
61738         * lib/strcasecmp.c: Use mbuiter.h.
61739
61740 2005-08-17  Bruno Haible  <bruno@clisp.org>
61741
61742         * lib/mbuiter.h: New file.
61743
61744 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
61745
61746         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
61747         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
61748         and gl_GETOPT are both invoked via different paths (as happens
61749         with GNU tar CVS because it uses both argp and getopt), the former
61750         wins.
61751
61752 2005-08-16  Bruno Haible  <bruno@clisp.org>
61753
61754         * modules/tls: New file.
61755         * MODULES.html.sh (Multithreading): Add tls.
61756
61757 2005-08-16  Bruno Haible  <bruno@clisp.org>
61758
61759         * modules/strnlen1: New file.
61760         * MODULES.html.sh (String handling): Add strnlen1.
61761
61762 2005-08-16  Bruno Haible  <bruno@clisp.org>
61763
61764         * modules/strcase (Files): Add m4/mbrtowc.m4.
61765         (Depends-on): Add strnlen1, mbchar.
61766
61767 2005-08-16  Bruno Haible  <bruno@clisp.org>
61768
61769         * modules/mbiter: New file.
61770         * MODULES.html.sh (Extended multibyte and wide character utilities):
61771         Add mbiter.
61772
61773 2005-08-16  Bruno Haible  <bruno@clisp.org>
61774
61775         * modules/mbfile: New file.
61776         * MODULES.html.sh (Extended multibyte and wide character utilities):
61777         Add mbfile.
61778
61779 2005-08-16  Bruno Haible  <bruno@clisp.org>
61780
61781         * modules/mbchar: New file.
61782         * MODULES.html.sh (Extended multibyte and wide character utilities):
61783         New section.
61784
61785 2005-08-16  Bruno Haible  <bruno@clisp.org>
61786
61787         * m4/tls.m4: New file, from GNU gettext.
61788
61789 2005-08-16  Bruno Haible  <bruno@clisp.org>
61790
61791         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
61792         always.
61793         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
61794
61795 2005-08-16  Bruno Haible  <bruno@clisp.org>
61796
61797         * m4/mbiter.m4: New file.
61798
61799 2005-08-16  Bruno Haible  <bruno@clisp.org>
61800
61801         * m4/mbfile.m4: New file.
61802
61803 2005-08-16  Bruno Haible  <bruno@clisp.org>
61804
61805         * m4/mbchar.m4: New file.
61806
61807 2005-08-16  Bruno Haible  <bruno@clisp.org>
61808
61809         * lib/tls.h: New file, from GNU gettext.
61810         * lib/tls.c: New file, from GNU gettext.
61811
61812 2005-08-16  Bruno Haible  <bruno@clisp.org>
61813
61814         * lib/strnlen1.h: New file.
61815         * lib/strnlen1.c: New file.
61816
61817 2005-08-16  Bruno Haible  <bruno@clisp.org>
61818
61819         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
61820         (mbi_init): Update.
61821         (mbi_avail, mbi_advance): Let the iteration end before the terminating
61822         NUL byte, not after it.
61823
61824 2005-08-16  Bruno Haible  <bruno@clisp.org>
61825
61826         * lib/strcase.h (strcasecmp): Add note in comments.
61827         * lib/strncasecmp.c: Use code from strcasecmp.c.
61828         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
61829         (strcasecmp): Work correctly in multibyte locales.
61830
61831 2005-08-16  Bruno Haible  <bruno@clisp.org>
61832
61833         * lib/mbiter.h: New file.
61834
61835 2005-08-16  Bruno Haible  <bruno@clisp.org>
61836
61837         * lib/mbfile.h: New file.
61838
61839 2005-08-16  Bruno Haible  <bruno@clisp.org>
61840
61841         * lib/mbchar.h: New file.
61842         * lib/mbchar.c: New file.
61843
61844 2005-08-16  Bruno Haible  <bruno@clisp.org>
61845
61846         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
61847         the valid ones. Makes the comparison operations transitive:
61848         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
61849         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
61850
61851 2005-08-15  Simon Josefsson  <jas@extundo.com>
61852
61853         * modules/ssize_t (License): Change to 'unlimited'.
61854
61855         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
61856
61857 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61858
61859         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
61860         Add comments for each pending glibc patch.
61861
61862 2005-08-15  Bruno Haible  <bruno@clisp.org>
61863
61864         * lib/regex.h (__restrict_arr): Don't define to __restrict if
61865         __cplusplus is defined.
61866
61867 2005-08-14  Jim Meyering  <jim@meyering.net>
61868
61869         Sync from coreutils.
61870
61871         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
61872         Use the hash-table-based cycle-detection code not just when
61873         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
61874         Reported by James Youngman in
61875         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
61876         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
61877         FTS_TIGHT_CYCLE_CHECK.
61878         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
61879         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
61880         once again.
61881         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
61882         * lib/fts.c (fd_safer): Remove decl.
61883         Include fcntl--.h rather than unistd-safer.h
61884         (fts_safe_changedir): Don't call fd_safer; no longer needed
61885         now that we include fcntl--.h.
61886
61887 2005-08-12  Simon Josefsson  <jas@extundo.com>
61888
61889         * modules/getndelim2: Use ssize_t module.
61890         * modules/getnline: Likewise.
61891         * modules/safe-read: Likewise.
61892         * modules/xreadlink: Likewise.
61893
61894         * modules/ssize_t: New file.
61895
61896 2005-08-12  Simon Josefsson  <jas@extundo.com>
61897
61898         * m4/readline.m4: Look for termcap, curses or ncurses if required.
61899
61900 2005-08-12  Simon Josefsson  <jas@extundo.com>
61901
61902         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61903         ssize_t.
61904
61905 2005-08-12  Simon Josefsson  <jas@extundo.com>
61906
61907         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
61908         readline, getdelim and check_version.
61909         (Support for systems lacking ISO C 99: Sizes of integer types):
61910         Add size_max.
61911
61912 2005-08-12  Bruno Haible  <bruno@clisp.org>
61913
61914         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
61915
61916 2005-08-11  Simon Josefsson  <jas@extundo.com>
61917
61918         * modules/readline: New file.
61919
61920         * modules/strnlen (Files): Add strnlen.h.
61921
61922 2005-08-11  Simon Josefsson  <jas@extundo.com>
61923
61924         * m4/readline.m4: New file.
61925
61926 2005-08-11  Simon Josefsson  <jas@extundo.com>
61927
61928         * lib/readline.h, readline.c: New file.
61929
61930 2005-08-11  Simon Josefsson  <jas@extundo.com>
61931
61932         * doc/gnulib.texi (Initial import, Finishing touches): Mention
61933         gl_AVOID.
61934
61935 2005-08-11  Bruno Haible  <bruno@clisp.org>
61936
61937         * lib/strnlen.h (strnlen): Change parameter name to match comment.
61938
61939 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
61940
61941         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
61942
61943 2005-08-10  Simon Josefsson  <jas@extundo.com>
61944
61945         * tests/test-iconvme.c: New file.
61946
61947 2005-08-10  Simon Josefsson  <jas@extundo.com>
61948
61949         * m4/strnlen.m4: New file.
61950
61951         * m4/strndup.m4: Don't check for strnlen declaration, done in
61952         strnlen.m4.
61953
61954 2005-08-10  Simon Josefsson  <jas@extundo.com>
61955
61956         * lib/strndup.c: Use strnlen.h.
61957
61958         * lib/strnlen.h: New file.
61959
61960 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61961
61962         * README: Typos.
61963
61964 2005-08-02  Simon Josefsson  <jas@extundo.com>
61965
61966         * modules/readline: New file.
61967
61968 2005-08-02  Simon Josefsson  <jas@extundo.com>
61969
61970         * modules/getdelim: New file.
61971
61972         * modules/getline: Rewrite, don't use getndelim2.
61973
61974 2005-08-02  Simon Josefsson  <jas@extundo.com>
61975
61976         * m4/getline.m4: Separate out getdelim stuff into separate module.
61977
61978         * m4/getdelim.m4: New file.
61979
61980 2005-08-02  Simon Josefsson  <jas@extundo.com>
61981
61982         * lib/getline.h, getline.c: Rewrite.
61983
61984         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
61985
61986 2005-07-31  Bruno Haible  <bruno@clisp.org>
61987
61988         * lib/lock.h (gl_lock_initializer): New macro.
61989         (gl_lock_define_initialized): Use it.
61990         (gl_rwlock_initializer): New macro.
61991         (gl_rwlock_define_initialized): Use it.
61992         (gl_recursive_lock_initializer): New macro.
61993         (gl_recursive_lock_define_initialized): Use it.
61994
61995 2005-07-30  Karl Berry  <karl@gnu.org>
61996
61997         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
61998         Report from Ben Pfaff, regarding getopt.
61999
62000 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
62001
62002         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
62003         normal way.
62004         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
62005         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
62006         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
62007         (gl_GETOPT): Use the new macros.  Most of the implementation
62008         is moved to the new macros.  This is for programs like Emacs
62009         that don't want all the functionality of gl_GETOPT.
62010
62011 2005-07-26  Bruno Haible  <bruno@clisp.org>
62012
62013         * m4/lock.m4: Update from GNU gettext.
62014
62015 2005-07-26  Bruno Haible  <bruno@clisp.org>
62016
62017         * lib/lock.h: Update from GNU gettext.
62018         * lib/lock.c: Update from GNU gettext.
62019
62020 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
62021
62022         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
62023         obsolescent AC_TRY_RUN.  Include the default includes files, for
62024         'exit'.
62025
62026 2005-07-24  Bruno Haible  <bruno@clisp.org>
62027
62028         * modules/visibility: New file.
62029         * MODULES.html.sh (Misc): Add visibility.
62030
62031 2005-07-24  Bruno Haible  <bruno@clisp.org>
62032
62033         * m4/visibility.m4: New file.
62034
62035 2005-07-24  Bruno Haible  <bruno@clisp.org>
62036
62037         * doc/visibility.texi: New file.
62038
62039 2005-07-22  Bruno Haible  <bruno@clisp.org>
62040
62041         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
62042         $(ALLOCA_H), redundant through BUILT_SOURCES.
62043         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
62044         redundant through BUILT_SOURCES.
62045         * modules/byteswap (Makefile.am): Remove explicit dependency on
62046         $(BYTESWAP_H), redundant through BUILT_SOURCES.
62047         * modules/fnmatch (Makefile.am): Remove explicit dependency on
62048         $(FNMATCH_H), redundant through BUILT_SOURCES.
62049         * modules/getopt (Makefile.am): Remove explicit dependency on
62050         $(GETOPT_H), redundant through BUILT_SOURCES.
62051         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
62052         redundant through BUILT_SOURCES.
62053         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
62054         redundant through BUILT_SOURCES.
62055         * modules/stdbool (Makefile.am): Remove explicit dependency on
62056         $(STDBOOL_H), redundant through BUILT_SOURCES.
62057         * modules/stdint (Makefile.am): Remove explicit dependency on
62058         $(STDINT_H), redundant through BUILT_SOURCES.
62059         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
62060         Remove explicit dependency on $(SYSEXITS_H).
62061         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
62062
62063 2005-07-18  Simon Josefsson  <jas@extundo.com>
62064
62065         * lib/check-version.c (check_version): Accept identical versions too.
62066
62067 2005-07-18  Bruno Haible  <bruno@clisp.org>
62068
62069         * modules/lock: New file.
62070         * MODULES.html.sh (Multithreading): New section.
62071
62072 2005-07-18  Bruno Haible  <bruno@clisp.org>
62073
62074         * m4/lock.m4: New file, from GNU gettext.
62075
62076 2005-07-18  Bruno Haible  <bruno@clisp.org>
62077
62078         * lib/lock.h: New file, from GNU gettext.
62079         * lib/lock.c: New file, from GNU gettext.
62080
62081 2005-07-18  Bruno Haible  <bruno@clisp.org>
62082
62083         * lib/lock.h (gl_once_t): New type.
62084         (gl_once_define, gl_once): New macros.
62085         * lib/lock.c (fresh_once): New variable.
62086         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
62087         functions.
62088
62089 2005-07-16  Simon Josefsson  <jas@extundo.com>
62090
62091         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
62092         workaround, suggested by Bruno.
62093
62094 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
62095
62096         * modules/xalloc (Depends-on): Add xalloc-die.
62097         * modules/xvasprintf (Depends-on): Add xalloc-die.
62098
62099 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
62100
62101         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
62102         with a minor change.
62103
62104 2005-07-15  Bruno Haible  <bruno@clisp.org>
62105
62106         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
62107         When using lib/poll.c, define poll as rpl_poll.
62108
62109 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
62110
62111         * modules/argp (Depends-on): Remove unlocked-io.
62112
62113 2005-07-14  Derek Price  <derek@ximbiot.com>
62114
62115         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
62116         for glob symlink bug.
62117
62118 2005-07-14  Bruno Haible  <bruno@clisp.org>
62119
62120         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
62121         Instead, test for *_unlocked function declarations directly.
62122
62123 2005-07-11  Simon Josefsson  <jas@extundo.com>
62124
62125         * modules/size_max: New file.
62126
62127         * modules/xsize: Depend on size_max module for size_max.m4.
62128
62129 2005-07-11  Simon Josefsson  <jas@extundo.com>
62130
62131         * lib/size_max.h: New file.
62132
62133 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
62134
62135         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
62136         copyright symbol and the year.
62137         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
62138         (version_etc_va): Use parameterized copyright notice.
62139         Reword to conform to the current GNU coding standards.
62140
62141 2005-07-11  Karl Berry  <karl@gnu.org>
62142
62143         * doc/gnulib.texi (Quoting): new node.
62144         (Initial import): more info, from Patrice.
62145
62146 2005-07-11  Bruno Haible  <bruno@clisp.org>
62147
62148         * gnulib-tool (func_usage): Document option --avoid.
62149         (Command line options): Handle --avoid.
62150         (func_acceptable): New function.
62151         (func_modules_transitive_closure): Use it.
62152
62153 2005-07-11  Bruno Haible  <bruno@clisp.org>
62154
62155         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
62156         Reported by Jim Meyering.
62157
62158 2005-07-10  Bruno Haible  <bruno@clisp.org>
62159
62160         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
62161         Needed when size_t is smaller than 'unsigned int'.
62162         Reported by Paul Eggert.
62163
62164 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62165
62166         * modules/argp (Depends-on): Add unlocked-io
62167
62168 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62169
62170         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
62171         block of defines.
62172
62173 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
62174
62175         * config/srclist.txt: Comment out regcomp.c, since we have a porting
62176         fix now.
62177
62178 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
62179         and Paul Eggert  <eggert@cs.ucla.edu>
62180
62181         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
62182         in wint_t, not wchar_t.  Remove now-unnecessary cast.
62183
62184 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
62185
62186         * modules/regex (Files): Add lib/regex_internal.c,
62187         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
62188         (Depends-on): Add extensions.
62189         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
62190
62191 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
62192
62193         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
62194         pathconf.
62195         * m4/same.m4 (gl_SAME): Likewise.
62196         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
62197
62198         * m4/regex.m4: Adjust to new libc regex implementation.
62199         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
62200         all the .c and .h parts of (the new) regex.
62201         Quote the m4 stuff better.
62202         Check for RE_ICASE bug of old gnulib.
62203         Check for REG_STARTEND of recent libc.
62204         Rename local variables from jm_* to gl_*.
62205         Quote operand of "test -f".
62206         Say "recent enough" version of libc, not "version 2".
62207         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
62208         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
62209         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
62210         Remove check for btowc, isascii.
62211         Require AM_LANGINFO_CODESET.
62212
62213 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
62214
62215         * lib/regex.c, regex.h: Sync from libc.
62216         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
62217         * lib/regexec.c:
62218         New files, synced from libc, except that regex_internal.h
62219         currently has a small porting fix.
62220
62221 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
62222
62223         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
62224         regex_internal.c, regexec.c.
62225         Add regex_internal.h too, but as a comment, since the libc version
62226         is currently broken in gnulib mode.
62227
62228 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62229
62230         Support programs like Emacs that use gnulib but not gettext.
62231         * MODULES.html.sh (Internationalization functions): Add gettext-h.
62232         * modules/gettext-h: New file.
62233         * modules/gettext (Files): Remove lib/gettext.h.
62234         (Depends-on): Add gettext-h.
62235         (Makefile.am): Remove lib_SOURCES.
62236         * modules/argmatch, modules/c-stack, modules/closeout:
62237         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
62238         * modules/execute, modules/file-type, modules/getaddrinfo:
62239         * modules/getopt, modules/human, modules/javacomp:
62240         * modules/javaexec, modules/mkdir-p, modules/obstack:
62241         * modules/openat, modules/pagealign_alloc, modules/pipe:
62242         * modules/quotearg, modules/regex, modules/rpmatch:
62243         * modules/unicodeio, modules/userspec, modules/version-etc:
62244         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
62245         * modules/xsetenv:
62246         Depend on gettext-h, not gettext.
62247
62248 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
62249
62250         * gnulib-tool (func_import): Add support for 'public domain' license.
62251         * modules/alloca, modules/atexit, modules/memmove:
62252         Now public domain, not GPL.
62253         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
62254         * modules/realloc, modules/strerror, modules/strtod:
62255         Now LGPL, not GPL.
62256
62257 2005-07-05  Bruno Haible  <bruno@clisp.org>
62258
62259         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
62260         autoconf CVS. Needed for mingw.
62261
62262 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62263
62264         Remove the dependency of the strftime module on the tzset module.
62265         * modules/strftime (Depends-on): Remove dependency on tzset.
62266
62267 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62268
62269         Remove the dependency of the strftime module on the tzset module.
62270         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
62271         gl_FUNC_TZSET_CLOBBER.
62272
62273 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62274
62275         Remove the dependency of the strftime module on the tzset module.
62276         * lib/strftime.c (my_strftime)
62277         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
62278         Copy the input structure, to work around some of the bug with
62279         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
62280         Solaris releases, you should also use the tzset module, but we won't
62281         require it as a dependency any more since we don't want LGPLed code
62282         to depend on GPLed code.
62283
62284 2005-07-02  Jim Meyering  <jim@meyering.net>
62285
62286         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
62287         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
62288         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
62289         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
62290
62291 2005-07-02  Jim Meyering  <jim@meyering.net>
62292
62293         * lib/backupfile.c (backup_args): Change a `0' to NULL.
62294
62295 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62296
62297         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
62298         declares only 'struct timespec;' (!).
62299
62300 2005-07-01  Jim Meyering  <jim@meyering.net>
62301
62302         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
62303         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
62304         * lib/save-cwd.c, tempname.c:
62305         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
62306         and don't include <sys/file.h>).
62307
62308 2005-06-29  Jim Meyering  <jim@meyering.net>
62309
62310         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
62311         type name.  Use the variable name instead.
62312         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
62313         Likewise.
62314
62315 2005-06-28  Simon Josefsson  <jas@extundo.com>
62316
62317         * modules/check-version (Files): Add check-version.m4.
62318
62319 2005-06-28  Simon Josefsson  <jas@extundo.com>
62320
62321         * m4/check-version.m4: New file, suggested by Jim Meyering
62322         <jim@meyering.net>.
62323
62324 2005-06-28  Simon Josefsson  <jas@extundo.com>
62325
62326         * lib/check-version.h, lib/check-version.c: New files.
62327
62328 2005-06-28  Simon Josefsson  <jas@extundo.com>
62329
62330         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
62331         collision with global variable.  Better indentation.  Don't
62332         increment buffer pointer beyond buffer end.  Based on comments
62333         from Paul Eggert <eggert@cs.ucla.edu>.
62334
62335         * lib/base64.h: Indent.
62336
62337 2005-06-28  Simon Josefsson  <jas@extundo.com>
62338
62339         * doc/gnulib.texi (Library version handling): New section.
62340
62341 2005-06-28  Jim Meyering  <jim@meyering.net>
62342
62343         * check-module (find_included_lib_files): Hard-code another
62344         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
62345         but modules/fts-lgpl (correctly) does not list those files.
62346
62347         * modules/canonicalize (Files): Add lib/pathmax.h.
62348
62349 2005-06-25  Simon Josefsson  <jas@extundo.com>
62350
62351         * modules/check-version: New file.
62352
62353 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
62354
62355         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
62356         initializer of struct addrinfo, as an indication that we don't
62357         care how many members the structure has.
62358
62359 2005-06-24  Derek Price  <derek@ximbiot.com>
62360         and Bruno Haible  <bruno@clisp.org>
62361
62362         Remove stat module & update lstat.
62363         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
62364         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62365         * m4/stat.m4: Remove this file.
62366
62367 2005-06-24  Derek Price  <derek@ximbiot.com>
62368         and Bruno Haible  <bruno@clisp.org>
62369
62370         Remove stat module & update lstat.
62371         * lib/stat.c: Remove this file...
62372         (slash_aware_lstat): ...moving this content and its support...
62373         * lib/lstat.c (rpl_lstat): ...into here.
62374         * lib/lstat.h: New file.
62375
62376 2005-06-24  Derek Price  <derek@ximbiot.com>
62377         and Bruno Haible  <bruno@clisp.org>
62378
62379         Remove stat module & update lstat.
62380         * config/srclist.txt (libc sources): Remove stat.
62381
62382 2005-06-24  Derek Price  <derek@ximbiot.com>
62383         and Bruno Haible  <bruno@clisp.org>
62384
62385         Remove stat module & update lstat.
62386         * MODULES.html.sh (stat): Remove.
62387         * MODULES.html: Regenerated.
62388         * modules/lstat (Description): Correct function name.
62389         (Files): Add "lstat.h".
62390         (Depends-on): Remove stat, add xalloc, stat-macros.
62391         * modules/stat: Remove this file.
62392         (Include): Add "lstat.h", remove <sys/stat.h>.
62393
62394 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
62395
62396         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
62397         (ranged_convert): Don't save conversion in a temporary struct.
62398         This causes a warning with GCC 4.0.0, and anyway in the typical
62399         case it's not worth the extra 100 bytes or so of code.
62400         (ranged_convert, __mktime_internal): When calling a function via a
62401         pointer P, use P () rather than (*P) (), as we now assume C89 or
62402         better.
62403
62404 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62405
62406         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
62407         "who -r" failed to give output.  Problem reported by Tim Waugh.
62408
62409         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
62410         (xcalloc): Use it to avoid needless tests.
62411         Problem reported by Jim Meyering.
62412
62413 2005-06-20  Derek Price  <derek@ximbiot.com>
62414
62415         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
62416         unnecessary for Autoconfs > 2.59c.
62417
62418 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62419
62420         * lib/argp.h (__option_is_short): Check upper limit of
62421         __key. Isprint() requires its argument to have the value
62422         of an unsigned char or EOF.
62423
62424 2005-06-16  Jim Meyering  <jim@meyering.net>
62425
62426         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
62427         when either N or S is zero.
62428
62429 2005-06-16  Derek Price  <derek@ximbiot.com>
62430
62431         * m4/bison.m4: Declare YACC & YFLAGS precious.
62432
62433 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
62434
62435         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
62436         multibyte string or pattern, fall back on unibyte matching.
62437         Problem reported by James Youngman.
62438
62439 2005-06-08  Bruno Haible  <bruno@clisp.org>
62440
62441         * modules/csharpcomp: New file.
62442         * MODULES.html.sh (C#): Add csharpcomp.
62443
62444 2005-06-08  Bruno Haible  <bruno@clisp.org>
62445
62446         * m4/csharpcomp.m4: New file, from GNU gettext.
62447
62448 2005-06-08  Bruno Haible  <bruno@clisp.org>
62449
62450         * lib/csharpcomp.h: New file, from GNU gettext.
62451         * lib/csharpcomp.c: New file, from GNU gettext.
62452         * lib/csharpcomp.sh.in: New file, from GNU gettext.
62453
62454 2005-06-08  Bruno Haible  <bruno@clisp.org>
62455
62456         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
62457         warning on mingw.
62458
62459 2005-06-07  Derek Price  <derek@ximbiot.com>
62460
62461         Sync from CVS.
62462         * lib/glob_.h: Indent nested #ifdef.
62463
62464 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
62465
62466         Sync from coreutils.
62467         Use "file name" when talking about file names, instead of "filename"
62468         or "path", as per the GNU coding standards.
62469         * lib/mkdir-p.c: Renamed from makepath.c.
62470         (make_dir_parents): Renamed from make_path.  All callers changed.
62471         * lib/mkdir-p.h: Likewise.  All includers changed.
62472         * lib/filenamecat.c: Renamed from path-concat.c.
62473         (file_name_concat): Renamed from path_concat.  All callers changed.
62474         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
62475         * lib/filenamecat.h: Likewise.  All includers changed.
62476         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
62477         in comments or local variable names.
62478         * lib/basename.c: Likewise.
62479         * lib/canonicalize.c, canonicalize.h: Likewise.
62480         * lib/dirname.c, dirname.h: Likewise.
62481         * lib/euidaccess.c: Likewise.
62482         * lib/exclude.c: Likewise
62483         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
62484         * lib/fsusage.c, fsuage.h: Likewise.
62485         * lib/fts.c, fts_.h: Likewise.
62486         * lib/getcwd.c: Likewise.
62487         * lib/getloadavg.c: Likewise.
62488         * lib/mkstemp.c: Likewise.
62489         * lib/mountlist.c, mountlist.h: Likewise.
62490         * lib/openat.c, openat.h: Likewise.
62491         * lib/readlink-stub.c: Likewise.
62492         * lib/readutmp.c, readutmp.h: Likewise.
62493         * lib/rename.c: Likewise.
62494         * lib/rmdir.c: Likewise.
62495         * lib/same.c: Likewise.
62496         * lib/savedir.c: Likewise.
62497         * lib/stripslash.c: Likewise.
62498         * lib/tempname.c: Likewise.
62499         * lib/xreadlink.c: Likewise.
62500         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
62501         All uses changed.
62502         * lib/exclude.h: Likewise.
62503
62504         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
62505         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
62506         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
62507         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
62508         * lib/pathmax.h: Include <limits.h> unconditionally, since other
62509         files have been getting away with it for years (MORE/BSD 4.3
62510         is extinct now).
62511         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
62512         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
62513
62514         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
62515         Define to 256, not 255, as per modern POSIX.
62516
62517 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
62518
62519         Sync from coreutils.
62520         Use "file name" when talking about file names, instead of "filename"
62521         or "path", as per the GNU coding standards.
62522         * MODULES.html.sh: mkdir-p renamed from makepath.
62523         filenamecat renamed from path-concat.
62524         * modules/filenamecat: Renamed from modules/path-concat.
62525         (Files): filenamecat.h and filenamecat.c renamed from
62526         path-concat.h and path-concat.c.
62527         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
62528         (Include): filenamecat.h, not path-concat.h.
62529         * modules/mkdir-p: Renamed from modules/makepath.
62530         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
62531         makepath.c.
62532         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
62533         (Include): mkdir-p.h, not makepath.h.
62534
62535 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
62536
62537         Sync from coreutils.
62538         * m4/mkdir-p.m4: Renamed from makepath.m4.
62539         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
62540         Rename files from makepath.c to mkdir-p.c, and from
62541         makepath.h to mkdir-p.h.
62542         * m4/filenamecat.m4: Renamed from path-concat.m4.
62543         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
62544         Rename files from path-concat.c to filenamecat.c,
62545         and from path-concat.h to filenamecat.h.
62546         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
62547         "file name" in local variables or comments.
62548         * m4/rename.m4: Likewise.
62549
62550 2005-06-01  Bruno Haible  <bruno@clisp.org>
62551
62552         * modules/csharpexec: New file.
62553         * MODULES.html.sh (C#): New section.
62554
62555 2005-06-01  Bruno Haible  <bruno@clisp.org>
62556
62557         * m4/csharp.m4: New file, from GNU gettext.
62558         * m4/csharpexec.m4: New file, from GNU gettext.
62559
62560 2005-06-01  Bruno Haible  <bruno@clisp.org>
62561
62562         * lib/csharpexec.h: New file, from GNU gettext.
62563         * lib/csharpexec.c: New file, from GNU gettext.
62564         * lib/csharpexec.sh.in: New file, from GNU gettext.
62565
62566 2005-05-31  Derek Price  <derek@ximbiot.com>
62567             Paul Eggert  <eggert@cs.ucla.edu>
62568
62569         Sync from cvs.
62570         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
62571
62572 2005-05-31  Derek Price  <derek@ximbiot.com>
62573             Paul Eggert  <eggert@cs.ucla.edu>
62574
62575         Sync from cvs.
62576         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
62577
62578 2005-05-29  Derek Price  <derek@ximbiot.com>
62579
62580         * config/srclist.txt (glob_.h, glob.c): Add these files.
62581
62582 2005-05-29  Derek Price  <derek@ximbiot.com>
62583
62584         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
62585         * modules/glob: New file.
62586         * modules/getlogin_r: Add link to POSIX spec in description.
62587
62588 2005-05-29  Derek Price  <derek@ximbiot.com>
62589             Paul Eggert  <eggert@cs.ucla.edu>
62590
62591         * m4/glob.m4: New file.
62592
62593 2005-05-29  Derek Price  <derek@ximbiot.com>
62594             Paul Eggert  <eggert@cs.ucla.edu>
62595
62596         * lib/glob_.h, lib/glob.c: New files.
62597
62598 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
62599
62600         * modules/fts (Files): Remove m4/inttypes-pri.m4.
62601         * modules/fts-lgpl (Depends-on): Remove gettext.
62602
62603 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
62604
62605         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
62606         and don't require gt_INTTYPES_PRI.
62607
62608 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
62609
62610         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
62611
62612         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
62613         the configuration hassle isn't worth it.
62614         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
62615         (LONGEST_MODIFIER, PRIuMAX): Remove.
62616
62617 2005-05-27  Bruno Haible  <bruno@clisp.org>
62618
62619         * lib/getlogin_r.h: Remove second include of <stddef.h>.
62620
62621 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
62622
62623         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
62624         _POSIX_PTHREAD_SEMANTICS for Solaris.
62625
62626 2005-05-25  Derek Price  <derek@ximbiot.com>
62627
62628         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
62629
62630 2005-05-25  Derek Price  <derek@ximbiot.com>
62631             Paul Eggert  <eggert@cs.ucla.edu>
62632
62633         * modules/getlogin_r, m4/getlogin_r.m4: New files.
62634         * lib/getlogin_r.c, getlogin_r.h: New files.
62635
62636 2005-05-25  Bruno Haible  <bruno@clisp.org>
62637             Derek Price  <derek@ximbiot.com>
62638
62639         * lib/getlogin_r.h: Simplify API documentation.
62640
62641 2005-05-23  Derek Price  <derek@ximbiot.com>
62642
62643         * modules/minmax (Files): Add m4/minmax.m4.
62644         (configure.ac): Add gl_MINMAX.
62645
62646 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
62647
62648         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
62649         so that unistd-safer.h (GPL'ed code) need not be included.
62650
62651 2005-05-22  Bruno Haible  <bruno@clisp.org>
62652
62653         * m4/minmax.m4: New file.
62654         Based on a patch by Derek Price <derek@ximbiot.com>.
62655
62656 2005-05-22  Bruno Haible  <bruno@clisp.org>
62657
62658         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
62659         (INT64_MIN): Fix definition.
62660         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
62661
62662         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
62663         NEED_SIGNED_INT_TYPES.
62664
62665         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
62666         HAVE_SYSTEM_INTTYPES.
62667
62668 2005-05-22  Bruno Haible  <bruno@clisp.org>
62669
62670         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
62671         Also include <sys/param.h> if it defines MIN, MAX.
62672         Based on a patch by Derek Price <derek@ximbiot.com>.
62673
62674 2005-05-21  Jim Meyering  <jim@meyering.net>
62675
62676         * modules/fts (Files): Add m4/inttypes-pri.m4.
62677         (Depends-on): Add lstat and remove gettext.  Alphabetize.
62678
62679 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
62680
62681         New fts module.
62682         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
62683         (setup_dir, free_dir): New functions.
62684         (enter_dir, leave_dir): Define trivial
62685         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
62686         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
62687         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
62688         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
62689         Move to fts-cycle.c.
62690         (fts_open): Use setup_dir.
62691         (fts_close): Use free_dir.
62692         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
62693         This adds a label and some gotos, but the alternatives were messier.
62694         Check for memory allocation failure when entering a dir.
62695         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
62696         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
62697         (FTS): New member fts_cycle, that is a union that contains the
62698         old active_dir_ht and cycle_state.  All uses changed to mention
62699         fts_cycle.ht and fts_cycle.state.
62700         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
62701         fts.c, with the following changes:
62702         (setup_dir, free_dir): New functions.
62703         (enter_dir): Now returns bool.  Return true if successful, false
62704         if memory exhausted.  All callers changed.
62705         Do not bother partly cleaning up on
62706         memory allocation failure; that is free_dir's job.
62707         However, free ad if hash_insert fails, to avoid memory leak.
62708         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
62709         fts->fts_options to see which union member to use.
62710
62711 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
62712
62713         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
62714         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
62715
62716 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
62717
62718         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
62719
62720 2005-05-20  Jim Meyering  <jim@meyering.net>
62721
62722         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
62723         Now a macro, to pacify GCC.
62724
62725 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
62726
62727         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
62728         of -1.
62729
62730 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
62731
62732         * lib/chown.c (rpl_chown): Return -1 on failure.
62733
62734 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
62735
62736         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
62737         Don't check for stddef.h.
62738         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
62739         don't use its results.
62740         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
62741         since we include them unconditionally.  Don't require
62742         AM_STDBOOL_H, since stdbool is a prerequisite.
62743         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
62744         since we assume C89 or better.
62745         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
62746         as we don't use their results.
62747         Don't check for fchdir, memmove, memset, strrchr, as we use
62748         them unconditionally.
62749         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
62750         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
62751
62752 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
62753
62754         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
62755         Include <stddef.h> unconditionally, since we assume C89 now.
62756         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
62757         * lib/fts.c: Include fts_.h first, to check interface.
62758         Do not include intprops.h; no longer needed.
62759         Include cycle-check.h and hash.h, since fts_.h no longer does.
62760         Remove unnecessary casts of closedir to void.
62761         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
62762         decide whether to decrement nlinks.
62763         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
62764         (FTS): Use struct hash_table * instead of Hash_table, so that
62765         we no longer need to include hash.h here.
62766
62767 2005-05-18  Jim Meyering  <jim@meyering.net>
62768
62769         * modules/dirfd (License): Change to LGPL.  Most of the code
62770         is already in the public domain.
62771
62772 2005-05-18  Jim Meyering  <jim@meyering.net>
62773
62774         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
62775         Reported by Yoann Vandoorselaere.
62776
62777 2005-05-17  Jim Meyering  <jim@meyering.net>
62778
62779         * m4/fts.m4: New file, from coreutils.
62780
62781 2005-05-17  Jim Meyering  <jim@meyering.net>
62782
62783         * lib/fts.c, lib/fts_.h: New files, from coreutils.
62784
62785 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62786
62787         Sync from coreutils.
62788         * m4/unlinkdir.m4: New file.
62789
62790 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62791
62792         Sync from coreutils.
62793         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
62794         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
62795         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
62796         White space changes only.
62797         * lib/makepath.c (make_path): Port to hosts where leading "//" is
62798         special.
62799         * lib/yesno.c: Include getline.h, not ctype.h.
62800         (yesno): Don't remove leading white space; POSIX doesn't allow it.
62801         Use getline to remove arbitrary restriction on response length.
62802
62803 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62804
62805         * config/srclist-update: Spell out "Street" in FSF postal
62806         mail address; this is the style the FSF seems to prefer.
62807
62808         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
62809         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
62810         this updates FSF postal mail address.
62811
62812         Sync from coreutils.
62813         * modules/unlinkdir: New file.
62814         * modules/yesno (Depends-on): Add getline.
62815         * MODULES.html.sh (File system functions): Add unlinkdir.
62816
62817 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
62818
62819         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
62820         lib/strsep.h:
62821         Change the initial comment to refer to GPL, not LGPL.
62822         gnulib-tool will change it to LGPL as needed.
62823
62824         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
62825         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
62826         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
62827         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
62828         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
62829         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
62830         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
62831         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
62832         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
62833         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
62834         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
62835         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
62836         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
62837         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
62838         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
62839         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
62840         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
62841         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
62842         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
62843         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
62844         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
62845         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
62846         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
62847         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
62848         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
62849         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
62850         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
62851         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
62852         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
62853         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
62854         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
62855         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
62856         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
62857         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
62858         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
62859         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
62860         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
62861         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
62862         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
62863         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
62864         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
62865         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
62866         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
62867         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
62868         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
62869         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
62870         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
62871         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
62872         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
62873         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
62874         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
62875         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
62876         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
62877         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
62878         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
62879         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
62880         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
62881         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
62882         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
62883         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
62884         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
62885         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
62886         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
62887         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
62888         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
62889         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
62890         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
62891         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
62892         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
62893         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
62894         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
62895         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
62896         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
62897         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
62898         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
62899         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
62900         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
62901         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
62902         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
62903         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
62904         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
62905         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
62906         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
62907         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
62908         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
62909         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
62910         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
62911         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
62912         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
62913         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
62914         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
62915         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
62916         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
62917         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
62918         lib/yesno.c, lib/yesno.h:
62919         Update FSF postal mail address.
62920
62921 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
62922
62923         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
62924         tests/test-memmem.c, tests/test-stpncpy.c:
62925         Update FSF postal mail address.
62926
62927 2005-05-13  Bruno Haible  <bruno@clisp.org>
62928
62929         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
62930         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
62931         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
62932         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
62933         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
62934         Add support for 64-bit integers in the MSVC compiler.
62935
62936 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62937
62938         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
62939
62940 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
62941
62942         * gnulib-tool (func_import): Sort and uniquify recommended includes.
62943
62944 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
62945
62946         * doc/getdate.texi (General date syntax): Don't say that date
62947         date --iso-8601=ns generates acceptable dates; it doesn't yet.
62948         Problem reported by Nic Ferrier.
62949
62950 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62951
62952         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
62953         specified in ai_socktype. Fix invalid ai_protocol
62954         check. ai_protocol is usually set to 0 or depending on
62955         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
62956         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
62957         ai_socktype / ai_protocol in the returned addrinfo structure.
62958
62959 2005-05-10  Simon Josefsson  <jas@extundo.com>
62960
62961         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
62962         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62963
62964 2005-05-10  Karl Berry  <karl@gnu.org>
62965
62966         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
62967         (from http://www.gnu.org/licenses).
62968         * doc/COPYING.LIB: also rename to COPYING.LESSER.
62969         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
62970         fdl.texi suffices.
62971
62972 2005-05-10  Karl Berry  <karl@gnu.org>
62973
62974         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
62975         (COPYING.DOC): remove.
62976
62977         * config/srclist-update: new FSF address.
62978
62979 2005-05-10  Derek Price  <derek@ximbiot.com>
62980
62981         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
62982         possible.
62983
62984 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62985             Bruno Haible  <bruno@clisp.org>
62986
62987         * modules/inet_ntop: New file.
62988         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62989         inet_ntop.
62990
62991 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62992             Bruno Haible  <bruno@clisp.org>
62993
62994         * m4/inet_ntop.m4: New file.
62995
62996 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62997             Bruno Haible  <bruno@clisp.org>
62998
62999         * lib/inet_ntop.h: New file.
63000         * lib/inet_ntop.c: New file, from glibc with modifications.
63001
63002 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
63003
63004         * modules/time_r (License): Change to LGPL.
63005         * modules/extensions (License): Change to LGPL.  Actually,
63006         the license is more permissive than that, but currently gnulib-tool
63007         doesn't know how to handle more-permissive licenses.
63008
63009         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
63010         Problem reported by Dave Love.
63011
63012 2005-05-08  Jim Meyering  <jim@meyering.net>
63013
63014         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
63015         blank.
63016
63017 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
63018
63019         * modules/argmatch (Depends-on): Add stdbool.
63020         * modules/backupfile (Depends-on): Likewise.
63021         * modules/chdir-long (Depends-on): Likewise.
63022         * modules/closeout (Depends-on): Likewise.
63023         * modules/cycle-check (Depends-on): Likewise.
63024         * modules/dirname (Depends-on): Likewise.
63025         * modules/fnmatch (Depends-on): Likewise.
63026         * modules/fsusage (Depends-on): Likewise.
63027         * modules/fwriteerror (Depends-on): Likewise.
63028         * modules/getcwd (Depends-on): Likewise.
63029         * modules/getloadavg (Depends-on): Likewise.
63030         * modules/hard-locale (Depends-on): Likewise.
63031         * modules/makepath (Depends-on): Likewise.
63032         * modules/mountlist (Depends-on): Likewise.
63033         * modules/nanosleep (Depends-on): Likewise.
63034         * modules/posixtm (Depends-on): Likewise.
63035         * modules/quotearg (Depends-on): Likewise.
63036         * modules/readtokens (Depends-on): Likewise.
63037         * modules/readtokens0 (Depends-on): Likewise.
63038         * modules/readutmp (Depends-on): Likewise.
63039         * modules/save-cwd (Depends-on): Likewise.
63040         * modules/strftime (Depends-on): Likewise.
63041         * modules/userspec (Depends-on): Likewise.
63042         * modules/utimecmp (Depends-on): Likewise.
63043         * modules/xgetcwd (Depends-on): Likewise.
63044         * modules/xnanosleep (Depends-on): Likewise.
63045         * modules/xstrtod (Depends-on): Likewise.
63046         * modules/yesno (Depends-on): Likewise.
63047
63048 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
63049
63050         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
63051         needless checks.
63052
63053 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
63054
63055         Merge from coreutils.  Among other things,
63056         add bulletproofing for cases where stdin, stdout, or stderr are closed.
63057         * lib/fd-safer.c: New file.
63058         * lib/fcntl-safer.h, open-safer.c: Remove.
63059         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
63060         * lib/dup-safer.c: Include unistd-safer.h first.
63061         Don't include errno.h.
63062         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
63063         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
63064         * lib/file-type.c: Rely on file-type.h change.
63065         * lib/getloadavg.c: Include unistd-safer.h.
63066         (getloadavg): Use safer open.
63067         * lib/getusershell.c: Include "stdio-safer.h".
63068         (getusershell): Use safer fopen.
63069         * lib/long-options.c (long_options): Use NULL rather than 0.
63070         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
63071         'free'.
63072         * lib/modechange.c: Likewise.
63073         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
63074         (MODE_DONE): New constant.
63075         (struct mode_change): Remove 'next' member.
63076         (make_node_op_equals): New function; like the old one of the
63077         same name, except it allocates an array.
63078         (mode_compile, mode_create_from_ref): Use it.
63079         (mode_compile): Allocate result as an array, not a linked list.
63080         Parse octal string ourself, so that we catch mistakes like "+0".
63081         (mode_adjust): Arg is an array, not a linked list.
63082         * lib/modechange.c: Include stat-macros.h, xalloc.h.
63083         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
63084         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
63085         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
63086         Remove.  This is now stat-macros.h's job.
63087         (talloc): Remove.  All callers replaced by xalloc, so that
63088         our invokers don't have to worry about reporting memory failures.
63089         (make_node_op_equals): Remove.
63090         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
63091         New constants.
63092         (struct mode_change): Moved here from modechange.h.
63093         (mode_append_entry): Remove.
63094         (mode_compile): Remove MASKED_OPS arg, since it encouraged
63095         apps to have incorrect behavior.  Use simpler algorithm for head
63096         and tail.  Don't futz with umask; that's now the job of mode_adjust.
63097         Detect more invalid usages rather than having somewhat-random behavior.
63098         Don't insert an "a=" action, as that leads to incorrect behavior.
63099         (mode_compile, mode_create_from_ref): Return NULL on error instead
63100         of an enum, since now there's only one way to have an error.  All
63101         callers changed.
63102         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
63103         at the correct time.  Simplify calculation of "+u" and its ilk.
63104         Don't mishandle "+X".
63105         (mode_free): Remove "register" and localize decls.
63106         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
63107         (struct mode_change): Move to modechange.c; callers don't
63108         need to see this stuff.
63109         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
63110         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
63111         (mode_change, mode_adjust): Reflect the new signatures noted above.
63112         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
63113         that might redefine system include files.
63114         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
63115         (my_usleep): Use NULL rather than (void *) 0.
63116         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
63117         Use siginterrupt to specify that system calls should be interrupted.
63118         (rpl_nanosleep): Move initialization of suspended closer to call of
63119         my_usleep.
63120         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
63121         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
63122         (desirable_utmp_entry): New function.
63123         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
63124         using x2nrealloc, to simplify logic.
63125         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
63126         size calculation.  Do not assume utmp file is a regular file.
63127         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
63128         (READ_UTMP_CHECK_PIDS): New constant.
63129         * lib/save-cwd.c: Include unistd-safer.h.
63130         (save_cwd): Use fd_safer.
63131         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
63132         [!_LIBC] Include "stat-macros.h" instead.
63133         * lib/unistd-safer.h (fd_safer): New decl.
63134
63135 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
63136
63137         * modules/getloadavg (Depends-on): Add unistd-safer.
63138         * modules/getusershell (Depends-on): Add stdio-safer.
63139         * modules/lstat (Depends-on): Remove xalloc.
63140         * modules/mkstemp (Depends-on): Add stat-macros.
63141         * modules/modechange (Depends-on): Remove xstrtol.
63142         Add stat-macros, xalloc.
63143         * modules/save-cwd (Depends-on): Add unistd-safer.
63144         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
63145         * modules/unistd-safer (Files): Add lib/fd-safer.c
63146         (Makefile.am): Remove lib_SOURCES.
63147
63148         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
63149         Remove fcntl-safer; unistd-safer supersedes it.
63150
63151 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
63152
63153         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
63154         AC_HEADER_STAT.
63155         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
63156         (gl_PREREQ_CHOWN): Remove.
63157         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
63158         it.  Don't require AC_HEADER_STAT.
63159         (gl_PREREQ_LSTAT): Remove.
63160         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
63161         Don't require AC_HEADER_STAT.
63162         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
63163         (gl_PREREQ_RMDIR): Remove.
63164         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
63165         mention stat-macros.h or AC_HEADER_STAT, since we'll make
63166         the stat-macros module a prerequisite.
63167         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
63168         * m4/filemode.m4 (gl_FILEMODE): Likewise.
63169         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
63170         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
63171         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
63172         variable names.
63173         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
63174         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
63175         variable prefixes.
63176         * m4/fcntl-safer.m4: Remove.
63177         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
63178         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
63179         Invoke gl_PREREQ_FD_SAFER.
63180         (gl_PREREQ_FD_SAFER): New macro.
63181         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
63182         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
63183         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
63184         Remove duplicate call to AC_LIBOBJ(readutmp).
63185         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
63186
63187         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
63188         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
63189
63190 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
63191
63192         * MODULES.html.sh (Misc): Add byteswap.
63193
63194 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
63195
63196         * modules/getcwd (Depends-on): Add extensions.
63197         * modules/openat (Depends-on): Likewise.
63198
63199 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
63200
63201         * modules/byteswap: New file.
63202
63203 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
63204
63205         * m4/byteswap.m4: New file.
63206
63207 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
63208
63209         * lib/byteswap_.h: New file.
63210
63211 2005-04-25  Karl Berry  <karl@gnu.org>
63212
63213         * m4/gettext.m4: Update from GNU gettext 0.14.4.
63214
63215 2005-04-25  Albert Chin  <china@thewrittenword.com>
63216
63217         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
63218         Toolkit C bug.
63219
63220 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
63221
63222         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
63223         (func_ln_if_changed) Remove forcibly for no error message
63224         in case file does not exist.
63225
63226 2005-04-19  Simon Josefsson  <jas@extundo.com>
63227
63228         * gnulib-tool (Options): Make --symlink mean --symbolic.
63229
63230 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
63231
63232         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
63233
63234 2005-04-16  Simon Josefsson  <jas@extundo.com>
63235
63236         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
63237
63238 2005-04-15  Simon Josefsson  <jas@extundo.com>
63239
63240         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
63241
63242 2005-04-15  Simon Josefsson  <jas@extundo.com>
63243
63244         * gnulib-tool: Rename --symlink to --symbolic.
63245
63246 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
63247
63248         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
63249         symbolic links to files instead of copying/moving.  Add --aux-dir,
63250         specifying directory relative --dir where auxiliary build tools
63251         are placed.
63252
63253 2005-04-14  Bruno Haible  <bruno@clisp.org>
63254
63255         * modules/allocsa (License): Change to LGPL.
63256         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
63257
63258 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
63259
63260         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
63261         that "UTC +1 second" continues to work.  Problem reported
63262         by Dmitry V. Levin.
63263         (relunit_snumber): New rule.
63264         (relunit): Use it.
63265
63266 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
63267
63268         * lib/getdate.y (universal_time_zone_table): New constant.
63269         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
63270         universal_time_zone_table.
63271         (lookup_zone): Prefer universal_time_zone_table to
63272         local_time_zone_table, so that "GMT" time stamps are allowed in
63273         London during the summer.  Problem reported by Ian Abbott.
63274
63275 2005-04-12  Jim Meyering  <jim@meyering.net>
63276
63277         * lib/human.c (humblock): Set *options even when returning due to
63278         xstrtoumax conversion failure.  Thanks to a used-uninitialized
63279         warning from gcc-4.
63280
63281 2005-04-09  Jim Meyering  <jim@meyering.net>
63282
63283         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
63284         -Wuninitialized: initialize tm0.tm_year.
63285
63286 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
63287
63288         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
63289         count, since there's no maximum.  All uses changed.
63290         Add member dsts_seen.
63291         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
63292         not being INT_MAX.
63293         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
63294         Use pc_rels_seen to decide whther a date is absolute.
63295
63296         * lib/getdate.y (number): Don't overwrite year.
63297         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
63298         check.
63299
63300 2005-04-02  Simon Josefsson  <jas@extundo.com>
63301
63302         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
63303         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
63304
63305 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
63306
63307         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
63308         where no absolute path name can be longer than PATH_MAX.
63309
63310 2005-03-27  Jim Meyering  <jim@meyering.net>
63311
63312         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
63313
63314 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
63315
63316         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
63317         "one's complement" -> "ones' complement" in comment, as per Knuth.
63318         "value of type" -> "type or expression" in comment.
63319         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
63320
63321 2005-03-26  Jim Meyering  <jim@meyering.net>
63322
63323         Comment nits.
63324         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
63325         Correct typos: s/or/of/.
63326
63327 2005-03-26  Jim Meyering  <jim@meyering.net>
63328
63329         * modules/check-include-files: Move to ../ and rename to...
63330         * check-module: ...this.
63331
63332 2005-03-25  Jim Meyering  <jim@meyering.net>
63333
63334         * modules/xvasprintf (Files): Add xalloc.h.
63335
63336 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
63337
63338         * modules/gettext (Files): config/config.rpath ->
63339         build-aux/config.rpath
63340         * modules/iconv (Files): Likewise.
63341         Problem reported by Oskar Liljeblad.
63342
63343 2005-03-23  Jim Meyering  <jim@meyering.net>
63344
63345         * modules/check-include-files: New script to check for
63346         missing dependencies, multiple includes, etc.
63347
63348         * modules/c-strtold (Depends-on): Add xalloc.
63349         * modules/c-strtod (Depends-on): Add xalloc.
63350         * modules/hash (Depends-on): Add xalloc.
63351         (Files): Remove lib/xalloc.h.
63352
63353         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
63354         * modules/userspec (Files): Add lib/inttostr.h.
63355
63356 2005-03-23  Jim Meyering  <jim@meyering.net>
63357
63358         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
63359
63360 2005-03-22  Jim Meyering  <jim@meyering.net>
63361
63362         * modules/stat-macros: New module.
63363         * modules/canonicalize, modules/euidaccess, modules/file-type,
63364         * modules/filemode, modules/lchown, modules/makepath,
63365         * modules/rmdir, modules/stat: Depend on new stat-macros module
63366         rather than listing lib/stat-macros.h manually.
63367         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
63368
63369 2005-03-22  Jim Meyering  <jim@meyering.net>
63370
63371         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
63372
63373 2005-03-22  Bruno Haible  <bruno@clisp.org>
63374
63375         * config/srclist.txt: Replace target directory 'config' with
63376         'build-aux'.
63377         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
63378         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
63379         ../build-aux/.
63380
63381 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
63382
63383         * modules/chdir-long (Depends-on): Add mempcpy.
63384
63385         * modules/acl, modules/backupfile, modules/c-strtod,
63386         modules/c-strtold, modules/canon-host, modules/canonicalize,
63387         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
63388         modules/exclude, modules/exitfail, modules/file-type,
63389         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
63390         modules/getdate, modules/getline, modules/getpagesize,
63391         modules/getpass, modules/getugroups, modules/group-member,
63392         modules/hard-locale, modules/hash, modules/human, modules/idcache,
63393         modules/inttostr, modules/long-options, modules/makepath,
63394         modules/md5, modules/memcasecmp, modules/memcoll,
63395         modules/modechange, modules/mountlist, modules/path-concat,
63396         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
63397         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
63398         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
63399         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
63400         modules/strftime, modules/strndup, modules/strverscmp,
63401         modules/timespec, modules/unlocked-io, modules/userspec,
63402         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
63403         modules/yesno:
63404         Remove lib_SOURCES line from Makefile.am section, as this is now
63405         done automatically by the corresponding Autoconf macro.
63406
63407 2005-03-21  Jim Meyering  <jim@meyering.net>
63408
63409         Changes imported from coreutils.
63410
63411         * lib/cycle-check.c: Don't include xalloc.h.
63412
63413         * lib/path-concat.c: Don't include assert.h.
63414         (path_concat): Remove assertion that would have triggered
63415         for ABASE starting with more than one slash.
63416         Reported by Andreas Schwab.
63417
63418         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
63419         properly when ABASE is an absolute file name.
63420         Correct the description of this function.
63421         Include <assert.h>.
63422         Add an assertion and a test driver.
63423         This fixes a bug introduced on 2004-07-02.
63424         Andreas Schwab reported the resulting failure of cp --parents:
63425         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
63426
63427 2005-03-21  Jim Meyering  <jim@meyering.net>
63428
63429         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
63430         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
63431
63432 2005-03-21  Jim Meyering  <jim@meyering.net>
63433         and  Paul Eggert  <eggert@cs.ucla.edu>
63434
63435         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
63436         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
63437         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
63438         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
63439         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
63440         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
63441         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
63442         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
63443         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
63444         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
63445         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
63446         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
63447         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
63448         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
63449         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
63450         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
63451         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
63452         for these modules.
63453
63454 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
63455
63456         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
63457         (which shouldn't happen), generate nothing instead of returning 0
63458         immediately, so that nstrftime (NULL, ...) doesn't return 0.
63459
63460 2005-03-16  Bruno Haible  <bruno@clisp.org>
63461
63462         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
63463         HAVE_LONGLONG_64BIT.
63464
63465 2005-03-16  Bruno Haible  <bruno@clisp.org>
63466
63467         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
63468         HAVE_LONGLONG_64BIT.
63469
63470 2005-03-16  Bruno Haible  <bruno@clisp.org>
63471
63472         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
63473         HAVE_LONGLONG_64BIT.
63474
63475 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
63476
63477         * lib/strftime.c (my_strftime): Prepend space to format so that we can
63478         reliably distinguish strftime failure from empty output on POSIX
63479         hosts.
63480
63481 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
63482
63483         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
63484         (iconv_string): Don't guess a size-zero buffer, as that might cause
63485         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
63486         result would be 'too large', where 'too large' is (heuristically)
63487         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
63488         overflow concerns.  This will prevent some unwanted malloc failures
63489         when the inputs are very large.
63490
63491 2005-03-15  Karl Berry  <karl@gnu.org>
63492
63493         * config/srclist.txt (config.rpath): from gettext.
63494         * config/config.rpath: update.
63495
63496 2005-03-15  Bruno Haible  <bruno@clisp.org>
63497
63498         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
63499         to 'negate'.
63500
63501         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
63502         variable.
63503
63504         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
63505         results.
63506
63507 2005-03-14  Simon Josefsson  <jas@extundo.com>
63508
63509         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
63510         <fx@gnu.org>.
63511
63512 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
63513
63514         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
63515         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
63516         intprops.h.
63517         * lib/strtol.c: Likewise.
63518
63519 2005-03-14  Jim Meyering  <jim@meyering.net>
63520
63521         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
63522         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
63523         to be nonzero so that we (and caller) can detect the difference
63524         between a valid zero-length expansion and an error return, even
63525         when the underlying strftime fails before writing anything into
63526         that location.
63527
63528 2005-03-14  Bruno Haible  <bruno@clisp.org>
63529
63530         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
63531         Update from GNU gettext 0.14.3.
63532
63533 2005-03-10  Jim Meyering  <jim@meyering.net>
63534
63535         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
63536
63537 2005-03-10  Jim Meyering  <jim@meyering.net>
63538
63539         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
63540         so that this module works on systems without fchdir.
63541
63542 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
63543
63544         Factor int-properties macros into a single file, except for
63545         glibc-related files.
63546         * lib/intprops.h: New file.
63547         * lib/getloadavg.c: Include it instead of limits.h.
63548         (INT_STRLEN_BOUND): Remove.
63549         * lib/human.c: Include intprops.h.
63550         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
63551         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
63552         302/1000.
63553         * lib/inttostr.h: Include intprops.h instead of limits.h.
63554         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
63555         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
63556         for consistency with intprops.h.
63557         (time_t_is_integer, twos_complement_arithmetic): Use them.
63558         * lib/sig2str.h: Include <signal.h>, intprops.h.
63559         (INT_STRLEN_BOUND): Remove.
63560         * lib/strftime.c (TYPE_SIGNED): Remove.
63561         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
63562         * lib/strtol.c: Adjust comments to match intprops.h.
63563         * lib/userspec.c: Include intprops.h.
63564         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
63565         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
63566         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
63567         instead of rolling our own expressions.
63568         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
63569
63570         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
63571         instead of int.
63572         (my_strftime): Do not mishandle years close to INT_MAX, by doing
63573         the right thing even if adding 1900 would overflow.  Similarly
63574         for tm_mon + 1 and tm_yday + 1.
63575         Make %Y always equivalent to %C%y, and similarly for %G and %g.
63576         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
63577         (DO_SIGNED_NUMBER): New macro.
63578         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
63579
63580 2005-03-07  Bruno Haible  <bruno@clisp.org>
63581
63582         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
63583
63584 2005-03-07  Bruno Haible  <bruno@clisp.org>
63585
63586         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
63587
63588 2005-03-04  Derek R. Price  <derek@ximbiot.com>
63589
63590         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
63591         (func_import): Only replace files via --import when they have actually
63592         changed.
63593
63594 2005-03-03  Derek R. Price  <derek@ximbiot.com>
63595
63596         * m4/mmap-anon.m4: New file.
63597         * m4/pagealign_alloc.m4: New file.
63598
63599 2005-03-03  Derek R. Price  <derek@ximbiot.com>
63600             Bruno Haible  <bruno@clisp.org>
63601
63602         * modules/pagealign_alloc: New file.
63603         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
63604
63605 2005-03-03  Derek R. Price  <derek@ximbiot.com>
63606             Bruno Haible  <bruno@clisp.org>
63607
63608         * lib/pagealign_alloc.h: New file.
63609         * lib/pagealign_alloc.c: New file.
63610
63611 2005-03-03  Bruno Haible  <bruno@clisp.org>
63612
63613         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
63614         Use an all-permissive copyright notice, recommended by RMS.
63615
63616 2005-03-02  Bruno Haible  <bruno@clisp.org>
63617
63618         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
63619         of AIX, the replacement has to be done only after <string.h> is
63620         included, therefore not in config.h. stpncpy.h does the replacement,
63621         and stpncpy.c uses it.
63622
63623 2005-03-02  Bruno Haible  <bruno@clisp.org>
63624
63625         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
63626         stpncpy.c uses it.
63627
63628 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63629
63630         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
63631         The workaround isn't strictly needed for POSIX conformance, and
63632         it's too much of a pain to configure and maintain.  We'll ask
63633         people to fix their kernels instead.
63634         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
63635         (NANOSLEEP_BUG_WORKAROUND): Remove.
63636         (xnanosleep): Remove the workaround.
63637
63638 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63639
63640         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
63641         Reported by Derek Price.
63642         (Include): Add "timespec.h".
63643
63644         * modules/xnanosleep (Depends-on): Remove gethrxtime.
63645
63646 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63647
63648         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
63649         to detect nanosleep bug.
63650
63651 2005-03-01  Bruno Haible  <bruno@clisp.org>
63652
63653         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
63654
63655 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
63656
63657         * modules/gethrxtime: New file.
63658         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
63659         (Depends-on): Add gethrxtime.
63660         (configure.ac): Add gl_XNANOSLEEP.
63661         (Makefile.am): Remove lib_SOURCES line.
63662
63663 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
63664
63665         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
63666         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
63667
63668 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
63669
63670         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
63671         * lib/timespec.h (gettime): Return void, since it always
63672         succeeds now.  All uses changed.
63673         * lib/gettime.c (gettime) Likewise.
63674         [HAVE_NANOTIME]: Prefer nanotime.
63675         Assume gettimeofday succeeds, as POSIX requires.
63676         Assime time () succeeds, since other code already does.
63677         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
63678         (timespec_subtract): Remove.
63679         (NANOSLEEP_BUG_WORKAROUND): New constant.
63680         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
63681         things considerably.  Use it only on GNU/Linux hosts, since the
63682         workaround shouldn't be needed elsewhere.
63683
63684 2005-02-24  Bruno Haible  <bruno@clisp.org>
63685
63686         * modules/gettext (Files): Add m4/glibc2.m4.
63687
63688 2005-02-24  Bruno Haible  <bruno@clisp.org>
63689
63690         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
63691         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
63692         * m4/progtest.m4:
63693         Update from GNU gettext 0.14.2.
63694         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
63695
63696 2005-02-24  Bruno Haible  <bruno@clisp.org>
63697
63698         * lib/localcharset.c: Update from GNU gettext 0.14.2.
63699         * lib/config.charset: Update from GNU gettext 0.14.2.
63700
63701 2005-02-24  Bruno Haible  <bruno@clisp.org>
63702
63703         * lib/gettext.h: Update from GNU gettext 0.14.2.
63704
63705 2005-02-23  Simon Josefsson  <jas@extundo.com>
63706
63707         * m4/iconvme.m4: New file.
63708
63709 2005-02-23  Jim Meyering  <jim@meyering.net>
63710
63711         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
63712         change.
63713         Thanks to Bruno Haible for catching it.
63714
63715 2005-02-22  Simon Josefsson  <jas@extundo.com>
63716
63717         * modules/iconvme: New file.
63718
63719         * MODULES.html.sh: Add iconvme.
63720
63721 2005-02-22  Simon Josefsson  <jas@extundo.com>
63722
63723         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
63724
63725 2005-02-22  Simon Josefsson  <jas@extundo.com>
63726
63727         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
63728
63729 2005-02-22  Jim Meyering  <jim@meyering.net>
63730
63731         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
63732         s/ifndef/ifdef/.
63733
63734 2005-02-20  Neil Conway  <neilc@samurai.com>
63735
63736         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
63737         returned by OSX/Darwin if the specified buffer is not large
63738         enough for the hostname.
63739
63740 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63741
63742         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
63743         pass it to _help, otherwise the latter coredumps trying to
63744         dereference state.root_argp.
63745
63746 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63747
63748         * modules/chdir-long (Depends-on): Add memrchr.
63749         * modules/memrchr (Files): Add lib/memrchr.h.
63750         (Include): "memrchr.h".
63751
63752 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63753
63754         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
63755
63756 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63757
63758         * lib/memrchr.h: New file.
63759         * lib/chdir-long.c: Include it.
63760         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
63761         Don't bother including stddef.h.
63762
63763 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63764
63765         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
63766         inclusion.
63767         Include <sys/types.h>, for dev_t.
63768         (ME_DUMMY, ME_REMOTE): Move from here....
63769         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
63770         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
63771         Dmitry V. Levin.
63772         Include mountlist.h first, to test the interface.
63773
63774 2005-01-29  Bruno Haible  <bruno@clisp.org>
63775
63776         * lib/progname.c (program_name): Initialize.
63777         Needed when linking statically on MacOS X.
63778
63779 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63780
63781         Sync from coreutils.
63782         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
63783         (Depends-on): Add c-strtod.
63784         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
63785
63786 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63787
63788         Sync from coreutils.
63789         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
63790
63791         Remove files that are specific to coreutils.
63792         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
63793
63794 2005-01-28  Bruno Haible  <bruno@clisp.org>
63795
63796         * modules/javacomp: New file.
63797         * MODULES.html.sh (Java): Add javacomp.
63798
63799 2005-01-28  Bruno Haible  <bruno@clisp.org>
63800
63801         * m4/javacomp.m4: New file, from GNU gettext.
63802
63803 2005-01-28  Bruno Haible  <bruno@clisp.org>
63804
63805         * lib/javacomp.sh.in: New file, from GNU gettext.
63806         * lib/javacomp.h: New file, from GNU gettext.
63807         * lib/javacomp.c: New file, from GNU gettext.
63808
63809 2005-01-26  Simon Josefsson  <jas@extundo.com>
63810
63811         * lib/gai_strerror.c: Use GPL in header.
63812
63813 2005-01-26  Bruno Haible  <bruno@clisp.org>
63814
63815         * modules/javaexec: New file.
63816         * MODULES.html.sh (Java): Add javaexec.
63817
63818 2005-01-26  Bruno Haible  <bruno@clisp.org>
63819
63820         * m4/javaexec.m4: New file, from GNU gettext.
63821
63822 2005-01-26  Bruno Haible  <bruno@clisp.org>
63823
63824         * lib/javaexec.sh.in: New file, from GNU gettext.
63825         * lib/javaexec.h: New file, from GNU gettext.
63826         * lib/javaexec.c: New file, from GNU gettext.
63827
63828 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63829
63830         * modules/lchown (Depends-on): Remove lchown.h
63831
63832 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63833
63834         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
63835         must be defined if the header file was not found, in order
63836         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
63837
63838 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63839
63840         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
63841         initializers for struct pentry_state.
63842         (__argp_error): Check return value of __asprintf
63843         (__argp_failure): Translate error message
63844
63845         * lib/argp-parse.c: Removed braces around the expansion of N_()
63846
63847 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63848
63849         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
63850         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
63851         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
63852         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
63853         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
63854         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
63855         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
63856         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
63857         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
63858         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
63859         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
63860         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
63861         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
63862         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
63863         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
63864         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
63865         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
63866         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
63867         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
63868         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
63869         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
63870         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
63871         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
63872         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
63873         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
63874         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
63875         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
63876         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
63877         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
63878         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
63879         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
63880         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
63881         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
63882         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
63883         xstrtol.m4, xstrtoumax.m4, yesno.m4:
63884         Use an all-permissive copyright notice, recommended by RMS.
63885
63886 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
63887
63888         * modules/chdir-long (Depends-on): Remove mempcpy.
63889
63890 2005-01-21  Jim Meyering  <jim@meyering.net>
63891
63892         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
63893         same value as for Solaris 9.
63894
63895         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
63896         component length.  This included changing the parameter to be
63897         of type `char *' rather than `char const *'.
63898         * lib/chdir-long.h (chdir_long): Update prototype.
63899
63900         * lib/openat.c (fdopendir, fstatat): New functions.
63901         * lib/openat.h: Include headers required for use of DIR and struct
63902         stat.
63903         [AT_SYMLINK_NOFOLLOW]: Define.
63904         (fdopendir, fstatat): Add prototypes.
63905
63906 2005-01-21  Bruno Haible  <bruno@clisp.org>
63907
63908         * modules/classpath: New file.
63909         * MODULES.html.sh (Java): Add classpath.
63910
63911 2005-01-21  Bruno Haible  <bruno@clisp.org>
63912
63913         * lib/classpath.h: New file, from GNU gettext.
63914         * lib/classpath.c: New file, from GNU gettext.
63915
63916 2005-01-20  Simon Josefsson  <jas@extundo.com>
63917
63918         * modules/version-etc-fsf: New file.
63919
63920 2005-01-20  Simon Josefsson  <jas@extundo.com>
63921
63922         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
63923         * lib/version-etc.c: Remove version_etc_copyright.
63924         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
63925         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
63926
63927 2005-01-20  Simon Josefsson  <jas@extundo.com>
63928
63929         * lib/base64.h (isbase64): Add.
63930
63931         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
63932         using a unsigned prototype, don't inline.
63933         (base64_decode): Use it.
63934
63935 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63936
63937         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
63938         it.
63939
63940 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63941
63942         * lib/save-cwd.c (save_cwd): Remove code to support the case
63943         where fchdir is missing or flaky.
63944
63945 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63946
63947         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
63948
63949 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
63950
63951         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
63952         AC_LIBSOURCES now does this.
63953         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
63954         with new ullong_max module.
63955
63956 2005-01-19  Bruno Haible  <bruno@clisp.org>
63957
63958         * modules/sh-quote: New file.
63959         * MODULES.html.sh (Executing programs): Add sh-quote.
63960
63961 2005-01-19  Bruno Haible  <bruno@clisp.org>
63962
63963         * lib/sh-quote.h: New file, from GNU gettext.
63964         * lib/sh-quote.c: New file, from GNU gettext.
63965
63966 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
63967
63968         Merge from coreutils.
63969         * m4/ullong_max.m4: New file.
63970         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
63971         (gl_MACROS): Assume localeconv exists.
63972
63973 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
63974
63975         Merge changes from coreutils, as described below in several
63976         changelogs dated today.
63977
63978         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
63979         (O_DIRECTORY): Remove; not needed here, since "." must be
63980         a directory.  All uses removed.
63981         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
63982         universal on Suns, and we also need to test for IRIX.
63983         Revamp code to use 'if' rather than '#if'.
63984         Avoid unnecessary comparison of cwd->desc to 0.
63985
63986         * lib/utimens.c (futimens): Robustify the previous patch, by checking
63987         for known valid error numbers rather than observed invalid ones.
63988
63989 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
63990
63991         * modules/ullong_max: New file.
63992
63993         * modules/chdir-long, modules/openat: New files.
63994         * modules/save-cwd (Depends-on): Depend on chdir-long.
63995         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
63996
63997 2005-01-18  Jim Meyering  <jim@meyering.net>
63998
63999         Merge from coreutils.
64000         * m4/chdir-long.m4, m4/openat.m4: New files.
64001         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
64002         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
64003         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
64004         is sane and DOES follow symlinks.  Besides, testing 20 different
64005         systems found no broken chown implementations.
64006         Prompted by a change in rsync's copy of this macro.
64007         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
64008
64009         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
64010
64011         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
64012         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
64013         NULL-means-set-to-current-time semantics.
64014         Remove temporary file immediately, rather than waiting
64015         for configure's at-exit trap code to do it.
64016
64017 2005-01-18  Jim Meyering  <jim@meyering.net>
64018
64019         * lib/version-etc.c (version_etc_copyright): Update copyright date.
64020
64021         * lib/utimens.c (futimens): Account for the fact that futimes
64022         can also fail with errno == ENOSYS or errno == ENOENT.
64023         Patch from Dmitry V. Levin.
64024
64025         Change the name of the robust chdir function from chdir to chdir_long.
64026         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
64027         (restore_cwd): Use chdir_long, not chdir.
64028         * lib/chdir-long.c: Renamed from chdir.c.
64029         * lib/chdir-long.h: Renamed from chdir.h.
64030         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
64031         Hurd.
64032
64033 2005-01-18  Bruno Haible  <bruno@clisp.org>
64034
64035         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
64036         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
64037         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
64038         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
64039         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
64040         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
64041         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
64042         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
64043         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
64044         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
64045         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
64046         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
64047         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
64048         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
64049         Use an all-permissive copyright notice, recommended by RMS.
64050
64051 2005-01-18  Bob Proulx  <bob@proulx.com>
64052
64053         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
64054         simplify offsetof() macro construct to avoid compile failure with
64055         native HP-UX 11.0 ANSI C compiler.
64056
64057 2005-01-17  Bruno Haible  <bruno@clisp.org>
64058
64059         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
64060         redundant because stpncpy.m4 takes care of it.
64061
64062 2005-01-17  Bruno Haible  <bruno@clisp.org>
64063
64064         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
64065
64066 2005-01-17  Bruno Haible  <bruno@clisp.org>
64067
64068         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
64069         used.
64070
64071 2005-01-17  Bruno Haible  <bruno@clisp.org>
64072
64073         * lib/fwriteerror.h (fwriteerror): Change specification to include
64074         fclose.
64075         * lib/fwriteerror.c: Include <stdbool.h>.
64076         (fwriteerror): At the end, close the file stream. Record whether
64077         stdout was already closed.
64078
64079 2005-01-17  Bruno Haible  <bruno@clisp.org>
64080
64081         * lib/execute.c (environ): Declare if needed.
64082         * lib/pipe.c (environ): Likewise.
64083         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
64084
64085 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64086
64087         * modules/argp: Depend on vsnprintf
64088
64089 2005-01-10  Jim Meyering  <jim@meyering.net>
64090
64091         * modules/closeout (Depends-on): Add atexit.
64092
64093 2005-01-06  Bruno Haible  <bruno@clisp.org>
64094
64095         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
64096
64097 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64098
64099         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
64100         definitions to be after all include files, to avoid collisions.
64101         Problem reported by Bob Proulx.
64102
64103 2005-01-04  Jim Meyering  <jim@meyering.net>
64104
64105         Changes imported from coreutils.
64106         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
64107         as the mkstemp template, use a temporary directory and an
64108         8.3-friendly template to avoid trouble on systems like DJGPP.
64109         Reported by Juan M. Guerrero via Stepan Kasal.
64110         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
64111         close. Remove the temporary directory right away, rather than waiting
64112         for configure's at-exit trap code to do it.
64113         Suggestion from Stepan Kasal.
64114
64115 2005-01-01  Simon Josefsson  <jas@extundo.com>
64116
64117         * gnulib-tool: Print #include directives when --import'ing.
64118
64119 2004-12-28  Simon Josefsson  <jas@extundo.com>
64120
64121         * tests/test-base64.c: Include required header files.  Remove
64122         unused variables.
64123
64124 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
64125
64126         * modules/error (Depends-on): Remove gettext.
64127
64128 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
64129
64130         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
64131         not needed.  This removes a dependency on the gettext module.
64132         [defined _LIBC]: Do not include <libintl.h>; not needed.
64133
64134 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
64135
64136         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
64137         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
64138
64139 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
64140
64141         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
64142         HAVE_DECL_STRTOLD.
64143
64144 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
64145
64146         * modules/getdate (Depends-on): Remove alloca-opt.
64147
64148 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
64149
64150         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
64151
64152 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
64153
64154         * lib/argp-parse.c: Include <stddef.h>.
64155         (alignof, alignto): New macros.
64156         (parser_init): Don't assume that void * is aligned sufficiently
64157         for struct option.
64158
64159         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
64160         need to extend the stack.
64161         (YYINITDEPTH): New macro, so that the initial stack isn't overly
64162         large.
64163
64164 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64165
64166         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
64167
64168 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
64169
64170         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
64171         (2004-10-24) change.  Apparently this was a false alarm.
64172
64173         * modules/getdate: Depend on alloca-opt, not alloca.
64174
64175 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
64176
64177         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
64178         Remove now-obsolete comment about AIX.
64179         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
64180         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
64181         (YYMAXDEPTH): New macro.
64182
64183 2004-12-18  Simon Josefsson  <jas@extundo.com>
64184
64185         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
64186
64187 2004-12-18  Bruno Haible  <bruno@clisp.org>
64188
64189         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
64190
64191 2004-12-18  Bruno Haible  <bruno@clisp.org>
64192
64193         * lib/fatal-signal.c (fatal_signals): Make non-const.
64194         (init_fatal_signals): New function.
64195         (uninstall_handlers, install_handlers): Ignore signals that were set to
64196         SIG_IGN.
64197         (at_fatal_signal): Call init_fatal_signals.
64198         (init_fatal_signal_set): Likewise. Ignore signals that were set to
64199         SIG_IGN.
64200         Reported by Paul Eggert.
64201
64202 2004-12-18  Bruno Haible  <bruno@clisp.org>
64203
64204         * doc/alloca.texi: New file.
64205         * doc/alloca-opt.texi: New file.
64206
64207 2004-12-17  Jim Meyering  <jim@meyering.net>
64208
64209         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
64210         Otherwise, install-sh could exit with improper exit status when
64211         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
64212
64213 2004-12-16  Simon Josefsson  <jas@extundo.com>
64214
64215         * tests/test-base64.c: Add license.
64216
64217 2004-12-15  Stepan Kasal  <address@hidden>
64218
64219         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
64220
64221 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
64222
64223         * modules/getcwd (Files): Add m4/d-ino.m4.
64224         Suggested by Mark D. Baushke.
64225
64226 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
64227
64228         * lib/getdate.y (textint): New member "negative".
64229         (time_zone_hhmm): New function.
64230         Expect 14 shift-reduce conflicts, not 13.
64231         (o_colon_minutes): New rule.
64232         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
64233         (yylex): Set the "negative" member of signed numbers.
64234
64235 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
64236
64237         * doc/getdate.texi (Time of day items, Time zone items):
64238         Describe new formats +00:00, UTC+00:00.
64239
64240 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64241
64242         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
64243         spurious "-l"s.  Problem reported by Stepan Kasal.
64244
64245 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
64246
64247         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
64248         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
64249
64250 2004-12-04  Simon Josefsson  <jas@extundo.com>
64251
64252         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
64253         Vandoorselaere <yoann@prelude-ids.org>.
64254
64255 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
64256
64257         Changes imported from coreutils.
64258         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
64259         exist.
64260         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
64261
64262 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
64263
64264         Changes imported from coreutils.
64265         * lib/hard-locale.c: Assume <locale.h> exists.
64266         Include "strdup.h".
64267         (GLIBC_VERSION): New macro.
64268         (hard_locale): Assume setlocale exists.
64269         Rewrite to avoid #ifdef.
64270         Use strdup rather than malloc + strcpy.
64271         * lib/human.c: Assume <locale.h> exists.
64272         (human_readable): Assume localeconv exists.
64273
64274 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
64275
64276         * modules/hard-locale (Depends-on): Add strdup.
64277
64278 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64279
64280         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
64281         convert T2, not T.  (Imported from libc.)
64282
64283 2004-11-30  Simon Josefsson  <jas@extundo.com>
64284
64285         * modules/restrict (License): Change to LGPL.
64286
64287 2004-11-30  Simon Josefsson  <jas@extundo.com>
64288
64289         * m4/restrict.m4: Add copyright and copying conditions.
64290
64291 2004-11-30  Simon Josefsson  <jas@extundo.com>
64292
64293         * m4/base64.m4: New file.
64294
64295 2004-11-30  Simon Josefsson  <jas@extundo.com>
64296
64297         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
64298         base64.
64299
64300         * tests/test-base64.c: New file.
64301
64302         * modules/base64: New file.
64303
64304 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
64305
64306         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
64307         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
64308
64309         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
64310
64311 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
64312
64313         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
64314         (__getcwd.c): Don't restore errno; glibc doesn't.
64315         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
64316         first, falling back to our code only if its results look suspicious.
64317         Ensure that the resulting buffer is only as large as necessary.
64318
64319         * lib/readutmp.c: Include readutmp.h first.
64320         Include <errno.h>, since readutmp.h no longer does that.
64321         * lib/readutmp.h: Don't include <errno.h>,
64322         <sys/param.h>, <time.h>; not needed to establish interface.
64323         (errno): Remove decl.
64324         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
64325         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
64326         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
64327
64328 2004-11-28  Simon Josefsson  <jas@extundo.com>
64329
64330         * lib/base64.h, base64.c: New file.
64331
64332 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
64333
64334         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
64335
64336 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
64337
64338         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
64339         (Depends-on): Remove pathmax, same.  Add mempcpy.
64340         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
64341         (Makefile.am): Append getcwd.h to lib_SOURCES.
64342         (Include): Add getcwd.h.
64343         (Maintainer): Change from Jim Meyering to "all, glibc",
64344         since getdate now uses intended-for-glibc code.
64345         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
64346         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
64347
64348 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64349
64350         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
64351         HP's ANSI C compiler.
64352         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
64353         Declaring int functions causes warnings on some modern systems and
64354         shouldn't be needed to compile on ancient ones.
64355         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
64356         defined.
64357
64358         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
64359         with the following changes.
64360         (__set_errno): Parenthesize properly.
64361         Include <stdbool.h>.
64362         (MIN, MAX, MATCHING_INO): New macros.
64363         (__getcwd): Define with prototype, not K&R form.
64364         Use heuristics to allocate default buffer on stack if possible.
64365         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
64366         behavior, and to avoid the PATH_MAX limit when computing
64367         ../../../../...
64368         Use MATCHING_INO to compare inode number to file.
64369         Check for arithmetic overflow in size calculations.
64370         Fix bug in reallocation of dot array that caused getcwd to fail
64371         on directories nested deeper than 75.
64372         Be more careful about saving errno on error.
64373         Do not use realloc; use only free+malloc, as this is a bit
64374         more flexible and avoids a needless copy operation.
64375         Do not inspect st_dev and st_ino for symbolic links; POSIX
64376         doesn't specify the latter.
64377         Check for closedir errors.
64378         Avoid needless casts.
64379         Use "#ifdef weak_alias" around weak_alias, to be like other
64380         glibc code.
64381         The following changes to getcwd.c have effect only when used in
64382         gnulib; they have no effect inside glibc proper.
64383         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
64384         as alloca isn't used.
64385         (alloca, __alloca): Likewise.
64386         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
64387         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
64388         unconditionally, as gnulib assumes C89 or better.
64389         Do not include <sys/param.h>.
64390         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
64391         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
64392         better.
64393         (NULL) [!defined NULL]: Remove; we assume C89 or better.
64394         Include <dirent.h> in a way that is compatible with modern Autoconf.
64395         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
64396         New macros, if not already defined.
64397         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
64398         Use "_LIBC", not "defined _LIBC", for consistency.
64399         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
64400         a mempcpy module.
64401         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
64402         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
64403         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
64404         credit only to Jim Meyering and adjust the copyright dates.
64405         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
64406         <stdlib.h>, <unistd.h>, "pathmax.h".
64407         Instead, include "xgetcwd.h" (first) and "getcwd.h".
64408         (INITIAL_BUFFER_SIZE): Remove.
64409         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
64410
64411 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64412
64413         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
64414         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
64415         Use the _ONCE methods, for efficiency.
64416         Check for fcntl.h.  In test program, include <errno.h>
64417         and <fcntl.h> if available.  Remove old K&R cruft from
64418         test program.  Check for common errors in GNU/Linux,
64419         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
64420         don't do AC_LIBOBJ, as that's getcwd.m4's job.
64421         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
64422         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
64423         name accordingly.
64424         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
64425         accommodate new getcwd.c.
64426         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
64427         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
64428         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
64429         that's all we need now.
64430
64431 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64432
64433         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
64434         argp-parse.c depends on getopt internals, that means we should
64435         always use our getopt, to be on the safe side.
64436         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
64437         order not to spoil the result of an eventual previous invocation
64438         of gl_GETOPT_SUBSTITUTE.
64439
64440 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64441
64442         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
64443         redefinition warnings. To avoid them, include the defines
64444         in `#if !defined __need_getopt ... #endif'. The only place
64445         where __getopt_argv_const is used is in definitions
64446         of getopt_long and getopt_long_only below, which are as well
64447         protected by `#ifndef __need_getopt'.
64448         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
64449         __need_getopt after including <stdio.h> and <unistd.h> These
64450         headers might have defined it.
64451
64452 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
64453
64454         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
64455
64456 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
64457
64458         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
64459         (futimens): New function, which uses futimes if available.
64460         (futimens, utimens): Support timespec==NULL, with same semantics
64461         as utime and utimens.
64462         * lib/utimens.h (futimens): New decl.
64463
64464 2004-11-23  Jim Meyering  <jim@meyering.net>
64465
64466         * lib/getopt_.h: Remove trailing blanks.
64467
64468 2004-11-23  Jim Meyering  <jim@meyering.net>
64469
64470         * lib/__fpending.c: Add comment.
64471
64472 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
64473
64474         * modules/canonicalize (Depends-on): Add xreadlink.
64475         Problem reported by James Youngman.
64476
64477 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
64478
64479         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
64480         New macros.
64481         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
64482         optopt): Use them instead of invoking ## directly; otherwise, the
64483         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
64484
64485 2004-11-19  Bruno Haible  <bruno@clisp.org>
64486
64487         * lib/strtok_r.c: Move comments from here...
64488         * lib/strtok_r.h: ... to here.
64489
64490 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
64491
64492         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
64493         implementations that mishandle size_t overflow.
64494
64495 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
64496
64497         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
64498         might fail.  Problem reported by Yoann Vandoorselaere.
64499         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
64500         implementations that mishandle size_t overflow.
64501
64502 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64503
64504         * modules/canon-host (Depends-on): Add strdup.
64505
64506 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64507
64508         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
64509
64510 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64511
64512         * lib/canon-host.c: Include "strdup.h".
64513         (canon_host): Use getaddrinfo if available, so that IPv6 works.
64514         Use strdup instead of malloc/strcpy to duplicate strings.
64515
64516         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
64517         (human_space_before_unit): New constant.
64518         * lib/human.c (human_readable): Support it.
64519
64520         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
64521         (xgetcwd): Set errno correctly when failing.
64522         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
64523         the failure is actually due to a PATH_MAX problem.
64524
64525         Further getopt changes to make it more likely that glibc will
64526         buy the changes back.
64527         * lib/getopt.c (POSIXLY_CORRECT): New constant.
64528         (getopt): Use it, so to preserve glibc semantic
64529         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
64530         when compiling for libc.
64531         * lib/getopt_.h (__getopt_argv_const): Bring it back.
64532         (getopt_long, getopt_long_only): Use it.
64533
64534         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
64535         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
64536         (getopt): Argv is now char * const *, as per standard.
64537         (_getopt_internal_r, _getopt_internal): Argv is now char **,
64538         not char *__getopt_argv_const *.
64539         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
64540         _getopt_long_only_r): Likewise.
64541         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
64542         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
64543         _getopt_long_r, _getopt_long_only_r): Likewise.
64544         * lib/getopt_.h (__getopt_argv_const): Remove.
64545         (getopt): Argv is now char * const *, as per standard.
64546
64547         * lib/getdate.y (tORDINAL): New token.
64548         (day, relunit): Allow it for relative times.
64549         (relative_time_table): Use tORDINAL for ordinals.
64550
64551 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64552
64553         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
64554         Document that "second" isn't allowed as an ordinal number.
64555
64556 2004-11-16  Jim Meyering  <jim@meyering.net>
64557
64558         * modules/closeout (Depends-on): Add fpending.
64559
64560 2004-11-15  Jim Meyering  <jim@meyering.net>
64561
64562         * lib/closeout.c: Include "__fpending.h" once again.
64563         Include <stdbool.h>.
64564         (close_stdout): Don't fail just because stdout was closed initially,
64565         since some programs don't write to stdout in the normal course of
64566         operation (other than --version and --help), and we don't want this
64567         function to make e.g. `touch file >&-' fail.
64568         But do fail if it was closed and someone has tried to write to it.
64569         E.g., `printf foo >&-' must fail.
64570
64571 2004-11-13  Jim Meyering  <jim@meyering.net>
64572
64573         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
64574
64575 2004-11-12  Simon Josefsson  <jas@extundo.com>
64576
64577         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
64578         small doc fix is still pending.
64579
64580 2004-11-11  Simon Josefsson  <jas@extundo.com>
64581
64582         * modules/strtok_r: New file.
64583
64584         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64585         strtok_r.
64586
64587 2004-11-11  Simon Josefsson  <jas@extundo.com>
64588
64589         * m4/strtok_r.m4: New file.
64590
64591         * m4/getopt.m4: Replace opterr.
64592
64593 2004-11-11  Simon Josefsson  <jas@extundo.com>
64594
64595         * lib/strtok_r.h, strtok_r.c: New file.
64596
64597 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
64598
64599         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
64600         of replacing opterr, getopt, etc.  This should handle the
64601         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
64602
64603 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
64604
64605         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
64606         we can stop lying to compilers about the constness of argv when we
64607         are compiled outside glibc.
64608         (getopt, getopt_long, getopt_long_only): Use it.
64609         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
64610         _getopt_internal, getopt): Likewise.
64611         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
64612         _getopt_long_only_r): Likewise.
64613         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
64614         _getopt_long_r, _getopt_long_only_r): Likewise.
64615
64616         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
64617         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
64618         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
64619         the other external symbols.
64620         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
64621         declaration, since the above renaming now works around collisions.
64622
64623 2004-11-11  Jim Meyering  <jim@meyering.net>
64624
64625         * lib/linebreak.c: Remove trailing blanks.
64626         * lib/alloca_.h: Likewise.
64627         * lib/acosl.c: Likewise.
64628         * lib/euidaccess.c: Likewise.
64629         * lib/allocsa.h: Likewise.
64630
64631 2004-11-10  Simon Josefsson  <jas@extundo.com>
64632
64633         * m4/getaddrinfo.m4: New file.
64634
64635 2004-11-10  Simon Josefsson  <jas@extundo.com>
64636
64637         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
64638
64639 2004-11-10  Simon Josefsson  <jas@extundo.com>
64640
64641         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64642         getaddrinfo.
64643
64644         * modules/getaddrinfo: New file.
64645
64646 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64647
64648         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
64649
64650 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64651
64652         * lib/mktime.c (SHR): New macro, which is a portable
64653         substitute for >> that should work even on Crays.
64654         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
64655         Problem reported by Mark D. Baushke in
64656         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
64657         * lib/getdate.y (SHR): Likewise.
64658         (tm_diff): Use it.
64659         * lib/strftime.c (SHR): Likewise.
64660         (tm_diff): Use it.
64661         * lib/quotearg.c (struct quoting_options): Use unsigned int for
64662         quote_these_too, so that right shifts are well defined.  All uses
64663         changed.
64664
64665 2004-11-10  Jim Meyering  <jim@meyering.net>
64666
64667         Ensure that no close failure goes unreported.
64668         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
64669         return early when it seems there's nothing to flush.
64670         Don't include __fpending.h.
64671
64672 2004-11-10  Jim Meyering  <jim@meyering.net>
64673
64674         * modules/closeout (Depends-on): Remove fpending.
64675
64676 2004-11-10  Jim Meyering  <jim@meyering.net>
64677
64678         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
64679
64680 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64681
64682         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
64683         gl_FUNC_STRFTIME.
64684         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
64685         and AC_REQUIRE when possible, to avoid duplicate checks.
64686         Check for <wchar.h>.
64687
64688 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64689
64690         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
64691
64692 2004-11-09  Bruno Haible  <bruno@clisp.org>
64693
64694         * m4/sockpfaf.m4: New file.
64695
64696 2004-11-05  Bruno Haible  <bruno@clisp.org>
64697
64698         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
64699         Reported by Mark D. Baushke <mdb@cvshome.org>.
64700
64701 2004-11-04  Bruno Haible  <bruno@clisp.org>
64702
64703         2004-09-11  Bruno Haible  <bruno@clisp.org>
64704                 * allocsa.valgrind: New file.
64705         2004-02-06  Bruno Haible  <bruno@clisp.org>
64706                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
64707                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
64708                 Reported by Christopher Seip <chris.seip@hp.com>.
64709
64710 2004-11-04  Bruno Haible  <bruno@clisp.org>
64711
64712         * modules/allocsa (Files): Add lib/allocsa.valgrind.
64713         (Makefile.am): Distribute it.
64714
64715 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
64716
64717         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
64718         with errno == ERANGE if the buffer is too small.
64719         Problem reported by Mark D. Baushke.
64720
64721 2004-11-03  Albert Chin  <china@thewrittenword.com>
64722             Paul Eggert  <eggert@cs.ucla.edu>
64723
64724         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
64725         equivalent, substitute $ac_type for equivalent type rather than
64726         blindly using uint32_t *always* which won't work if uint32_t is not
64727         available.  Define _UINT32_T to work around typedef of uint32_t if
64728         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
64729         2.5.1.
64730
64731 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
64732
64733         * m4/jm-macros.m4: Sync from coreutils.
64734         (gl_MACROS): Check for mbrlen, for pathchk.
64735         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
64736
64737 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
64738
64739         * lib/xreadlink.c (MAXSIZE): New macro.
64740         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
64741         size does not exceed MAXSIZE.  Avoid cast.
64742         As suggested by Mark D. Baushke in
64743         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
64744         if readlink fails with buffer size just under MAXSIZE, try again
64745         with MAXSIZE.
64746
64747 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
64748
64749         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
64750
64751 2004-11-02  Derek R. Price  <derek@ximbiot.com>
64752         and  Paul Eggert  <eggert@cs.ucla.edu>
64753
64754         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
64755         (get_date): Overparenthesize to avoid GCC warning.
64756
64757 2004-11-02  Bruno Haible  <bruno@clisp.org>
64758
64759         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
64760         returns void.
64761
64762 2004-11-02  Bruno Haible  <bruno@clisp.org>
64763
64764         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
64765         function returns void.
64766
64767 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
64768
64769         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
64770         fflush_unlocked, flockfile, funlockfile, funlockfile,
64771         fputs_unlocked, putc_unlocked.
64772
64773 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
64774
64775         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
64776         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
64777         already declared.
64778
64779 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64780
64781         * modules/getdate (Files): Add doc/getdate.texi.
64782         (Depends-on): Add setenv, xalloc.
64783
64784 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64785
64786         * lib/getdate.y: Add support for TZ="foo" within a date string.
64787         Fix some bugs near time_t boundaries.  Reject dates with
64788         out-of-range components, e.g., "Sept 31".
64789         Include <stdlib.h>, "setenv.h", "xalloc.h".
64790         (ISDIGIT_LOCALE): Remove; unused.
64791         Note that the TZ and time functions used here are not reentrant.
64792         (mktime_ok, get_tz): New functions.
64793         (TZBUFSIZE): New constant.
64794         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
64795         This requires that we sometimes generate our own TZ="XXX..." setting.
64796
64797 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64798
64799         * doc/getdate.texi: New file, from coreutils with modifications for
64800         the new TZ parsing.
64801
64802 2004-10-27  Derek R. Price  <derek@ximbiot.com>
64803
64804         * lib/mktime.c (not_equal_tm): Remove redundant check.
64805
64806 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64807
64808         * modules/regex (lib_SOURCES): Add regex.c.
64809         Reported by James Youngman in
64810         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
64811
64812 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64813
64814         * lib/getdate.y: Use Bison 1.875 features, and some minor
64815         code cleanups.  This change does not affect semantics.
64816         Don't include <stdlib.h>; no longer needed.
64817         Don't include unlocked-io.h; only the "#if TEST" code uses
64818         stdio, and performance isn't crucial there.
64819         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
64820         Bison 1.875 features as described below.
64821         All uses of "PC." replaced by "pc->".
64822         (YYSTYPE): Add a forward declaration.
64823         (yylex, yyerror): Use full prototypes in forward decls.
64824         Use "%pure-parser" rather than obsolescent "%pure_parser".
64825         Use %parse-param and %lex-param instead of obsolescent
64826         YYPARSE_PARAM and YYLEX_PARAM.
64827         (meridian_table, month_and_day_table, time_units_table,
64828         relative_time_table, time_zone_table, military_table,
64829         lookup_zone, lookup_word, get_date):
64830         Use NULL instead of 0 where appropriate.
64831         (to_hour): Avoid abort (), to avoid a dependency on
64832         stdlib.h.
64833         (yyerror, yylex): Now accepts parser_control * arg.
64834         (main) [TEST]: Use '\0' rather than 0 for char.
64835
64836 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64837
64838         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
64839
64840 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64841
64842         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
64843         It's now the caller's responsibility to handle the case where
64844         !HAVE_GETPAGESIZE && !defined getpagesize.
64845
64846         * lib/mktime.c (leapyear): Arg is long int, not int.
64847
64848 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
64849
64850         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
64851
64852 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64853
64854         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
64855         missing.  Problem reported by James Youngman.
64856
64857 2004-10-16  Simon Josefsson  <jas@extundo.com>
64858
64859         * gnulib-tool: Fix comments.  Fix parse problem.
64860         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
64861
64862 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
64863
64864         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
64865         implementation of getopt_long.  Problem reported by Alexander Taler in:
64866         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
64867
64868 2004-10-15  Bruno Haible  <bruno@clisp.org>
64869
64870         * gnulib-tool: Untabify. Initialize supplied_libname.
64871         (func_usage): More homogenous output.
64872         (func_modules_transitive_closure, func_modules_to_filelist,
64873         func_emit_lib_Makefile_am): New functions.
64874         (func_import): New function, extracted from big case statement. Use
64875         func_get_license, func_modules_transitive_closure,
64876         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
64877         opt_lgpl. Don't use test -a, as it's not portable.
64878         (func_create_testdir): Use func_modules_transitive_closure,
64879         func_modules_to_filelist, func_emit_lib_Makefile_am.
64880
64881 2004-10-15  Bruno Haible  <bruno@clisp.org>
64882
64883         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
64884
64885 2004-10-15  Bruno Haible  <bruno@clisp.org>
64886
64887         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
64888         the portions belonging to each module.
64889         Suggested by Derek Robert Price <derek@ximbiot.com>.
64890
64891 2004-10-12  Simon Josefsson  <jas@extundo.com>
64892
64893         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
64894         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
64895         to real functions.
64896
64897 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64898
64899         * modules/vsnprintf: New file.
64900
64901 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64902
64903         * m4/vsnprintf.m4: New file.
64904
64905 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64906
64907         * lib/vsnprintf.h: New file.
64908         * lib/vsnprintf.c: New file.
64909
64910 2004-10-11  Bruno Haible  <bruno@clisp.org>
64911
64912         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
64913         vsnprintf.
64914
64915 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64916
64917         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
64918
64919 2004-10-07  Bruno Haible  <bruno@clisp.org>
64920
64921         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
64922         fits into the provided buffer.
64923
64924 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64925
64926         * lib/diacrit.c, diacrit.h: Add GPL notice.
64927
64928         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
64929         notice.
64930         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
64931         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
64932         This avoids a potential constant-folding bug.
64933
64934 2004-10-05  Bruno Haible  <bruno@clisp.org>
64935
64936         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
64937         for the declaration of strsep.
64938
64939 2004-10-05  Bruno Haible  <bruno@clisp.org>
64940
64941         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
64942
64943 2004-10-04  Simon Josefsson  <jas@extundo.com>
64944
64945         * modules/memmem: New file.
64946         * tests/test-memmem.c: New file.
64947         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
64948
64949 2004-10-04  Simon Josefsson  <jas@extundo.com>
64950
64951         * m4/memmem.m4: New file.
64952
64953 2004-10-04  Simon Josefsson  <jas@extundo.com>
64954
64955         * lib/memmem.h: New file.
64956         * lib/memmem.c: New file, taken from glibc.
64957
64958 2004-10-04  Simon Josefsson  <jas@extundo.com>
64959
64960         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
64961         '#ifdef USE_UNLOCKED_IO'.
64962
64963 2004-10-04  Simon Josefsson  <jas@extundo.com>
64964
64965         * config/srclist.txt: Add memmem from glibc.
64966
64967 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
64968
64969         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
64970
64971         * modules/argmatch, modules/argp, modules/closeout, modules/error,
64972         modules/exclude, modules/getdate, modules/getline,
64973         modules/getndelim2, modules/getpass, modules/getpass-gnu,
64974         modules/getusershell, modules/linebuffer, modules/md5,
64975         modules/mountlist, modules/posixtm, modules/readtokens,
64976         modules/readutmp, modules/regex, modules/sha1,
64977         modules/version-etc, modules/yesno:
64978         Remove dependency on unlocked-io.
64979
64980 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
64981
64982         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
64983
64984         * m4/unlocked-io.m4: Add copyright notice.
64985         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
64986
64987 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
64988
64989         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
64990         * lib/xmalloc.c (xmemdup): Likewise.
64991         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
64992         XFREE): Remove these long-obsolescent macros.
64993         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
64994         * lib/xstrdup.c: Remove.
64995
64996         * lib/regex.c (re_comp): Cast gettext return value to char *,
64997         Problem reported by Martin Neitzel via Mark D. Baushke.
64998
64999 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
65000
65001         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
65002         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
65003         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
65004         regex.c, sha1.c, version-etc.c, yesno.c:
65005         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
65006         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
65007         the includer's responsibility.
65008
65009         Sync from coreutils.
65010
65011         * lib/modechange.c (mode_compile): Don't decrement a pointer that
65012         points to the start of a string, as the C Standard says the
65013         resulting behavior is undefined.
65014
65015         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
65016         simple -> simple_backups, numbered_existing ->
65017         numbered_existing_backups, numbered -> numbered_backups
65018         to avoid shadowing problems.  All uses changed.
65019         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
65020         * lib/backupfile.c (check_extension, numbered_backup):
65021         Rename locals to avoid shadowing 'basename'.
65022         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
65023         once.
65024
65025         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
65026         * lib/.cvsignore: Add getopt.h.
65027
65028 2004-10-04  Bruno Haible  <bruno@clisp.org>
65029
65030         * modules/README: New file.
65031         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
65032         not a module.
65033
65034 2004-10-02  Jim Meyering  <jim@meyering.net>
65035
65036         * lib/dirfd.h, getpagesize.h: Add copyright notice.
65037
65038 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65039
65040         * modules/strsep: New file.
65041
65042 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65043
65044         * m4/strsep.m4: New file.
65045
65046 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65047
65048         * lib/strsep.h: New file.
65049         * lib/strsep.c: New file.
65050
65051 2004-10-01  Simon Josefsson  <jas@extundo.com>
65052
65053         * lib/snprintf.c (snprintf): Handle size==0.
65054
65055 2004-10-01  Simon Josefsson  <jas@extundo.com>
65056             Bruno Haible  <bruno@clisp.org>
65057
65058         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
65059         (snprintf): Declare 'args'.
65060
65061 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
65062
65063         * lib/snprintf.c: Remove comments as to why each header is needed.
65064
65065 2004-10-01  Bruno Haible  <bruno@clisp.org>
65066
65067         * MODULES.html.sh: Add strsep.
65068
65069 2004-09-30  Simon Josefsson  <jas@extundo.com>
65070
65071         * modules/snprintf: New file.
65072
65073 2004-09-30  Simon Josefsson  <jas@extundo.com>
65074
65075         * m4/snprintf.m4: New file.
65076
65077 2004-09-30  Simon Josefsson  <jas@extundo.com>
65078
65079         * lib/snprintf.h, lib/snprintf.c: New files.
65080
65081 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65082
65083         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
65084         (hol_entry_help): Never translate an empty string.
65085         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
65086         * lib/argp.h (OPTION_NO_TRANS): New option.
65087
65088 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
65089
65090         * modules/argp (Maintainer): Replace Simon Josefsson
65091         by Sergey Poznyakoff.
65092
65093 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
65094
65095         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
65096         changes merged back into glibc.
65097
65098 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
65099
65100         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
65101
65102 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
65103
65104         * lib/xvasprintf.c: Include xalloc.h.
65105         (xvasprintf): Use xalloc_die, not xmalloc_die.
65106
65107 2004-09-29  Bruno Haible  <bruno@clisp.org>
65108
65109         * modules/alloca-opt: New file, derived from modules/alloca.
65110         * modules/allocsa: Depend on alloca-opt instead of alloca.
65111         * modules/setenv: Likewise.
65112         * modules/vasnprintf: Likewise.
65113         * MODULES.html.sh: Add alloca-opt.
65114
65115 2004-09-28  Simon Josefsson  <jas@extundo.com>
65116
65117         * gnulib-tool: New parameter --lgpl, to asseert that modules are
65118         LGPL, and to replace license template from GPL to LGPL.
65119
65120 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
65121
65122         * modules/dummy: Change license to LGPL.
65123
65124 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
65125
65126         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
65127
65128 2004-09-24  Simon Josefsson  <jas@extundo.com>
65129
65130         * modules/minmax (License): Change from GPL to LGPL.
65131
65132 2004-09-23  Simon Josefsson  <jas@extundo.com>
65133
65134         * gnulib-tool (--import): Typo.
65135
65136 2004-09-23  Simon Josefsson  <jas@extundo.com>
65137
65138         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
65139
65140 2004-09-22  Bruno Haible  <bruno@clisp.org>
65141
65142         * modules/*: Add 'License' field.
65143         * gnulib-tool: Accept --extract-license option.
65144         (func_get_license): New function.
65145
65146 2004-09-21  Bruno Haible  <bruno@clisp.org>
65147
65148         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
65149         Reported by Simon Josefsson.
65150
65151 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
65152
65153         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
65154         gl_AC_TYPE_LONG_LONG.
65155
65156 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
65157
65158         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
65159
65160 2004-09-18  Simon Josefsson  <jas@extundo.com>
65161         and  Paul Eggert  <eggert@cs.ucla.edu>
65162
65163         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
65164         calls with autoreconf.  Define GL_LIB.
65165
65166 2004-09-14  Karl Berry  <karl@gnu.org>
65167
65168         * config/srclist.txt: unsync setenv.c, sigh.
65169
65170 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65171
65172         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
65173         Problem reported by Bruno Haible in:
65174         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
65175
65176 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65177
65178         * config/srclist.txt: Comment out argp-pvh.c.
65179
65180 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
65181
65182         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
65183         in case some system header has #define'd it.  Problem reported by
65184         Soeren D. Schulze in
65185         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
65186
65187 2004-09-09  Karl Berry  <karl@gnu.org>
65188
65189         * regex.[ch]: delete from the root.  These were supposed to be
65190                 synced with emacs cvs, but this has not happened for about
65191                 a year, and anyway nothing else uses emacs regex.[ch].
65192                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
65193                 lib/regex[.ch] is untouched.
65194
65195 2004-09-09  Bruno Haible  <bruno@clisp.org>
65196
65197         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
65198
65199 2004-09-09  Bruno Haible  <bruno@clisp.org>
65200
65201         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
65202         modifications.
65203         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
65204
65205 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
65206
65207         * modules/xvasprintf: New file.
65208         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
65209
65210 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
65211
65212         * lib/xvasprintf.h: New file.
65213         * lib/xvasprintf.c: New file.
65214         * lib/xasprintf.c: New file.
65215
65216 2004-09-08  Bruno Haible  <bruno@clisp.org>
65217
65218         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
65219
65220 2004-09-08  Bruno Haible  <bruno@clisp.org>
65221
65222         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
65223         length is > INT_MAX.
65224         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
65225         more.
65226
65227 2004-09-08  Bruno Haible  <bruno@clisp.org>
65228
65229         * lib/stdint_.h: New file, taken from GNU clisp.
65230
65231 2004-09-08  Bruno Haible  <bruno@clisp.org>
65232             Oskar Liljeblad  <oskar@osk.mine.nu>
65233
65234         * modules/stdint: New file.
65235         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
65236
65237 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65238
65239         Import from coreutils.
65240         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
65241         strings on unbounded length.  alloca's performance benefits aren't
65242         that important here.
65243         (V_STRDUP): Remove.
65244         (parse_with_separator): New function, with most of the internals
65245         of the old parse_user_spec.  Allow user to omit both user and group,
65246         for compatibility with FreeBSD.
65247         Clone only the user name, not the entire spec.
65248         Do not set *uid, *gid unless entirely successful.
65249         Avoid memory leak in some failing cases.
65250         Fix regression for USER.GROUP reported by Dmitry V. Levin in
65251         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
65252         (parse_user_spec): Rewrite to use parse_with_separator.
65253
65254 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65255
65256         * modules/userspec: Don't depend on alloca.
65257
65258 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65259
65260         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
65261
65262 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65263
65264         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
65265         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
65266         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
65267
65268 2004-08-16  Simon Josefsson  <jas@extundo.com>
65269
65270         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
65271         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
65272         Add --dry-run for --import.
65273         Let user provided command line parameters override configure.ac
65274         settings.
65275
65276 2004-08-12  Simon Josefsson  <jas@extundo.com>
65277
65278         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
65279         as discussed with Paul Eggert in threads rooted at
65280         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
65281         and
65282         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
65283         Before, the test was empty, and relied on ELIDE_CODE in source
65284         code.)
65285         (gl_PREREQ_GETOPT): New macro.
65286         (gl_GETOPT): Use them.
65287
65288 2004-08-12  Simon Josefsson  <jas@extundo.com>
65289
65290         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
65291         * lib/getopt_.h: Renamed from getopt.h.
65292
65293 2004-08-12  Simon Josefsson  <jas@extundo.com>
65294
65295         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
65296         Change default library name from libfoo to libgnu.
65297         Now, if you have a configure.ac that says:
65298                 gl_SOURCE_BASE(gl)
65299                 gl_M4_BASE(gl/m4)
65300                 gl_MODULES(error getopt etcetera)
65301                 gl_INIT
65302         you can import all you need by running:
65303                 ../gnulib/gnulib-tool --import
65304
65305         * modules/getopt (Files): Rename getopt.h to getopt_.h.
65306         (Makefile.am): Rewrite, use logic from argz.
65307         (Include): Use <getopt.h> instead of "getopt.h".
65308
65309 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
65310
65311         * modules/argp (Files): Add m4/unlocked-io.m4.
65312         (Depends-on): Add extensions.
65313
65314 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
65315
65316         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
65317         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
65318         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
65319         Check for program_invocation_name, program_invocation_short_name,
65320         flockfile, funlockfile, features.h, _getopt_long_only_r.
65321
65322 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
65323
65324         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
65325         its complicated substitute.
65326         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
65327         and program_invocation_name.
65328         (__argp_basename) [!_LIBC]: Remove; the only use was
65329         replaced by its body.
65330         (__argp_short_program_name): Change condition from
65331         !defined __argp_short_program_name to
65332         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
65333         to match argp-namefrob.h.
65334         (__argp_failure): Don't assume strerror_r returns char *.
65335         * lib/argp-parse.c (N_): Define unconditionally.
65336         (argp_default_options): Fill out initializers with 0 to avoid
65337         gcc warnings.
65338
65339 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
65340
65341         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
65342         getopt1.c.
65343
65344 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65345
65346         Merge from coreutils.
65347
65348         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
65349
65350         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
65351         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
65352
65353 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65354
65355         Merge from coreutils.
65356
65357         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
65358         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
65359         for Reliant Unix 5.43.
65360
65361         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
65362         (union fooround): Use uintmax_t, not long int.
65363         The rest is a merge from libc:
65364         [defined _LIBC]: Include <shlib-compat.h>.
65365         (_obstack) [defined _LIBC]: Remove after 2.3.4.
65366
65367         * lib/settime.c (settime): Recode to avoid warning with
65368         Sun Forte C 6U2.
65369
65370         * lib/strverscmp.c: Convert to UTF-8.
65371
65372 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65373
65374         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
65375         m4/uintmax_t.m4.
65376
65377 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65378
65379         * modules/xalloc-die: New file.
65380         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
65381
65382         * modules/md5 (Files): Add m4/uint32_t.m4.
65383         * modules/sha1: Renamed from modules/sha.
65384         (Files):
65385         Rename lib/sha.h to lib/sha1.h.
65386         Rename lib/sha.c to lib/sha1.c.
65387         Rename m4/sha.m4 to m4/sha1.m4.
65388         (lib_SOURCES): Likewise.
65389         (configure.ac): Rename gl_SHA to gl_SHA1.
65390         (Include): sha.h -> sha1.h.
65391
65392 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65393
65394         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
65395         * m4/sha1.m4: Renamed from sha.m4.
65396         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
65397
65398 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65399
65400         * lib/obstack.h (obstack_empty_p):
65401         Don't assume that chunk->contents is suitably aligned.
65402         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
65403         Likewise. Problem reported by Benno in
65404         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
65405
65406         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
65407         readable.  This could be improved further but it'd take some work.
65408
65409 2004-08-08  Simon Josefsson  <jas@extundo.com>
65410
65411         * modules/xgethostname (Depends-on): Remove exit and error (not
65412         used).
65413
65414         * modules/getpass-gnu: Add getpass.h.
65415         (Depends-on): Add stdbool.
65416         * modules/getpass: Add getpass.h.
65417
65418 2004-08-08  Simon Josefsson  <jas@extundo.com>
65419
65420         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
65421         Check getpass declaration.
65422
65423 2004-08-08  Simon Josefsson  <jas@extundo.com>
65424
65425         * lib/xgethostname.c: Don't include error.h (not used).
65426
65427         * lib/getpass.h: Add.
65428         * lib/getpass.c: Include getpass.h first.
65429
65430 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
65431
65432         * lib/xalloc-die.c: New file.
65433         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
65434         All uses removed.
65435         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
65436         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
65437         xalloc-die.c.
65438         (_, N_, xalloc_die): Move to xalloc-die.c.
65439         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
65440         so that we needn't mess with xalloc_msg_memory_exhausted.
65441
65442         * lib/sha1.h: Renamed from sha.h.
65443         (SHA1_H): Renamed from _SHA_H.
65444         (sha1_ctx): Renamed from sha_ctx.
65445         (sha1_init_ctx): Renamed from sha_init_ctx.
65446         (sha1_process_block): Renamed from sha_process_block.
65447         (sha1_process_bytes): Renamed from sha_process_bytes.
65448         (sha1_finish_ctx): Renamed from sha_finish_ctx.
65449         (sha1_read_ctx): Renamed from sha_read_ctx.
65450         (sha1_stream): Renamed from sha_stream.
65451         (sha1_buffer): Renamed from sha_buffer.
65452         * lib/sha1.c: Likewise; renamed from sha.c.
65453         Do not include <sys/types.h>.
65454         Include <stddef.h> rather than <stdlib.h>.
65455
65456 2004-08-08  Bruno Haible  <bruno@clisp.org>
65457
65458         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
65459         FILESYSTEM_PREFIX_LEN.
65460         * lib/progreloc.c: Likewise.
65461         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
65462
65463 2004-08-06  Simon Josefsson  <jas@extundo.com>
65464
65465         * modules/progname (Depends-on): Don't depend on stdbool.
65466
65467 2004-08-06  Simon Josefsson  <jas@extundo.com>
65468
65469         * modules/getsubopt: New file.
65470         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65471         getsubopt.
65472
65473 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
65474
65475         More merge from coreutils.
65476
65477         * m4/utimens.m4, m4/utimecmp.m4: New files.
65478         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
65479         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
65480         prereq.m4, sha.m4: Import changes from coreutils.
65481
65482 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
65483
65484         More merge from coreutils.
65485         * modules/raise, modules/readtokens0, modules/utimens:
65486         * modules/utimecmp, module/xnanosleep: New files.
65487         * modules/strftime: Add lib/strftime.h.
65488         Change include from <time.h> to "strftime.h".
65489         * modules/yesno: Add lib/yesno.h.
65490         * modules/backupfile: Remove lib/addext.c.
65491         * modules/euidaccess: Add stat-macros.h.
65492         * modules/canonicalize, modules/euidaccess,
65493         modules/filemode, modules/lchown, modules/makepath,
65494         modules/rmdir, modules/stat: Likewise.
65495
65496 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
65497
65498         Merge from tar.
65499         * lib/argp-help.c (make_hol, hol_append): Don't assume that
65500         SIZE_MAX is a valid preprocessor constant.
65501         (__argp_basename): Change from "#ifndef _LIBC"
65502         to "#ifndef __argp_short_program_name", so that
65503         we don't compile these functions for tar.
65504
65505         More merges from coreutils.
65506         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
65507         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
65508         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
65509         * lib/addext.c: Remove; no longer needed.
65510         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
65511         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
65512         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
65513         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
65514         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
65515         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
65516         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
65517         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
65518         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
65519         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
65520         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
65521         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
65522         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
65523         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
65524         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
65525         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
65526         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
65527         Import changes from coreutils.
65528
65529 2004-08-05  Simon Josefsson  <jas@extundo.com>
65530
65531         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
65532
65533 2004-08-05  Simon Josefsson  <jas@extundo.com>
65534
65535         * m4/getsubopt.m4: New file.
65536
65537 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
65538
65539         Merge from coreutils.
65540
65541         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
65542         * m4/getcwd-path-max.m4: New files.
65543
65544         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
65545         FILESYSTEM_PREFIX_LEN ->
65546         FILE_SYSTEM_PREFIX_LEN.
65547         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
65548         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
65549         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
65550         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
65551
65552         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
65553         prerequisite modules now handle the DOS stuff.
65554         Don't check for unistd.h.
65555
65556 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
65557
65558         Merge from coreutils.
65559
65560         * lib/.gdb-history: Remove; this doesn't belong here.
65561
65562         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
65563         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
65564         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
65565         * lib/getcwd.c: New files.
65566
65567         * lib/dirname.h: Include <stdbool.h>.
65568         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
65569         for consistency with POSIX terminology.  All uses changed.
65570         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
65571         (strip_trailing_slashes): Use bool for booleans.
65572         * lib/stripslash.c (strip_trailing_slashes): Likewise.
65573
65574         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
65575         sometimes returns a positive errno value even when it succeeds.
65576         (print_errno_message) [!LIBC]: Fall back on strerror if
65577         __strerror_r fails.
65578
65579         * lib/path-concat.c (mempcpy): Don't define if a system header defines
65580         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
65581         (longest_relative_suffix): New function.
65582         (path_concat): Use it.  Assume first argument is not NULL.
65583         Port to DOS.  Omit redundant separators.
65584         Report an error instead of returning NULL.
65585         Use mempcpy instead of memcpy.
65586         (xpath_concat): Remove: not declared or used.
65587
65588         * lib/same.h: Include <stdbool.h>
65589         (same_name): Return bool, not int.
65590         * lib/same.c (same_name): Likewise.
65591         (errno): Don't declare; we assume C89 or better now.
65592
65593         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
65594         if not already defined.
65595
65596         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
65597         * lib/dup-safer.c (errno): Likewise.
65598
65599 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
65600
65601         Merge from coreutils.
65602         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
65603         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
65604         * modules/path-concat: Don't depend on strdup.
65605
65606 2004-08-03  Simon Josefsson  <jas@extundo.com>
65607
65608         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
65609         * lib/progname.h: Don't include stdbool.h.
65610
65611 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
65612
65613         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
65614         * MODULES.html.sh (func_all_modules): Remove fatal.
65615
65616 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
65617
65618         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
65619
65620 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
65621
65622         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
65623         working.
65624
65625 2004-08-02  Simon Josefsson  <jas@extundo.com>
65626
65627         * lib/getsubopt.h: New file, with comments from Bruno Haible.
65628         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
65629         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
65630
65631 2004-08-01  Simon Josefsson  <jas@extundo.com>
65632
65633         * lib/xgetdomainname.c: Include stdlib.h, for free().
65634
65635 2004-07-19  Bruno Haible  <bruno@clisp.org>
65636
65637         * MODULES.html.sh (func_all_modules): Add dummy.
65638
65639 2004-07-16  Simon Josefsson  <jas@extundo.com>
65640
65641         * modules/dummy: New file.
65642
65643 2004-07-16  Simon Josefsson  <jas@extundo.com>
65644
65645         * lib/dummy.c: New file.
65646
65647 2004-07-16  Bruno Haible  <bruno@clisp.org>
65648
65649         * lib/backupfile.h: Add extern "C" for C++.
65650         * lib/closeout.h: Likewise.
65651         * lib/copy-file.h: Likewise.
65652         * lib/findprog.h: Likewise.
65653         * lib/full-write.h: Likewise.
65654         * lib/pathname.h: Likewise.
65655         * lib/progname.h: Likewise.
65656         * lib/stpcpy.h: Likewise.
65657         * lib/stpncpy.h: Likewise.
65658         * lib/strcase.h: Likewise.
65659         * lib/strstr.h: Likewise.
65660         * lib/xalloc.h: Likewise.
65661
65662         * lib/mbswidth.h: Add extern "C" for C++.
65663         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
65664
65665 2004-07-13  Robert Millan  <robertmh@gnu.org>
65666
65667         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
65668
65669 2004-07-09  Simon Josefsson  <jas@extundo.com>
65670
65671         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
65672         failed without this.)
65673
65674 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65675
65676         * modules/chown (Files): Add lib/fchown-stub.c, since
65677         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
65678
65679 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65680
65681         * lib/fchown-stub.c: New file.
65682
65683 2004-06-24  Jim Meyering  <jim@meyering.net>
65684
65685         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
65686
65687 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65688
65689         * modules/argz: Omit "#include".
65690
65691         * MODULES.html.sh (func_all_modules): Add calloc, to match
65692         2004-06-01 addition of calloc module.
65693
65694 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65695
65696         * m4/argz.m4: New file, which is autoupdated from libtool.
65697
65698 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65699
65700         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
65701         libtool.
65702
65703 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65704
65705         * config/srclist-update: Don't insist on "USA." before the
65706         close-comment, as libtool omits the period and puts the */ on a
65707         separate line.
65708         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
65709         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
65710
65711 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
65712
65713         * modules/argz: New file.
65714         * MODULES.html.sh (func_all_modules): Add argz.
65715
65716 2004-06-12  Jim Meyering  <jim@meyering.net>
65717         and  Paul Eggert  <eggert@cs.ucla.edu>
65718
65719         * modules/hash (Files): Add lib/xalloc.h.
65720         * modules/pipe (Depends-on): Add wait-process.
65721         * modules/stat (Depends-on): Add xalloc.
65722         * modules/userspec (Files): Add lib/userspec.h.
65723         * modules/xstrto
65724
65725         Upgrade from gettext-0.13.
65726         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
65727         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
65728         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
65729
65730 2004-06-10  Jim Meyering  <jim@meyering.net>
65731
65732         * lib/calloc.c: New file.
65733
65734 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
65735
65736         * lib/getdate.y (yylex): Allow space between sign and number.
65737         Problem reported by Dan Jacobson.
65738
65739 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
65740
65741         Merge from coreutils CVS.
65742
65743         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
65744         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
65745         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
65746         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
65747         xstrtol.m4: Fix copyright date and/or serial number.
65748
65749         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
65750         See if we need an fchown replacement.
65751         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
65752         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
65753         and use the replacement function if we detect either defect.
65754
65755         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
65756         gl_UTIMECMP.
65757
65758 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
65759         and  Jim Meyering  <jim@meyering.net>
65760
65761         Merge from coreutils CVS.
65762
65763         * lib/stat-macros.h: New file, with contents from file-type.h
65764         and coreutils' system.h.
65765         * lib/file-type.c: Include "stat-macros.h".
65766         * lib/file-type.h (file_type): Move all macro definitions to new file,
65767         stat-macros.h.
65768
65769         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
65770         Wrap old code with this conditional.
65771         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
65772         function that does not dereference symlinks.
65773         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
65774
65775         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
65776         dependency problems.
65777         (xreadlink): Accept new arg SIZE, for efficiency.
65778         All decls and uses changed.
65779         * lib/xreadlink.h: Include <stddef.h>, for size_t.
65780
65781         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
65782         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
65783
65784         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
65785         sysexits.h.
65786
65787 2004-06-01  Jim Meyering  <jim@meyering.net>
65788
65789         * m4/calloc.m4: New file.
65790
65791 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
65792
65793         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
65794         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
65795         Also, fix a typo in a diagnostic.
65796
65797 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
65798
65799         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
65800         or AC_FUNC_REALLOC.
65801
65802 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
65803
65804         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
65805         macros to be defined.
65806         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
65807         the allocator returns NULL because the requested size is zero.
65808
65809 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65810
65811         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
65812         var.  Add comment explaining why libc still defines it.  This
65813         merges the following patch from glibc:
65814         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
65815
65816 2004-05-20  Andreas Schwab  <schwab@suse.de>
65817
65818         * m4/free.m4: Replace free if it not known to work, not the other
65819         way round.
65820
65821 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
65822
65823         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
65824         present in glibc since revision 1.1 of this file.
65825         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
65826         obstack_alignment_mask, obstack_alloc, obstack_base,
65827         obstack_blank, obstack_blank_fast, obstack_chunk_size,
65828         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
65829         obstack_grow0, obstack_init, obstack_int_grow,
65830         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
65831         obstack_next_free, obstack_object_size, obstack_ptr_grow,
65832         obstack_ptr_grow_fast, obstack_room): Remove declarations of
65833         nonexistent functions.
65834
65835 2004-05-18  Karl Berry  <karl@gnu.org>
65836
65837         * config/srclist.txt: break link for vasnprintf.c.
65838
65839 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65840
65841         Port obstack to the AS/400, where pointers are 16 bytes wide and
65842         you cannot cast an integer to a valid pointer.  This patch is
65843         currently waiting to be integrated into glibc; see
65844         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
65845
65846         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
65847         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
65848         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
65849         (struct obstack): temp member is now a union of a pointer and
65850         an integer, instead of an integer.  All integer uses changed.
65851         This does not affect the physical layout of struct obstack,
65852         except on hosts (like the AS/400) where the size or alignment of
65853         void * is greater than that of ptrdiff_t.
65854         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
65855         __STDC__)]: Store temporary in pointer member of union, not
65856         integer member.
65857         * lib/obstack.c: Include <stddef.h>, for offsetof.
65858         (struct fooalign): Remove; it doesn't need a name.
65859         (union fooround): Change double to long double, and add void *.
65860         (DEFAULT_ALIGNMENT): Use offsetof to compute.
65861         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
65862         not a macro.  Hence the values are always int; so remove all
65863         casts-to-int in uses.
65864
65865 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65866
65867         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
65868         we can get this patch merged into glibc.
65869
65870 2004-05-17  Derek R. Price  <derek@ximbiot.com>
65871             Paul Eggert  <eggert@cs.ucla.edu>
65872
65873         * m4/argp: Depend on alloca.
65874
65875 2004-05-17  Derek R. Price  <derek@ximbiot.com>
65876             Paul Eggert  <eggert@cs.ucla.edu>
65877
65878         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
65879         freecoding.
65880
65881 2004-05-17  Bruno Haible  <bruno@clisp.org>
65882
65883         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
65884         precision that consists of a '.' followed by an empty digit string.
65885         Patch by Tor Lillqvist <tml@iki.fi>.
65886
65887 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65888
65889         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
65890         for backward compatibility with older code.  We need our own
65891         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
65892         it under some other name, and our alloca.h will define it.
65893
65894 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65895             Derek Price  <derek@ximbiot.com>
65896
65897         * lib/alloca.c: Include <alloca.h>, to get our interface.
65898         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
65899         include <alloca.h> first.  Use C89 prototype for alloca; this
65900         requires including <stddef.h> for size_t.  Use extern "C" if C++.
65901         Use #elif for simplicity, since we can assume C89 now.
65902         Don't try to source the system alloca.h since it will not be found
65903         and to prevent recursively including its replacement.
65904         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
65905         * lib/regex.c: Likewise.
65906
65907 2004-05-16  Derek Price  <derek@ximbiot.com>
65908             Paul Eggert  <eggert@cs.ucla.edu>
65909
65910         getline cleanup.  This changes the getndelim2 API: both order of
65911         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
65912         no delimiter).
65913
65914         * lib/getline.c: Don't include stddef.h or stdio.h, since our
65915         interface does that.
65916         (getline): Always use getdelim, so that we don't have two
65917         copies of this code.
65918         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
65919         if available.
65920         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
65921         (GETNDELIM2_MAXIMUM): New macro.
65922         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
65923         instead of the old practice of delim2==0.  All callers changed.
65924         Return -1 on overflow, instead of returning junk.
65925         Do not set *linesize unless allocation succeeds.
65926         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
65927         that we include sys/types.h.
65928         * lib/getnline.h: Likewise.
65929         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
65930         (getndelim2): Reorder arguments.
65931         * lib/getnline.c (getnline, getndelim):
65932         Don't discard the NMAX argument.
65933         (getnline): Invoke getndelim, to avoid code duplication.
65934         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
65935         of (size_t) -1 by callers of the getnline family.
65936
65937 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65938
65939         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
65940         Check for gettimeofday.
65941         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
65942         Check for settimeofday, stime.
65943
65944 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65945
65946         * lib/nanosleep.c (suspended): Change its type from int to
65947         sig_atomic_t volatile.
65948         (first_call): Make it private to rpl_nanosleep, and have it
65949         be zero initially as that's a bit faster.
65950         (my_usleep): Round up fractional times instead of truncating them,
65951         as this is the usual meaning for 'sleep'.
65952
65953         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
65954         doesn't work.
65955         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
65956         (ENOSYS): Define if not defined.
65957         (settime): Fall back on stime if it exists and settimeofday fails.
65958         But don't bother with fallbacks if a method fails with errno == EPERM.
65959
65960 2004-05-11  Jim Meyering  <jim@meyering.net>
65961
65962         Prior to this change, the save_cwd caller required read access to the
65963         current directory on most systems (ones with the fchdir function).
65964
65965         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
65966         fails, try write-only, and finally, resort to using xgetcwd.
65967
65968 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
65969
65970         * lib/obstack.c, obstack.h: Import changes from libc.
65971
65972 2004-04-28  Bruno Haible  <bruno@clisp.org>
65973
65974         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
65975         also implicitly appends .exe to executables.
65976         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
65977         accepts Windows pathnames.
65978         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
65979         Treat Cygwin like Windows, since it now accepts Windows pathnames.
65980         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
65981         Treat Cygwin like Windows, since it now accepts Windows pathnames.
65982         Reported by Derek Robert Price <derek@ximbiot.com>.
65983
65984 2004-04-21  Karl Berry  <karl@gnu.org>
65985
65986         * config/srclist.txt (localcharset.c): break sync.
65987
65988 2004-04-20  Paul Eggert  <eggert@twinsun.com>
65989
65990         * m4/host-os.m4: Add a copyright notice.
65991
65992 2004-04-20  Jim Meyering  <jim@meyering.net>
65993
65994         Change UTILS_ to gl_ in AC_DEFINE'd names.
65995         Change utils_- and jm_-prefixed variables, too.
65996         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
65997         UTILS_FUNC_MKDIR_TRAILING_SLASH.
65998         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
65999
66000         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
66001         Don't emit trailing blanks.
66002         Also rename jm_-prefixed variables to have gl_ prefix.
66003
66004         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
66005         Also rename jm_-prefixed variables to have gl_ prefix.
66006
66007         * m4/jm-macros.m4: Reflect the renamings.
66008         * m4/prereq.m4: Likewise.
66009
66010 2004-04-20  Jim Meyering  <jim@meyering.net>
66011
66012         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
66013         memory.
66014
66015 2004-04-20  Jim Meyering  <jim@meyering.net>
66016             Bruno Haible  <bruno@clisp.org>
66017
66018         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
66019         memory when realloc fails.
66020
66021 2004-04-19  Jim Meyering  <jim@meyering.net>
66022
66023         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
66024         now that readutmp.c may call `free (0)'.
66025
66026 2004-04-19  Bruno Haible  <bruno@clisp.org>
66027
66028         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
66029         * m4/inttypes_h.m4: Likewise.
66030         * m4/stdint_h.m4: Likewise.
66031         * m4/intmax_t.m4: Likewise.
66032         * m4/uintmax_t.m4: Likewise.
66033
66034 2004-04-18  Jim Meyering  <jim@meyering.net>
66035
66036         * m4/prereq.m4: Don't forbid jm_ prefix.
66037
66038         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
66039         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
66040         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
66041         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
66042         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
66043         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
66044         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
66045         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
66046         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
66047         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
66048         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
66049         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
66050         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
66051         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
66052         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
66053         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
66054         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
66055         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
66056         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
66057
66058 2004-04-18  Jim Meyering  <jim@meyering.net>
66059
66060         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
66061         failure, don't leak memory and do call END_UTMP_ENT.
66062
66063 2004-04-16  Jim Meyering  <jim@meyering.net>
66064
66065         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
66066         coreutils' stat program.
66067         (gl_PREREQ): Don't require jm_PREREQ_STAT.
66068
66069 2004-04-11  Paul Eggert  <eggert@twinsun.com>
66070
66071         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
66072         C89.
66073         (CHAR_BIT): Remove, since we assume C89.
66074         Include <stdint.h> if available, as per current Autoconf CVS advice.
66075
66076 2004-03-31  Jim Meyering  <jim@meyering.net>
66077
66078         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
66079         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
66080         * m4/xalloc.m4: Likewise.
66081
66082 2004-03-30  Paul Eggert  <eggert@twinsun.com>
66083
66084         Merge from coreutils.
66085
66086         * m4/inttostr.m4: New file.
66087         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
66088         Require AM_STDBOOL_H and gl_TIMESPEC instead.
66089         Require gl_CLOCK_TIME.
66090         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
66091
66092 2004-03-30  Paul Eggert  <eggert@twinsun.com>
66093
66094         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
66095         not bool, to be more consistent with Unix conventions.
66096         Suggested by Bruno Haible.
66097
66098         Merge from coreutils.
66099
66100         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
66101         * lib/umaxtostr.c: New files.
66102
66103         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
66104         the usual <time.h> dance.
66105         (get_date): Change signature to support fractional time stamps.
66106         All callers changed.
66107         * lib/getdate.y: Include "getdate.h" first, as we can now
66108         assume C89 and don't need to worry about 'const'.
66109         Similarly, include "unlocked-io.h" near start, not in middle.
66110         Include <limits.h>.
66111         (textint.value): Use long int rather than int.
66112         (textint.digits): Use size_t rather than int.
66113         (BILLION, LOG10_BILLION): New constants.
66114         (parser_control): New member rel_ns.  Members day_ordinal,
66115         time_zone, month, day, hour, minutes, rel_year, rel_month,
66116         rel_day, rel_hour, rel_minutes, rel_seconds
66117         are now long int, not int.  Member seconds is now struct timespec,
66118         not int.  New member timespec_seen.  Members dates_seen, days_seen,
66119         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
66120         not int.
66121         (%union.intval): Now long int, not int.
66122         New member timespec.
66123         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
66124         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
66125         (spec): Now is a timespec or an item list.
66126         (timespec, items): New nonterminals.
66127         (time, rel, relunit, number, get_date):
66128         Add support for fractional seconds.
66129         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
66130         (gmtime, localtime, mktime): Remove decls; not needed with C89.
66131         (to_hour): First arg is now long int, not int.
66132         (to_year): Returns long int, not int.
66133         Don't treat year -70 like 70.
66134         (tm_diff): Returns long int, not int.
66135         (lookup_word): Use bool instead of int when appropriate.
66136         (yylex): Use size_t for count, not int.
66137         Detect overflow when parsing large integer constants.
66138         Add support for fractions.
66139         (get_date): Make pointers 'const' if possible.
66140         Use more-portable code to detect integer overflow.
66141         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
66142         Don't use ctime; it's not reliable if the year has >4 digits.
66143
66144         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
66145         This is for compatibility with BSD.
66146
66147         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
66148         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
66149         From coreutils' system.h.
66150
66151         * lib/userspec.c: Don't include "posixver.h".
66152         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
66153         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
66154         compatible extension.  Simplify code by removing a boolean int
66155         that was always nonzero if a string was nonnull.
66156
66157 2004-03-30  Jim Meyering  <jim@meyering.net>
66158
66159         Merge from coreutils.
66160
66161         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
66162         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
66163         on some systems one must include <grp.h> before it.
66164         Reported by Christian Krackowizer.
66165
66166 2004-03-30  Jim Meyering  <jim@meyering.net>
66167
66168         Merge from coreutils.
66169
66170         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
66171
66172         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
66173         an empty input stream.
66174
66175         * lib/readtokens.c: Include <stdbool.h>.
66176         (readtoken): Use `size_t' rather than int/long.
66177         All callers adjusted.
66178         Use `bool' rather than `int' where appropriate.
66179         Use memset rather than an explicit loop.
66180         Use x2nrealloc rather than xrealloc.
66181         Allow the use of `\0' as a delimiter.
66182         (readtokens): Likewise.
66183         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
66184
66185 2004-03-30  Jim Meyering  <jim@meyering.net>
66186
66187         * m4/realloc.m4: Remove file, since now it does no more than
66188         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
66189         the `configure.ac' section of module/realloc.
66190         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
66191
66192 2004-03-30  Bruno Haible  <bruno@clisp.org>
66193
66194         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
66195         nonnull.
66196
66197 2004-03-29  Paul Eggert  <eggert@twinsun.com>
66198
66199         Merge changes to getloadavg.c from coreutils and Emacs.
66200
66201         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
66202         Define to an expression, not to the empty string.
66203         Include cloexec.h and xalloc.h.
66204         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
66205         Use set_cloexec_flag rather than rolling our own.
66206         * lib/cloexec.c, lib/cloexec.h: New files.
66207
66208 2004-03-29  Paul Eggert  <eggert@twinsun.com>
66209
66210         * m4/cloexec.m4: New file.
66211
66212 2004-03-18  Paul Eggert  <eggert@twinsun.com>
66213
66214         * lib/getopt.h: Sync with libc CVS.
66215
66216 2004-03-18  Paul Eggert  <eggert@twinsun.com>
66217             Bruno Haible  <bruno@clisp.org>
66218
66219         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
66220         mbswidth.
66221
66222 2004-03-18  Paul Eggert  <eggert@twinsun.com>
66223             Bruno Haible  <bruno@clisp.org>
66224
66225         * lib/mbswidth.h: Include <wchar.h> only if
66226         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
66227         <wchar.h>.
66228         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
66229
66230 2004-03-09  Paul Eggert  <eggert@twinsun.com>
66231
66232         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
66233         Sync with libc CVS.
66234         * lib/getopt_int.h: New file, also synced from libc.
66235
66236 2004-03-09  Paul Eggert  <eggert@twinsun.com>
66237
66238         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
66239         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
66240         Bring back getopt.c, getopt.h, getopt1.c.
66241
66242 2004-03-07  Paul Eggert  <eggert@twinsun.com>
66243
66244         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
66245         All uses changed.  Check for sa_sigaction member; this fixes
66246         a bug first reported by Jason Andrade in
66247         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
66248
66249 2004-03-07  Paul Eggert  <eggert@twinsun.com>
66250
66251         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
66252         '#if' expressions.  Unlike the code it replaces, it does not
66253         depend on (defined _SC_PAGESIZE).  However, it does depend on
66254         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
66255         first reported by Jason Andrade in
66256         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
66257
66258 2004-02-25  Simon Josefsson  <jas@extundo.com>
66259
66260         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
66261
66262 2004-02-25  Simon Josefsson  <jas@extundo.com>
66263
66264         * lib/strdup.h: New file.
66265         * lib/strdup.c: Include it.
66266         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
66267         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
66268
66269 2004-02-23  Karl Berry  <karl@gnu.org>
66270
66271         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
66272         (from fencepost.gnu.org:/gd/gnuorg).
66273
66274 2004-02-23  Karl Berry  <karl@gnu.org>
66275
66276         * config/srclistvars.sh (GNUORG) [karl]: redefine.
66277         * config/srclist.txt: add maintain/standards documents.
66278
66279 2004-02-18  Bruno Haible  <bruno@clisp.org>
66280
66281         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
66282         Reported by Derek Robert Price <derek@ximbiot.com>.
66283
66284 2004-02-16  Karl Berry  <karl@gnu.org>
66285
66286         * config/mkinstalldirs, install-sh: update from automake.
66287
66288 2004-02-06  Karl Berry  <karl@gnu.org>
66289
66290         * m4/po.m4: update from gettext 0.14.1.
66291
66292 2004-02-06  Karl Berry  <karl@gnu.org>
66293
66294         * lib/config.charset: update from gettext 0.14.1.
66295
66296 2004-02-05  Paul Eggert  <eggert@twinsun.com>
66297
66298         Add comments and code, prompted by suggestions from Bruno Haible
66299         for sh-quote.
66300         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
66301         describing the enum quoting_style values.
66302         * lib/quotearg.c (quotearg_alloc): New function.
66303         (quotearg_buffer_restyled): Treat lone { and } as special.
66304         Treat = as special.  Work around bug with older shells
66305         that "see" a '\' that is really the 2nd byte of a multibyte char.
66306         Quote empty string with shell_quoting_style.
66307
66308 2004-02-03  Bruno Haible  <bruno@clisp.org>
66309
66310         * m4/pipe.m4: New file, from GNU gettext.
66311
66312 2004-02-03  Bruno Haible  <bruno@clisp.org>
66313
66314         * lib/pipe.h: New file, from GNU gettext.
66315         * lib/pipe.c: New file, from GNU gettext.
66316
66317 2004-01-27  Bruno Haible  <bruno@clisp.org>
66318
66319         * m4/execute.m4: New file, from GNU gettext.
66320
66321 2004-01-27  Bruno Haible  <bruno@clisp.org>
66322
66323         * lib/execute.h: New file, from GNU gettext.
66324         * lib/execute.c: New file, from GNU gettext.
66325         * lib/w32spawn.h: New file, from GNU gettext.
66326
66327 2004-01-24  Paul Eggert  <eggert@twinsun.com>
66328
66329         Merge from diffutils.
66330
66331         * lib/file-type.c (file_type): Add typed memory objects.
66332         * lib/file-type.h (S_TYPEISTMO): New macro.
66333
66334         * lib/c-stack.h (c_stack_action): Remove argv argument.
66335         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
66336         (die): Don't calculate message unless segv_action returns.
66337         (get_stack_location, min_address_from_argv, max_address_from_argv,
66338         volatile stack_base, volatile_stack_size): Remove.
66339         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
66340         that every segmentation violation is a stack overflow.  (Ouch!)
66341         See Debian bug 136249 (still outstanding) for more info about why
66342         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
66343
66344 2004-01-24  Paul Eggert  <eggert@twinsun.com>
66345
66346         Exit-status fix from coreutils.
66347
66348         Use exit_failure consistently in place of EXIT_FAILURE,
66349         so that program exit statuses are consistent on failure.
66350
66351         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
66352         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
66353         * lib/argmatch.h: Comment fix to match the above.
66354         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
66355         Now a macro referring to exit_failure, instead of a separate
66356         variable.  Include "exitfail.h" to get it.
66357         * lib/xstrtol.h: Include "exitfail.h".
66358         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
66359
66360         * lib/long-options.c (parse_long_options): Use prototype
66361         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
66362         for clarity.
66363
66364 2004-01-21  Jim Meyering  <jim@meyering.net>
66365
66366         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
66367         so as not to conflict with a different-sized __mktime_internal
66368         function in GNU libc.
66369         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
66370         Problem building statically-linked `ls' reported by Michael Brunnbauer.
66371
66372 2004-01-20  Karl Berry  <karl@gnu.org>
66373
66374         * config/config.guess: update from config.
66375
66376         * config/srclistvars.sh: GNUWWWLICENSES for karl.
66377
66378 2004-01-20  Bruno Haible  <bruno@clisp.org>
66379
66380         Safer stack allocation.
66381         * lib/setenv.c: Include allocsa.h.
66382         (alloca): Remove fallback definition.
66383         (freea): Remove macro.
66384         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
66385         instead of freea.
66386
66387 2004-01-20  Bruno Haible  <bruno@clisp.org>
66388
66389         * m4/eealloc.m4: New file, from GNU gettext.
66390
66391 2004-01-20  Bruno Haible  <bruno@clisp.org>
66392
66393         * m4/allocsa.m4: New file, from GNU gettext.
66394
66395 2004-01-20  Bruno Haible  <bruno@clisp.org>
66396
66397         * lib/xallocsa.h: New file, from GNU gettext.
66398         * lib/xallocsa.c: New file, from GNU gettext.
66399
66400 2004-01-20  Bruno Haible  <bruno@clisp.org>
66401
66402         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
66403
66404 2004-01-20  Bruno Haible  <bruno@clisp.org>
66405
66406         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
66407         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
66408         specially.
66409
66410 2004-01-20  Bruno Haible  <bruno@clisp.org>
66411
66412         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
66413         patch.
66414
66415 2004-01-20  Bruno Haible  <bruno@clisp.org>
66416
66417         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
66418
66419 2004-01-20  Bruno Haible  <bruno@clisp.org>
66420
66421         * lib/eealloc.h: New file.
66422
66423 2004-01-20  Bruno Haible  <bruno@clisp.org>
66424
66425         * lib/binary-io.h: Avoid warnings on Cygwin.
66426
66427 2004-01-20  Bruno Haible  <bruno@clisp.org>
66428
66429         * lib/allocsa.h: New file, from GNU gettext.
66430         * lib/allocsa.c: New file, from GNU gettext.
66431
66432 2004-01-18  Karl Berry  <karl@gnu.org>
66433
66434         * doc/gpl.texi, doc/lgpl.texi: new files.
66435
66436 2004-01-18  Karl Berry  <karl@gnu.org>
66437
66438         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
66439         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
66440
66441 2004-01-15  Paul Eggert  <eggert@twinsun.com>
66442
66443         Merge from coreutils.
66444
66445         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
66446         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
66447         (gl_DEFAULT_POSIX2_VERSION): Move
66448         the documentation from 'configure' into 'config.hin',
66449         so that 'configure --help' isn't burdened by it and
66450         we don't have to worry about its formatting there.
66451         Reword the documentation so that it's more succinct
66452         and can be run together into a single paragraph.
66453         * m4/same.m4 (gl_SAME): Check for pathconf.
66454
66455 2004-01-15  Paul Eggert  <eggert@twinsun.com>
66456
66457         Merge from coreutils.
66458
66459         * lib/posixver.c: Include posixver.h.
66460
66461         * lib/same.c: Include <stdbool.h>, <limits.h>.
66462         (_POSIX_NAME_MAX): Define if not defined.
66463         (MIN): New macro.
66464         (same_name): If file names are silently truncated, report
66465         that the file names are the same if they are the same after
66466         the silent truncation.
66467
66468         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
66469         conversion function.
66470         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
66471         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
66472         longer needed.
66473
66474 2004-01-15  Jim Meyering  <jim@meyering.net>
66475
66476         Merge from coreutils.
66477
66478         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
66479         if no library is required.
66480         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
66481         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
66482         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
66483         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
66484         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
66485         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
66486         value, $ac_cv_search_crypt, if it's "none required".
66487         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
66488         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
66489         not gl_FUNC_GETLOADAVG.
66490         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
66491         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
66492
66493 2004-01-15  Jim Meyering  <jim@meyering.net>
66494
66495         Merge from coreutils.
66496
66497         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
66498         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
66499         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
66500
66501         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
66502         optional configure-time default.
66503
66504         * lib/version-etc.c (version_etc_copyright): Update copyright date.
66505
66506         * lib/xreadlink.c (xreadlink): Correct outdated comment.
66507
66508 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
66509
66510         Merge from coreutils.
66511
66512         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
66513         value, $ac_cv_search_nanosleep, if it's "none required".
66514
66515 2004-01-14  Paul Eggert  <eggert@twinsun.com>
66516
66517         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
66518         with like-named macro in fnmatch.c.
66519         (EXT): Use an internal constant instead.
66520
66521         Merge fnmatch patches from glibc.
66522         * lib/fnmatch.c (mbsinit): Remove define.
66523         Add libc_hidden_ver (__fnmatch, fnmatch).
66524         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
66525         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
66526
66527 2004-01-14  Karl Berry  <karl@gnu.org>
66528
66529         * config/install-sh: update from automake.
66530
66531 2004-01-13  Karl Berry  <karl@gnu.org>
66532
66533         * config/install-sh: update from automake.
66534
66535 2004-01-09  Karl Berry  <karl@gnu.org>
66536
66537         * config/install-sh: update from automake.
66538
66539 2004-01-05  Karl Berry  <karl@gnu.org>
66540
66541         * config/config.{sub,guess}: update from config.
66542
66543 2003-12-31  Karl Berry  <karl@gnu.org>
66544
66545         * config/depcomp: update from automake.
66546
66547 2003-12-14  Karl Berry  <karl@gnu.org>
66548
66549         * lib/config.charset: update from gettext-runtime.
66550
66551 2003-12-03  Paul Eggert  <eggert@twinsun.com>
66552
66553         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
66554         Bug reported by Alfred M. Szmidt.
66555
66556 2003-12-03  Bruno Haible  <bruno@clisp.org>
66557
66558         * m4/gettext.m4: Upgrade from gettext-0.13.
66559         * m4/po.m4: Upgrade from gettext-0.13.
66560         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
66561         * m4/intmax.m4: New file, from gettext-0.13.
66562         * m4/printf-posix.m4: New file, from gettext-0.13.
66563
66564 2003-11-29  Karl Berry  <karl@gnu.org>
66565
66566         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
66567
66568 2003-11-25  Paul Eggert  <eggert@twinsun.com>
66569             Bruno Haible  <bruno@clisp.org>
66570
66571         * lib/printf-parse.h: Don't include sys/types.h.
66572         (ARG_NONE): New macro.
66573         (char_directive): Change type of *arg_index fields to size_t.
66574         * lib/printf-parse.c: Don't include sys/types.h.
66575         (SSIZE_MAX): Remove macro.
66576         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
66577         Remove unnecessary overflow check.
66578         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
66579         fields.
66580
66581 2003-11-25  Bruno Haible  <bruno@clisp.org>
66582
66583         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
66584
66585 2003-11-25  Bruno Haible  <bruno@clisp.org>
66586
66587         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
66588         gt_TYPE_SSIZE_T.
66589
66590 2003-11-24  Paul Eggert  <eggert@twinsun.com>
66591
66592         * modules/alloca: Remove dependency on xalloc.
66593
66594 2003-11-24  Paul Eggert  <eggert@twinsun.com>
66595
66596         * lib/alloca.c: Remove dependency on xalloc module.
66597         (xalloc_die): Remove.
66598         (memory_full) [!defined emacs]: New macro.
66599         [!defined emacs]: Don't include xalloc.h.
66600         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
66601         address arithmetic overflows.  Change datatypes a bit to avoid
66602         unnecessary casts.
66603
66604 2003-11-22  Jim Meyering  <jim@meyering.net>
66605
66606         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
66607         s/size/size_t/.
66608
66609 2003-11-21  Karl Berry  <karl@gnu.org>
66610
66611         * config/config.{sub,guess}: update from config.
66612
66613 2003-11-18  Karl Berry  <karl@gnu.org>
66614
66615         * config/config.{sub,guess}: update from config.
66616
66617         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
66618
66619 2003-11-17  Paul Eggert  <eggert@twinsun.com>
66620
66621         * README: Mention that S+T cannot overflow if S is the size of
66622         an existing object and T is sufficiently small.
66623
66624 2003-11-17  Jim Meyering  <jim@meyering.net>
66625
66626         On systems without utime and without a utimes function capable of
66627         dealing with a NULL struct utimbuf* argument, this utime replacement
66628         could -- in unusual circumstances -- leak a file descriptor.
66629         * lib/utime.c: Include <unistd.h> and <errno.h>.
66630         (utime_null): Be sure to close `fd' and to preserve errno.
66631         Reported by Geoff Collyer via Arnold Robbins.
66632
66633 2003-11-17  Bruno Haible  <bruno@clisp.org>
66634
66635         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
66636         (Depends-on): Add xsize.
66637
66638 2003-11-17  Bruno Haible  <bruno@clisp.org>
66639
66640         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
66641
66642 2003-11-17  Bruno Haible  <bruno@clisp.org>
66643
66644         * lib/vasnprintf.c (alloca): Remove fallback definition.
66645         (freea): Remove definition.
66646         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
66647         Reported by Paul Eggert.
66648
66649 2003-11-16  Paul Eggert  <eggert@twinsun.com>
66650             Bruno Haible  <bruno@clisp.org>
66651
66652         Protect against address arithmetic overflow.
66653         * lib/printf-args.h: Include stddef.h.
66654         (arguments): Change type of field 'count' to size_t.
66655         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
66656         'unsigned int' where appropriate.
66657         * lib/printf-parse.h: Include sys/types.h.
66658         (char_directive): Change type of *arg_index fields to ssize_t.
66659         (char_directives): Change type of fields 'count', max_*_length to
66660         size_t.
66661         * lib/printf-parse.c: Include sys/types.h and xsize.h.
66662         (SSIZE_MAX): Define fallback value.
66663         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
66664         instead of 'int' where appropriate. Check a_allocated, d_allocated
66665         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
66666         * lib/vasnprintf.c: Include xsize.h.
66667         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
66668         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
66669         overflow. Avoid wraparound when converting a width or precision from
66670         decimal to binary.
66671
66672 2003-11-16  Bruno Haible  <bruno@clisp.org>
66673
66674         Update from GNU gettext.
66675         * lib/printf-parse.c: Generalize to it can be compiled for wide
66676         strings.
66677         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
66678         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
66679         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
66680         SNPRINTF): New macros.
66681         Don't include <alloca.h> if the file is used inside libintl.
66682         (local_wcslen): New function, for Solaris 2.5.1.
66683         (VASNPRINTF): Use it instead of wcslen.
66684
66685 2003-11-16  Bruno Haible  <bruno@clisp.org>
66686
66687         * lib/xsize.h (xmax): New function.
66688         (xsum, xsum3, xsum4): Declare as "pure" functions.
66689
66690 2003-11-12  Paul Eggert  <eggert@twinsun.com>
66691
66692         * modules/xalloc (Files): Undo latest change, since xalloc.h
66693         no longer needs SIZE_MAX or PTRDIFF_MAX.
66694
66695 2003-11-12  Paul Eggert  <eggert@twinsun.com>
66696
66697         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
66698         gl_PTRDIFF_MAX.
66699
66700 2003-11-12  Paul Eggert  <eggert@twinsun.com>
66701
66702         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
66703         "return", to pacify some unknown compiler.  Problem reported
66704         by Joerg Schilling.
66705
66706 2003-11-12  Paul Eggert  <eggert@twinsun.com>
66707
66708         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
66709         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
66710         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
66711         heuristic is just as accurate as far as we know, and it removes a
66712         dependency on size_max.m4 and ptrdiff_max.m4.
66713
66714 2003-11-11  Bruno Haible  <bruno@clisp.org>
66715
66716         * modules/xsize (Files): Add m4/size_max.m4.
66717         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
66718
66719 2003-11-11  Bruno Haible  <bruno@clisp.org>
66720
66721         * m4/size_max.m4: New file.
66722         * m4/ptrdiff_max.m4: New file.
66723         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
66724         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
66725         (gl_XALLOC): Invoke it.
66726
66727 2003-11-11  Bruno Haible  <bruno@clisp.org>
66728
66729         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
66730         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
66731         defined.
66732
66733 2003-11-10  Paul Eggert  <eggert@twinsun.com>
66734
66735         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
66736         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
66737         rejected some allocations of exactly SIZE_MAX - 2 bytes.
66738         From Bruno Haible.
66739         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
66740         not (size_t) -1, since it's defined here.
66741
66742 2003-11-09  Karl Berry  <karl@gnu.org>
66743
66744         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
66745
66746 2003-11-06  Paul Eggert  <eggert@twinsun.com>
66747
66748         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
66749         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
66750         Reject sizes of exactly SIZE_MAX bytes.
66751         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
66752         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
66753
66754 2003-11-05  Bruno Haible  <bruno@clisp.org>
66755
66756         * lib/xsize.h: Include limits.h, to avoid a possible collision with
66757         SIZE_MAX defined in <limits.h> on Solaris.
66758
66759 2003-11-04  Jim Meyering  <jim@meyering.net>
66760
66761         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
66762         variable names, rather than @VAR@.
66763         * modules/poll: Likewise.
66764
66765 2003-11-04  Bruno Haible  <bruno@clisp.org>
66766
66767         * modules/xsize: New file.
66768         * modules/linebreak: Depend on xsize.
66769         * MODULES.html.sh (func_all_modules): Add xsize.
66770
66771 2003-11-04  Bruno Haible  <bruno@clisp.org>
66772
66773         * m4/xsize.m4: New file.
66774
66775 2003-11-04  Bruno Haible  <bruno@clisp.org>
66776
66777         * lib/xsize.h: New file.
66778         * lib/linebreak.c: Include xsize.h.
66779         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
66780         argument for overflow.
66781         Suggested by Paul Eggert.
66782
66783 2003-11-03  Karl Berry  <karl@gnu.org>
66784
66785         * config/config.{guess,sub}: update from config.
66786
66787 2003-11-03  Jim Meyering  <jim@meyering.net>
66788
66789         * modules/userspec (lib_SOURCES): Add userspec.h.
66790         (Include): Add "userspec.h".
66791         Improve description.
66792
66793 2003-11-03  Jim Meyering  <jim@meyering.net>
66794
66795         * lib/userspec.c: Include "userspec.h".
66796         * lib/userspec.h: New file.
66797
66798 2003-11-03  Bruno Haible  <bruno@clisp.org>
66799
66800         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
66801
66802 2003-11-03  Bruno Haible  <bruno@clisp.org>
66803
66804         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
66805         available, to avoid (extremely rare) race condition.
66806         Suggested by Paul Eggert.
66807
66808 2003-11-02  Karl Berry  <karl@gnu.org>
66809
66810         * config/srclist.txt (vasprintf.c): sync broken, sigh.
66811
66812 2003-10-31  Paul Eggert  <eggert@twinsun.com>
66813
66814         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
66815         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
66816         (read_filesystem_list): Set and use me_type_malloced.
66817         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
66818         whatever the type happens to be), for brevity and consistency.
66819         Check for size calculation overflow on Alphas running OSF/1.
66820
66821 2003-10-31  Jim Meyering  <jim@meyering.net>
66822
66823         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
66824
66825         * lib/linebuffer.c: Include <string.h> for declaration of memset.
66826
66827 2003-10-30  Paul Eggert  <eggert@twinsun.com>
66828             Bruno Haible  <bruno@clisp.org>
66829
66830         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
66831         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
66832
66833 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66834
66835         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
66836         netbsd*-gnu*.  Suggested by Robert Millan.
66837
66838 2003-10-29  Paul Eggert  <eggert@twinsun.com>
66839
66840         * modules/group-member: Depend on stdbool.
66841
66842 2003-10-29  Paul Eggert  <eggert@twinsun.com>
66843
66844         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
66845
66846 2003-10-29  Paul Eggert  <eggert@twinsun.com>
66847
66848         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
66849         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
66850         after the 'gnu' in these cases.  This fixes some bugs in the
66851         previous change, and is based on suggestions by Robert Millan.
66852
66853 2003-10-29  Paul Eggert  <eggert@twinsun.com>
66854
66855         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
66856         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
66857         no longer needed.
66858         * lib/quotearg.c (quotearg_n_options): Use it.
66859         * lib/group-member.c: Include <stdbool.h>.
66860         (free_group_info): Arg is now const *; don't free arg.
66861         (get_group_info): Now returns bool and accepts struct group_info *,
66862         rather than returning a malloc'ed struct group_info *.
66863         All uses changed.  Check for overflow in internal size calculation.
66864
66865         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
66866         rather than xmalloc/xrealloc.
66867         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
66868         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
66869         conformance bug: the old code used a pointer after freeing the
66870         storage that it addressed.
66871         * lib/hash.c (hash_initialize): Simplify the code by using
66872         xalloc_oversized rather than doing it by hand.
66873         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
66874         the buffer preserved.  Use free and xmalloc instead.
66875         * lib/quotearg.c (quotearg_n_options): Likewise.
66876         Use a simpler test for size overflow.  Don't use xalloc_oversized
66877         because unsigned int might be wider than size_t (!); this suggests
66878         that we should switch from unsigned int to size_t for slot numbers.
66879
66880 2003-10-28  Paul Eggert  <eggert@twinsun.com>
66881
66882         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
66883         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
66884         NetBSD kernels.  Requested by Richard Stallman.
66885
66886 2003-10-27  Paul Eggert  <eggert@twinsun.com>
66887
66888         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
66889         to allocate the returned structure.  Do not allocate a subarray,
66890         as x2nrealloc will do that.
66891         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
66892         instead of xnrealloc.
66893         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
66894
66895 2003-10-27  Bruno Haible  <bruno@clisp.org>
66896
66897         * lib/stdbool_.h: Better support for BeOS.
66898
66899 2003-10-26  Paul Eggert  <eggert@twinsun.com>
66900
66901         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
66902         now uses inline.
66903
66904 2003-10-26  Paul Eggert  <eggert@twinsun.com>
66905
66906         * lib/xalloc.h (xalloc_oversized): New static inline function, for
66907         callers that want to do their own size-overflow checking.  Include
66908         <stdbool.h>, since xalloc_oversized returns bool.
66909         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
66910         to use xalloc_oversized.
66911
66912         Add two functions x2realloc, x2nrealloc, for programs that grow
66913         arrays dynamically by doubling their sizes.
66914         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
66915         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
66916         New functions.
66917
66918         Port to C99 semantics for 'inline' of external functions.
66919         Bug reported by Bruno Haible.
66920         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
66921         with the old contents of xnmalloc.
66922         (xnmalloc, xmalloc): Use it.
66923         (xnrealloc_inline): New static inline function,
66924         with the old contents of xnrealloc.
66925         (xnrealloc, xrealloc): Use it.
66926
66927         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
66928         that.
66929
66930 2003-10-26  Karl Berry  <karl@gnu.org>
66931
66932         * config/srclist.txt (COPYING.DOC): no longer available from
66933         /gd/gnuorg; don't know where the ultimate source is.
66934
66935 2003-10-25  Paul Eggert  <eggert@twinsun.com>
66936
66937         Fix several address-calculation bugs in the hash modules,
66938         plus some minor code cleanup.
66939
66940         * lib/hash.h: Include <stdbool.h>, for bool.
66941         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
66942         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
66943         hash_get_n_entries, hash_get_max_bucket_length,
66944         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
66945         hash_rehash): Use size_t rather than unsigned.
66946         * lib/hash.c (struct hash_table, hash_get_n_buckets,
66947         hash_get_n_buckets_used, hash_get_n_entries,
66948         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
66949         hash_get_entries, hash_do_for_each, hash_string, is_prime,
66950         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
66951         Likewise.
66952         (SIZE_MAX): Define if not defined.
66953         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
66954         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
66955         hash_print):
66956         Use const * when possible.
66957         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
66958         (check_tuning): Fix bug: if tuning parameters were very close to
66959         0 or 1, rounding errors could have caused subscript violations.
66960         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
66961         (hash_initialize): Add 'fail:' label
66962         to free table and return NULL, and use it to simplify code.
66963         Use calloc rather than clearing the storage ourself.
66964         (hash_initialize, hash_rehash): Check for arithmetic overflow in
66965         buffer size calculations.
66966         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
66967         Include <stddef.h>, for size_t.
66968         * lib/hash-pjw.c (hash_pjw): Likewise.
66969         Switch to method described by Bruno Haible.
66970         Include <limits.h>, for CHAR_BIT.
66971         (SIZE_BITS): New macro.
66972
66973 2003-10-23  Paul Eggert  <eggert@twinsun.com>
66974
66975         * m4/getline.m4 (AM_FUNC_GETLINE):
66976         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
66977         hosts.  Problem reported by Derek Robert Price in
66978         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
66979         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
66980         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
66981
66982 2003-10-21  Paul Eggert  <eggert@twinsun.com>
66983
66984         * lib/getndelim2.c (getndelim2): When size calculation overflows,
66985         ceiling the allocation at NMAX bytes rather than silently
66986         discarding input bytes before NMAX is reached.  This makes
66987         a difference only if NMAX exceeds SIZE_MAX / 2.
66988
66989         * lib/obstack.c: Merge from glibc.
66990         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
66991         Add libc_hidden_def (_obstack_newchunk).
66992         (_obstack_free) [! defined _LIBC]: Remove.
66993         [defined _LIBC]: Make a strong alias from obstack_free, rather than
66994         a clone of the function body.
66995         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
66996         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
66997
66998         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
66999         glibc.
67000         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
67001         arg to memcpy.
67002
67003         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
67004         (obstack_ptr_grow_fast, obstack_int_grow_fast):
67005         Don't use lvalue casts, as GCC plans to remove support for them
67006         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
67007         was also present in the non-GCC version, indicating that this
67008         code had always been buggy and had never been widely used.
67009         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
67010         Use the fast variant of each macro, rather than copying the
67011         definiens of the fast variant; that way, we'll be more likely to
67012         catch future bugs in the fast variants.
67013
67014 2003-10-20  Bruno Haible  <bruno@clisp.org>
67015
67016         * modules/wait-process: New file.
67017         * MODULES.html.sh (func_all_modules): Add wait-process.
67018
67019 2003-10-20  Bruno Haible  <bruno@clisp.org>
67020
67021         * m4/wait-process.m4: New file.
67022
67023 2003-10-20  Bruno Haible  <bruno@clisp.org>
67024
67025         * lib/wait-process.h: New file, from GNU gettext.
67026         * lib/wait-process.c: New file, from GNU gettext.
67027
67028 2003-10-19  Jim Meyering  <jim@meyering.net>
67029
67030         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
67031         HPUX 10.20.
67032
67033 2003-10-18  Karl Berry  <karl@gnu.org>
67034
67035         * config/config.guess: update from config.
67036
67037 2003-10-16  Paul Eggert  <eggert@twinsun.com>
67038
67039         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
67040         (getgroups): First arg is int, not size_t.
67041         Don't let 'free' mangle errno.
67042
67043 2003-10-16  Paul Eggert  <eggert@twinsun.com>
67044
67045         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
67046
67047 2003-10-16  Karl Berry  <karl@gnu.org>
67048
67049         * config/config.{guess,sub}: update from config.
67050
67051 2003-10-16  Jim Meyering  <jim@meyering.net>
67052
67053         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
67054         memcpy.
67055
67056 2003-10-15  Paul Eggert  <eggert@twinsun.com>
67057
67058         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
67059         (SIZE_MAX): Remove.
67060         (new_exclude, add_exclude_file): Initial size no longer needs to
67061         be a power of 2.
67062         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
67063         our own address arithmetic overflow checking.
67064
67065         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
67066         (fnmatch): Do not alloca more than 2000 wide characters;
67067         instead, use malloc for large buffers.
67068         Check for address arithmetic overflow, and return -1
67069         with errno set to ENOMEM in that case.
67070         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
67071         (NEW_PATTERN): Do not alloca more than 8000 bytes;
67072         instead, return -1.  Check for address arithmetic overflow.
67073
67074 2003-10-14  Paul Eggert  <eggert@twinsun.com>
67075
67076         Handle invalid suffixes and overflow independently, so that
67077         callers can treat them independently as needed.  Fix some bugs in
67078         suffix handling, e.g., "100k@" was not diagnosed as an invalid
67079         suffix for a human-readable blocksize.  The major caller-visible
67080         change is the addition of a new
67081         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
67082         that both overflow and suffix chars were found.
67083
67084         * lib/human.c (humblock): Don't check separately for invalid suffix
67085         char; that is xstrtoumax's job (now that its bug is fixed).
67086         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
67087         INTMAX_MAX]: New macros.
67088         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
67089         TYPE_MAXIMUM): New macros.
67090         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
67091         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
67092         if overflow occurs, as it's what __strtol does and it's more useful
67093         in practice.
67094         (__xstrtol): If __strtol reports some error other than ERANGE,
67095         reflect it to the caller as LONGINT_INVALID.  If it reports
67096         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
67097         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
67098         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
67099         value.
67100         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
67101         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
67102         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
67103         [defined UINTMAX_MAX]: New macros.
67104
67105 2003-10-14  Bruno Haible  <bruno@clisp.org>
67106
67107         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
67108
67109 2003-10-14  Bruno Haible  <bruno@clisp.org>
67110
67111         * m4/sig_atomic_t: New file, from GNU gettext.
67112         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
67113
67114 2003-10-14  Bruno Haible  <bruno@clisp.org>
67115
67116         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
67117         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
67118         Also use volatile where needed.
67119
67120 2003-10-12  Paul Eggert  <eggert@twinsun.com>
67121
67122         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
67123         Change maintainer from Bruno Haible to 'all'.
67124
67125 2003-10-12  Paul Eggert  <eggert@twinsun.com>
67126
67127         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
67128
67129 2003-10-12  Paul Eggert  <eggert@twinsun.com>
67130
67131         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
67132         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
67133         and define in terms of the other primitives.
67134         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
67135         (SIZE_MAX): Define if not already defined.
67136         (array_size_overflow): New function.
67137         (xalloc_die): Abort instead of exiting if 'error' returns.
67138         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
67139         (xmalloc, xrealloc): Use them.
67140         (xcalloc): Check for address arithmetic overflow.
67141         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
67142         a bit faster than strcpy.
67143
67144 2003-10-10  Simon Josefsson  <jas@extundo.com>
67145
67146         * modules/argp (Depends-on): Add restrict and strcase.
67147
67148 2003-10-10  Simon Josefsson  <jas@extundo.com>
67149
67150         * m4/argp.m4: Add AC_C_INLINE.
67151
67152 2003-10-08  Paul Eggert  <eggert@twinsun.com>
67153
67154         Merge getpass from libc, plus a few fixes.
67155
67156         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
67157         Include <stdbool.h>.
67158         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
67159         __fsetlocking to empty.
67160         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
67161         do include <bits/libc-lock.h>.
67162         Do not include <fcntl.h>; not needed.
67163         [_LIBC]: Include <wchar.h>.
67164         (NOTCANCEL_MODE): New macro.
67165         (flockfile, funlockfile) [_LIBC]: New macros.
67166         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
67167         [!_LIBC]: New macros.
67168         (call_fclose): New function.
67169         (getpass): Use it.  Save tty stream separately; this simplifies the
67170         code and makes it more reliable if stdin happens to equal stdout.
67171         Invoke __fsetlocking on tty.
67172         Handle thread cancellation if needed.
67173         Namespace cleanup (use __tcgetattr, __getline).
67174         Use bool for Booleans.
67175         [USE_IN_LIBIO]: Handle wide streams.
67176         [!_LIBC]: Unconditionally do the fseek, since we don't know what
67177         stream might go where.
67178
67179         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
67180         doesn't have to include <stdio.h> before us.
67181         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
67182         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
67183         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
67184         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
67185         if not declared, so that we can use getpass.c code from libc without
67186         rewriting it.
67187         (flockfile, ftrylockfile, funlockfile): New macros.
67188
67189 2003-10-08  Paul Eggert  <eggert@twinsun.com>
67190
67191         * modules/getpass: Depend on stdbool.
67192
67193 2003-10-08  Paul Eggert  <eggert@twinsun.com>
67194
67195         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
67196
67197 2003-10-07  Karl Berry  <karl@gnu.org>
67198
67199         * config/config.{guess,sub}: update from config.
67200
67201 2003-10-06  Jim Meyering  <jim@meyering.net>
67202             Bruno Haible  <bruno@clisp.org>
67203
67204         This lets translators provide better translations for the
67205         "Written by ..." part of --version output.
67206         * lib/version-etc.h: Include stdarg.h.
67207         (version_etc_copyright): Declare as readonly.
67208         (version_etc): Make this function variadic with a NULL-terminated list
67209         of author name strings.
67210         (version_etc_va): New declaration.
67211         * lib/version-etc.c: Include stdarg.h, stdlib.h.
67212         (version_etc_copyright): Declare as readonly.
67213         (version_etc_va): New function. Provide a different translatable string
67214         for each possible number of authors < 10. Abbreviate when there are 10
67215         authors or more.
67216         (version_etc): Make this function variadic. Call version_etc_va.
67217         Suggestion from Gary V. Vaughan.
67218
67219         * lib/long-options.h (parse_long_options): Change prototype: the
67220         authors string is moved to the end and becomes variadic.
67221         * lib/long-options.c: Include stdarg.h.
67222         (parse_long_options): Make this function variadic, too.
67223         Call version_etc_va, not version_etc.
67224
67225 2003-10-06  Bruno Haible  <bruno@clisp.org>
67226
67227         * modules/version-etc-2: Remove file.
67228         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
67229
67230 2003-10-06  Bruno Haible  <bruno@clisp.org>
67231
67232         * modules/fatal-signal: New file.
67233         * MODULES.html.sh (func_all_modules): Add fatal-signal.
67234
67235 2003-10-06  Bruno Haible  <bruno@clisp.org>
67236
67237         * m4/fatal-signal.m4: New file.
67238         * m4/signalblocking.m4: New file, from GNU gettext.
67239
67240 2003-10-06  Bruno Haible  <bruno@clisp.org>
67241
67242         * lib/version-etc-2.h: Remove file.
67243         * lib/version-etc-2.c: Remove file.
67244
67245 2003-10-06  Bruno Haible  <bruno@clisp.org>
67246
67247         * lib/fatal-signal.h: New file, from GNU gettext.
67248         * lib/fatal-signal.c: New file, from GNU gettext.
67249
67250 2003-10-05  Paul Eggert  <eggert@twinsun.com>
67251
67252         * README: Rework advice for preventing empty .o files.
67253         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
67254         not <sys/types.h>.
67255
67256 2003-10-04  Karl Berry  <karl@gnu.org>
67257
67258         * lib/argp*: update from libc.
67259
67260 2003-10-04  Karl Berry  <karl@gnu.org>
67261
67262         * config/config.{guess,sub}: update from config.
67263
67264 2003-10-02  Bruno Haible  <bruno@clisp.org>
67265
67266         * modules/lchown (Include): Add lchown.h.
67267         * modules/time_r (Include): Use "..." syntax.
67268         * modules/xgetdomainname (Include): Add xgetdomainname.h.
67269
67270 2003-10-01  Simon Josefsson  <jas@extundo.com>
67271
67272         * MODULES.html.sh (func_all_modules): Move gethostname from section
67273         'based on' to section 'lacking' POSIX:2001.
67274
67275 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
67276
67277         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
67278         to output mode on the same stream.
67279
67280 2003-09-29  Paul Eggert  <eggert@twinsun.com>
67281
67282         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
67283         Fix arg typo in previous patch.
67284
67285 2003-09-28  Jim Meyering  <jim@meyering.net>
67286
67287         * lib/error.c: Correct cpp indentation.
67288
67289 2003-09-27  Paul Eggert  <eggert@twinsun.com>
67290
67291         * modules/free: New file.
67292
67293 2003-09-27  Paul Eggert  <eggert@twinsun.com>
67294
67295         * m4/free.m4: New file.
67296
67297 2003-09-27  Paul Eggert  <eggert@twinsun.com>
67298
67299         * lib/minmax.h (MIN, MAX)
67300         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
67301         Omit the special code that used __typeof__, since we worry that
67302         it could be more trouble than it's worth.  See:
67303         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
67304         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
67305
67306         * lib/free.c: New file.
67307
67308 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
67309
67310         Trivial fixes to Makefile.am parts of module listings.
67311         * modules/strstr: Append strstr.h to lib_SOURCES.
67312         * modules/strcase: Likewise, for strcase.h.
67313
67314 2003-09-27  Karl Berry  <karl@gnu.org>
67315
67316         * config/mkinstalldirs: update from automake.
67317
67318 2003-09-26  Paul Eggert  <eggert@twinsun.com>
67319
67320         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
67321         (error_tail): Do not loop, reallocating temporary buffer, since
67322         the output cannot contain more wide characters than the input
67323         contains bytes, the size must be big enough already.  This avoids
67324         one potential size overflow calculation.  Check for size overflow
67325         when calculating temporary buffer size.  Free temporary buffer
67326         when done, if it was allocated with malloc; this plugs a memory
67327         leak.  Remove casts from void * to pointers, that are no longer
67328         needed now that we're assuming C89 or better.
67329
67330         Merge error changes from glibc.
67331
67332         * lib/error.c, error.h: Update copyright notice header to match glibc.
67333         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
67334         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
67335         Disable cancellation while printing error.
67336         * lib/error.h: Prepend __ to parameter names.
67337
67338 2003-09-26  Jim Meyering  <jim@meyering.net>
67339
67340         * lib/error.c (error_tail): Move some declarations
67341         into inner scope where the local variables are used.
67342
67343 2003-09-26  Bruno Haible  <bruno@clisp.org>
67344
67345         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
67346         stpncpy().
67347         Don't define stpncpy through config.h; it's now done through stpncpy.h.
67348
67349 2003-09-26  Bruno Haible  <bruno@clisp.org>
67350
67351         * lib/stpncpy.h (gnu_stpncpy): New declaration.
67352         (stpncpy): Define as alias for gnu_stpncpy.
67353         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
67354
67355 2003-09-25  Simon Josefsson  <jas@extundo.com>
67356
67357         * lib/xgetdomainname.h: New file.
67358         * lib/xgetdomainname.c: New file.
67359
67360 2003-09-25  Simon Josefsson  <jas@extundo.com>
67361             Bruno Haible  <bruno@clisp.org>
67362
67363         * modules/getdomainname: New file.
67364         * modules/xgetdomainname: New file.
67365         * MODULES.html.sh (func_all_modules): Add getdomainname,
67366         xgetdomainname.
67367
67368 2003-09-25  Simon Josefsson  <jas@extundo.com>
67369             Bruno Haible  <bruno@clisp.org>
67370
67371         * m4/getdomainname.m4: New file.
67372
67373 2003-09-25  Simon Josefsson  <jas@extundo.com>
67374             Bruno Haible  <bruno@clisp.org>
67375
67376         * lib/getdomainname.h: New file.
67377         * lib/getdomainname.c: New file.
67378
67379 2003-09-25  Karl Berry  <karl@gnu.org>
67380
67381         * lib/argp-fmtstream.c, argp-help.c: update from libc.
67382
67383 2003-09-25  Karl Berry  <karl@gnu.org>
67384
67385         * config/install-sh: update from automake.
67386
67387 2003-09-25  Bruno Haible  <bruno@clisp.org>
67388
67389         * modules/version-etc-2: New file, from modules/version-etc with
67390         modifications.
67391         * MODULES.html.sh (func_all_modules): Add version-etc-2.
67392
67393 2003-09-25  Bruno Haible  <bruno@clisp.org>
67394
67395         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
67396         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
67397
67398 2003-09-24  Simon Josefsson  <jas@extundo.com>
67399
67400         * modules/xgethostname: Add xgethostname.h.
67401
67402 2003-09-24  Paul Eggert  <eggert@twinsun.com>
67403
67404         * lib/linebuffer.c (freebuffer): Don't free the argument, just
67405         the buffer associated with the argument.  Bug reported by
67406         Simon Josefsson.
67407
67408 2003-09-24  Paul Eggert  <eggert@twinsun.com>
67409
67410         * README: Document assumptions that 'int' is at least 32 bits
67411         wide, that integer arithmetic is 2's complement without overflow,
67412         that there are no holes in integer values, that adding sizes of
67413         two nonoverlapping objects can't overflow, and that all-bits-zero
67414         yields scalar zero.  Fix spelling and capitalization typos.
67415
67416 2003-09-19  Karl Berry  <karl@gnu.org>
67417
67418         * lib/argp.h: update from libc.
67419
67420 2003-09-17  Paul Eggert  <eggert@twinsun.com>
67421
67422         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
67423         to avoid spurious warnings like "AC_RUN_IFELSE was called before
67424         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
67425
67426 2003-09-17  Paul Eggert  <eggert@twinsun.com>
67427
67428         * gnulib-tool: Use "test -h", not "test -L", for portability
67429         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
67430         (tags_regexp): Remove, since \| doesn't conform to POSIX.
67431         (sed_extract_prog): Issue s commands one-by-one, rather than
67432         using \| in one s command.
67433
67434 2003-09-16  Paul Eggert  <eggert@twinsun.com>
67435
67436         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
67437         input error, instead of returning NULL the next time we are called
67438         (and therefore losing track of errno).
67439
67440 2003-09-16  Bruno Haible  <bruno@clisp.org>
67441
67442         * gnulib-tool (func_create_testdir): Warn about duplicated
67443         dependencies.
67444
67445 2003-09-15  Paul Eggert  <eggert@twinsun.com>
67446
67447         * modules/argmatch, modules/fatal, modules/obstack,
67448         modules/xalloc, modules/xgethostname: Sort dependencies by
67449         importance, not alphabetically.
67450
67451 2003-09-15  Paul Eggert  <eggert@twinsun.com>
67452
67453         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
67454         fails, so that the caller gets the proper errno.
67455
67456         * lib/readutmp.c (read_utmp): Likewise.
67457         Check for fstat error.  Close stream and free storage
67458         when failing.
67459
67460 2003-09-14  Karl Berry  <karl@gnu.org>
67461
67462         * config/srclist.txt (strdup.c): disable for c89 changes.
67463
67464 2003-09-14  Jim Meyering  <jim@meyering.net>
67465
67466         * lib/getloadavg.c: Correct cpp indentation.
67467         * lib/strdup.c: Likewise.
67468         * lib/vasnprintf.c: Likewise.
67469
67470 2003-09-14  Bruno Haible  <bruno@clisp.org>
67471
67472         * modules/fwriteerror: New file.
67473         * MODULES.html.sh (func_all_modules): Add fwriteerror.
67474
67475 2003-09-14  Bruno Haible  <bruno@clisp.org>
67476
67477         * lib/fwriteerror.h: New file.
67478         * lib/fwriteerror.c: New file.
67479
67480 2003-09-12  Paul Eggert  <eggert@twinsun.com>
67481
67482         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
67483         modules/xgethostname, modules/xalloc: Depend on exit.
67484
67485 2003-09-12  Paul Eggert  <eggert@twinsun.com>
67486
67487         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
67488
67489         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
67490         and AC_MINIX, too, so that their extensions are available.
67491
67492         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
67493         This macro has been superseded by gl_BACKUPFILE.
67494
67495         More patches to assume C89 or better.
67496
67497         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
67498
67499         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
67500         unconditionally.
67501         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
67502         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
67503         Include <string.h>, <stdlib.h> unconditionally.
67504         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
67505         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
67506         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
67507         headers or for string.h.
67508         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
67509         or strtoul.
67510
67511         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
67512         headers.
67513         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
67514         * m4/userspec.m4 (gl_USERSPEC): Likewise.
67515         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
67516         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
67517         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67518         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
67519         memcpy, memset.
67520         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
67521         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
67522         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
67523         strtol.
67524         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
67525         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
67526         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
67527         strtoul.
67528
67529 2003-09-12  Paul Eggert  <eggert@twinsun.com>
67530
67531         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
67532         * lib/obstack.c [!defined _LIBC]: Likewise.
67533         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
67534         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
67535         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
67536
67537         More changes to assume C89 or better.
67538
67539         * lib/error.c (error_tail): Assume vprintf.
67540
67541         * lib/argmatch.c (getenv): Remove decl.
67542         * lib/progreloc.c (get_full_program_name): Define via prototype.
67543         * lib/setenv.c (clearenv): Likewise.
67544         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
67545         needed.
67546         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
67547         (malloc, memcpy): Remove decls.
67548         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
67549         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
67550         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
67551         (memcpy): Remove macro.
67552         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
67553         (__P): Remove.  All uses removed.
67554         (PTR): Remove.  All uses changed to void *.
67555         (CHAR_BIT, NULL): Remove.
67556         (spaces, zeros, memset_space, memset_zero)
67557         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
67558         Remove.
67559         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
67560         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
67561         Define with prototype.
67562         Remove now-unnecessary prototype decl.
67563         (extra_args_spec): Assume ANSI C.  All uses changed.
67564         (extra_args_spec_iso): Remove.
67565         (my_strftime, emacs_strftimeu): Define via prototype.
67566         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
67567         unconditionally.
67568         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
67569         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
67570         (strtoul, strtol): Remove decls.
67571         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
67572         LONG_MAX): Remove.
67573         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
67574         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
67575         (LOCALE_PARAM_PROTO): New macro.
67576         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
67577         (INTERNAL (strtol), strtol): Define with a prototype.
67578         (PARAMS): Remove.  All uses removed.
67579         * lib/tempname.c: Include <string.h> unconditionally.
67580         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
67581         * lib/xgethostname.c (main): Define with a prototype.
67582         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
67583         Include <stdlib.h> unconditionally.
67584         (calloc, malloc, realloc, free): Remove decls.
67585         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
67586         Include <stdlib.h> unconditionally.  Sort include file names.
67587         (strtod): Remove.
67588         (xstrtod): Define with a prototype.
67589         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
67590         (strtol, strtoul): Remove decls.
67591
67592 2003-09-11  Paul Eggert  <eggert@twinsun.com>
67593
67594         More patches to assume C89 or better.
67595         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
67596         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
67597         string.h, memchr, STDC_HEADERS.
67598
67599 2003-09-11  Paul Eggert  <eggert@twinsun.com>
67600
67601         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
67602         Include <stdlib.h>, <string.h> unconditionally.
67603         Remove now-unnecessary cast to char *.
67604         * lib/strnlen.c: Include <string.h> unconditionally.
67605         * lib/yesno.c (yesno): Define with a prototype.
67606
67607 2003-09-11  Bruno Haible  <bruno@clisp.org>
67608
67609         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
67610
67611 2003-09-10  Jim Meyering  <jim@meyering.net>
67612
67613         * lib/error.c: Correct indentation of cpp directives.
67614
67615 2003-09-10  Bruno Haible  <bruno@clisp.org>
67616
67617         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
67618         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
67619         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
67620         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
67621         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
67622         <stdlib.h> and <string.h> checks.
67623         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
67624         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
67625
67626 2003-09-10  Bruno Haible  <bruno@clisp.org>
67627
67628         * lib/strcspn.c: Include <string.h> unconditionally.
67629         * lib/strpbrk.c: Include <string.h> unconditionally.
67630         * lib/strstr.c: Include <string.h> unconditionally.
67631         * lib/unicodeio.c: Include <string.h> unconditionally.
67632         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
67633         * lib/unsetenv.c: Likewise.
67634         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
67635         * lib/yesno.c: Include <stdlib.h> unconditionally.
67636         (rpmatch): Add prototype.
67637
67638 2003-09-09  Paul Eggert  <eggert@twinsun.com>
67639
67640         More patches to assume C89 or better.
67641         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
67642         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
67643         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
67644         or for string.h.
67645         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
67646         stdlib.h.
67647         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
67648         C headers.
67649         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
67650         string.h.
67651         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
67652         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
67653         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
67654         or for string.h.
67655         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
67656         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
67657         C headers.
67658         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
67659         memcpy.
67660         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
67661         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
67662         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
67663         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
67664         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
67665         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
67666         string.h, free.
67667         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
67668         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
67669         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
67670         C headers, or for string.h.
67671         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
67672         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
67673         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
67674         headers, memory.h, stdlib.h, string.h, strings.h.
67675         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
67676         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
67677         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
67678         strchr.
67679         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
67680         headers, memory.h, string.h.
67681         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
67682         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
67683         free.
67684         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
67685         headers.
67686         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
67687         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
67688         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
67689         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
67690         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
67691
67692 2003-09-09  Paul Eggert  <eggert@twinsun.com>
67693
67694         More K&R removal.
67695
67696         * lib/acosl.c (main): Use a prototype.
67697         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
67698         tanl.c: Likewise.
67699
67700         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
67701
67702         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
67703         (getopt, etopt_long, getopt_long_only, _getopt_internal)
67704         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
67705         with a prototype.
67706         * lib/getopt.c (const): Remove macro.
67707         Include <string.h> unconditionally.
67708         (my_index): Remove; all uses changed to strchr.
67709         (strlen): Remove decl.
67710         (exchange): Remove forward decl; no longer needed.
67711         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
67712         Define with prototype.
67713         * lib/getopt1.c (const): Remove macro.
67714         (getopt_long, getopt_long_only, main): Define with prototype.
67715
67716         * lib/getugroups.c: Include <string.h> unconditionally.
67717
67718         * lib/getusershell.c: Include <stdlib.h> unconditionally.
67719         (getusershell, setusershell, endusershell, readname, main):
67720         Define with prototypes.
67721
67722         * lib/group-member.c: Include group-member.h first.
67723         Include <stdlib.h> unconditionally.
67724
67725         * lib/hard-locale.c: Include hard-locale.h first.
67726         Include <stdlib.h>, <string.h> unconditionally.
67727
67728         * lib/hash.c (free, malloc): Remove decls.
67729         Include <stdlib.h> unconditionally.
67730
67731         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
67732         (getenv): Do not declare.
67733
67734         * lib/idcache.c: Include <string.h> unconditionally.
67735
67736         * lib/long-options.c: Include long-options.h first, to test interface.
67737         Include <stdlib.h> unconditionally.
67738
67739         * lib/makepath.c: Include makepath.h first, to test interface.
67740         Include <stdlib.h> and <string.h> unconditionally.
67741
67742         * lib/linebuffer.c: Include <stdlib.h>.
67743         (free): Remove decl.
67744
67745         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
67746         stddef.h. rpl_malloc returns void *, not char *.
67747         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
67748         prototype.
67749
67750         * lib/md5.h: Include <limits.h> unconditionally.
67751         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
67752         (__P): Remove; all uses removed.
67753         * lib/md5.c: Include "md5.h" first.
67754         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
67755         md5_buffer, md5_process_bytes, md5_process_block):
67756         Define with prototypes.
67757         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
67758         * lib/sha.c: Include "sha.h" first.
67759         Include <stdlib.h>, <string.h> unconditionally.
67760
67761         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
67762         * lib/memcmp.c (__ptr_t): Likewise.
67763         * lib/memrchr.c (__ptr_t): Likewise.
67764         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
67765         Include <string.h> unconditionally.
67766         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
67767         * lib/memchr.c: Include <stdlib.h> unconditionally.
67768         * lib/memchr.c (LONG_MAX): Remove.
67769         * lib/memrchr.c (LONG_MAX): Likewise.
67770         * lib/memchr.c (__memchr): Define via a prototype.
67771         * lib/memrchr.c (__memrchr): Likewise.
67772         * lib/memcmp.c (__P): Remove, and remove all uses.
67773         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
67774         Remove forward decls; no longer needed.
67775         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
67776         Use types required by C89 in prototype.
67777
67778         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
67779         * lib/savedir.c: Likewise.
67780         * lib/mkdir.c (free): Remove decl.
67781         * lib/rmdir.c (rmdir): Define with a prototype.
67782         * lib/savedir.c: Include savedir.h first, to test interface.
67783
67784         * lib/mktime.c (STDC_HEADERS): Remove.
67785         Include <stdlib.h>, <string.h> unconditionally.
67786
67787         * lib/modechange.c: Include <stdlib.h> unconditionally.
67788         (malloc): Remove decl.
67789
67790         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
67791         (free): Remove decl.
67792
67793         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
67794         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
67795         (This type really should be intptr_t, but that's a C99ism.)
67796         (_obstack_memcpy): Remove: all uses changed to memcpy.
67797         Include <string.h> unconditionally.
67798         (struct obstack): Assume __STDC__ for types of members
67799         chunkfun, freefun, extra_arg.
67800         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
67801         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
67802         obstack_begin, obstack_specify_allocation,
67803         obstack_specify_allocation_with_arg, obstack_chunkfun,
67804         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
67805         Remove unprototyped decls and the macros that use them.
67806         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
67807         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
67808         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
67809         (defined __STDC__ && __STDC__)]:
67810         Remove nonprototyped code.
67811         Include <stdlib.h> unconditionally.
67812         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
67813         _obstack_allocated_p, _obstack_free, obstack_free,
67814         _obstack_memory_used, print_and_abort):
67815         Define using prototypes.
67816         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
67817         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
67818         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
67819         obstack_next_free, obstack_object_size, obstack_room) [0]:
67820         Remove unused, unprototyped code.
67821
67822         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
67823
67824         * lib/physmem.c (physmem_total, physmem_available, main): Define
67825         with prototypes.
67826
67827         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
67828         (main): Define with a prototype.
67829
67830         * lib/posixver.c (getenv): Remove decl.
67831
67832         * lib/putenv.c (malloc): Returns void *, not char *.
67833         Include <string.h> unconditionally.
67834         (strchr, memcpy, NULL): Do not define.
67835
67836         * lib/readtokens.c: Include readtokens.h first, to test interface.
67837         Include <stdlib.h>, <string.h> unconditionally.
67838         (init_tokenbuffer): Define with a prototype.
67839
67840         * lib/regex.c (PARAMS): Remove.  All uses removed.
67841         All uses of _RE_ARGS removed, too.
67842         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
67843         unconditionally.
67844         (bzero): Assume memset exists.
67845         (memcmp, memcpy, NULL): Remove.
67846         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
67847         char, or assignments to local vars of type signed char.
67848         (init_syntax_once, PREFIX(extract_number_and_incr),
67849         PREFIX(print_partial_compiled_pattern),
67850         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
67851         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
67852         PREFIX(regex_grow_registers), PREFIX(regex_compile),
67853         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
67854         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
67855         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
67856         wcs_compile_range, byte_compile_range, truncate_wchar,
67857         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
67858         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
67859         count_mbs_length, wcs_re_match_2_internal,
67860         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
67861         PREFIX(alt_match_null_string_p),
67862         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
67863         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
67864         regfree, PREFIX(extract_number)): Define with prototype.  Remove
67865         now-unnecessary declaration, if any.
67866         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
67867         regcomp, regexec):
67868         Remove now-unnecessary casts among pointer types.
67869         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
67870
67871         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
67872         (free): Remove decl.
67873
67874         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
67875
67876         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
67877         (free): Remove decl.
67878
67879         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
67880         * lib/xgetcwd.c: Likewise.
67881
67882         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
67883         (free): Remove decl.
67884
67885         * lib/strchrnul.c (strchrnul): Define with a prototype.
67886         Fix bug: c_in was not converted to char before searching.
67887
67888         The following changes are not K&R related:
67889
67890         * lib/group-member.h: Include <sys/types.h>, so that this file is
67891         self-contained.
67892         * lib/makepath.h: Likewise.
67893
67894         * lib/getusershell.c (readname, default_index, line_size, readname):
67895         Use size_t, not int, for sizes.
67896         (readname): If the size overflows, report an error instead of
67897         looping forever.
67898
67899 2003-09-09  Paul Eggert  <eggert@twinsun.com>
67900
67901         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
67902         libc.
67903
67904 2003-09-09  Paul Eggert  <eggert@twinsun.com>
67905
67906         * README: New section: portability guidelines.
67907
67908 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
67909
67910         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
67911         C89 spec.
67912
67913 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
67914
67915         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
67916
67917 2003-09-08  Paul Eggert  <eggert@twinsun.com>
67918
67919         Assume C89 or better; remove K&R cruft.
67920         A few of these changes were first proposed by Derek Robert Price
67921         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
67922
67923         * lib/addext.c: Include <string.h> unconditionally.
67924         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
67925         Don't declare getenv or malloc.
67926
67927         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
67928         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
67929         (NULL): Remove.
67930         (find_stack_direction, alloca): Use prototypes.
67931
67932         * lib/atexit.c (atexit): Define using a prototype.
67933
67934         * lib/basename.c, dirname.c, stripslash.c:
67935         Include <string.h> unconditionally.
67936
67937         * lib/bcopy.c: Include <stddef.h>.
67938         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
67939
67940         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
67941
67942         * lib/error.h (error, error_at_line, error_print_progname)
67943         [! (defined (__STDC__) && __STDC__)]: Remove decls.
67944         * lib/error.c: Include error.h first, to check interface.
67945         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
67946         (VA_START): Remove; all uses changeed to va_start.
67947         (exit, strerror): Remove decls.
67948         (error_print_progname): Prototype uncondionally.
67949         Don't include <errno.h>; no longer needed.
67950         (private_strerror): Remove.
67951         (error_tail): Always define.
67952         (error, error_at_line): Assume C89 or better; always use prototypes.
67953         * lib/fatal.c: Include "fatal.h" first, to test interface.
67954         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
67955         (VA_START): Remove; all uses changed to va_start.
67956         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
67957         this case.
67958         (exit): Remove decl.
67959         (fatal): Prototype unconditionally.  Assume va_start works.
67960         Abort at end, to pacify gcc.
67961
67962         * lib/euidaccess.c (main): Define with a prototype.
67963
67964         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
67965
67966         * lib/exitfail.c: Include <stdlib.h> unconditionally.
67967
67968         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
67969         prototypes.
67970         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
67971         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
67972         (getenv): Remove decl.
67973         (fnmatch): Define using a prototype.
67974         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
67975         (FCT): Define using a prototype.
67976
67977         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
67978
67979         * lib/gethostname.c: Include <stddef.h>.
67980         (gethostname): Define with prototype.  Length is size_t, not int.
67981
67982 2003-09-08  Paul Eggert  <eggert@twinsun.com>
67983
67984         Assume C89 or better; remove K&R cruft.
67985         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
67986         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
67987         string.h, getenv, malloc.
67988         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
67989         headers.
67990         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
67991         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
67992         do not check for strerror.
67993         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
67994         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
67995         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
67996         do not check for doprnt or vprintf.
67997         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
67998         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
67999
68000 2003-09-08  Paul Eggert  <eggert@twinsun.com>
68001
68002         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
68003         getversion.c should have been removed then, but was accidentally
68004         preserved.
68005
68006         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
68007         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
68008
68009 2003-09-08  Karl Berry  <karl@gnu.org>
68010
68011         * config/config.sub, config.guess, srclistvars.sh: update from savannah
68012                 config, forget about prep.
68013
68014         * config/depcomp, missing: update from automake.
68015
68016 2003-09-07  Paul Eggert  <eggert@twinsun.com>
68017
68018         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
68019         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
68020
68021 2003-09-07  Paul Eggert  <eggert@twinsun.com>
68022
68023         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
68024         copy_tm_result.  Bug reported by Simon Josefsson in
68025         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
68026
68027 2003-09-06  Paul Eggert  <eggert@twinsun.com>
68028
68029         * m4/time_r.m4: New file.
68030         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
68031         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
68032         is. Check for timegm declaration.
68033         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
68034         Do not check for gmtime_r.
68035         Replace mktime if __mktime_internal does not exist and if mktime
68036         hasn't been replaced already.
68037
68038 2003-09-06  Paul Eggert  <eggert@twinsun.com>
68039
68040         * lib/time_r.c, lib/time_r.h: New files.
68041
68042         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
68043         __localtime_r.
68044         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
68045         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
68046
68047         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
68048         __gmtime_r.
68049         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
68050         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
68051         Include <time_r.h>.
68052
68053         * lib/timegm.c: Switch to glibc implementation, with the following
68054         changes:
68055         [defined HAVE_CONFIG_H]: Include <config.h>.
68056         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
68057         (__mktime_internal) [!defined _LIBC]: New decl.
68058         (__gmtime_r) [!defined _LIBC]: New macro and function.
68059         (timegm): Use a prototype, since gnulib assumes C89.
68060         Do not bother declaring tmp to be const, as it's not really usefu.
68061         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
68062         (timegm): Declare only if HAVE_DECL_TIMEGM.
68063
68064 2003-09-06  Paul Eggert  <eggert@twinsun.com>
68065
68066         * MODULES.html.sh (func_all_modules): Add time_r.
68067         * modules/time_r: New file.
68068         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
68069         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
68070
68071 2003-09-03  Paul Eggert  <eggert@twinsun.com>
68072
68073         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
68074         Bug reported by Lute Kamstra in
68075         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
68076
68077         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
68078         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
68079         course with correspondingly smaller numbers for tomorrow and
68080         yesterday.  From Tadayoshi Funaba.  Originally installed into
68081         sh-utils on 1999-08-07, but the patch got lost (I guess during the
68082         coreutils merge?).
68083
68084 2003-08-31  Simon Josefsson  <jas@extundo.com>
68085
68086         * modules/timegm: New file.
68087         * MODULES.html.sh (func_all_modules): Add timegm.
68088
68089 2003-08-31  Simon Josefsson  <jas@extundo.com>
68090
68091         * m4/timegm.m4: New file.
68092
68093 2003-08-31  Simon Josefsson  <jas@extundo.com>
68094
68095         * lib/timegm.h: New file.
68096         * lib/timegm.c: New file.  Based on
68097         wget-1.8.2/src/http.c:mktime_from_utc.
68098
68099 2003-08-31  Karl Berry  <karl@gnu.org>
68100
68101         * lib/argp.h: update from libc.
68102
68103 2003-08-28  Bruno Haible  <bruno@clisp.org>
68104
68105         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
68106         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
68107         followed by '#define fnmatch fnmatch_posix' gives an error.
68108
68109 2003-08-28  Bruno Haible  <bruno@clisp.org>
68110
68111         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
68112         warning on QNX, which defines O_BINARY to 000000.
68113
68114 2003-08-27  Jim Meyering  <jim@meyering.net>
68115
68116         * m4/mkstemp.m4: Require that the system mkstemp be able to create
68117         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
68118         would fail after 32.  Reported by Danny Levinson.  Details here:
68119         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
68120
68121 2003-08-24  Bruno Haible  <bruno@clisp.org>
68122
68123         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
68124         MSVC7 <stdio.h> is included later.
68125
68126 2003-08-22  Simon Josefsson  <jas@extundo.com>
68127
68128         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
68129
68130 2003-08-20  Karl Berry  <karl@gnu.org>
68131
68132         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
68133
68134 2003-08-20  Bruno Haible  <bruno@clisp.org>
68135
68136         * modules/progname: New file.
68137         * MODULES.html.sh (func_all_modules): Add progname.
68138
68139 2003-08-20  Bruno Haible  <bruno@clisp.org>
68140
68141         * lib/progname.h: New file, from GNU gettext.
68142         * lib/progname.c: New file, from GNU gettext.
68143         * lib/progreloc.c: New file, from GNU gettext.
68144
68145 2003-08-19  Jim Meyering  <jim@meyering.net>
68146
68147         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
68148         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
68149
68150 2003-08-19  Bruno Haible  <bruno@clisp.org>
68151
68152         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
68153         more.
68154
68155 2003-08-19  Bruno Haible  <bruno@clisp.org>
68156
68157         * lib/xstrdup.c: Assume <string.h> exists.
68158
68159 2003-08-18  Paul Eggert  <eggert@twinsun.com>
68160
68161         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
68162         in makefile rules.
68163
68164 2003-08-18  Jim Meyering  <jim@meyering.net>
68165
68166         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
68167         * m4/lib-ld.m4: Likewise.
68168
68169 2003-08-18  Jim Meyering  <jim@meyering.net>
68170
68171         * lib/setenv.h: Indent nested cpp directive.
68172         * lib/vasnprintf.c: Remove trailing blanks.
68173
68174 2003-08-17  Simon Josefsson  <jas@extundo.com>
68175
68176         * modules/xstrndup: New file.
68177         * MODULES.html.sh (func_all_modules): Add xstrndup.
68178
68179 2003-08-17  Simon Josefsson  <jas@extundo.com>
68180
68181         * modules/argp: Fix autoconf macro name. Add more dependencies.
68182
68183 2003-08-17  Simon Josefsson  <jas@extundo.com>
68184
68185         * m4/xstrndup.m4: New file.
68186
68187 2003-08-17  Simon Josefsson  <jas@extundo.com>
68188
68189         * m4/argp.m4: New file.
68190
68191 2003-08-17  Simon Josefsson  <jas@extundo.com>
68192             Bruno Haible  <bruno@clisp.org>
68193
68194         * lib/xstrndup.h: New file.
68195         * lib/xstrndup.c: New file.
68196
68197 2003-08-17  Bruno Haible  <bruno@clisp.org>
68198
68199         * modules/strndup (Files, Include): Add lib/strndup.h.
68200
68201 2003-08-17  Bruno Haible  <bruno@clisp.org>
68202
68203         * modules/euidaccess (Files): Add lib/euidaccess.h.
68204
68205 2003-08-17  Bruno Haible  <bruno@clisp.org>
68206
68207         * lib/strndup.h: New file.
68208
68209 2003-08-17  Bruno Haible  <bruno@clisp.org>
68210
68211         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
68212         like AC_GNU_SOURCE.
68213         * modules/extensions (configure.ac): Comment out the invocation of
68214         gl_USE_SYSTEM_EXTENSIONS.
68215
68216 2003-08-16  Paul Eggert  <eggert@twinsun.com>
68217
68218         Merges from coreutils, etc.
68219         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
68220         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
68221         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
68222         fixing a typo.
68223         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
68224         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
68225
68226 2003-08-16  Paul Eggert  <eggert@twinsun.com>
68227
68228         Document merge from coreutils.
68229         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
68230         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
68231         * modules/utime: Add m4/utimes-null.m4.
68232
68233 2003-08-16  Paul Eggert  <eggert@twinsun.com>
68234
68235         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
68236         space, undoing this 2003-08-12 change:
68237         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
68238
68239 2003-08-16  Paul Eggert  <eggert@twinsun.com>
68240
68241         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
68242         strtoul.c from libc, undoing this 2003-08-12 change:
68243         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
68244
68245 2003-08-16  Jim Meyering  <jim@meyering.net>
68246
68247         Merges from coreutils.
68248         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
68249         prefix.  Adjust cache variables similarly.  Create 500 rather than
68250         just 300 files, to exercise bug on Darwin6.5, too.
68251         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
68252         $missing_dir.
68253         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
68254         AM_SYS_POSIX_TERMIOS.
68255         Reported by mkc@mathdogs.com.
68256         Also change use of $am_cv_sys_posix_termios
68257         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
68258         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
68259         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
68260         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
68261         in /proc/mounts until it finds one with matching device number.  This
68262         is unnecessary when the FILE argument *is* a mount point.  No stat call
68263         is necessary in that case.  So, disable the statvfs-testing code on
68264         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
68265         as RedHat bug# 84846.
68266         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
68267         to 1MB, so as not to render systems with no stack size limit (e.g.,
68268         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
68269         Include <unistd.h>.  On some systems,
68270         it is required for the definition of _SC_PAGESIZE.
68271
68272 2003-08-16  Jim Meyering  <jim@meyering.net>
68273
68274         Merge from coreutils.
68275         * lib/xstrtoimax.c: #else #if -> #elif.
68276         * lib/xstrtoumax.c: Likewise.
68277
68278 2003-08-16  Jim Meyering  <jim@meyering.net>
68279
68280         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
68281         * m4/utimes.m4: Removed.
68282         * m4/utimes-null.m4: Renamed from utimes.m4.
68283
68284         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
68285         to 1MB, so as not to render systems with no stack size limit (e.g.,
68286         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
68287         Include <unistd.h>.  On some systems,
68288         it is required for the definition of _SC_PAGESIZE.
68289
68290 2003-08-16  Jim Meyering  <jim@meyering.net>
68291         and Paul Eggert  <eggert@cs.ucla.edu>
68292
68293         Merges from coreutils, etc.
68294
68295         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
68296         using the latest version from cvs.  This avoids problems with #line
68297         directives using a vendor (Sun) compiler.
68298         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
68299         Don't set GETGROUPS_LIB here; now it's
68300         done via getgroups.m4's wrapper function.
68301         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
68302         rather than just in sh-util/configure.in, so that the
68303         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
68304         same.
68305         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
68306         AC_FUNC_GETLOADAVG where to find getloadavg.c.
68307         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
68308         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
68309         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
68310         Remove code that is now done by the newly-required macros.
68311         Append $(EXEEXT) to DF_PROG.
68312         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
68313         Do not invoke or require the following here,
68314         since prereq.m4 or some gnulib .m4 now does this for us:
68315         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
68316         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
68317         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
68318         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
68319         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
68320         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
68321         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
68322         AC_FUNC_OBSTACK.
68323         Do not replace the following functions, as this is now the job
68324         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
68325         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
68326         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
68327         atexit getpass, strdup, getpagesize.
68328         Replace 'raise'.
68329         Do not check for the following functions, as this is now the job
68330         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
68331         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
68332         setregid.
68333         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
68334         Check for sys/sysctl.h.
68335         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
68336         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
68337         of checking for ssize_t ourselves.
68338
68339         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
68340         Require every macro that gnulib/modules/* suggests for us.
68341         (jm_PREREQ_ADDEXT): New macro.
68342         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
68343         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
68344
68345         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
68346         (gl_PHYSMEM): Use it.
68347         Also check for `table' function.
68348         Check for new headers and functions.
68349         Add check for sys/sysmp.h.
68350         With suggestions from Kaveh Ghazi.
68351         Ignore headers that are present but cannot be compiled.  This
68352         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
68353         C 5.4.
68354
68355 2003-08-15  Paul Eggert  <eggert@twinsun.com>
68356
68357         Document merge from coreutils.
68358         * modules/userspec: Depend on posixver.
68359         * modules/strftime: Depend on tzset.
68360
68361 2003-08-15  Paul Eggert  <eggert@twinsun.com>
68362
68363         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
68364         rather than tab, after '#' in shell-script copyright notices.
68365         Suggested by Bruno Haible.
68366
68367 2003-08-15  Paul Eggert  <eggert@twinsun.com>
68368
68369         * config/srclist-update: Use three spaces, rather than tab, after '#'
68370         in shell-script copyright notices.  Suggested by Bruno Haible.
68371         Remove unnecessary parenthesization in regular expression.
68372
68373 2003-08-15  Jim Meyering  <jim@meyering.net>
68374
68375         Merge from coreutils.
68376         * lib/xgethostname.c: Include <stdlib.h>.
68377         (xghostname): Don't exit for anything other than memory-related
68378         failure; just return NULL.
68379         * lib/userspec.c: Include "posixver.h".
68380         (parse_user_spec): Accept `.' as a separator only
68381         in pre-POSIX-200112 mode.
68382         * lib/strtoimax.c: Use #elif rather than #else #if.
68383         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
68384         Remove function, now that we can rely on a working tzset function.
68385         [!_LIBC]: Ensure that the required autoconf test has been run.
68386         [!defined _NL_CURRENT && HAVE_STRFTIME]:
68387         Use underlying_strftime for %r.
68388         * lib/sha.c: Merge in some clean-up and optimization changes from
68389         glibc.
68390         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
68391         Ensure that it is a multiple of 64.
68392         Rearrange loop exit tests so as to avoid performing an
68393         additional fread after encountering an error or EOF.
68394         * lib/realloc.c: Update copyright date.
68395
68396 2003-08-15  Jim Meyering  <jim@meyering.net>
68397         and Paul Eggert  <eggert@twinsun.com>
68398
68399         Merge from coreutils.
68400         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
68401         member but strut utmpx does not.  Needed for AIX 4.3.3.
68402         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
68403
68404 2003-08-15  Jim Meyering  <jim@meyering.net>
68405         and Paul Eggert  <eggert@cs.ucla.edu>
68406
68407         Merges from coreutils, etc.
68408         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
68409         Require gl_FUNC_TZSET_CLOBBER.
68410         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
68411         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
68412         members.
68413
68414 2003-08-14  Paul Eggert  <eggert@twinsun.com>
68415
68416         Help the merge from coreutils.
68417         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
68418         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
68419         * m4/tzset.m4: Use it too.
68420
68421 2003-08-14  Paul Eggert  <eggert@twinsun.com>
68422
68423         * modules/tzset: New file.
68424
68425 2003-08-14  Jim Meyering  <jim@meyering.net>
68426
68427         Merges from coreutils.
68428         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
68429         variable names, rather than @FNMATCH_H@.
68430         * modules/alloca: Likewise for $(ALLOCA_H).
68431
68432         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
68433         the three copies of the literal target, `fnmatch.h'.
68434         * modules/alloca (alloca.h): Likewise.
68435
68436 2003-08-14  Jim Meyering  <jim@meyering.net>
68437
68438         Merge from coreutils.
68439         * m4/tzset.m4: New file.
68440         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
68441         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
68442         otherwise, AIX 5.1 systems would end up using the latter.
68443         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
68444         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
68445         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
68446         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
68447
68448 2003-08-14  Jim Meyering  <jim@meyering.net>
68449
68450         Merge from coreutils.
68451         * lib/obstack.h: Whitespace changes.
68452         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
68453         and xcalloc return values.
68454         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
68455         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
68456         hang on OSF/1 5.1 for DIR on both local and remote file systems.
68457         Reported by (and fix confirmed by) Nelson H. F. Beebe.
68458         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
68459         error from mntctl.
68460         Use mntctl's return value to drive the entry-processing loop, since
68461         we can't rely on the value of the vmt_length member in the last
68462         entry.  On some systems doing so could result in exhausting
68463         virtual memory.  Based in part on a patch from Mike Jetzer.
68464
68465 2003-08-14  Jim Meyering  <jim@meyering.net>
68466         and Paul Eggert  <eggert@twinsun.com>
68467
68468         Merges from coreutils, plus other fixes.
68469         * lib/physmem.c: Merge in portability changes from gcc/libiberty
68470         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
68471         for credits and details.  Thanks to Kaveh Ghazi for helping
68472         to keep these files in sync.
68473         (ARRAY_SIZE): Define it.
68474         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
68475         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
68476         (memcasecmp): Don't assume size_t fits in unsigned int.
68477         Remove casts and duplicate code.
68478         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
68479         (memcpy): Remove definition.
68480         Merge in some clean-up and optimization changes from glibc.
68481         [BLOCKSIZE]: Move definition to top of file.
68482         Ensure that it is a multiple of 64.
68483         Rearrange loop exit tests so as to avoid performing an
68484         additional fread after encountering an error or EOF.
68485         * lib/md5.h (md5_uintptr): Define.
68486         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
68487         return to the initial working directory.  Preserve errno
68488         for caller.
68489         * lib/idcache.c: Include "xalloc.h".
68490         (xmalloc, xrealloc): Remove decls.
68491         (getuser): Remove casts no longer required in C89.
68492         * lib/human.c: Include stdio.h, for sprintf.
68493         * lib/group-member.c: Include "xalloc.h".
68494         (xmalloc, xrealloc): Remove decls.
68495         (get_group_info): Remove casts no longer required in C89.
68496         * lib/getusershell.c (readname): Remove casts no longer required in
68497         C89.
68498         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
68499         * lib/getline.c: Whitespace fix, from coreutils.
68500
68501 2003-08-13  Paul Eggert  <eggert@twinsun.com>
68502
68503         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
68504         Check for isascii.
68505
68506         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
68507         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
68508         Undo previous (whitespace-only) change.
68509
68510 2003-08-13  Paul Eggert  <eggert@twinsun.com>
68511
68512         * lib/exclude.c: Include <ctype.h>
68513         (IN_CTYPE_DOMAIN): New macro.
68514         (is_space): New fn.
68515         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
68516         and empty lines.
68517
68518         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
68519         Undo previous (whitespace-only) change.
68520
68521 2003-08-13  Paul Eggert  <eggert@twinsun.com>
68522
68523         * config/srclist-update: Change update back to the old behavior,
68524         leaving whitespace alone.  Use one 'sed' command rather than a
68525         pipeline.
68526         (fixlicense): Now a variable, not a function.
68527         (remove_trailing_blanks): Remove.
68528         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
68529         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
68530         Undo previous (whitespace-only) change.
68531
68532 2003-08-12  Paul Eggert  <eggert@twinsun.com>
68533
68534         Merge from coreutils.
68535         * modules/euidaccess: Add lib_SOURCES, include for new
68536         file euidaccess.h
68537
68538 2003-08-12  Paul Eggert  <eggert@twinsun.com>
68539
68540         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
68541         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
68542         Normalize leading white space and remove trailing white space.
68543
68544         Merge from coreutils
68545         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
68546
68547         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
68548         0.12.1.  These files are now being upgraded automatically by
68549         ../config/srclist-update.
68550
68551 2003-08-12  Paul Eggert  <eggert@twinsun.com>
68552
68553         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
68554         Normalize leading white space and remove trailing white space.
68555         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
68556         notice, as per ../config/srclist-update.
68557
68558         Merge from coreutils.
68559         * lib/euidaccess.h: New file.
68560         * lib/euidaccess.c: Include it.
68561         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
68562         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
68563         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
68564
68565 2003-08-12  Paul Eggert  <eggert@twinsun.com>
68566
68567         * config/srclist-update: Add copyright notice.
68568         (remove_id_lines, remove_trailing_blanks): New constants.
68569         (fixfile): Use them to normalize spacing a bit in copied files.
68570         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
68571         Normalize leading white space and remove trailing white space.
68572
68573         * config/texinfo.tex: Sync with texinfo.
68574
68575         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
68576         strtoul.c from libc, to merge coreutils whitespace changes.
68577
68578         * config/srclist.txt: Get the following m4 files from gettext:
68579         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
68580         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
68581         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
68582         wint_t.m4.
68583
68584 2003-08-12  Karl Berry  <karl@gnu.org>
68585
68586         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
68587         been made.
68588
68589 2003-08-11  Paul Eggert  <eggert@twinsun.com>
68590
68591         * modules/gnu-source, m4/gnu-source.m4:
68592         Remove; we're assuming Autoconf 2.54 or later now.
68593         Suggested by Bruno Haible.
68594         * MODULES.html.sh (func_all_modules): Remove gnu-source.
68595
68596 2003-08-11  Bruno Haible  <bruno@clisp.org>
68597
68598         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
68599
68600 2003-08-11  Bruno Haible  <bruno@clisp.org>
68601
68602         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
68603         (vasnprintf): Use it instead of wcslen.
68604
68605 2003-08-11  Bruno Haible  <bruno@clisp.org>
68606
68607         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
68608         value to ensure that _Bool promotes to int. Use #define for _Bool when
68609         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
68610
68611 2003-08-10  Karl Berry  <karl@gnu.org>
68612
68613         * lib/regex.h: update from libc (whitespace fix).
68614
68615 2003-08-09  Paul Eggert  <eggert@twinsun.com>
68616
68617         Merge some files from coreutils.  These changes were
68618         originally made by Jim Meyering.
68619         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
68620         many older Unixes require this.
68621         * lib/alloca.c (alloca): Remove cast to argument of free;
68622         no longer needed in C89.
68623         * lib/alloca_.h, regex.h: Fix white space to match
68624         what GNU indent does.
68625
68626 2003-08-09  Paul Eggert  <eggert@twinsun.com>
68627
68628         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
68629         apparently Emacs's Unicode mode got confused before my 2003-08-05
68630         checkin.
68631
68632 2003-08-08  Paul Eggert  <eggert@twinsun.com>
68633
68634         * m4/extensions.m4: New file.
68635         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
68636         Require gl_USE_SYSTEM_EXTENSIONS.
68637         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
68638         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
68639
68640 2003-08-08  Paul Eggert  <eggert@twinsun.com>
68641
68642         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
68643         * modules/extensions, modules/gnu-source: New files.
68644         * modules/timespec, modules/unlocked-io: Depend on extensions.
68645
68646 2003-08-07  Paul Eggert  <eggert@twinsun.com>
68647
68648         * modules/restrict: New file.
68649         * MODULES.html.sh (func_all_modules): Add restrict.
68650         * modules/regex: Depend on restrict.
68651
68652 2003-08-07  Paul Eggert  <eggert@twinsun.com>
68653
68654         * m4/restrict.m4: New file.
68655         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
68656
68657 2003-08-07  Bruno Haible  <bruno@clisp.org>
68658
68659         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
68660         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
68661
68662 2003-08-07  Bruno Haible  <bruno@clisp.org>
68663
68664         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
68665         makes the module 'getndelim2' compatible with the module 'getline'.
68666
68667 2003-08-05  Paul Eggert  <eggert@twinsun.com>
68668
68669         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
68670         byte with "\201" to avoid glitches when editing that source file
68671         with multi-gnome-terminal.
68672
68673 2003-08-05  Paul Eggert  <eggert@twinsun.com>
68674
68675         * lib/bumpalloc.h: Remove.
68676
68677 2003-08-05  Paul Eggert  <eggert@twinsun.com>
68678
68679         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
68680         * modules/bumpalloc: Remove.
68681
68682 2003-08-04  Paul Eggert  <eggert@twinsun.com>
68683
68684         * lib/getloadavg.c: Change copyright notice and spacing to conform to
68685         GNU coding style.
68686
68687         Merge from coreutils.
68688         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
68689         1. From glibc.
68690         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
68691         from Karl Berry, implemented by Jim Meyering.
68692         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
68693         from Dmitry V. Levin.
68694         Remove anachronistic cast of xrealloc.
68695         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
68696         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
68697         type. Otherwise, it wouldn't compile with at least /bin/cc on
68698         ymp-cray-unicos9.0.2.X.
68699         Combine two mostly-identical uses of alloca into one.
68700         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
68701
68702 2003-08-04  Dave Love  <d.love@dl.ac.uk>
68703
68704         [From Emacs.]
68705
68706         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
68707         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
68708         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
68709         obsolete NLIST_NAME_UNION.
68710         [__GNU__]: Undef BSD and FSCALE.
68711         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
68712
68713 2003-08-03  Paul Eggert  <eggert@twinsun.com>
68714
68715         * lib/stdbool_.h (_Bool): Make it signed char, instead of
68716         an enum type, so that it's guaranteed to promote to int.  See:
68717         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
68718
68719 2003-08-03  Karl Berry  <karl@gnu.org>
68720
68721         * config/depcomp: update from automake.
68722
68723 2003-07-31  Paul Eggert  <eggert@twinsun.com>
68724
68725         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
68726         (strerror): Don't assume that a printable int fits in 14 bytes.
68727
68728 2003-07-31  Bruno Haible  <bruno@clisp.org>
68729
68730         * modules/getpass-gnu: New file.
68731         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
68732
68733 2003-07-31  Bruno Haible  <bruno@clisp.org>
68734
68735         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
68736
68737 2003-07-24  Karl Berry  <karl@gnu.org>
68738
68739         * config/missing: update from automake.
68740
68741 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
68742             Bruno Haible  <bruno@clisp.org>
68743
68744         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
68745         * lib/getline.c (getline, getdelim): Likewise.
68746         Remove _GNU_SOURCE define; now it's defined in config.h through
68747         m4/getline.m4.
68748
68749 2003-07-23  Karl Berry  <karl@gnu.org>
68750
68751         * config/config.sub: update from prep.
68752
68753 2003-07-22  Paul Eggert  <eggert@twinsun.com>
68754
68755         * modules/xalloc (Depends-on): Add exitfail.
68756         * modules/xmemcoll: Likewise.
68757
68758 2003-07-22  Paul Eggert  <eggert@twinsun.com>
68759
68760         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
68761         over-parenthesization in macros.
68762
68763         Sync with coreutils.
68764
68765         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
68766         required by C99.
68767
68768         Use `exit_failure' for xalloc and xmemcoll instead of their own
68769         private exit-failure variables.
68770         * lib/xalloc.h (xalloc_exit_failure): Remove.
68771         * lib/xmalloc.c: Likewise.  Include exitfail.h.
68772         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
68773         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
68774         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
68775         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
68776
68777 2003-07-20  Jim Meyering  <jim@meyering.net>
68778
68779         * modules/closeout (Depends-on): Add exitfail.
68780         Suggestion from Bruno Haible.
68781
68782 2003-07-19  Karl Berry  <karl@gnu.org>
68783
68784         * config/config.sub: update from prep.
68785
68786 2003-07-18  Paul Eggert  <eggert@twinsun.com>
68787
68788         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
68789         Remove.
68790         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
68791         to test that it can stand by itself.  Include "exitfail.h".
68792         Clients should set exit_failure instead.
68793         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
68794
68795 2003-07-18  Bruno Haible  <bruno@clisp.org>
68796
68797         * modules/getndelim2: New file.
68798         * modules/getline: Share files with module getndelim2.
68799         * modules/getnline: Depend on getndelim2 instead of sharing files with
68800         it. Add getnline.c to lib_SOURCES.
68801         * MODULES.html.sh (func_all_modules): Add getndelim2.
68802
68803 2003-07-18  Bruno Haible  <bruno@clisp.org>
68804
68805         * m4/getndelim2.m4: New file.
68806         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
68807         invoke gl_PREREQ_GETNDELIM2.
68808         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
68809         gl_PREREQ_GETNDELIM2.
68810         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
68811         gl_GETNDELIM2.
68812
68813 2003-07-18  Bruno Haible  <bruno@clisp.org>
68814
68815         * lib/getndelim2.h: New file.
68816         * lib/getndelim2.c: Make into a module of its own. Include config.h,
68817         getndelim2.h.
68818         (getndelim2): Make non-static. Change return type to ssize_t.
68819         * lib/getline.h: Change argument names.
68820         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
68821         * lib/getnline.c: Include getndelim2.h.
68822
68823 2003-07-18  Andreas Schwab  <schwab@suse.de>
68824
68825         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
68826
68827 2003-07-17  Karl Berry  <karl@gnu.org>
68828
68829         * config/config.sub: update from prep.
68830
68831 2003-07-17  Bruno Haible  <bruno@clisp.org>
68832
68833         * modules/getnline: New file.
68834         * modules/getline: Add lib/getndelim2.c to source file list.
68835         * MODULES.html.sh (func_all_modules): Add getnline.
68836
68837 2003-07-17  Bruno Haible  <bruno@clisp.org>
68838
68839         * m4/getnline.m4: New file.
68840
68841 2003-07-17  Bruno Haible  <bruno@clisp.org>
68842
68843         * m4/Makefile.am.in: Remove file.
68844         * m4/Makefile.am: Remove file.
68845         * m4/Makefile.in: Remove file.
68846
68847 2003-07-17  Bruno Haible  <bruno@clisp.org>
68848
68849         * lib/getnline.h: New file.
68850         * lib/getnline.c: New file.
68851         * lib/getndelim2.c: New file, extracted from getline.c.
68852         (getndelim2): Renamed from getdelim2, with added nmax argument.
68853         * lib/getline.c: Include getndelim2.c.
68854         (getdelim2): Moved out to getndelim2.c.
68855         (getline, getdelim): Update.
68856
68857 2003-07-17  Bruno Haible  <bruno@clisp.org>
68858
68859         * lib/Makefile.am: Remove file.
68860         * lib/Makefile.in: Remove file.
68861
68862 2003-07-17  Bruno Haible  <bruno@clisp.org>
68863
68864         * configure.in: Remove file.
68865         * Makefile.in: Remove file.
68866
68867 2003-07-17  Bruno Haible  <bruno@clisp.org>
68868
68869         * MODULES.html.sh: Put the </BODY> right before </HTML>.
68870
68871 2003-07-16  Karl Berry  <karl@gnu.org>
68872
68873         * config/srclist-update: was running fixlicense twice, which caused
68874                 texinfo.tex to be nullified for some reason.  Simplify,
68875                 $gplsrc is no longer needed as far as I can see?
68876
68877 2003-07-16  Jim Meyering  <jim@meyering.net>
68878
68879         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
68880
68881 2003-07-15  Paul Eggert  <eggert@twinsun.com>
68882
68883         * config/srclist.txt: Get the following files from gettext-runtime/intl
68884         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
68885         ref-del.sin.  From Bruno Haible.
68886         * config/srclist-update (fixfile): Change grep pattern again, since the
68887         previous fix didn't work (there was another trailing $).  Use
68888         '[$]' to escape the $s.
68889
68890 2003-07-15  Karl Berry  <karl@gnu.org>
68891
68892         * lib/vasnprintf.c: update from gettext.
68893
68894 2003-07-15  Karl Berry  <karl@gnu.org>
68895
68896         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
68897         gets expanded when surrounded by '$'.
68898
68899 2003-07-15  Jim Meyering  <jim@meyering.net>
68900
68901         * modules/save-cwd: Don't depend on error.  From Derek Price.
68902
68903 2003-07-15  Jim Meyering  <jim@meyering.net>
68904
68905         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
68906
68907 2003-07-14  Simon Josefsson  <jas@extundo.com>
68908
68909         * modules/mempcpy: New file.
68910         * MODULES.html.sh (func_all_modules): Add mempcpy.
68911
68912 2003-07-14  Simon Josefsson  <jas@extundo.com>
68913
68914         * m4/mempcpy.m4: New file.
68915
68916 2003-07-14  Simon Josefsson  <jas@extundo.com>
68917
68918         * lib/mempcpy.h: New file.
68919         * lib/mempcpy.c: New file.
68920
68921 2003-07-14  Paul Eggert  <eggert@twinsun.com>
68922
68923         * modules/getdate, modules/posixtm: Depend on mktime.
68924
68925 2003-07-14  Paul Eggert  <eggert@twinsun.com>
68926
68927         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
68928         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
68929         unicodeio.c, unicodeio.h, unlocked-io.h:
68930         Switch from LGPL to GPL.
68931
68932 2003-07-14  Paul Eggert  <eggert@twinsun.com>
68933
68934         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
68935         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
68936         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
68937         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
68938         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
68939         updated automatically by ../config/srclist-update.  This changes
68940         their license from LPGL to GPL.
68941
68942 2003-07-14  Paul Eggert  <eggert@twinsun.com>
68943
68944         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
68945         assumed to refer to the root of the most recent stable gettext version.
68946         * config/srclistvars.sh: Add defaults for eggert.
68947         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
68948         Match "This program" as well as "The program".  This is needed
68949         for gettext.
68950
68951 2003-07-14  Jim Meyering  <jim@meyering.net>
68952
68953         Don't emit diagnostics.  Let callers do that.
68954         * lib/save-cwd.c: Don't include "error.h".
68955         (save_cwd): Don't call error.  Ensure that errno is valid
68956         when returning nonzero.
68957
68958         * lib/save-cwd.h (restore_cwd): Update prototype.
68959         * lib/save-cwd.c (restore_cwd): Remove two parameters.
68960         Simplify.  Don't call error upon failure.  Let callers do that.
68961         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
68962         when auditing is enabled.  But don't bother updating the #if.
68963
68964 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
68965
68966         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
68967         it breaks C++ compilation.
68968         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
68969
68970 2003-07-10  Simon Josefsson  <jas@extundo.com>
68971
68972         * modules/strchrnul (Makefile.am): Add strchrnul.h.
68973
68974 2003-07-10  Jim Meyering  <jim@meyering.net>
68975
68976         * m4/clock_time.m4: Remove trailing blank.
68977         * m4/intmax_t.m4: Likewise.
68978
68979 2003-07-10  Jim Meyering  <jim@meyering.net>
68980
68981         * lib/vasnprintf.c: Remove trailing blanks.
68982         Make cpp indentation consistent.
68983
68984 2003-07-09  Paul Eggert  <eggert@twinsun.com>
68985
68986         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
68987         posixver.c, strftime.c, strnlen.c, strverscmp.c:
68988         Switch from LGPL to GPL.
68989
68990 2003-07-09  Paul Eggert  <eggert@twinsun.com>
68991
68992         * config/srclist.txt: Sort sublists.  Add
68993         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
68994         that differ from gnulib for one reason or another; we'd like this list
68995         to be smaller but for now let's document what we have.
68996
68997 2003-07-08  Paul Eggert  <eggert@twinsun.com>
68998
68999         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
69000         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
69001         and sweeter "eval x=$x".
69002         * config/srclist.txt: Get lib/argp* from glibc.
69003
69004 2003-07-07  Paul Eggert  <eggert@twinsun.com>
69005
69006         * lib/mktime.c: Fix some boundary cases and remove need for floating
69007         point.
69008
69009         Issue a compile-time diagnostic if time_t is floating point, or if
69010         two's complement arithmetic is not in effect, or if arithmetic
69011         right shift does not propagate the sign.  These assumptions were
69012         all in the original code but they weren't checked.
69013
69014         (TIME_T_MIDPOINT, verify): New macros.
69015         (__isleap): Remove; it has integer overflow problems.
69016         (leapyear): New function, without those problems.
69017         (ydhms_tm_diff): Remove; splitting into two parts.
69018         (ydhms_diff): New function, containing the arithmetic part of
69019         the old ydhms_tm_diff function.  Issue a compile-time
69020         diagnostic if we are not using C99 integer division.
69021         Avoid casts when possible.
69022         (guess_time_tm): New function, containing the checking part of
69023         the old ydhms_tm_diff function.  Return the new value, rather than
69024         the difference between it and the old.  Accept a new argument T
69025         so that *T specifies the old value.  Check for overflow in the result.
69026
69027         (__mktime_internal): Use a time_t offset, not a long int offset.
69028         This undoes the 2003-06-04 change, which is no longer needed now
69029         that we have better overflow checking.
69030         (localtime_offset): Likewise.
69031
69032         (__mktime_internal): Avoid harmful overflow on hosts where time_t
69033         and long are 64-bit but int is only 32-bit.
69034         (ydhms_diff): Use long int to store year1 and yday1.
69035         Issue a compile-time diagnostic if long int is not wide enough.
69036
69037         (__mktime_internal): Use long int to store adjusted year and yday.
69038         Use plain C rather than preprocessor commands, if that doesn't
69039         affect efficiency.
69040         Check for overflow (and try to repair) after each probe
69041         rather than checking only at the very end.  This avoids some bugs
69042         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
69043         does not equal GMT offset at maximum time).
69044         Use integer to check for overflow rather than floating point; this
69045         is more portable to non-IEEE hosts, and is a tad faster.
69046         When we detect that we are oscillating between two values,
69047         don't check whether tm_isdst has the requested value, since
69048         we already know the answer.  When tm_isdst has the wrong value,
69049         use a different heuristic to find the right one, based on the
69050         extreme values actually observed in practice in tz2003a,
69051         rather than the (overly optimistic) "previous 3 calendar quarters".
69052
69053         (not_equal_tm, print_tm, check_result): Use "const T" rather than
69054         "T const" to accommodate glibc style.
69055         (check_result): Use less-confusing report format.  "long" -> "long int.
69056         (main): Likewise.
69057         Don't loop if the iteration overflows time_t.
69058         Allow a negative step in the iteration.
69059
69060 2003-07-06  Karl Berry  <karl@gnu.org>
69061
69062         * config/depcomp: update from automake.
69063         * config/config.sub: update from prep.
69064
69065 2003-07-03  Karl Berry  <karl@gnu.org>
69066
69067         * config/config.guess: update from prep.
69068
69069 2003-07-01  Paul Eggert  <eggert@twinsun.com>
69070
69071         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
69072         xreadlink.c now includes it unconditionally.
69073
69074 2003-07-01  Paul Eggert  <eggert@twinsun.com>
69075
69076         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
69077         having it depend on HAVE_SYS_TYPES_H.
69078
69079 2003-07-01  Bruno Haible  <bruno@clisp.org>
69080
69081         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
69082         <sys/types.h> should be sufficient.
69083         Reported by Paul Eggert.
69084
69085 2003-06-26  Karl Berry  <karl@gnu.org>
69086
69087         * config/depcomp: update from automake.
69088
69089 2003-06-26  Bruno Haible  <bruno@clisp.org>
69090
69091         * modules/human: Depend on module stdbool.
69092
69093 2003-06-25  Bruno Haible  <bruno@clisp.org>
69094
69095         * modules/readlink: New file.
69096         * modules/xreadlink: Depend on it.
69097         * MODULES.html.sh (func_all_modules): Add readlink.
69098
69099 2003-06-25  Bruno Haible  <bruno@clisp.org>
69100
69101         * m4/readlink.m4: New file.
69102
69103 2003-06-25  Bruno Haible  <bruno@clisp.org>
69104
69105         * lib/readlink.c: New file.
69106
69107 2003-06-22  Karl Berry  <karl@gnu.org>
69108
69109         * config/srclist.txt: update mkinstalldirs from automake.
69110         * config/mkinstalldirs: update.
69111
69112 2003-06-22  Bruno Haible  <bruno@clisp.org>
69113
69114         Portability to mingw32.
69115         * m4/ssize_t.m4: New file, from GNU gettext.
69116         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
69117         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
69118
69119 2003-06-22  Bruno Haible  <bruno@clisp.org>
69120
69121         * modules/safe-read: Add m4/ssize_t.m4.
69122         * modules/xreadlink: Add m4/ssize_t.m4.
69123
69124 2003-06-20  Bruno Haible  <bruno@clisp.org>
69125
69126         Assume C89, so PARAMS isn't needed.
69127         * lib/unicodeio.h (PARAMS): Remove.
69128         * lib/unicodeio.c: Don't use PARAMS.
69129
69130 2003-06-18  Karl Berry  <karl@gnu.org>
69131
69132         * config/config.{guess,sub}: update from prep.
69133
69134 2003-06-18  Jim Meyering  <jim@meyering.net>
69135
69136         Merge changes from coreutils.
69137         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
69138         Remove explicit declarations of xmalloc and realloc.
69139         Include xalloc.h.
69140         (read_utmp): Remove anachronistic cast of xmalloc.
69141
69142 2003-06-17  Paul Eggert  <eggert@twinsun.com>
69143
69144         Assume C89, so PARAMS isn't needed.
69145         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
69146         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
69147         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
69148         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
69149         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
69150         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
69151         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
69152         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
69153         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
69154         lib/xstrtod.h, lib/xstrtol.h: Likewise.
69155         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
69156         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
69157         no longer needed. Anyway, config.h should always be included before any
69158         other file.
69159
69160 2003-06-11  Simon Josefsson  <jas@extundo.com>
69161
69162         * modules/sysexits: New file.
69163         * MODULES.html.sh (func_all_modules): Add sysexits.
69164
69165 2003-06-11  Simon Josefsson  <jas@extundo.com>
69166
69167         * lib/sysexit_.h: New file.
69168
69169 2003-06-11  Derek Price  <derek@ximbiot.com>
69170
69171         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
69172         necessary.
69173
69174 2003-06-11  Bruno Haible  <bruno@clisp.org>
69175
69176         * m4/sysexits.m4: New file.
69177
69178 2003-06-10  Simon Josefsson  <jas@extundo.com>
69179
69180         * lib/argp.h: New file, from glibc.
69181         * lib/argp-ba.c: New file, from glibc.
69182         * lib/argp-eexst.c: New file, from glibc.
69183         * lib/argp-fmtstream.c: New file, from glibc.
69184         * lib/argp-fmtstream.h: New file, from glibc.
69185         * lib/argp-fs-xinl.c: New file, from glibc.
69186         * lib/argp-help.c: New file, from glibc.
69187         * lib/argp-namefrob.h: New file, from glibc.
69188         * lib/argp-parse.c: New file, from glibc.
69189         * lib/argp-pv.c: New file, from glibc.
69190         * lib/argp-pvh.c: New file, from glibc.
69191         * lib/argp-xinl.c: New file, from glibc.
69192
69193 2003-06-10  Simon Josefsson  <jas@extundo.com>
69194
69195         * modules/strchrnul: New file.
69196
69197 2003-06-10  Simon Josefsson  <jas@extundo.com>
69198
69199         * modules/argp: New file.
69200
69201 2003-06-10  Simon Josefsson  <jas@extundo.com>
69202
69203         * m4/strchrnul.m4: New file.
69204
69205 2003-06-10  Simon Josefsson  <jas@extundo.com>
69206
69207         * lib/strchrnul.h: New file.
69208         * lib/strchrnul.c: New file.
69209
69210 2003-06-10  Bruno Haible  <bruno@clisp.org>
69211
69212         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
69213
69214 2003-06-07  Karl Berry  <karl@gnu.org>
69215
69216         * config/config.{guess,sub}: update from prep.
69217
69218 2003-06-07  Jim Meyering  <jim@meyering.net>
69219
69220         * modules/strtod: Use $(...) notation, not @...@ for
69221         AC_REPLACE'd variables.
69222         * modules/localcharset: Likewise.
69223
69224 2003-06-07  Jim Meyering  <jim@meyering.net>
69225
69226         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
69227         in place of my name in the copyright comment.
69228         Remove definition and uses of __P.
69229
69230         From coreutils.
69231         * lib/stat.c: Don't declare xmalloc explicitly.
69232         Instead, include "xalloc.h".
69233         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
69234         xrealloc, and xcalloc return values.
69235         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
69236         Improve comment.
69237         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
69238
69239 2003-06-07  Bruno Haible  <bruno@clisp.org>
69240
69241         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
69242         avoid AC_CONFIG_LINKS.
69243         * modules/fnmatch (Makefile.am): Use explicit creation rule for
69244         fnmatch.h, to avoid AC_CONFIG_LINKS.
69245         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
69246
69247 2003-06-07  Bruno Haible  <bruno@clisp.org>
69248
69249         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
69250         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
69251         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
69252         directory.
69253         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
69254         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
69255         directory.
69256
69257 2003-06-06  Jim Meyering  <jim@meyering.net>
69258
69259         Merge from coreutils.
69260         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
69261         Consolidate declarations and initializations of *_base* locals.
69262
69263         Merge from coreutils.
69264         This avoids a core dump on systems without GNU putenv,
69265         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
69266         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
69267         (unsetenv): New static function, from GNU libc.
69268         (rpl_putenv): Use it.
69269
69270         * lib/modechange.c: Remove trailing blanks.
69271
69272         Merge from coreutils.
69273         * lib/fsusage.c: Remove declaration of statfs.
69274         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
69275
69276         * lib/posixtm.c: Include <stdbool.h> unconditionally.
69277
69278 2003-06-06  Jim Meyering  <jim@meyering.net>
69279
69280         * lib/stdbool_.h: Renamed from stdbool.h.in.
69281
69282 2003-06-06  Jim Meyering  <jim@meyering.net>
69283             Bruno Haible  <bruno@clisp.org>
69284
69285         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
69286         Adjust Makefile.am snippet not to redirect directly to target.
69287         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
69288
69289 2003-06-05  Paul Eggert  <eggert@twinsun.com>
69290
69291         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
69292         mismatch, look in future quarters as well as past.  This fixes a
69293         bug when processing fall-backwards gaps immediately after a long
69294         period of daylight-saving time.
69295
69296         * lib/mktime.c: Assume freestanding C89 or better.
69297         (HAVE_LIMITS_H): Remove.  Assume it's 1.
69298         (__P): Remove; not used.
69299         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
69300         (mktime, not_equal_tm, print_tm, check_result,
69301         main): Use prototypes.  Use const * where appropriate.
69302         (main): Fix typo in testing code that uncovered by above changes.
69303         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
69304
69305 2003-06-04  Paul Eggert  <eggert@twinsun.com>
69306
69307         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
69308         locale.h, localeconv.  This merges changes from coreutils.
69309
69310         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
69311         It can be removed after the next Autoconf is released.
69312         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
69313         needed.
69314
69315 2003-06-04  Paul Eggert  <eggert@twinsun.com>
69316
69317         * lib/mktime.c: Fix Debian bug 177940
69318         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
69319         (localtime_offset): Now long int, not time_t, because we want it
69320         to be guaranteed to be signed.  All uses changed.
69321         (__mktime_internal): If overflow would occur when adding offset,
69322         don't add it.
69323
69324         Merge 'human' changes from coreutils.  Rewrite to support
69325         locale-specific notations like thousands separators.
69326         * lib/human.c: Simplify authorship notice.
69327         Include human.h immediately after config.h.
69328         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
69329         <limits.h>: Do not include, since human.h does.
69330         (SIZE_MAX, UINTMAX_MAX): New macros.
69331         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
69332         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
69333         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
69334         (power_letter): Renamed from suffixes.
69335         (generate_suffix_backwards): Remove.
69336         (adjust_value): Now takes int style (because of human.h changes)
69337         and long double value (for greater precision on some platforms).
69338         (group_number): New function.
69339         (human_readable): Use it.  Use integer options, not enum.
69340         Put the options before the sizes in the arg list.
69341         Support all the new options.
69342         The old human_readable function has been removed;
69343         use inttostr.h instead.
69344         (human_readable, default_block_size, humblock):
69345         Use uintmax_t, not int, for block sizes.
69346         (human_readable_inexact, block_size_types): Remove.
69347         (block_size_opts): New constant.
69348         (human_options): Renamed from human_block_size, with new signature
69349         that allows block sizes up to UINTMAX_MAX.  All callers changed.
69350         * lib/human.h: Add copyright and authorship notice.
69351         Include <limits.h> and <stdbool.h> unconditionally.
69352         (PARAMS): Remove.  All uses removed.
69353         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
69354         (enum human_inexact_style): Remove tag; now a nameless enum.
69355         (human_floor, human_ceiling, human_round_to_even): Now have
69356         values 2, 0, 1 rather than -1, 1, 0.
69357         (human_group_digits, human_suppress_point_zero, human_autoscale,
69358         human_base_1024, human_SI, human_B): New constants.
69359         (human_readable_inexact, human_block_size): Remove.
69360         (human_readable): Size args are now uintmax_t, not int.
69361         (human_options): New decl.
69362
69363         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
69364         unnecessary now that we assume C89 or better.  This change
69365         imported from coreutils.
69366
69367         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
69368         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
69369         in the 2003-05-30 sync from glibc.
69370
69371         .h files should stand alone, but we shouldn't include <sys/types.h>
69372         if we can get away with just <stddef.h>.
69373
69374         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
69375         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
69376         rather than <sys/types.h>, as we merely need size_t.
69377         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
69378         to get size_t.
69379         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
69380         Include <stdio.h>, to get FILE.
69381         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
69382         memcasecmp.h has included <stddef.h> and all we need is size_t.
69383         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
69384         our interface, instead of including <sys/types.h>
69385
69386 2003-06-04  Paul Eggert  <eggert@twinsun.com>
69387
69388         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
69389         now, as glibc mktime is buggy on non-glibc systems.
69390
69391 2003-06-03  Karl Berry  <karl@gnu.org>
69392
69393         * config/config.sub: update from prep.
69394
69395 2003-06-02  Paul Eggert  <eggert@twinsun.com>
69396
69397         [from coreutils]
69398         Fix some minor time-related bugs with POSIX time arguments.
69399         Some valid time stamps were being rejected (notably -1, and
69400         time stamps before 1900 on 64-bit hosts).  And some invalid
69401         time stamps were being accepted, e.g. September 31.
69402
69403         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
69404         that we can return (time_t) -1 successfully.
69405         * lib/posixtm.c: Likewise.
69406         [HAVE_STDBOOL_H]: Include <stdbool.h>.
69407         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
69408         (t): Remove static var.
69409         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
69410         of static var.  All uses changed.
69411         (year): Do not reject years before 1900; they can occur with
69412         64-bit time_t.
69413         (posix_time_parse): Do not check for out-of-range components;
69414         that is now the caller's responsibility, since our checks were
69415         only approximations.
69416         (posixtime): Use mktime to check for out-of-range components,
69417         since it knows them exactly.
69418         If mktime returns (time_t) -1, check whether an error actually occurred
69419         by invoking localtime on -1.
69420         (main) [TEST_POSIXTIME]: Check for input data errors, and report
69421         posixtime failures better.
69422         Improve the test data (in comments only).
69423
69424 2003-06-02  Karl Berry  <karl@gnu.org>
69425
69426         * config/mkinstalldirs (version): new variable.
69427         (--version): new option.
69428         (usage): improve message.
69429
69430 2003-05-30  Karl Berry  <karl@gnu.org>
69431
69432         * lib/mktime.c: update from libc.
69433
69434 2003-05-30  Bruno Haible  <bruno@clisp.org>
69435
69436         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
69437         * config/config.rpath: Upgrade to gettext-0.12.1.
69438
69439 2003-05-30  Bruno Haible  <bruno@clisp.org>
69440
69441         * m4/gettext.m4: Upgrade to gettext-0.12.1.
69442         * m4/nls.m4: New file, from gettext-0.12.1.
69443         * m4/po.m4: New file, from gettext-0.12.1.
69444         * m4/progtest.m4: Upgrade to gettext-0.12.1.
69445
69446 2003-05-30  Bruno Haible  <bruno@clisp.org>
69447
69448         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
69449         * lib/localcharset.h: Likewise.
69450         * lib/localcharset.c: Likewise.
69451
69452 2003-05-29  Karl Berry  <karl@gnu.org>
69453
69454         * config/config.rpath: update from gettext.
69455
69456 2003-05-28  Paul Eggert  <eggert@twinsun.com>
69457
69458         Assume the headers required for C89 freestanding compilers.
69459         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
69460         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
69461         * m4/human.m4 (gl_HUMAN): Likewise.
69462         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
69463         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
69464         * m4/userspec.m4 (gl_USERSPEC): Likewise.
69465         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
69466         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69467         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
69468
69469 2003-05-28  Paul Eggert  <eggert@twinsun.com>
69470
69471         Assume the headers required for C89 freestanding compilers.
69472         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
69473         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
69474         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
69475         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
69476         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
69477         define, since <limits.h> is guaranteed to do that.
69478         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
69479         * lib/exclude.c: Include <stdbool.h> unconditionally.
69480         * lib/tempname.c: Include <stddef.h> unconditionally.
69481         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
69482         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
69483         <stddef.h> does that.
69484         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
69485         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
69486         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
69487         needed.
69488         * lib/xstrtol.c: Likewise.
69489         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
69490         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
69491
69492         * lib/addext.c (addext): Use assignment rather than cast, to avoid
69493         warnings on some platforms.
69494
69495         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
69496         arbitrarily.
69497
69498 2003-05-26  Jim Meyering  <jim@meyering.net>
69499
69500         Merge in a change from coreutils:
69501         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
69502         that is guaranteed to be `no'.  Use `no_such_member' to indicate
69503         that condition, rather than `-1' which is slightly misleading.
69504         Change the name of the cache variable to have the gl_ prefix.
69505         Prompted by a patch from Richard Dawe for DJGPP.
69506
69507 2003-05-24  Karl Berry  <karl@gnu.org>
69508
69509         * config/config.guess: update from prep.
69510
69511 2003-05-22  Karl Berry  <karl@gnu.org>
69512
69513         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
69514
69515 2003-05-20  Karl Berry  <karl@gnu.org>
69516
69517         * config/config.guess: update from prep.
69518
69519 2003-05-18  Karl Berry  <karl@gnu.org>
69520
69521         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
69522         might actually be set by the user.
69523
69524         * config/depcomp, install-sh, mdate-sh: update from automake.
69525
69526 2003-05-17  Bruno Haible  <bruno@clisp.org>
69527
69528         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
69529         invalid expansion for AC_EGREP_CPP.
69530         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
69531         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
69532         Suggested by Akim Demaille <akim@epita.fr> in
69533         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
69534
69535 2003-05-12  Jim Meyering  <jim@meyering.net>
69536
69537         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
69538         the space-padded-by-default conversion specifiers, %e, %k, %l.
69539
69540 2003-05-12  Bruno Haible  <bruno@clisp.org>
69541
69542         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
69543         the string is longer than 4 KB.
69544
69545 2003-05-11  Karl Berry  <karl@gnu.org>
69546
69547         * config/config.{guess,sub}: update from prep.
69548
69549 2003-05-09  Bruno Haible  <bruno@clisp.org>
69550
69551         * modules/error: Add m4/strerror_r.m4 to file list.
69552
69553 2003-05-03  Bruno Haible  <bruno@clisp.org>
69554
69555         Upgrade to Unicode-4.0.
69556         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
69557         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
69558         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
69559         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
69560         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
69561         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
69562         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
69563         Change width of U+E0100..U+E01EF from 1 to 0.
69564
69565 2003-04-25  Jim Meyering  <jim@meyering.net>
69566
69567         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
69568         of type size_t, not int.
69569
69570 2003-04-25  Bruno Haible  <bruno@clisp.org>
69571
69572         * lib/copy-file.c: Include <stddef.h>, for size_t.
69573
69574 2003-04-21  Paul Eggert  <eggert@twinsun.com>
69575
69576         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
69577         code which expansion is under static control.  Patch imported from
69578         Akim Demaille's patch to Bison; see
69579         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
69580
69581 2003-04-14  Bruno Haible  <bruno@clisp.org>
69582
69583         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
69584
69585 2003-04-11  Jim Meyering  <jim@meyering.net>
69586
69587         Merge changes from Coreutils.
69588
69589         2003-03-22  Jim Meyering  <jim@meyering.net>
69590
69591         * lib/strftime.c (widen): Cast alloca return value to proper type.
69592
69593         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
69594
69595         From GNU libc.
69596         * lib/strftime.c (my_strftime): Handle very large width
69597         specifications for numeric values correctly.  Improve checks for
69598         overflow.
69599
69600         2003-01-19  Jim Meyering  <jim@meyering.net>
69601
69602         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
69603         definitions.
69604         (nl_get_alt_digit) [! defined my_strftime]: Define.
69605         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
69606         _nl_get_alt_digit and _nl_get_walt_digit.
69607
69608         * lib/strftime.c (my_strftime): Merge in locale-related changes from
69609         libc. These changes have no effect outside of _LIBC.
69610
69611 2003-04-10  Bruno Haible  <bruno@clisp.org>
69612
69613         * modules/findprog: New file.
69614         * MODULES.html.sh (func_all_modules): Add it.
69615
69616 2003-04-10  Bruno Haible  <bruno@clisp.org>
69617
69618         * m4/findprog.m4: New file.
69619         * m4/eaccess.m4: New file.
69620
69621 2003-04-10  Bruno Haible  <bruno@clisp.org>
69622
69623         * lib/findprog.h: New file, from GNU gettext.
69624         * lib/findprog.c: New file, from GNU gettext.
69625
69626 2003-04-05  Jim Meyering  <jim@meyering.net>
69627
69628         Merge changes from Coreutils.
69629
69630         * lib/exclude.h (PARAMS): Remove definition and uses.
69631         * lib/exclude.c: Remove uses of `PARAMS'.
69632
69633         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
69634         Add test-cases for DOS filenames. Declare program_name.
69635         (main): Set up program_name.  Patch by Rich Dawe.
69636
69637         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
69638         error from mntctl.
69639         Use mntctl's return value to drive the entry-processing loop, since
69640         we can't rely on the value of the vmt_length member in the last
69641         entry.  On some systems doing so could result in exhausting
69642         virtual memory.  Based in part on a patch from Mike Jetzer.
69643
69644 2003-04-04  Bruno Haible  <bruno@clisp.org>
69645
69646         * modules/linebreak: New file.
69647         * MODULES.html.sh (func_all_modules): Add it.
69648
69649 2003-04-04  Bruno Haible  <bruno@clisp.org>
69650
69651         * m4/linebreak.m4: New file.
69652
69653 2003-04-04  Bruno Haible  <bruno@clisp.org>
69654
69655         * lib/linebreak.h: New file, from GNU gettext.
69656         * lib/linebreak.c: New file, from GNU gettext with slight
69657         modifications.
69658         * lib/lbrkprop.h: New file, from GNU gettext.
69659
69660 2003-04-03  Bruno Haible  <bruno@clisp.org>
69661
69662         * modules/utf8-ucs4: New file.
69663         * modules/utf16-ucs4: New file.
69664         * modules/ucs4-utf8: New file.
69665         * modules/ucs4-utf16: New file.
69666         * MODULES.html.sh (func_all_modules): Add them.
69667
69668 2003-04-03  Bruno Haible  <bruno@clisp.org>
69669
69670         * m4/utf-ucs4.m4: New file.
69671         * m4/ucs4-utf.m4: New file.
69672
69673 2003-04-03  Bruno Haible  <bruno@clisp.org>
69674
69675         * lib/utf8-ucs4.h: New file, from GNU gettext.
69676         * lib/utf16-ucs4.h: New file, from GNU gettext.
69677         * lib/ucs4-utf8.h: New file, from GNU gettext.
69678         * lib/ucs4-utf16.h: New file, from GNU gettext.
69679
69680 2003-04-02  Bruno Haible  <bruno@clisp.org>
69681
69682         * modules/binary-io: New file.
69683         * MODULES.html.sh (func_all_modules): Add it.
69684
69685 2003-04-02  Bruno Haible  <bruno@clisp.org>
69686
69687         * lib/binary-io.h: New file, from GNU gettext.
69688
69689 2003-04-01  Bruno Haible  <bruno@clisp.org>
69690
69691         * modules/pathname: New file.
69692         * MODULES.html.sh (func_all_modules): Add it.
69693
69694 2003-04-01  Bruno Haible  <bruno@clisp.org>
69695
69696         * lib/pathname.h: New file, from GNU gettext.
69697         * lib/concatpath.c: New file, from GNU gettext.
69698
69699 2003-03-30  Bruno Haible  <bruno@clisp.org>
69700
69701         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
69702
69703 2003-03-30  Bruno Haible  <bruno@clisp.org>
69704
69705         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
69706         function chown() doesn't exist.
69707
69708 2003-03-28  Bruno Haible  <bruno@clisp.org>
69709
69710         * modules/copy-file: New file.
69711         * MODULES.html.sh (func_all_modules): Add it.
69712
69713 2003-03-28  Bruno Haible  <bruno@clisp.org>
69714
69715         * m4/copy-file.m4: New file.
69716
69717 2003-03-28  Bruno Haible  <bruno@clisp.org>
69718
69719         * lib/copy-file.h: New file, from GNU gettext.
69720         * lib/copy-file.c: New file, from GNU gettext.
69721
69722 2003-03-18  Jim Meyering  <jim@meyering.net>
69723
69724         * lib/quote.c (quote_n): Fix typo in comment.
69725
69726 2003-03-18  Bruno Haible  <bruno@clisp.org>
69727
69728         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
69729         checking.
69730         * m4/onceonly_2_57.m4: Likewise.
69731
69732 2003-03-17  Bruno Haible  <bruno@clisp.org>
69733
69734         * m4/onceonly.m4: Require autoconf 2.54 or newer.
69735         (m4_quote): Remove macro.
69736         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
69737
69738 2003-03-14  Jim Meyering  <jim@meyering.net>
69739
69740         Merge changes from Coreutils.
69741         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
69742         to be const, in order to avoid warnings.
69743         (obstack_room): Likewise.
69744         (obstack_empty_p): Likewise.
69745
69746 2003-03-14  Bruno Haible  <bruno@clisp.org>
69747
69748         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
69749         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
69750
69751 2003-03-13  Paul Eggert  <eggert@twinsun.com>
69752
69753         Merge changes from Bison.
69754         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
69755         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
69756         when compiling Bison 1.875's `bitset bset = obstack_alloc
69757         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
69758         * lib/hash.c: Include <stdbool.h> unconditionally.
69759
69760 2003-03-13  Paul Eggert  <eggert@twinsun.com>
69761
69762         * m4/onceonly.m4 (m4_quote): New macro.
69763         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
69764         Quote AC_FOREACH variable-expansions properly.
69765
69766 2003-03-13  Paul Eggert  <eggert@twinsun.com>
69767
69768         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
69769
69770 2003-03-09  Paul Eggert  <eggert@twinsun.com>
69771
69772         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
69773         Reported by Bruce Becker; see:
69774         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
69775
69776 2003-03-03  Paul Eggert  <eggert@twinsun.com>
69777             Bruno Haible  <bruno@clisp.org>
69778
69779         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
69780         Reported by John Hughes, see
69781         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
69782
69783 2003-02-20  Bruno Haible  <bruno@clisp.org>
69784
69785         * MODULES.html.sh (func_all_modules): Add poll.
69786
69787 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
69788
69789         * modules/poll: New file.
69790
69791 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
69792
69793         * lib/poll_.h: New file.
69794         * lib/poll.c: New file.
69795
69796 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
69797
69798         * m4/poll.m4: New file.
69799
69800 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
69801
69802         * modules/mathl: New file.
69803
69804 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
69805
69806         * lib/mathl.h: New file.
69807         * lib/acosl.c: New file.
69808         * lib/asinl.c: New file.
69809         * lib/atanl.c: New file.
69810         * lib/ceill.c: New file.
69811         * lib/cosl.c: New file.
69812         * lib/expl.c: New file.
69813         * lib/floorl.c: New file.
69814         * lib/frexpl.c: New file.
69815         * lib/ldexpl.c: New file.
69816         * lib/logl.c: New file.
69817         * lib/sincosl.c: New file.
69818         * lib/sinl.c: New file.
69819         * lib/sqrtl.c: New file.
69820         * lib/tanl.c: New file.
69821         * lib/trigl.c: New file.
69822         * lib/trigl.h: New file.
69823
69824 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
69825
69826         * m4/mathl.m4: New file.
69827
69828 2003-02-18  Bruno Haible  <bruno@clisp.org>
69829
69830         * MODULES.html.sh (func_all_modules): Add mathl.
69831
69832 2003-02-17  Bruno Haible  <bruno@clisp.org>
69833
69834         * modules/mkdtemp: New module.
69835         * MODULES.html.sh (func_all_modules): Add it.
69836
69837 2003-02-17  Bruno Haible  <bruno@clisp.org>
69838
69839         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
69840
69841 2003-02-17  Bruno Haible  <bruno@clisp.org>
69842
69843         * lib/mkdtemp.h: New file, from GNU gettext.
69844         * lib/mkdtemp.c: New file, from GNU gettext.
69845
69846 2003-02-02  Jim Meyering  <jim@meyering.net>
69847
69848         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
69849         e.g. glibc-2.2.93.
69850
69851 2003-01-31  Bruno Haible  <bruno@clisp.org>
69852
69853         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
69854         'rpl_rename'.
69855         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
69856         'rpl_strnlen'.
69857         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
69858         'rpl_strtod'.
69859         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
69860         'rpl_utime'.
69861
69862 2003-01-31  Bruno Haible  <bruno@clisp.org>
69863
69864         * lib/rename.c: #undef rename before defining rpl_rename.
69865         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
69866
69867 2003-01-30  Bruno Haible  <bruno@clisp.org>
69868
69869         * modules/vasnprintf, modules/vasprintf: New modules.
69870         * MODULES.html.sh (func_all_modules): Add them.
69871
69872 2003-01-30  Bruno Haible  <bruno@clisp.org>
69873
69874         * m4/signed.m4: New file, from GNU gettext.
69875         * m4/longdouble.m4: New file, from GNU gettext.
69876         * m4/wchar_t.m4: New file, from GNU gettext.
69877         * m4/wint_t.m4: New file, from GNU gettext.
69878         * m4/vasnprintf.m4: New file.
69879         * m4/vasprintf.m4: New file.
69880
69881 2003-01-30  Bruno Haible  <bruno@clisp.org>
69882
69883         * lib/printf-args.h: New file, from GNU gettext.
69884         * lib/printf-args.c: New file, from GNU gettext.
69885         * lib/printf-parse.h: New file, from GNU gettext.
69886         * lib/printf-parse.c: New file, from GNU gettext.
69887         * lib/vasnprintf.h: New file, from GNU gettext.
69888         * lib/vasnprintf.c: New file, from GNU gettext.
69889         * lib/asnprintf.c: New file, from GNU gettext.
69890         * lib/vasprintf.h: New file, from GNU gettext with modifications.
69891         * lib/vasprintf.c: New file, from GNU gettext.
69892         * lib/asprintf.c: New file, from GNU gettext.
69893
69894 2003-01-29  Bruno Haible  <bruno@clisp.org>
69895
69896         * modules/stpncpy: New module.
69897         * MODULES.html.sh (func_all_modules): Add it.
69898
69899 2003-01-29  Bruno Haible  <bruno@clisp.org>
69900
69901         * m4/stpncpy.m4: New file.
69902
69903 2003-01-29  Bruno Haible  <bruno@clisp.org>
69904
69905         * lib/stpncpy.h: New file, from GNU gettext with modifications.
69906         * lib/stpncpy.c: New file, from GNU gettext with modifications.
69907
69908 2003-01-28  Bruno Haible  <bruno@clisp.org>
69909
69910         * modules/c-ctype: New module.
69911         * MODULES.html.sh (func_all_modules): Add it.
69912
69913 2003-01-28  Bruno Haible  <bruno@clisp.org>
69914
69915         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
69916         Paul Eggert.
69917         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
69918         Paul Eggert.
69919
69920 2003-01-27  Bruno Haible  <bruno@clisp.org>
69921
69922         * modules/xsetenv: New module.
69923         * MODULES.html.sh (func_all_modules): Add it.
69924
69925 2003-01-27  Bruno Haible  <bruno@clisp.org>
69926
69927         * lib/xsetenv.h: New file, from GNU gettext.
69928         * lib/xsetenv.c: New file, from GNU gettext.
69929
69930 2003-01-23  Jim Meyering  <jim@meyering.net>
69931
69932         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
69933         from working on systems without dirfd (at least Irix and OSF1/Tru64).
69934
69935 2003-01-23  Bruno Haible  <bruno@clisp.org>
69936
69937         * modules/minmax: New module.
69938         * MODULES.html.sh (func_all_modules): Add it.
69939
69940 2003-01-23  Bruno Haible  <bruno@clisp.org>
69941
69942         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
69943         Eggert.
69944
69945 2003-01-22  Bruno Haible  <bruno@clisp.org>
69946
69947         * modules/exit: New module.
69948         * MODULES.html.sh (func_all_modules): Add it.
69949
69950 2003-01-22  Bruno Haible  <bruno@clisp.org>
69951
69952         * lib/exit.h: New file, from GNU gettext.
69953
69954 2003-01-19  Bruno Haible  <bruno@clisp.org>
69955
69956         * gnulib-tool: Recognize option --extract-maintainer.
69957         (func_get_maintainer): New function.
69958         * modules/*: Add Maintainer entry.
69959
69960 2003-01-16  Jim Meyering  <jim@meyering.net>
69961
69962         * m4/regex.m4: The `regex' struct is both input and output.
69963         Initialize it before each use.  Patch by Tim Waugh.
69964
69965 2003-01-16  Bruno Haible  <bruno@clisp.org>
69966
69967         * MODULES.html.sh: Add a table of contents. Add the module name as
69968         leftmost column. Add hyperlinks.
69969
69970 2003-01-15  Bruno Haible  <bruno@clisp.org>
69971
69972         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
69973
69974 2003-01-15  Bruno Haible  <bruno@clisp.org>
69975
69976         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
69977         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
69978         suffix.
69979
69980 2003-01-15  Bruno Haible  <bruno@clisp.org>
69981
69982         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
69983
69984 2003-01-15  Bruno Haible  <bruno@clisp.org>
69985
69986         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
69987         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
69988
69989 2003-01-14  Jim Meyering  <jim@meyering.net>
69990
69991         * lib/same.c (same_name): Tweak a comment.
69992
69993 2003-01-14  Bruno Haible  <bruno@clisp.org>
69994
69995         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
69996         when a string comparison is sufficient.
69997
69998 2003-01-14  Bruno Haible  <bruno@clisp.org>
69999
70000         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
70001         'unsigned int'.
70002
70003 2003-01-14  Bruno Haible  <bruno@clisp.org>
70004
70005         * lib/hash-pjw.c: Add comment about low quality of this function.
70006
70007 2003-01-13  Bruno Haible  <bruno@clisp.org>
70008
70009         * modules/stpcpy: Distribute lib/stpcpy.h.
70010         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
70011
70012 2003-01-13  Bruno Haible  <bruno@clisp.org>
70013
70014         * modules/*: Add a description.
70015         * modules/strpbrk: Fix Makefile.am snippet.
70016         * modules/strtoimax: Fix dependencies.
70017         * modules/strtoumax: Likewise.
70018
70019 2003-01-13  Bruno Haible  <bruno@clisp.org>
70020
70021         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
70022         * modules/alloca (Makefile.am): All object files depend on alloca.h.
70023         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
70024
70025 2003-01-13  Bruno Haible  <bruno@clisp.org>
70026
70027         * gnulib-tool (func_create_testdir): Store config/* files in the main
70028         directory.
70029         * config.rpath: Move to ...
70030         * config/config.rpath: ... here.
70031         * modules/gettext: Contains config/config.rpath, not config.rpath.
70032         * modules/iconv: Likewise.
70033
70034 2003-01-12  Paul Eggert  <eggert@twinsun.com>
70035
70036         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
70037         to avoid collisions with libcurses and libreadline.
70038
70039         * m4/getstr.m4: Remove.
70040         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
70041
70042 2003-01-12  Paul Eggert  <eggert@twinsun.com>
70043
70044         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
70045         to avoid collisions with libcurses and libreadline.
70046
70047         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
70048         * lib/getstr.h, getstr.c: Remove.
70049         * lib/getline.c: Include "getline.h", to check interface.
70050         Move body of old getstr.c here: this defines MIN_CHUNK and
70051         declares getdelim2, which is renamed from getstr.
70052         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
70053
70054         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
70055         All uses changed.
70056         * lib/linebuffer.h: Likewise.
70057         (readline): Remove backward-compatibility macro.
70058
70059 2003-01-12  Paul Eggert  <eggert@twinsun.com>
70060
70061         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
70062         to avoid collisions with libcurses and libreadline.
70063         * getstr: Remove.
70064         * MODULES.html.sh: Remove getstr.
70065         * modules/getline: Depend on unlocked-io, not getstr.
70066
70067 2003-01-12  Jim Meyering  <jim@meyering.net>
70068
70069         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
70070
70071 2003-01-10  Bruno Haible  <bruno@clisp.org>
70072
70073         * modules/alloca: Change Makefile.am requirements. Simplify Include
70074         requirements. Add lib/alloca_.h to file list.
70075
70076 2003-01-10  Bruno Haible  <bruno@clisp.org>
70077
70078         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
70079
70080 2003-01-10  Bruno Haible  <bruno@clisp.org>
70081
70082         * lib/alloca_.h: New file.
70083         * lib/getdate.y: Unconditionally include alloca.h.
70084         * lib/makepath.c: Likewise.
70085         * lib/setenv.c: Likewise.
70086         * lib/userspec.c: Likewise.
70087
70088 2003-01-09  Karl Berry  <karl@gnu.org>
70089
70090         * MODULES.html.sh: include `dirname $0` in PATH, to find
70091         gnulib-tool.
70092
70093 2003-01-09  Bruno Haible  <bruno@clisp.org>
70094
70095         * modules/stdbool: Change configure.ac, Makefile.am requirements.
70096         Simplify Include requirements. Add lib/stdbool.h.in to file list.
70097
70098 2003-01-09  Bruno Haible  <bruno@clisp.org>
70099
70100         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
70101
70102 2003-01-09  Bruno Haible  <bruno@clisp.org>
70103
70104         * lib/stdbool.h.in: New file.
70105
70106 2003-01-09  Bruno Haible  <bruno@clisp.org>
70107
70108         * gnulib-tool (func_all_modules): Ignore files ending in ~.
70109         * MODULES.html.sh: Likewise.
70110
70111 2003-01-08  Jim Meyering  <jim@meyering.net>
70112
70113         * lib/full-write.c: Undefine and define-away `const' after inclusion
70114         of errno.h, not before.  Suggestion from Bruno Haible.
70115
70116 2003-01-08  Bruno Haible  <bruno@clisp.org>
70117
70118         * modules/full-read: Depend on full-write.
70119
70120 2003-01-08  Bruno Haible  <bruno@clisp.org>
70121
70122         * lib/safe-read.c: Include specification header first, to ensure its
70123         selfcontainedness.
70124         * lib/full-write.c: Likewise.
70125
70126 2003-01-07  Jim Meyering  <jim@meyering.net>
70127
70128         * lib/full-write.c: Rework so that it may serve to define full_read,
70129         too.
70130         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
70131
70132 2003-01-07  Bruno Haible  <bruno@clisp.org>
70133
70134         * lib/strtoimax.c: Include <stdint.h> as an alternative to
70135         <inttypes.h>.
70136         * lib/xstrtol.h: Likewise.
70137         * lib/xstrtoimax.c: Likewise.
70138         * lib/xstrtoumax.c: Likewise.
70139         * lib/human.h: Likewise.
70140
70141         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
70142         on systems that have <inttypes.h> but not <stdint.h>.
70143
70144 2003-01-07  Bruno Haible  <bruno@clisp.org>
70145
70146         * MODULES.html.sh: Add copyright notice.
70147         (missed_files): Omit CVS directory entries.
70148         (func_module): Make it work with sed-3.02.
70149         * MODULES.txt: Remove file.
70150
70151 2003-01-06  Jim Meyering  <jim@meyering.net>
70152
70153         * lib/version-etc.c: Update year in translatable copyright string.
70154
70155 2003-01-03  Karl Berry  <karl@gnu.org>
70156
70157         * config/config.{guess,sub}: update from prep.
70158
70159 2003-01-02  Karl Berry  <karl@gnu.org>
70160
70161         * doc/COPYING.DOC: belatedly updated to 1.2.
70162
70163 2003-01-01  Karl Berry  <karl@gnu.org>
70164
70165         * gnulib-tool (func_verify_module): report module name $module in
70166         error message, not $1.
70167         * gnulib-tool (create-testdir): don't complain if destdir couldn't
70168         be created, only if it doesn't exist.
70169         * gnulib-tool (last_checkin_date): don't expand the $Date here.
70170
70171 2002-12-31  Paul Eggert  <eggert@twinsun.com>
70172
70173         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
70174
70175 2002-12-31  Paul Eggert  <eggert@twinsun.com>
70176
70177         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
70178         memcmp if strcoll doesn't work.
70179
70180 2002-12-31  Bruno Haible  <bruno@clisp.org>
70181
70182         * lib/utime.c (utime_null): No need to call ftruncate if the file was
70183         nonempty.
70184
70185 2002-12-31  Bruno Haible  <bruno@clisp.org>
70186
70187         * lib/memcoll.c (STRCOLL): New macro.
70188         (memcoll): Use it.
70189
70190 2002-12-31  Bruno Haible  <bruno@clisp.org>
70191
70192         * lib/localcharset.h: New file.
70193         * lib/localcharset.c: Include it.
70194         * lib/unicodeio.c: Likewise.
70195
70196 2002-12-31  Bruno Haible  <bruno@clisp.org>
70197
70198         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
70199         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
70200
70201 2002-12-31  Bruno Haible  <bruno@clisp.org>
70202
70203         * lib/getline.h: Include <stddef.h>, for size_t.
70204
70205         * lib/unicodeio.h: Include <stddef.h>, for size_t.
70206         * lib/unicodeio.c: Don't include <stddef.h>.
70207
70208 2002-12-31  Bruno Haible  <bruno@clisp.org>
70209
70210         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
70211         HAVE_TM_ZONE.
70212
70213 2002-12-24  Karl Berry  <karl@gnu.org>
70214
70215         * config/config.guess: update from prep.
70216
70217 2002-12-24  Bruno Haible  <bruno@clisp.org>
70218
70219         General infrasructure.
70220         * m4/README: Rewritten.
70221         * m4/onceonly.m4: New file.
70222         * m4/onceonly_2_57.m4: New file.
70223
70224         Module atexit.
70225         * m4/atexit.m4: New file.
70226
70227         Module strtod.
70228         * m4/strtod.m4: New file.
70229
70230         Module strtol.
70231         * m4/strtol.m4: New file.
70232
70233         Module strtoul.
70234         * m4/strtoul.m4: New file.
70235
70236         Module memchr.
70237         * m4/memchr.m4: New file.
70238
70239         Module memcmp.
70240         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
70241         (jm_FUNC_MEMCMP): Invoke it.
70242
70243         Module memcpy.
70244         * m4/memcpy.m4: New file.
70245
70246         Module memmove.
70247         * m4/memmove.m4: New file.
70248
70249         Module memset.
70250         * m4/memset.m4: New file.
70251
70252         Module strcspn.
70253         * m4/strcspn.m4: New file.
70254
70255         Module strpbrk.
70256         * m4/strpbrk.m4: New file.
70257
70258         Module strstr.
70259         * m4/strstr.m4: New file.
70260
70261         Module strerror.
70262         * m4/strerror.m4: New file.
70263
70264         Module mktime.
70265         * m4/mktime.m4: Renamed from jm-mktime.m4.
70266         (gl_PREREQ_MKTIME): New macro.
70267         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
70268
70269         Module malloc.
70270         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
70271         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
70272         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
70273
70274         Module realloc.
70275         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
70276         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
70277         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
70278
70279         Module strftime.
70280         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
70281         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
70282         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
70283         gl_TM_GMTOFF.
70284         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
70285
70286         Module xalloc.
70287         * m4/xalloc.m4: New file.
70288
70289         Module alloca.
70290         * m4/alloca.m4: New file.
70291
70292         Module putenv.
70293         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
70294         (jm_FUNC_PUTENV): Invoke it.
70295
70296         Module setenv.
70297         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
70298         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
70299         when invoked twice.
70300         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
70301         gt_FUNC_SETENV.
70302
70303         Module memrchr.
70304         * m4/memrchr.m4: New file.
70305
70306         Module stpcpy.
70307         * m4/stpcpy.m4: New file.
70308
70309         Module strcase.
70310         * m4/strcase.m4: New file.
70311
70312         Module strdup.
70313         * m4/strdup.m4: New file.
70314
70315         Module strnlen.
70316         * m4/strnlen.m4: New file.
70317
70318         Module strndup.
70319         * m4/strndup.m4: New file.
70320
70321         Module xstrtod.
70322         * m4/xstrtod.m4: New file.
70323
70324         Module xstrtol.
70325         * m4/xstrtol.m4: New file.
70326
70327         Module getdate.
70328         * m4/getdate.m4: New file.
70329
70330         Module unlocked-io.
70331         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
70332         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
70333         * m4/jm-glibc-io.m4n: Remove file.
70334
70335         Module long-options.
70336         * m4/long-options.m4: New file.
70337
70338         Module md5.
70339         * m4/md5.m4: New file.
70340
70341         Module sha.
70342         * m4/sha.m4: New file.
70343
70344         Module getstr.
70345         * m4/getstr.m4: New file.
70346
70347         Module getline.
70348         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
70349         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
70350         <sys/types.h>, for size_t. Use the function name gnu_getline, not
70351         simply getline. Infoke gl_PREREQ_GETLINE.
70352
70353         Module obstack.
70354         * m4/obstack.m4: New file.
70355
70356         Module hash.
70357         * m4/hash.m4: New file.
70358
70359         Module readtokens.
70360         * m4/readtokens.m4: New file.
70361
70362         Module strverscmp.
70363         * m4/strverscmp.m4: New file.
70364
70365         Module stdbool.
70366         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
70367         OSF/1.
70368
70369         Module strtoll.
70370         * m4/strtoll.m4: New file.
70371
70372         Module strtoull.
70373         * m4/strtoull.m4: New file.
70374
70375         Module strtoimax.
70376         * m4/strtoimax.m4: New file.
70377
70378         Module strtoumax.
70379         * m4/strtoumax.m4: New file.
70380
70381         Module xstrtoimax.
70382         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
70383         jm_AC_PREREQ_XSTRTOIMAX.
70384         Moved the strtol prerequisites to strtol.m4.
70385         Moved the strtoll prerequisites to strtoll.m4.
70386         Moved the strtoimax prerequisites to strtoimax.m4.
70387
70388         Module xstrtoumax.
70389         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
70390         jm_AC_PREREQ_XSTRTOUMAX.
70391         Moved the strtoul prerequisites to strtoul.m4.
70392         Moved the strtoull prerequisites to strtoull.m4.
70393         Moved the strtoumax prerequisites to strtoumax.m4.
70394
70395         Module chown.
70396         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
70397         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
70398
70399         Module dup2.
70400         * m4/dup2.m4: New file.
70401
70402         Module ftruncate.
70403         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
70404         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
70405
70406         Module getgroups.
70407         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
70408         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
70409
70410         Module gettimeofday.
70411         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
70412         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
70413         gl_PREREQ_GETTIMEOFDAY.
70414
70415         Module mkdir.
70416         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
70417         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
70418
70419         Module mkstemp.
70420         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
70421         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
70422         jm_AC_TYPE_UINTMAX_T.
70423         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
70424
70425         Module stat.
70426         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
70427         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
70428
70429         Module lstat.
70430         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
70431         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
70432
70433         Module timespec.
70434         * m4/timespec.m4 (gl_TIMESPEC): New macro.
70435         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
70436         * m4/st_mtim.m4: Indentation.
70437
70438         Module nanosleep.
70439         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
70440         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
70441         gl_PREREQ_NANOSLEEP.
70442
70443         Module regex.
70444         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
70445         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
70446         (gl_REGEX): New macro.
70447
70448         Module rename.
70449         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
70450         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
70451
70452         Module rmdir.
70453         * m4/rmdir.m4: New file.
70454
70455         Module utime.
70456         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
70457         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
70458         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
70459
70460         Module dirname.
70461         * m4/dirname.m4: New file.
70462
70463         Module getopt.
70464         * m4/getopt.m4: New file.
70465
70466         Module unistd-safer.
70467         * m4/unistd-safer.m4: New file.
70468
70469         Module fnmatch.
70470         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
70471         declaration.
70472         (gl_PREREQ_FNMATCH_EXTRA): New macro.
70473         (gl_FUNC_FNMATCH_POSIX): New macro.
70474         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
70475         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
70476         simply fnmatch.
70477
70478         Module exclude.
70479         * m4/exclude.m4: New file.
70480
70481         Module human.
70482         * m4/human.m4: New file.
70483
70484         Module acl.
70485         * m4/acl.m4: Nop.
70486
70487         Module backupfile.
70488         * m4/backupfile.m4: New file.
70489         * m4/d-ino.m4: Indentation.
70490
70491         Module fsusage.
70492         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
70493         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
70494         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
70495
70496         Module dirfd.
70497         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
70498         requirements.
70499
70500         Module euidaccess.
70501         * m4/euidaccess.m4: New file.
70502
70503         Module file-type.
70504         * m4/file-type.m4: New file.
70505
70506         Module fileblocks.
70507         * m4/fileblocks.m4: New file.
70508
70509         Module filemode.
70510         * m4/filemode.m4: New file.
70511
70512         Module isdir.
70513         * m4/isdir.m4: New file.
70514
70515         Module lchown.
70516         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
70517         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
70518
70519         Module makepath.
70520         * m4/makepath.m4: New file.
70521
70522         Module modechange.
70523         * m4/modechange.m4: New file.
70524
70525         Module mountlist.
70526         * m4/mountlist.m4: New file.
70527         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
70528         Indentation.
70529
70530         Module path-concat.
70531         * m4/path-concat.m4: New file.
70532
70533         Module pathmax.
70534         * m4/pathmax.m4: New file.
70535
70536         Module same.
70537         * m4/same.m4: New file.
70538
70539         Module save-cwd.
70540         * m4/save-cwd.m4: New file.
70541
70542         Module savedir.
70543         * m4/savedir.m4: New file.
70544
70545         Module xgetcwd.
70546         * m4/xgetcwd.m4: New file.
70547         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
70548
70549         Module xreadlink.
70550         * m4/xreadlink.m4: New file.
70551
70552         Module safe-read.
70553         * m4/safe-read.m4: New file.
70554
70555         Module safe-write.
70556         * m4/safe-write.m4: New file.
70557
70558         Module closeout.
70559         * m4/closeout.m4: New file.
70560
70561         Module stdio-safer.
70562         * m4/stdio-safer.m4: New file.
70563
70564         Module getpass.
70565         * m4/getpass.m4: New file.
70566
70567         Module getugroups.
70568         * m4/getugroups.m4: New file.
70569
70570         Module group-member.
70571         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
70572         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
70573
70574         Module idcache.
70575         * m4/idcache.m4: New file.
70576
70577         Module userspec.
70578         * m4/userspec.m4: New file.
70579
70580         Module gettime.
70581         * m4/clock_time.m4: New file.
70582         * m4/gettime.m4: New file.
70583
70584         Module settime.
70585         * m4/settime.m4: New file.
70586
70587         Module posixtm.
70588         * m4/posixtm.m4: New file.
70589
70590         Module gethostname.
70591         * m4/gethostname.m4: New file.
70592
70593         Module canon-host.
70594         * m4/canon-host.m4: New file.
70595
70596         Module gettext.
70597         * m4/codeset.m4: New file, from gettext-0.11.5.
70598         * m4/gettext.m4: New file, from gettext-0.11.5.
70599         * m4/glibc21.m4: New file, from gettext-0.11.5.
70600         * m4/iconv.m4: New file, from gettext-0.11.5.
70601         * m4/intdiv0.m4: New file, from gettext-0.11.5.
70602         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
70603         * m4/inttypes.m4: New file, from gettext-0.11.5.
70604         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
70605         * m4/isc-posix.m4: New file, from gettext-0.11.5.
70606         * m4/lcmessage.m4: New file, from gettext-0.11.5.
70607         * m4/lib-ld.m4: New file, from gettext-0.11.5.
70608         * m4/lib-link.m4: New file, from gettext-0.11.5.
70609         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
70610         * m4/progtest.m4: New file, from gettext-0.11.5.
70611         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
70612         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
70613         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
70614
70615         Module localcharset.
70616         * m4/localcharset.m4: New file.
70617
70618         Module hard-locale.
70619         * m4/hard-locale.m4: New file.
70620
70621         Module mbswidth.
70622         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
70623         onceonly macros.
70624         * m4/mbrtowc.m4: Add comment.
70625
70626         Module memcasecmp.
70627         * m4/memcasecmp.m4: New file.
70628
70629         Module memcoll.
70630         * m4/memcoll.m4: New file.
70631
70632         Module unicodeio.
70633         * m4/unicodeio.m4: New file.
70634
70635         Module rpmatch.
70636         * m4/rpmatch.m4: New file.
70637
70638         Module yesno.
70639         * m4/yesno.m4: New file.
70640
70641         Module exitfail.
70642         * m4/exitfail.m4: New file.
70643
70644         Module c-stack.
70645         * m4/c-stack.m4 (gl_C_STACK): New macro.
70646         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
70647
70648         Module error.
70649         * m4/error.m4 (gl_ERROR): New macro.
70650         (jm_PREREQ_ERROR): Use onceonly macros.
70651
70652         Module fatal.
70653         * m4/fatal.m4: New file.
70654
70655         Module getloadavg.
70656         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
70657         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
70658
70659         Module getpagesize.
70660         * m4/getpagesize.m4: New file.
70661
70662         Module getusershell.
70663         * m4/getusershell.m4: New file.
70664
70665         Module physmem.
70666         * m4/physmem.m4: New file.
70667
70668         Module posixver.
70669         * m4/posixver.m4: New file.
70670
70671         Module quotearg.
70672         * m4/quotearg.m4: New file.
70673
70674         Module quote.
70675         * m4/quote.m4: New file.
70676
70677         Module readutmp.
70678         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
70679
70680         Module sig2str.
70681         * m4/sig2str.m4: New file.
70682
70683         Other.
70684         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
70685         ulonglong.m4.
70686         * m4/intmax_t.m4: New file.
70687         * m4/d-type.m4: Indentation.
70688         * m4/jm-macros.m4: Update.
70689         * m4/prereq.m4 (jm_PREREQ): Update.
70690         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
70691         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
70692         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
70693         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
70694         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
70695         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
70696         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
70697         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
70698         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
70699         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
70700         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
70701         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
70702         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
70703         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
70704         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
70705         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
70706         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
70707         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
70708         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
70709
70710 2002-12-24  Bruno Haible  <bruno@clisp.org>
70711
70712         * MODULES.txt: Update according to m4/ changes.
70713
70714         Module gettext.
70715         * config.rpath: New file, from gettext-0.11.5.
70716
70717         * modules/*: New module descriptions.
70718         * gnulib-tool: New file.
70719         * MODULES.html.sh: New file.
70720
70721 2002-12-21  Karl Berry  <karl@gnu.org>
70722
70723         * doc/fdl.texi: update to version 1.2.
70724
70725 2002-12-19  Karl Berry  <karl@gnu.org>
70726
70727         * config/config.guess: update from prep.
70728
70729 2002-12-18  Bruno Haible  <bruno@clisp.org>
70730
70731         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
70732         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
70733
70734 2002-12-17  Bruno Haible  <bruno@clisp.org>
70735
70736         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
70737         stdlib.h, string.h.
70738
70739 2002-12-17  Bruno Haible  <bruno@clisp.org>
70740
70741         * lib/canon-host.c (strdup): Remove unused declaration.
70742
70743         * lib/fsusage.c: Include full_read.h.
70744         (get_fs_usage): Use full_read instead of safe_read.
70745
70746         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
70747
70748 2002-12-12  Karl Berry  <karl@gnu.org>
70749
70750         * config/config.guess: update from prep.
70751
70752 2002-12-11  Bruno Haible  <bruno@clisp.org>
70753
70754         * m4/setenv.m4: New file, from gettext-0.11.5.
70755
70756 2002-12-11  Bruno Haible  <bruno@clisp.org>
70757
70758         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
70759         not unsetenv().
70760         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
70761         modifications:
70762
70763         2002-12-11  Bruno Haible  <bruno@clisp.org>
70764
70765                 * setenv.c (alloca): Fall back to malloc.
70766                 (freea): New macro.
70767                 (setenv): Use freea() to free memory allocated with alloca().
70768
70769         2002-11-13  Bruno Haible  <bruno@clisp.org>
70770
70771                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
70772                 function declarations.
70773                 * unsetenv.c (unsetenv): Likewise.
70774
70775         2002-03-04  Bruno Haible  <bruno@clisp.org>
70776
70777                 Portability to AIX 4.3.3.
70778                 * unsetenv.c: New file, extracted from setenv.c.
70779                 * setenv.c: Move the unsetenv() function to unsetenv.c.
70780
70781         2001-12-20  Bruno Haible  <bruno@clisp.org>
70782
70783                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
70784                 use malloc instead. For SunOS 4.
70785
70786         2001-12-11  Bruno Haible  <bruno@clisp.org>
70787
70788                 * setenv.c: Declare alloca.
70789                 (compar_fn_t): New typedef.
70790                 (KNOWN_VALUE, STORE_VALUE): Use it.
70791
70792         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
70793         setenv.h.
70794
70795 2002-12-10  Paul Eggert  <eggert@twinsun.com>
70796
70797         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
70798         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
70799         Choose values that are less likely to collide with system fnmatch
70800         options.
70801         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
70802         defined (e.g., a pure POSIX system).
70803         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
70804         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
70805
70806 2002-12-06  Paul Eggert  <eggert@twinsun.com>
70807
70808         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
70809         a pain in practice to deal with generated m4 files.  This change
70810         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
70811
70812         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
70813         and jm-glibc-io.m4, as they are no longer a special case.
70814         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
70815         kludge and the auto-generation stuff.  Check only whether the
70816         functions are declared, not whether they exist, since older hosts
70817         that don't declare the functions can't use the optimization anyway.
70818
70819 2002-12-06  Jim Meyering  <jim@meyering.net>
70820
70821         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
70822
70823         Merge in changes from libc's misc/error.c, in preparation
70824         for the merge of gnulib's changes back into libc.
70825
70826         * lib/error.c (_): Define only if not already defined.
70827         Move definition to follow all #include directives.
70828         Include unlocked-io.h only if !_LIBC.
70829         [_LIBC]: Include <libio/libioP.h>.
70830         [USE_IN_LIBIO]: Include <libio/iolibio.h>
70831         (fflush): Tweak definition to use INTUSE.
70832         (putc): Define.
70833
70834 2002-12-05  Paul Eggert  <eggert@twinsun.com>
70835
70836         * lib/alloca.c [defined emacs]: Include "lisp.h".
70837         (xalloc_die) [defined emacs]: New macro.
70838         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
70839         [! defined emacs]: Include <xalloc.h>.
70840         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
70841         (pointer): Typedef to POINTER_TYPE *.
70842         (malloc): Remove decl; we now always use xmalloc.
70843         (alloca): Use old-style definition, since Emacs needs this.
70844         Check for arithmetic overflow when computing combined size.
70845
70846 2002-12-04  Paul Eggert  <eggert@twinsun.com>
70847
70848         Do not generate unlocked-io.h automatically, since it's easier to
70849         maintain it by hand.
70850
70851         * lib/unlocked-io.h: New file, from GNU diffutils,
70852         but with proper copyright notice and attribution.
70853         * lib/gen-uio: Remove.
70854         * lib/Makefile.am: Add copyright notice.
70855         (libfetish_a_SOURCES): Add unlocked-io.h.
70856         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
70857         (DISTCLEANFILES, io_functions): Remove macros.
70858         (EXTRA_DIST): Remove gen_uio.
70859         (unlocked-io.h): Remove rule.
70860
70861 2002-12-04  Jim Meyering  <jim@meyering.net>
70862
70863         Reflect the fact that stat.c and lstat.c are no longer generated.
70864         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
70865         (DISTCLEANFILES): Likewise.
70866         (EXTRA_DIST): Likewise.
70867         (all_local): Don't depend on stat.c or lstat.c.
70868         (stat.c, lstat.c): Remove rules.
70869         (EXTRA_DIST): Remove xstat.in.
70870
70871         * lib/xstat.in: Remove file.  Contents moved into stat.c.
70872         * lib/stat.c: New file.  Contents mostly from xstat.in.
70873         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
70874         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
70875
70876         * lib/safe-read.c: Rework so that it may serve to define safe_write,
70877         too.
70878         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
70879
70880 2002-12-03  Jim Meyering  <jim@meyering.net>
70881
70882         * lib/safe-read.c, safe-write.c: Change variable names and comments,
70883         but not semantics, to minimize the differences between these two files.
70884         (safe_read): Change comment to mention SAFE_READ_ERROR.
70885
70886         * lib/safe-read.c (IS_EINTR): Define.
70887         (safe_read): Use IS_EINTR in place of in-function cpp directives.
70888
70889 2002-12-02  Jim Meyering  <jim@meyering.net>
70890
70891         * lib/safe-read.c (EINTR): Define.
70892         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
70893         (INT_MAX): Provide fallback.
70894         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
70895
70896         * lib/safe-read.h (SAFE_READ_ERROR): Define.
70897
70898 2002-12-02  Bruno Haible  <bruno@clisp.org>
70899
70900         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
70901         Define, taken from safe-read.c.
70902         (INT_MAX): Provide fallback.
70903         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
70904         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
70905
70906         * lib/safe-read.c (EINTR): Remove definition.
70907         (safe_read): Don't use EINTR if it is absent.
70908
70909 2002-12-01  Jim Meyering  <jim@meyering.net>
70910
70911         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
70912         zero.
70913         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
70914
70915 2002-11-27  Paul Eggert  <eggert@twinsun.com>
70916
70917         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
70918         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
70919         with `if (! (value < limit)) abort ();', for readability.
70920
70921 2002-11-26  Karl Berry  <karl@gnu.org>
70922
70923         * lib/strdup.c: copy from libc again, with jim's ok.
70924         * lib/.cppi-disable: re-add strdup.c
70925
70926 2002-11-25  Karl Berry  <karl@gnu.org>
70927
70928         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
70929         instead of "strtol.c".
70930
70931 2002-11-25  Karl Berry  <karl@gnu.org>
70932
70933         * config/install-sh: update from automake for variable quoting, $0 in
70934         error msgs, etc.
70935
70936         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
70937         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
70938         entry.
70939
70940 2002-11-25  Jim Meyering  <jim@meyering.net>
70941
70942         * lib/mktime.c: Sync from libc, now that it has the latest fix.
70943
70944 2002-11-24  Karl Berry  <karl@gnu.org>
70945
70946         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
70947         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
70948
70949 2002-11-24  Jim Meyering  <jim@meyering.net>
70950
70951         Update from coreutils:
70952
70953         * lib/mktime.c: Merge in changes from libc.
70954
70955         Avoid a link-time failure on some Linux systems.
70956         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
70957         (otherwise).
70958         (__mon_yday): Declare with the STATIC attribute.
70959         (__mktime_internal): Likewise.
70960         Based on a report from Greg Schafer.
70961
70962 2002-11-23  Jim Meyering  <jim@meyering.net>
70963
70964         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
70965         Use `unsigned', not `int', as type of index.
70966
70967         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
70968
70969         * lib/fsusage.c: Remove unneeded parentheses around operands of
70970         `defined'.
70971
70972 2002-11-22  Paul Eggert  <eggert@twinsun.com>
70973
70974         * lib/quotearg.h: Allow multiple inclusion by surrounding with
70975         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
70976         so that we can be included first.
70977         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
70978         * lib/quotearg.c: Include quotearg.h immediately after config.h.
70979         No need to include stddef.h or sys/types.h any more.
70980         Surround local include files with "", not "<>".
70981         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
70982         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
70983         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
70984         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
70985         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
70986         (ISPRINT): Remove; no longer needed now that we assume C89.
70987
70988         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
70989         Preserve errno.
70990
70991         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
70992         quotearg_char): Use SIZE_MAX rather than
70993         (size_t) -1 when we are talking about "infinity".
70994
70995         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
70996
70997 2002-11-22  Paul Eggert  <eggert@twinsun.com>
70998
70999         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
71000         hint that one should use `if (! x) abort ();' rather than `assert
71001         (x);', and anyway it's one less thing to worry about configuring.
71002         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
71003         hash_rehash, hash_insert): Use abort rather than assert.
71004
71005 2002-11-22  Bruno Haible  <bruno@clisp.org>
71006
71007         * lib/safe-read.h: Assume C89. Add comments.
71008         (safe_read): Change return type to size_t.
71009         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
71010         byte counts > SSIZE_MAX correctly.
71011         * lib/safe-write.h: New file.
71012         * lib/safe-write.c: New file.
71013         * lib/full-read.h: New file.
71014         * lib/full-read.c: New file.
71015         * lib/full-write.h: Assume C89. Add comments.
71016         * lib/full-write.c: Include safe-write.h.
71017         (full_write): Rewritten to use safe_write.
71018         Suggested by Jim Meyering and Paul Eggert.
71019
71020 2002-11-21  Jim Meyering  <jim@meyering.net>
71021
71022         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
71023
71024         Merge in changes from the coreutils.
71025
71026         2002-09-25  Paul Eggert  <eggert@twinsun.com>
71027         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
71028         <stdint.h>.
71029         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
71030         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
71031         int.  Work more efficiently if X is the same width as uintmax_t.
71032         Do not compare X to -1, to avoid bogus compiler warning.
71033         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
71034         Don't assume that f_frsize and f_bsize are the same type.
71035
71036         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
71037         warning on FreeBSD.
71038
71039         * lib/makepath.c (make_path): Restore umask *before* creating the final
71040         component.
71041         (make_path): Minor reformatting.
71042
71043         * lib/xmalloc.c: Adjust to work with new autoconf macros,
71044         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
71045         HAVE_MALLOC/HAVE_REALLOC.
71046
71047         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
71048         dummy ones.  At least on GNU/Linux systems, `auto' means something
71049         else.
71050         From Michael Stone.
71051
71052 2002-11-21  Bruno Haible  <bruno@clisp.org>
71053
71054         Remove case insensitive option matching.
71055         * lib/argmatch.h (argcasematch): Remove declaration.
71056         (ARGCASEMATCH): Remove macro.
71057         (__xargmatch_internal): Remove case_sensitive argument.
71058         (XARGMATCH): Update.
71059         (XARGCASEMATCH): Remove macro.
71060         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
71061         case_sensitive argument.
71062         (argcasematch): Remove function.
71063         (__xargmatch_internal): Remove case_sensitive argument.
71064         (main): Use XARGMATCH instead of XARGCASEMATCH.
71065
71066         * lib/xmalloc.c: Change compile-time error message. Add comment about
71067         required autoconf version.
71068
71069 2002-11-20  Paul Eggert  <eggert@twinsun.com>
71070
71071         Merge argmatch cleanups from Bison.  Assume C89.
71072
71073         * lib/argmatch.c: Include config.h here, not in argmatch.h.
71074         Include stdlib.h, for EXIT_FAILURE.
71075         Always include <string.h>, since we assume C89.
71076         (EXIT_FAILURE): Remove pre-C89 bug workaround.
71077         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
71078         Include <stddef.h> instead, since it's all we need for size_t.
71079         (PARAMS): Remove.  All uses removed.
71080         (ARRAY_CARDINALITY): Do not bother to #undef.
71081         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
71082         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
71083         Remove unnecessary parentheses.
71084         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
71085         Insert necessary parentheses.
71086         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
71087         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
71088
71089 2002-11-19  Bruno Haible  <bruno@clisp.org>
71090
71091         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
71092         * lib/mbswidth.h: Include <stddef.h>, for size_t.
71093
71094         * lib/mbswidth.h (PARAMS): Remove macro.
71095         (mbswidth, mbsnwidth): Use ANSI C function declarations.
71096         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
71097
71098         * lib/gcd.h (PARAMS): Remove macro.
71099         (gcd): Use ANSI C function declarations.
71100         * lib/gcd.c (gcd): Likewise.
71101
71102 2002-11-15  Bruno Haible  <bruno@clisp.org>
71103
71104         * lib/strcspn.c: Include <stddef.h>.
71105         (strcspn): Use ANSI C function declaration. Change return type to
71106         size_t. Use NULL.
71107         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
71108         (strpbrk): Use NULL.
71109         * lib/strpbrk.h (PARAMS): Remove macro.
71110         (strpbrk): Use ANSI C function declaration.
71111         * lib/strstr.c: Don't include <sys/types.h>.
71112         * lib/strstr.h (PARAMS): Remove macro.
71113         (strstr): Use ANSI C function declarations.
71114
71115 2002-11-14  Karl Berry  <karl@gnu.org>
71116
71117         * config/mkinstalldirs: `do' on separate line, instead of
71118         `for var; do'.
71119
71120 2002-11-06  Bruno Haible  <bruno@clisp.org>
71121
71122         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
71123         * lib/gcd.c (gcd): Likewise.
71124
71125 2002-11-05  Bruno Haible  <bruno@clisp.org>
71126
71127         * lib/gcd.h: New file, from gettext-0.11.5.
71128         * lib/gcd.c: New file, from gettext-0.11.5.
71129
71130 2002-11-05  Bruno Haible  <bruno@clisp.org>
71131
71132         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
71133         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
71134         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
71135         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
71136
71137         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
71138         <libintl.h>.
71139         * lib/makepath.c: Include gettext.h instead of <locale.h> and
71140         <libintl.h>.
71141
71142         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
71143         * lib/human.c: Include gettext.h instead of <libintl.h>.
71144         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
71145         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
71146         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
71147         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
71148         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
71149         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
71150         (textdomain): Remove definition.
71151         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
71152
71153         * lib/long-options.c: Remove include of <libintl.h> and definition of
71154         _.
71155         * lib/same.c: Remove include of <libintl.h> and definition of _.
71156
71157 2002-11-04  Owen Taylor  <otaylor@redhat.com>
71158
71159         * lib/config.charset: A few additions for Solaris.
71160
71161 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
71162
71163         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
71164         * lib/localcharset.c (locale_charset): Declare as extern "C".
71165
71166 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
71167
71168         * lib/config.charset: msdos in uk_UA uses CP1125.
71169
71170 2002-11-04  Bruno Haible  <bruno@clisp.org>
71171
71172         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
71173         * lib/strcase.h: New file, from GNU gettext-0.11.5.
71174         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
71175         * lib/strstr.h: New file, from GNU gettext-0.11.5.
71176         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
71177
71178 2002-11-04  Bruno Haible  <bruno@clisp.org>
71179
71180         * lib/localcharset.c (locale_charset): Don't return an empty string.
71181
71182 2002-11-04  Bruno Haible  <bruno@clisp.org>
71183
71184         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
71185         aliases.
71186
71187 2002-11-04  Bruno Haible  <bruno@clisp.org>
71188
71189         * lib/config.charset: Update for newest glibc. Add canonical names
71190         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
71191
71192 2002-11-04  Bruno Haible  <bruno@clisp.org>
71193
71194         * lib/config.charset: Add support for NetBSD.
71195
71196 2002-11-04  Bruno Haible  <bruno@clisp.org>
71197
71198         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
71199
71200 2002-11-01  Bruno Haible  <bruno@clisp.org>
71201
71202         * configure.in: Add AC_CONFIG_AUX_DIR call.
71203         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
71204         test/Makefile.
71205         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
71206
71207 2002-09-28  Karl Berry  <karl@gnu.org>
71208
71209         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
71210         installed automake until the next release, since changes have been
71211         made.
71212
71213 2002-09-25  Karl Berry  <karl@gnu.org>
71214
71215         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
71216         * lib/getopt*: copy from libc/posix.
71217         * lib/gettext.h: copy from gettext.
71218         * lib/.cppi-disable: add strdup.c, gettext.h.
71219
71220 2002-09-25  Karl Berry  <karl@gnu.org>
71221
71222         * config/srclist.txt: enable gettext.h check.
71223         * config/config.{guess,sub}: update from prep.
71224         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
71225                 from automake 1.6.3.
71226         See srclist*.
71227
71228 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
71229
71230         * regex.c (PATFETCH): Remove the translating fetch.
71231         (PATFETCH_RAW): Rename to PATFETCH.
71232         (set_image_of_range): New fun.
71233         (SET_RANGE_TABLE_WORK_AREA): Use it.
71234         (regex_compile): Don't translate the pattern chars so eagerly.
71235         Only do it when inserting an `exactn' bytecode or when handling
71236         a char-range.
71237         (mutually_exclusive_p): Avoid empty statement.
71238
71239 2002-07-06  Jim Meyering  <meyering@lucent.com>
71240
71241         * m4/README: Don't mention Makefile.am.in.
71242         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
71243
71244 2002-07-01  Jim Meyering  <meyering@lucent.com>
71245
71246         * lib/c-stack.c: Include sys/time.h.
71247         From Volker Borchert.
71248
71249 2002-06-26  Paul Eggert  <eggert@twinsun.com>
71250
71251         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
71252
71253 2002-06-26  Paul Eggert  <eggert@twinsun.com>
71254
71255         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
71256         New macro.  Use it uniformly instead of
71257         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
71258         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
71259         reported by Vin Shelton.
71260
71261 2002-06-22  Paul Eggert  <eggert@twinsun.com>
71262
71263         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
71264         Do not assume SA_SIGINFO behavior.
71265         Bug reported by Jim Meyering on NetBSD 1.5.2.
71266
71267 2002-06-22  Jim Meyering  <meyering@lucent.com>
71268
71269         * m4/c-stack.m4: New file, from diffutils-2.8.2.
71270         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
71271
71272         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
71273         now that configure.ac uses AC_GNU_SOURCE.
71274         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
71275         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
71276
71277         Update to latest tools.  Suggestions from Paul Eggert.
71278         * m4/stdbool.m4: New file, from diffutils-2.8.2.
71279         * m4/gnu-source.m4: Update from diffutils-2.8.2.
71280         * m4/fnmatch.m4: Likewise.
71281         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
71282         to AC_HEADER_STDBOOL
71283
71284 2002-06-22  Jim Meyering  <meyering@lucent.com>
71285
71286         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
71287         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
71288
71289 2002-06-22  Jim Meyering  <meyering@lucent.com>
71290
71291         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
71292
71293         * lib/exitfail.c, exitfail.h: Likewise.
71294         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
71295
71296         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
71297         of fnmatch.h.
71298         (EXTRA_DIST): Add fnmatch_loop.c.
71299         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
71300
71301         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
71302         * lib/fnmatch.c: Update from diffutils-2.8.2.
71303         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
71304         * lib/fnmatch.h: Remove file.
71305
71306 2002-06-21  Jim Meyering  <meyering@lucent.com>
71307
71308         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
71309         * m4/mbrtowc.m4: Likewise.
71310
71311         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
71312         * m4/mbswidth.m4: Reflect name change:
71313         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
71314         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
71315
71316         * m4/lib-link.m4: Update from gettext-0.11.2.
71317         * m4/gettext.m4: Likewise.
71318
71319         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
71320         From Alfred M. Szmidt.
71321
71322 2002-06-18  Paul Eggert  <eggert@twinsun.com>
71323
71324         * lib/file-type.h: Report an error if neither S_ISREG nor
71325         S_IFREG is defined, instead of using a test specific to glibc
71326         2.2.  This should be safe, since POSIX requires S_ISREG and
71327         Unix Version 7 had S_IFREG.  We don't need to check for
71328         <sys/types.h> since we don't use any symbols that it defines.
71329
71330 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
71331
71332         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
71333         $@-t, so that each temporary file name is unique and valid in the first
71334         8 characters, for operation under DOS.
71335
71336 2002-06-15  Paul Eggert  <eggert@twinsun.com>
71337
71338         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
71339
71340 2002-06-15  Jim Meyering  <meyering@lucent.com>
71341
71342         Work even with DJGPP 2.03, which lacks support for symlinks.
71343         From Richard Dawe.
71344         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
71345         is defined.
71346         * lib/lchown.c (S_ISLNK): Likewise.
71347
71348 2002-06-15  Jim Meyering  <meyering@lucent.com>
71349
71350         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
71351         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
71352         have been included before this file.
71353
71354 2002-06-14  Jim Meyering  <meyering@lucent.com>
71355
71356         * lib/file-type.h: Use the version from diffutils-2.8.2.
71357         * lib/file-type.c: Likewise.
71358
71359 2002-06-07  Jim Meyering  <meyering@lucent.com>
71360
71361         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
71362         They're needed at least for NetBSD 1.5.2.
71363         ($statxfs_includes): Include those same headers.
71364         ($statxfs_includes): Include sys/vfs.h if available.
71365         ($statxfs_includes): Likewise for sys/statvfs.h.
71366         Check for the following members in both structs statfs and statvfs:
71367         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
71368
71369 2002-06-01  Jim Meyering  <meyering@lucent.com>
71370
71371         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
71372         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
71373
71374 2002-05-28  Jim Meyering  <meyering@lucent.com>
71375
71376         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
71377         Reported by Volker Borchert.
71378
71379 2002-05-27  Jim Meyering  <meyering@lucent.com>
71380
71381         Fix a problem seen only on nonconforming systems whereby ls.c's
71382         use of localtime, and then of gettimeofday would cause trouble:
71383         the localtime call used to initialize rpl_gettimeofday's save
71384         mechanism would clobber ls's current local time information so
71385         that in any long listing the first file would always be listed
71386         with date 1970-01-01.  Analysis by Volker Borchert.
71387
71388         * lib/gettimeofday.c (localtime): Undefine.
71389         (rpl_localtime): New function.
71390
71391 2002-05-27  Jim Meyering  <meyering@lucent.com>
71392
71393         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
71394         localtime.
71395
71396         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
71397         use the replacement function; it wouldn't resolve at link time.
71398         Reported by Volker Borchert.
71399
71400 2002-05-22  Jim Meyering  <meyering@lucent.com>
71401
71402         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
71403         file-type.h.
71404         * lib/file-type.h: New file.
71405         * lib/file-type.c (file_type): New file/function.  Extracted from
71406         diffutils.
71407
71408 2002-04-30  Jim Meyering  <meyering@lucent.com>
71409
71410         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
71411
71412 2002-04-29  Paul Eggert  <eggert@twinsun.com>
71413
71414         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
71415
71416 2002-04-29  Paul Eggert  <eggert@twinsun.com>
71417
71418         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
71419         Do not check for alloca.h (no longer used) or stdbool.h (was never
71420         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
71421
71422 2002-04-29  Paul Eggert  <eggert@twinsun.com>
71423
71424         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
71425
71426 2002-04-29  Jim Meyering  <meyering@lucent.com>
71427
71428         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
71429         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
71430         Use AC_FUNC_STRNLEN here instead.
71431
71432         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
71433         With autoconf-2.53a, it's part of AC_PROG_CC.
71434
71435 2002-04-28  Paul Eggert  <eggert@twinsun.com>
71436
71437         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
71438         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
71439
71440 2002-04-28  Paul Eggert  <eggert@twinsun.com>
71441
71442         * lib/sig2str.h, lib/sig2str.c: New files.
71443         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
71444
71445 2002-04-28  Paul Eggert  <eggert@twinsun.com>
71446
71447         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
71448         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
71449         of 127, since 64 is the largest conceivable number for ancient
71450         nonstandard hosts.
71451         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
71452
71453 2002-04-28  Jim Meyering  <meyering@lucent.com>
71454
71455         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
71456
71457 2002-04-24  Jim Meyering  <meyering@lucent.com>
71458
71459         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
71460         (jm_PREREQ): Use it.
71461
71462         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
71463         mach/mach.h fcntl.h.
71464         Check for this function: setlocale.
71465
71466 2002-04-24  Jim Meyering  <meyering@lucent.com>
71467
71468         * lib/gettext.h: New file, from Gettext.
71469         * lib/Makefile.am (INCLUDES): Remove -I../intl.
71470         (libfetish_a_SOURCES): Add gettext.h.
71471
71472 2002-04-16  Jim Meyering  <meyering@lucent.com>
71473
71474         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
71475         ut_pid, ut_id, ut_exit.
71476
71477 2002-04-16  Jim Meyering  <meyering@lucent.com>
71478
71479         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
71480         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
71481         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
71482
71483 2002-04-12  Jim Meyering  <meyering@lucent.com>
71484
71485         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
71486         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
71487         existence of the getmntinfo function.  Needed for Darwin 5.3.
71488
71489         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
71490         This is necessary at least on Darwin 5.3.
71491
71492         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
71493         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
71494         strnlen.o in the library, and that makes some versions of ranlib
71495         object.
71496
71497 2002-04-12  Jim Meyering  <meyering@lucent.com>
71498
71499         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
71500
71501 2002-04-09  Jim Meyering  <meyering@lucent.com>
71502
71503         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
71504         to be more precise.  Rather than saying we're checking whether the
71505         function `works', say what we're testing.
71506         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
71507         Reported by Bruno Haible.
71508
71509 2002-03-10  Jim Meyering  <meyering@lucent.com>
71510
71511         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
71512         Suggestion from Santiago Vila.
71513
71514 2002-03-08  Jim Meyering  <meyering@lucent.com>
71515
71516         * lib/rename.c: Mention that this wrapper is needed also on
71517         mips-dec-ultrix4.4 systems.
71518
71519 2002-03-02  Jim Meyering  <meyering@lucent.com>
71520
71521         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
71522         not HAVE_CLOCK_SETTIME.
71523
71524 2002-02-27  Paul Eggert  <eggert@twinsun.com>
71525
71526         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
71527         Check for clock_settime.
71528
71529 2002-02-27  Paul Eggert  <eggert@twinsun.com>
71530
71531         * lib/nanosleep.h: Rename to....
71532         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
71533
71534         * lib/gettime.c: New file.
71535         * lib/settime.c: New file.
71536         * lib/stime.c: Remove.
71537
71538         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
71539         timespec.h.  Remove nanosleep.h.
71540
71541 2002-02-25  Paul Eggert  <eggert@twinsun.com>
71542
71543         * m4/acl.m4: New file.
71544         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
71545         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
71546
71547 2002-02-25  Paul Eggert  <eggert@twinsun.com>
71548
71549         * lib/acl.c, lib/acl.h: New files.
71550         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
71551
71552 2002-02-24  Jim Meyering  <meyering@lucent.com>
71553
71554         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
71555         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
71556         cause trouble.  Reported by Nelson Beebe.
71557
71558 2002-02-23  Paul Eggert  <eggert@twinsun.com>
71559
71560         * lib/path-concat.c (xpath_concat): Reorder code to pacify
71561         compilers that don't know that xalloc_die never returns.
71562
71563 2002-02-20  Jim Meyering  <meyering@lucent.com>
71564
71565         * lib/getdate.c: Regenerate using bison-1.33.
71566
71567 2002-02-17  Jim Meyering  <meyering@lucent.com>
71568
71569         * config/config.guess (main): Don't use `head -1'; it's no longer
71570         portable. Use `sed 1q' instead.
71571
71572 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
71573
71574         * m4/codeset.m4: Upgrade to gettext-0.11.
71575         * m4/gettext.m4: Upgrade to gettext-0.11.
71576         * m4/glibc21.m4: Upgrade to gettext-0.11.
71577         * m4/iconv.m4: Upgrade to gettext-0.11.
71578         * m4/isc-posix.m4: Upgrade to gettext-0.11.
71579         * m4/lcmessage.m4: Upgrade to gettext-0.11.
71580         * m4/lib-ld.m4: New file, from gettext-0.11.
71581         * m4/lib-link.m4: New file, from gettext-0.11.
71582         * m4/lib-prefix.m4: New file, from gettext-0.11.
71583         * m4/progtest.m4: Upgrade to gettext-0.11.
71584
71585 2002-02-15  Paul Eggert  <eggert@twinsun.com>
71586
71587         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
71588         (jm_PREREQ): Use it.
71589
71590 2002-02-15  Paul Eggert  <eggert@twinsun.com>
71591
71592         * lib/posixver.c, lib/posixver.h: New files.
71593         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
71594
71595 2002-02-02  Paul Eggert  <eggert@twinsun.com>
71596             Bruno Haible  <bruno@clisp.org>
71597
71598         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
71599         (fwrite_success_callback): New declaration.
71600         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
71601         print_unicode_char. Call failure callback instead of error.
71602         (fwrite_success_callback): New function.
71603         (exit_failure_callback): New function.
71604         (fallback_failure_callback): New function.
71605         (print_unicode_char): Call unicode_to_mb.
71606
71607 2002-01-26  Jim Meyering  <meyering@lucent.com>
71608
71609         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
71610         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
71611
71612 2002-01-26  Jim Meyering  <meyering@lucent.com>
71613
71614         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
71615
71616 2002-01-22  Paul Eggert  <eggert@twinsun.com>
71617
71618         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
71619
71620 2002-01-22  Jim Meyering  <meyering@lucent.com>
71621
71622         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
71623         Otherwise, some versions of automake would omit the rule that makes
71624         Makefile from Makefile.in.
71625
71626 2002-01-21  Paul Eggert  <eggert@twinsun.com>
71627
71628         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
71629         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
71630         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
71631         (memcoll): Set errno to zero if there is no error.
71632
71633         * lib/quotearg.c (quotearg_buffer_restyled):
71634         Fix bug with quoting buffers containing NUL when backslashing escapes.
71635         This bug was exposed by the other changes in this patch.
71636         (quotearg_n_options): New arg ARGSIZE.
71637         All callers changed.
71638         (quoting_options_from_style): New function.
71639         (quotearg_n_style): Use it.
71640         (quotearg_n_style_mem): New function.
71641
71642         * lib/quotearg.h (quotearg_n_style_mem): New function.
71643
71644 2002-01-19  Jim Meyering  <meyering@lucent.com>
71645
71646         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
71647         Remove useless quotes: DF_PROG="df".
71648         * m4/strnlen.m4: New file.
71649
71650 2002-01-16  Paul Eggert  <eggert@twinsun.com>
71651
71652         * lib/backupfile.c (ISDIGIT): Comment fix.
71653         * lib/getdate.y (ISDIGIT): Likewise.
71654         * lib/posixtm.c (ISDIGIT, year): Likewise.
71655         * lib/strverscmp.c (ISDIGIT): Likewise.
71656         * lib/userspec.c (ISDIGIT): Likewise.
71657
71658 2002-01-16  Jim Meyering  <meyering@lucent.com>
71659
71660         * lib/getdate.y: Add three semicolons, each just before a closing
71661         brace. Bison (as of version 1.31) no longer papers over that mistake.
71662
71663 2002-01-05  Jim Meyering  <meyering@lucent.com>
71664
71665         * lib/version-etc.c (version_etc_copyright): Update copyright year.
71666
71667 2001-12-19  Paul Eggert  <eggert@twinsun.com>
71668
71669         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
71670         not silently exit merely because the output buffer happens to
71671         have nothing pending.
71672
71673 2001-12-18  Paul Eggert  <eggert@twinsun.com>
71674
71675         See the big note in ../ChangeLog.
71676         * lib/human.c (suffixes): Prefer K to k for 1024.
71677         (generate_suffix_backwards): New function.
71678         (human_readable_inexact): Use it.
71679         * lib/xstrtol.c (__xstrtol): If there is no number but there
71680         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
71681         Accept 'K' as well as 'k'.
71682
71683 2001-12-15  Jim Meyering  <meyering@lucent.com>
71684
71685         * lib/regex.h (__restrict_arr): Update from libc.
71686
71687         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
71688         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
71689         (STREQ): Define.
71690
71691 2001-12-14  Jim Meyering  <meyering@lucent.com>
71692
71693         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
71694         Suggestion from Bruno Haible.
71695
71696 2001-12-10  Jim Meyering  <meyering@lucent.com>
71697
71698         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
71699         xrealloc, Instead, include "xalloc.h".
71700         (initbuffer): Don't cast xmalloc return value to char*.
71701         (readline): Reword comment.
71702         Don't cast xrealloc return value to char*
71703         Return NULL, not 0.
71704
71705 2001-12-09  Jim Meyering  <meyering@lucent.com>
71706
71707         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
71708         about `signed and unsigned type in conditional expression'.
71709         * lib/posixtm.c (posix_time_parse): Likewise.
71710
71711         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
71712
71713         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
71714         to avoid a pedantic warning.
71715
71716         * lib/getstr.c: Don't include assert.h.
71717         (getstr): Remove warning-evoking assertions.
71718         Return -1 if offset parameter is out of bounds.
71719         Change the type of a local from int to size_t.
71720
71721         * lib/strftime.c (my_strftime_localtime_r): Include this function
71722         definition in the `#if ! HAVE_TM_GMTOFF' block.
71723
71724         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
71725         Include xalloc.h instead.
71726
71727 2001-12-02  Jim Meyering  <meyering@lucent.com>
71728
71729         * lib/tempname.c: Don't declare getenv, thus reverting the change of
71730         2001-11-18.  It's no longer necessary, now that stdlib.h is always
71731         included.
71732
71733         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
71734         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
71735
71736 2001-11-30  Akim Demaille  <akim@epita.fr>
71737
71738         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
71739         before being defined.
71740
71741 2001-11-27  Paul Eggert  <eggert@twinsun.com>
71742
71743         * lib/quotearg.h (quotearg_n, quotearg_n_style):
71744         First arg is int, not unsigned.
71745         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
71746         (SIZE_MAX, UINT_MAX): New macros.
71747         (quotearg_n_options): Abort if N is negative.
71748         Avoid overflow check on hosts where size_t is 64 bits and int
71749         is 32 bits, as overflow is impossible there.
71750         Fix off-by-one typo that caused unnecessary reallocation.
71751
71752 2001-11-27  Jim Meyering  <meyering@lucent.com>
71753
71754         * lib/tempname.c: Merge with version from libc.
71755         * lib/regex.c: Likewise.
71756
71757         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
71758         systems for which STDC_HEADERS is 0, it was not included, resulting in
71759         a warning about an integer-to-pointer conversion problem with getenv.
71760         Reported by Volker Borchert.
71761
71762 2001-11-26  Jim Meyering  <meyering@lucent.com>
71763
71764         * lib/gtod.h: Remove file.
71765         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
71766         * lib/gettimeofday.c: Don't include gtod.h.
71767         (GTOD_init): Remove function.
71768         (rpl_gettimeofday): Do its job here instead, rather than aborting.
71769         Suggestion from Volker Borchert.
71770
71771 2001-11-23  Jim Meyering  <meyering@lucent.com>
71772
71773         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
71774         it.
71775         * lib/hash.c (struct hash_table): Define it here instead.
71776
71777 2001-11-22  Jim Meyering  <meyering@lucent.com>
71778
71779         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
71780
71781 2001-11-20  Jim Meyering  <meyering@lucent.com>
71782
71783         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
71784         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
71785
71786 2001-11-19  Jim Meyering  <meyering@lucent.com>
71787
71788         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
71789         directory.  Use "conftestXXXXXX" as the template.
71790         Suggestion from Paul Eggert.
71791
71792         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
71793         immediately, so the test doesn't mistakenly hit the max-open-files
71794         limit.
71795
71796 2001-11-18  Paul Eggert  <eggert@twinsun.com>
71797
71798         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
71799         (TEMPORARIES): New macro.
71800         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
71801         removes an artificial limitation (e.g. HP-UX 10.20, where
71802         TMP_MAX is 17576).
71803
71804 2001-11-18  Jim Meyering  <meyering@lucent.com>
71805
71806         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
71807
71808 2001-11-18  Jim Meyering  <meyering@lucent.com>
71809
71810         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
71811         on SunOS 4.
71812
71813         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
71814         files will be created before anything else.
71815
71816 2001-11-17  Paul Eggert  <eggert@twinsun.com>
71817
71818         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
71819         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
71820
71821 2001-11-17  Jim Meyering  <meyering@lucent.com>
71822
71823         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
71824         Prompted by a report from Bob Proulx.
71825
71826         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
71827         Instead, require UTILS_FUNC_MKSTEMP.
71828
71829 2001-11-17  Jim Meyering  <meyering@lucent.com>
71830
71831         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
71832         Now, that's done as part of AC_FUNC_STRTOD.
71833
71834 2001-11-17  Jim Meyering  <meyering@lucent.com>
71835
71836         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
71837         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
71838         rather than group writable.  Patch by Juan F. Codagnone.
71839
71840         * lib/readtokens.c: Remove explicit declarations of xmalloc and
71841         xrealloc, Instead, include "xalloc.h".
71842
71843         * lib/mountlist.c: Include unlocked-io.h after all system headers.
71844         Remove explicit declarations of xmalloc, xrealloc,
71845         and xstrdup.  Instead, include "xalloc.h".
71846
71847         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
71848         unlocked-io.h.
71849         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
71850         Likewise.
71851         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
71852
71853         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
71854         Reported by Padraig Brady.
71855
71856         * lib/mkstemp.c: #undef mkstemp.
71857         Include config.h.
71858         (rpl_mkstemp): Rename from mkstemp.
71859         Protoize.
71860
71861 2001-11-16  Jim Meyering  <meyering@lucent.com>
71862
71863         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
71864         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
71865         determine the amount of total physical memory, use pstat_getstatic.
71866         HPUX-11 doesn't define _SC_PHYS_PAGES.
71867         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
71868         If sysconf couldn't be used to determine the amount of available
71869         physical memory, use both pstat_getstatic and pstat_getdynamic.
71870         Based on a patch from Bob Proulx.
71871
71872 2001-11-10  Jim Meyering  <meyering@lucent.com>
71873
71874         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
71875         (jm_PREREQ): Use it.
71876
71877 2001-11-09  Jim Meyering  <meyering@lucent.com>
71878
71879         * m4/jm-macros.m4: Require autoconf-2.52f.
71880         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
71881         Use these AC_-prefixed names, not the AM_-prefixed ones.
71882
71883         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
71884
71885 2001-11-05  Jim Meyering  <meyering@lucent.com>
71886
71887         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
71888
71889 2001-11-04  Jim Meyering  <meyering@lucent.com>
71890
71891         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
71892         $DEFS.
71893
71894 2001-11-03  Jim Meyering  <meyering@lucent.com>
71895
71896         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
71897         of AC_DEFUN.
71898
71899         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
71900         know the name of the variable in the macro definition.
71901
71902 2001-11-03  Jim Meyering  <meyering@lucent.com>
71903
71904         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
71905         in argmatch_to_argument call.
71906
71907         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
71908         argument.
71909
71910         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
71911         e.g., a fault due to an attempt to free a NULL pointer.
71912
71913 2001-11-01  Jim Meyering  <meyering@lucent.com>
71914
71915         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
71916         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
71917
71918 2001-11-01  Jim Meyering  <meyering@lucent.com>
71919
71920         * lib/dirfd.c, lib/dirfd.h: New files.
71921         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
71922
71923         * lib/hash.c (hash_print) [TESTING]: Clean up.
71924
71925 2001-10-22  Paul Eggert  <eggert@twinsun.com>
71926
71927         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
71928         to avoid a warning if -Wall.
71929
71930 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
71931
71932         * README: New file
71933         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
71934         (per RMS's instructions, this is now the canonical source)
71935         * lgpl/, gpl/: New directories.
71936
71937 2001-10-21  Paul Eggert  <eggert@twinsun.com>
71938
71939         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
71940
71941 2001-10-21  Jim Meyering  <meyering@lucent.com>
71942
71943         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
71944         this code would end up calling gettext even in packages built
71945         with --disable-nls.
71946         * lib/getopt.c (_): Likewise.
71947         * lib/regex.c (_): Likewise.
71948
71949 2001-10-20  Paul Eggert  <eggert@twinsun.com>
71950
71951         * m4/error.m4 (jm_PREREQ_ERROR):
71952         Do not invoke AC_CHECK_FUNCS with strerror_r, as
71953         AC_FUNC_STRERROR_R does that.
71954         Check for strerror declaration.
71955
71956         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
71957         are supposed to have them these days.
71958         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
71959         Merge changes from latest Autoconf CVS.
71960         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
71961         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
71962         POSIX decided to standardize on the int flavor of strerror_r.
71963
71964 2001-10-20  Paul Eggert  <eggert@twinsun.com>
71965
71966         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
71967         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
71968         Use strerror_r that is only a macro, even if it is not a function.
71969         (strerror): Check for HAVE_DECL_STRERROR before declaring.
71970         (private_strerror): Use prototypes, not old-style function definition.
71971         (print_errno_message): New function.
71972         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
71973         char*-flavored one.
71974         (error_tail, error, error_at_line): Use it.
71975
71976 2001-10-11  Jim Meyering  <meyering@lucent.com>
71977
71978         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
71979         and quote_n (1, ... to avoid clobbering a buffer.
71980
71981 2001-10-05  Jim Meyering  <meyering@lucent.com>
71982
71983         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
71984         hash-pjw.h.
71985         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
71986         * lib/hash-pjw.h: New file.
71987
71988 2001-09-30  Jim Meyering  <meyering@lucent.com>
71989
71990         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
71991         `struct fsstat' has the `f_fstypename' member.
71992         Use that to define FS_TYPE, which is now used to make
71993         the getfsstat link test tighter.
71994
71995 2001-09-30  Jim Meyering  <meyering@lucent.com>
71996
71997         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
71998         Include <sys/ucred.h>, for Apple Darwin.
71999         Include sys/mount.h and sys/fs_types.h only if available.
72000         (FS_TYPE): Define.
72001         (read_filesystem_list): Use FS_TYPE.
72002
72003 2001-09-29  Paul Eggert  <eggert@twinsun.com>
72004
72005         * lib/exclude.c (excluded_filename): 0 -> false, since it's
72006         a boolean context.
72007
72008 2001-09-29  Jim Meyering  <meyering@lucent.com>
72009
72010         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
72011         [one-argument getmntent function]): Include stdio.h before mntent.h.
72012         SunOS 4.1.x needs it for the declaration of `FILE'.
72013         Patch by Volker Borchert.
72014
72015         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
72016         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
72017         sys/fs_types.h, and make the link-test for getfsstat guard #include
72018         directives with appropriate #if HAVE_*_H tests so that we can
72019         detect getfsstat on Apple Darwin1.3.7 systems.
72020         Reported by Nelson Beebe.
72021         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
72022
72023 2001-09-28  Paul Eggert  <eggert@twinsun.com>
72024
72025         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
72026         #defines strtoimax.  Also treat the other strto* functions
72027         like strtoimax.
72028
72029         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
72030         Check for strtoul and strtoumax,
72031         as those declarations are made even in the signed case.
72032         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
72033         Likewise, for strtol and strtoimax.
72034
72035 2001-09-28  Paul Eggert  <eggert@twinsun.com>
72036
72037         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
72038         #defines strtoimax.  Also treat the other strto* functions
72039         like strtoimax.
72040
72041         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
72042         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
72043         (strtoimax, strtoumax): Do not declare if already defined as a macro.
72044
72045 2001-09-26  Jim Meyering  <meyering@lucent.com>
72046
72047         Most macros in unlocked-io.h had the wrong number of arguments.
72048         * lib/gen-uio: New script.
72049         (USE_UNLOCKED_IO): Define to 1 if not already defined.
72050         * lib/unlocked-io.hin: Remove file.
72051         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
72052         rather than trying to embed it here.
72053         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
72054         Reported by Padraig Brady.
72055
72056 2001-09-25  Volker Borchert  <bt@teknon.de>
72057
72058         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
72059         `result'.
72060
72061 2001-09-24  Jim Meyering  <meyering@lucent.com>
72062
72063         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
72064
72065 2001-09-23  Jim Meyering  <meyering@lucent.com>
72066
72067         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
72068         instead of the mere test for existence of mntent.h.  The latter
72069         would get a false-positive on AIX 3.4 systems.
72070         In the outer getmntent if-block, don't die if neither of the getmntent
72071         tests succeeds.  Instead, just fall through and continue with the
72072         remaining tests.
72073
72074 2001-09-23  Jim Meyering  <meyering@lucent.com>
72075
72076         * lib/mountlist.c: Remove useless parentheses in #if directives.
72077         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
72078         the deprecated MOUNTED symbol is no longer defined in mntent.h.
72079
72080 2001-09-22  Jim Meyering  <meyering@lucent.com>
72081
72082         * m4/gettext.m4: New file.  From gettext.
72083         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
72084         * m4/progtest.m4: Likewise
72085         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
72086         * m4/glibc21.m4: Likewise.
72087
72088         * m4/libintl.m4: Remove.  No longer used.
72089
72090 2001-09-22  Jim Meyering  <meyering@lucent.com>
72091
72092         * lib/localcharset.c: Update from latest gettext.
72093         * lib/config.charset: Likewise.
72094
72095 2001-09-20  Jim Meyering  <meyering@lucent.com>
72096
72097         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
72098         strtoimax.
72099         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
72100         strtoumax.
72101
72102 2001-09-20  Jim Meyering  <meyering@lucent.com>
72103
72104         * lib/xstrtol.c (strtoimax): Guard declaration with
72105         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
72106         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
72107         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
72108         (strtoumax): Likewise, for completeness (it wasn't necessary).
72109
72110 2001-09-17  Paul Eggert  <eggert@twinsun.com>
72111
72112         * lib/strtoimax.c (HAVE_LONG_LONG):
72113         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
72114         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
72115         to work around bug in IBM C compiler.
72116
72117 2001-09-17  Jim Meyering  <meyering@lucent.com>
72118
72119         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
72120         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
72121         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
72122         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
72123         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
72124         whenever the right hand side need not be expanded by the shell.
72125
72126 2001-09-16  Paul Eggert  <eggert@twinsun.com>
72127
72128         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
72129         library.  It's not correct, as some older glibcs are buggy.
72130         fnmatch wasn't fixed until glibc 2.2.
72131
72132         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
72133         special shell magic here.
72134
72135 2001-09-16  Jim Meyering  <meyering@lucent.com>
72136
72137         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
72138         * m4/jm-macros.m4: Require it.
72139
72140 2001-09-16  Jim Meyering  <meyering@lucent.com>
72141
72142         * lib/mkdir.c: New file.
72143
72144 2001-09-15  Jim Meyering  <meyering@lucent.com>
72145
72146         * m4/jm-macros.m4: Check for help2man.
72147
72148 2001-09-11  Jim Meyering  <meyering@lucent.com>
72149
72150         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
72151         The body, by Paul Eggert, was moved here from configure.in.
72152         * m4/jm-macros.m4: Require UTILS_HOST_OS.
72153
72154 2001-09-04  Paul Eggert  <eggert@twinsun.com>
72155
72156         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
72157         (jm_PREREQ): Use it.
72158
72159 2001-09-04  Paul Eggert  <eggert@twinsun.com>
72160
72161         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
72162         Use ssize_t, not int, to store result of readlink.
72163         Check for ssize_t overflow as well as size_t overflow,
72164         as POSIX says the result of readlink is implementation-defined
72165         when ssize_t overflows.
72166         Remove unnecessary cast to char*.
72167         Use free+malloc instead of realloc, as the storage doesn't need
72168         to be preserved and it's clearer and can be more efficient that way.
72169         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
72170         * lib/xreadlink.h (xreadlink): Update prototype.
72171
72172 2001-09-04  Paul Eggert  <eggert@twinsun.com>
72173
72174         * lib/xgetcwd.c: Revert some of the previous change; intead,
72175         fix the HAVE_GETCWD_NULL code to behave more like the
72176         !HAVE_GETCWD_NULL code used to.
72177
72178         Include "xalloc.h".
72179         (xgetcwd): Do not return NULL when memory is exhausted; instead,
72180         invoke xalloc_die.
72181
72182 2001-09-03  Paul Eggert  <eggert@twinsun.com>
72183
72184         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
72185         sys/param.h, as pathmax.h includes them.
72186
72187 2001-09-03  Paul Eggert  <eggert@twinsun.com>
72188
72189         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
72190         (jm_PREREQ_XGETCWD): New macro.
72191
72192         * m4/getcwd.m4: New file.
72193
72194 2001-09-03  Paul Eggert  <eggert@twinsun.com>
72195
72196         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
72197         like the HAVE_GETCWD_NULL code.
72198         Include pathmax.h if not HAVE_GETCWD.
72199         Do not include xalloc.h.
72200         (INITIAL_BUFFER_SIZE): New symbol.
72201         Do not use xmalloc / xrealloc, since the caller is responsible for
72202         handling errors.  Preserve errno around `free' during failure.
72203         Do not overrun buffer when using getwd.
72204
72205 2001-09-03  Paul Eggert  <eggert@twinsun.com>
72206
72207         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
72208         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
72209         getcwd (NULL, 0).
72210
72211 2001-09-03  Paul Eggert  <eggert@twinsun.com>
72212
72213         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
72214         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
72215         spotted by Jim Meyering.
72216
72217 2001-09-03  Jim Meyering  <meyering@lucent.com>
72218
72219         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
72220         failure.
72221
72222 2001-09-02  Jim Meyering  <meyering@lucent.com>
72223
72224         * lib/error.c: Update from GNU libc.
72225
72226 2001-09-01  Jim Meyering  <meyering@lucent.com>
72227
72228         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
72229         Used by df.
72230
72231 2001-09-01  Jim Meyering  <meyering@lucent.com>
72232
72233         * lib/xreadlink.c: New file.
72234         * lib/xreadlink.h: New file.
72235         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
72236         xreadlink.h.
72237
72238         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
72239         doesn't conflict with sparc Solaris 7's definition in
72240         /usr/include/sys/int_types.h.
72241
72242         * lib/exclude.c: Use `""', not `<>' to #include non-system header
72243         files.
72244         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
72245         and strncasecmp as r-values.  Unixware didn't have declarations.
72246
72247 2001-08-31  Paul Eggert  <eggert@twinsun.com>
72248
72249         * lib/xstrtol.h: Add copyright notice.
72250         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
72251         LONGINT_INVALID_SUFFIX_CHAR.
72252
72253 2001-08-31  Paul Eggert  <eggert@twinsun.com>
72254
72255         * lib/xstrtol.c (strtoimax): New decl.
72256
72257 2001-08-31  Paul Eggert  <eggert@twinsun.com>
72258
72259         * lib/xgetcwd.c: Don't include pathmax.h.
72260         Include stdlib.h and unistd.h if available.
72261         Include xalloc.h.
72262         (xmalloc, xstrdup, free): Remove decls.
72263         (xgetcwd): Don't assume sizes fit in unsigned.
72264         Check for overflow when computing sizes.
72265         Simplify reallocation code.
72266
72267 2001-08-31  Paul Eggert  <eggert@twinsun.com>
72268
72269         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
72270         a directory's st_size can have an arbitrary value, so the old
72271         usage could waste an arbitrary amount of memory.  All uses
72272         changed.
72273         * lib/savedir.h: Update prototype.
72274
72275 2001-08-31  Paul Eggert  <eggert@twinsun.com>
72276
72277         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
72278
72279         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
72280         old strtoimax.c.
72281
72282         Also, make the following further changes to make this file's
72283         configuration more similar to that of strtol.c:
72284         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
72285         (strtoumax, uintmax_t, strtoull, strtol): Remove.
72286         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
72287         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
72288         changed to signed values.
72289
72290         And make the following changes as well:
72291         Fix copyright notice, as 1999 was missing.
72292         (verify): New macro.
72293         (strtoimax): Check sizes at compile-time, not run-time.
72294         Prefer strtol to strtoll if both work.
72295         (main): Remove; it was not that useful and was a pain to maintain.
72296
72297         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
72298
72299 2001-08-31  Jim Meyering  <meyering@lucent.com>
72300
72301         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
72302         Use an initial, malloc'd, buffer of length 128 rather than
72303         a statically allocated one of length 1024.
72304
72305 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72306
72307         Simplify code, partly by assuming autoconf 2.52 semantics.
72308
72309         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
72310
72311         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
72312         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
72313         All uses removed.
72314         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
72315         Move AC_REQUIRE to next-to-top level, to avoid confusion.
72316         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
72317         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
72318         jm_AC_HEADER_INTTYPES_H.
72319         * m4/jm-macros.m4 (jm_MACROS): Likewise.
72320
72321         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
72322
72323         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
72324         Quote first arg of AC_DEFUN.
72325         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
72326         since they are needed to parse the include file even if we need
72327         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
72328         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
72329         but with opposite signedness.
72330
72331 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72332
72333         Merge 'exclude' changes from tar 1.13.22.
72334         This fixes one or two unlikely storage allocation overflow bugs,
72335         but doesn't change user-visible behavior otherwise.
72336
72337 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72338
72339         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
72340         (jm_PREREQ_EXCLUDE): New macro.
72341
72342 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72343
72344         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
72345         tm to be declared.
72346
72347 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72348
72349         * lib/hash.c: Remove '2001' from copyright notice.
72350
72351 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72352
72353         * lib/full-write.h: New file.
72354         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
72355         * lib/full-write.c: Correct credits, as cccp.c no longer
72356         exists and anyway it was so heavily changed from the old cccp
72357         code as to be unrecognizable.  Include full-write.h.
72358         (full_write) Return size_t, with short writes meaning failure.
72359         All callers changed.  This fixes a bug with large buffers
72360         on 64-bit hosts.
72361         * lib/utime.c: Include full-write.h.
72362
72363 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72364
72365         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
72366         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
72367         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
72368         Include if available.
72369         (<xalloc.h>): Include
72370         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
72371         (verify): New macro.  Use it to verify that EXCLUDE macros do not
72372         collide with FNM macros.
72373         (struct patopts): New struct.
72374         (struct exclude): Use it, as exclude patterns now come with options.
72375         (new_exclude): Support above changes.
72376         (new_exclude, add_exclude_file):
72377         Initial size must now be a power of two to simplify overflow checking.
72378         (free_exclude, fnmatch_no_wildcards): New function.
72379         (excluded_filename): No longer requires options arg, as the options
72380         are determined by add_exclude.  Now returns bool, not int.
72381         (excluded_filename, add_exclude):
72382         Add support for the fancy new exclusion options.
72383         (add_exclude, add_exclude_file): Now takes int options arg.
72384         Check for arithmetic overflow when computing sizes.
72385         (add_exclude_file): xrealloc might modify errno, so don't
72386         realloc until after errno might be used.
72387
72388         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
72389         New macros.
72390         (free_exclude): New decl.
72391         (add_exclude, add_exclude_file): Now takes int options arg.
72392         (excluded_filename): No longer requires options arg, as the options
72393         are determined by add_exclude.  Now returns bool, not int.
72394
72395 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72396
72397         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
72398
72399 2001-08-27  Jim Meyering  <meyering@lucent.com>
72400
72401         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
72402
72403         * lib/version-etc.c (N_): Remove definition.
72404         Revert most of last change.
72405         Instead, simply don't mark the `Copyright...' string for translation.
72406         Based on advice from Paul Eggert.
72407
72408         * lib/strtoxmax.c: Tweak comment.
72409
72410 2001-08-26  Jim Meyering  <meyering@lucent.com>
72411
72412         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
72413
72414         * m4/xstrtoimax.m4: New file.
72415         * m4/xstrtoumax.m4: Add comments explaining why we
72416         AC_REPLACE_FUNCS(strtol).
72417
72418 2001-08-26  Jim Meyering  <meyering@lucent.com>
72419
72420         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
72421         of copyright with `%s' so translators don't get an untranslated
72422         message in 2002.
72423         (COPYRIGHT_YEAR): Define.
72424         (version_etc): Use fprintf rather than fputs.
72425         Suggestion from Ulrich Drepper.
72426
72427         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
72428
72429         * lib/strtoll.c: New file, from GNU libc.
72430         * lib/xstrtoimax.c: New file.
72431
72432         * lib/xstrtol.h: Add xstrtoimax.
72433         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
72434         * lib/strtoimax.c: New file.  Likewise, but first define
72435         STRTOUXMAX_SIGNED.
72436
72437         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
72438         ...
72439         * lib/strtoxmax.c: ... then renamed to this.
72440
72441 2001-08-18  Paul Eggert  <eggert@twinsun.com>
72442
72443         * m4/inttypes.m4: Add AC_PREREQ(2.13).
72444         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
72445         (jm_AC_TYPE_INTMAX_T): New macro.
72446         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
72447
72448         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
72449
72450         * m4/longlong.m4: Renamed from ulonglong.m4.
72451         * m4/inttypes.m4: Renamed from inttypes_h.m4.
72452         * m4/uintmax_t.m4: Removed.
72453
72454 2001-08-13  Paul Eggert  <eggert@twinsun.com>
72455
72456         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
72457         Port to Solaris 8, where 'sed' requires a space after the 'r'
72458         command, and where sh dislikes "$/".  Clean up the spacing a bit.
72459         Redirect output to $tmp just once.
72460
72461 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
72462
72463         * lib/addext.c (<errno.h>): Include.
72464         (errno): Declare if not defined.
72465         (addext): Work correctly when pathconf returns -1 and leaves
72466         errno alone because there is no limit.  Also, work even if
72467         pathconf returns a value greater than SIZE_MAX.
72468
72469 2001-08-12  Jim Meyering  <meyering@lucent.com>
72470
72471         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
72472         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
72473         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
72474         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
72475         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
72476         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
72477         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
72478         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
72479         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
72480         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
72481         utime.m4, utimes.m4, xstrtoumax.m4:
72482         Quote the first argument in each use of AC_DEFUN.
72483
72484 2001-08-12  Jim Meyering  <meyering@lucent.com>
72485
72486         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
72487         Simply `return getcwd (NULL, 0);'.
72488         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
72489         Use 1300 as initial value for length, not PATH_MAX.
72490
72491         * lib/pathmax.h: Clean up cpp syntax.
72492
72493 2001-08-12  Jim Meyering  <meyering@lucent.com>
72494
72495         * lib/gettimeofday.c: New file.
72496         * lib/gtod.h: New file.
72497         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
72498
72499 2001-08-05  Jim Meyering  <meyering@lucent.com>
72500
72501         * m4/jm-macros.m4: Require autoconf-2.52.
72502
72503 2001-08-04  Jim Meyering  <meyering@lucent.com>
72504
72505         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
72506         stmt, to get in sync with glibc.
72507
72508 2001-08-03  Paul Eggert  <eggert@twinsun.com>
72509
72510         The following changes are from gettext 0.10.39 as maintained by
72511         Bruno Haible.
72512
72513         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
72514         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
72515         with inverted sense.  All uses changed.
72516
72517         * lib/mbswidth.c: Don't include <limits.h>.
72518         Include <stdlib.h> and <string.h> unconditionally.
72519         (iswcntrl, mbsinit, ISCNTRL): New macros.
72520         (mbsnwidth): Use K&R style function declarations.
72521         Don't bother checking for MB_LEN_MAX == 1, since the compiler
72522         can optimize it when MB_CUR_MAX == 1.
72523         The width of control characters is zero, not 1.
72524
72525 2001-08-03  Paul Eggert  <eggert@twinsun.com>
72526
72527         The following changes are from gettext 0.10.39 as maintained by
72528         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
72529
72530         * m4/codeset.m4: Upgrade to serial AM1.
72531         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
72532         all uses changed.  Quote first arg of AC_DEFUN.
72533         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
72534
72535         * m4/iconv.m4: Upgrade to serial AM2.
72536         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
72537         Add --with-libconv-prefix.
72538         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
72539         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
72540         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
72541         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
72542         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
72543
72544         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
72545         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
72546         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
72547         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
72548         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
72549         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
72550         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
72551         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
72552         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
72553
72554         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
72555         string.h any more.
72556
72557         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
72558         not the default value.
72559
72560         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
72561         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
72562         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
72563         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
72564         Also check for iswcntrl, used for wcwidth fallback.
72565         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
72566         to Autoconf 2.13.
72567
72568 2001-08-03  Jim Meyering  <meyering@lucent.com>
72569
72570         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
72571         as it was in the original.  Reported by Paul Eggert.
72572
72573 2001-07-16  Jim Meyering  <meyering@lucent.com>
72574
72575         * m4/gettimeofday.m4: New file.
72576         Prompted by a report from Bernhard Baehr.
72577
72578 2001-07-15  Jim Meyering  <meyering@lucent.com>
72579
72580         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
72581         stuff. Now it's in ../Makefile.cfg.
72582
72583 2001-07-15  Jim Meyering  <meyering@lucent.com>
72584
72585         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
72586         (BUILT_SOURCES): Add unlocked-io.h.
72587         (io_functions): Define.
72588         (unlocked-io.h): New rule.
72589         (DISTCLEANFILES): Add unlocked-io.h.
72590         (all-local): Depend on unlocked-io.h, to ensure it is created.
72591
72592         * lib/unlocked-io.hin: New file
72593
72594         * lib/regex.c: Update from glibc.
72595
72596 2001-07-05  Jim Meyering  <meyering@lucent.com>
72597
72598         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
72599         recommendation.
72600         (libfetish_a_SOURCES): Put all .h files here instead.
72601         Remove a thus-exposed (better checks in automake) duplicate and
72602         two unnecessary .h files.
72603
72604 2001-07-04  Jim Meyering  <meyering@lucent.com>
72605
72606         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
72607         that generates jm-glibc-io.m4 so that it doesn't trigger any make
72608         distcheck failure.
72609
72610 2001-07-02  Jim Meyering  <meyering@lucent.com>
72611
72612         The following changes were prompted by suggestions from Bruno Haible.
72613
72614         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
72615         is now generated.
72616         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
72617         definition of EXTRA_DIST.
72618         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
72619         ensure that the generated file is created/updated whenever the list
72620         of $(unlocked_functions) is changed.
72621         (jm-glibc-io.m4): New rule.
72622         (unlocked-io.h): New rule -- currently unused.
72623
72624 2001-06-24  Jim Meyering  <meyering@lucent.com>
72625
72626         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
72627         unmatched right bracket, rather than kludging it with an extra,
72628         falsely-matching quote in a comment.  Patch by Akim Demaille.
72629
72630 2001-06-11  Jim Meyering  <meyering@lucent.com>
72631
72632         * lib/regex.c: Update from GNU libc.
72633
72634 2001-05-27  Jim Meyering  <meyering@lucent.com>
72635
72636         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
72637         Check for ut_type in struct utmp.
72638
72639 2001-05-27  Jim Meyering  <meyering@lucent.com>
72640
72641         * lib/readutmp.h (UT_TYPE): Define.
72642
72643 2001-05-24  Jim Meyering  <meyering@lucent.com>
72644
72645         * lib/argmatch.c: Include "quote.h".
72646         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
72647         quote function.  Reported by Göran Uddeborg.
72648
72649 2001-05-22  Jim Meyering  <meyering@lucent.com>
72650
72651         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
72652         now that we use the package-supplied version unconditionally.
72653         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
72654
72655 2001-05-21  Jim Meyering  <meyering@lucent.com>
72656
72657         * m4/regex.m4: Change a couple backticks to single quotes to avoid
72658         shell syntax errors.
72659
72660 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
72661
72662         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
72663
72664 2001-05-20  Paul Eggert  <eggert@twinsun.com>
72665
72666         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
72667         Don't bother to check library strftime, since
72668         we'll be using our own my_strftime function anyway.
72669         Define my_strftime instead of strftime.
72670
72671 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
72672
72673         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
72674         which is not yet declared.
72675
72676 2001-05-15  Jim Meyering  <meyering@lucent.com>
72677
72678         * m4/regex.m4: Use proper quoting so brackets appear in the test
72679         program.
72680         Reported by, and with help from, Bruno Haible.
72681
72682 2001-05-13  Jim Meyering  <meyering@lucent.com>
72683
72684         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
72685         undefined.
72686
72687 2001-05-11  Paul Eggert  <eggert@twinsun.com>
72688
72689         dirname code cleanup.  base_name now behaves more compatibly
72690         with POSIX basename when given file names that have trailing
72691         slashes, and similarly for dir_name.  Add new primitives
72692         base_len and dir_len.  Put the directory-name-related decls
72693         into dirname.h.
72694
72695         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
72696         * lib/backupfile.c (base_name): Likewise.
72697         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
72698         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
72699         * lib/makepath.c (strip_trailing_slashes): Likewise.
72700         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
72701         ISSLASH): Likewise.
72702         * lib/rename.c (strip_trailing_slashes): Likewise.
72703         * lib/same.c (base_name): Likewise.
72704         * lib/stripslash.c (ISSLASH): Likewise.
72705
72706         * lib/addext.c: Include <dirname.h> after size_t is defined.
72707         * lib/backupfile.c: Likewise.
72708
72709         * lib/addext.c (addext): Use base_len to trim redundant
72710         trailing slashes instead of doing it ourselves.
72711         But do not trim the last slash if it is not redundant.
72712
72713         * lib/backupfile.c (find_backup_file_name,
72714         max_backup_version): Use base_len instead of rolling it ourselves.
72715         Handle the case of "" and (on DOS) "C:" correctly.
72716
72717         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
72718         needed. Include <string.h>, <dirname.h>.
72719         (base_name): Allow file names ending in slashes, other than names
72720         that are all slashes.  In this case, return the basename followed
72721         by the slashes.  This is more general, and can be used in places
72722         where the original base_name purposely had an assertion failure.
72723         (base_len): New function.
72724
72725         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
72726         Do not include <assert.h>; no longer needed.
72727         Include xalloc.h.
72728         (memrchr): Remove decl.
72729         (dir_name_r): Remove.
72730         (dir_len): Renamed from dirlen.  All callers changed.
72731         Rewrite in terms of base_name, for simplicity and consistency.
72732         (dir_name): Never return NULL.  All callers changed.
72733         Do not include <stdlib.h> in test program; no longer needed.
72734         return 0; is fine for test program.
72735
72736         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
72737         New macros.
72738         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
72739
72740         * lib/path-concat.c (path_concat): Use base_len to compute
72741         base length, not strlen; this means we cannot rely on memcpy
72742         to null-terminate.
72743
72744         * lib/same.c (STREQ): Remove.
72745         (same_name): Handle the case where the basename ends in trailing '/'.
72746
72747         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
72748         a slash was stripped.  Do not strip the last slash after a
72749         file system prefix.
72750
72751 2001-05-11  Paul Eggert  <eggert@twinsun.com>
72752
72753         * lib/Makefile.am (libfetish_a_SOURCES):
72754         Add strftime.c, since we now compile it on all hosts.
72755
72756         * lib/strftime.c (my_strftime):
72757         Define to nstrftime if emacs, but only if my_strftime is not defined.
72758         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
72759         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
72760         Add one more extra argument: a nanoseconds value.
72761         All uses changed.
72762         (ns): New macro.
72763         (my_strftime function): Add %N format.
72764         (emacs_strftimeu): Renamed from emacs_strftime,
72765         with extra ut argument.
72766
72767 2001-05-09  Paul Eggert  <eggert@twinsun.com>
72768
72769         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
72770
72771 2001-04-21  Jim Meyering  <meyering@lucent.com>
72772
72773         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
72774         doesn't interfere.
72775
72776 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
72777
72778         * m4/ftruncate.m4: Check for chsize.
72779         Link with ftruncate.o unconditionally if ftruncate is missing.
72780         This was required when cross-compiling to i586-mingw32msvc.
72781
72782 2001-04-08  Jim Meyering  <meyering@lucent.com>
72783
72784         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
72785         recomputed; that's necessary when the offset spans a DST transition.
72786         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
72787
72788 2001-04-02  Jim Meyering  <meyering@lucent.com>
72789
72790         * lib/regex.h, regex.c: Update from GNU libc.
72791
72792 2001-03-24  Jim Meyering  <meyering@lucent.com>
72793
72794         * m4/jm-macros.m4: Require autoconf-2.49d.
72795
72796 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
72797
72798         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
72799
72800 2001-03-19  Paul Eggert  <eggert@twinsun.com>
72801
72802         * lib/version-etc.c (version_etc_copyright): Update to 2001.
72803
72804 2001-03-17  Jim Meyering  <meyering@lucent.com>
72805
72806         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
72807         now that the version in autoconf is equivalent.
72808         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
72809
72810         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
72811         Suggestion from Akim Demaille.
72812
72813         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
72814         (jm_PREREQ_TEMPNAME): New function.
72815
72816 2001-03-16  Paul Eggert  <eggert@twinsun.com>
72817
72818         * lib/tempname.c (uint64_t): Define to uintmax_t if
72819         not defined, and if UINT64_MAX is not defined.
72820         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
72821         Reported by John David Anglin.
72822
72823 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
72824
72825         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
72826         resolve alias if codeset is empty.
72827         * lib/config.charset (BeOS): Use wildcard syntax.
72828
72829 2001-03-13  Jim Meyering  <meyering@lucent.com>
72830
72831         * lib/path-concat.c (path_concat)
72832         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
72833         concatenating e.g., `C:' and `foo'.
72834         From Bruno Haible.
72835
72836 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
72837
72838         * lib/localcharset.c (locale_charset): Don't use
72839         setlocale(LC_CTYPE,NULL). Don't return NULL.
72840         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
72841
72842 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
72843
72844         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
72845         support for DOS/DJGPP.
72846
72847 2001-03-01  Paul Eggert  <eggert@twinsun.com>
72848
72849         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
72850         lacks mkstemp.  Compile our own tempname.c if we compile our own
72851         mkstemp.c, as mkstemp relies on tempname.
72852
72853 2001-03-01  Jim Meyering  <meyering@lucent.com>
72854
72855         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
72856         AH_VERBATIM really does output its argument verbatim.
72857
72858 2001-02-28  Paul Eggert  <eggert@twinsun.com>
72859
72860         * lib/Makefile.am (libfetish_a_SOURCES):
72861         Add dup-safer.c, fopen-safer.c.
72862         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
72863
72864         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
72865         * lib/unistd-safer.h: New files.
72866
72867 2001-02-25  Paul Eggert  <eggert@twinsun.com>
72868
72869         The mkstemp replacement is taken from glibc 2.2.2, with some
72870         portability fixes for use outside glibc, as follows:
72871
72872         * lib/tempname.c (struct_stat64): New macro.
72873         (direxists, __gen_tempname): Use it.
72874         This avoids a portability problem with Solaris 8.
72875
72876         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
72877         (<stddef.h>, <stdint.h>, <string.h>):
72878         Include only if STDC_HEADERS || _LIBC.
72879         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
72880         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
72881         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
72882         (__set_errno): Define this macro if <errno.h> doesn't.
72883         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
72884         Define these macros if <stdio.h> doesn't.
72885         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
72886         Define these macros if <sys/stat.h>
72887         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
72888         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
72889         __xstat64): Define if not _LIBC.
72890         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
72891         (__gen_tempname): Invoke gettimeofday only if
72892         HAVE_GETTIMEOFDAY || _LIBC;
72893         otherwise, fall back on plain "time".
72894         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
72895
72896         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
72897
72898         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
72899
72900 2001-02-18  Paul Eggert  <eggert@twinsun.com>
72901
72902         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
72903
72904 2001-02-17  Paul Eggert  <eggert@twinsun.com>
72905
72906         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
72907         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
72908         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
72909         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
72910
72911 2001-02-17  Paul Eggert  <eggert@twinsun.com>
72912
72913         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
72914         Remove workaround macros for hosts that have mbrtowc but not
72915         mbstate_t, as we now insist on proper declarations for both
72916         before using mbrtowc.
72917
72918 2001-02-17  Jim Meyering  <meyering@lucent.com>
72919
72920         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
72921         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
72922         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
72923         UnixWare 7.1.1.
72924
72925         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
72926         rather than AC_CACHE_VAL.
72927
72928 2001-02-17  Jim Meyering  <meyering@lucent.com>
72929
72930         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
72931         around included file name.
72932
72933         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
72934
72935         * lib/strftime.c: Update from GNU libc (the only changes were to
72936         comments).
72937
72938 2001-02-17  Jim Meyering  <meyering@lucent.com>
72939
72940         * lib/regex.c: Update from libc.
72941
72942 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
72943
72944         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
72945         clash.
72946
72947 2001-02-16  Paul Eggert  <eggert@twinsun.com>
72948
72949         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
72950         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
72951         Reported by Mark Hounschell via Paul Eggert.
72952
72953 2001-02-07  Jim Meyering  <meyering@lucent.com>
72954
72955         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
72956
72957 2001-02-05  Jim Meyering  <meyering@lucent.com>
72958
72959         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
72960         it includes the patch required for `large file' support with at least
72961         HP-UX's 10.20 /bin/cc.
72962
72963 2001-02-03  Jim Meyering  <meyering@lucent.com>
72964
72965         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
72966         AS_IF, now that it works once again (mysteriously).
72967         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
72968
72969 2001-01-30  Jim Meyering  <meyering@lucent.com>
72970
72971         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
72972         * m4/chown.m4: Rename conftestchown to conftest.chown.
72973         * m4/rename.m4: s/conftestdir/conftest.d1/ and
72974         s/conftestdir2/conftest.d2/.
72975         * m4/utimes.m4: s/conftestdata/conftest.data/
72976         Inspired by Pavel Roskin's change in autoconf.
72977
72978 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
72979
72980         * lib/config.charset: Update for FreeBSD 4.2.
72981
72982 2001-01-27  Jim Meyering  <meyering@lucent.com>
72983
72984         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
72985         a use of AS_IF.
72986         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
72987
72988 2001-01-26  Jim Meyering  <meyering@lucent.com>
72989
72990         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
72991         quotearg.c includes it.
72992
72993 2001-01-26  Jim Meyering  <meyering@lucent.com>
72994
72995         * lib/quotearg.c: Include stddef.h.
72996         * lib/quote.c: Include stddef.h.
72997         Reported by Axel Kittenberger.
72998
72999         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
73000         line in double quotes so that it evokes a better diagnostic.
73001         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
73002         Reported by Axel Kittenberger.
73003
73004 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
73005
73006         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
73007         as if it was a `charset'.
73008
73009 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
73010
73011         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
73012         has const.
73013
73014 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
73015
73016         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
73017         to avoid a warning.  Add back 'const' to inptr.
73018
73019 2001-01-20  Jim Meyering  <meyering@lucent.com>
73020
73021         Be sure that headers are checked before used in code compiled
73022         for the type checks.
73023         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
73024         In place of that, invoke jm_CHECK_ALL_TYPES.
73025         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
73026         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
73027         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
73028         The check for ssize_t was mistakenly run before the test for unistd.h.
73029
73030         The configure-time check for stdbool.h was missing.
73031         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
73032         (jm_PREREQ_HASH): New function.
73033
73034 2001-01-17  Jim Meyering  <meyering@lucent.com>
73035
73036         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
73037         for autoconf-2.49c.
73038         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
73039
73040 2001-01-16  Jim Meyering  <meyering@lucent.com>
73041
73042         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
73043         From Bruno Haible.
73044
73045 2001-01-14  Jim Meyering  <meyering@lucent.com>
73046
73047         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
73048         foo and bar.  Create conftestdir/ in the script, not in the C code.
73049         Remove directories in the script, not in the C code.
73050         Remove conftestdir{,2} before trying to create the directory.
73051         Make the entire configure script fail if the mkdir fails.
73052
73053 2001-01-14  Jim Meyering  <meyering@lucent.com>
73054
73055         * lib/rename.c: New file.  From Volker Borchert.
73056         Include stdlib.h, string.h or strings.h, and xalloc.h.
73057         Use strip_trailing_slashes rather than open-coding it.
73058
73059 2001-01-03  Paul Eggert  <eggert@twinsun.com>
73060
73061         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
73062
73063 2001-01-03  Jim Meyering  <meyering@lucent.com>
73064
73065         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
73066         of local `inptr' to avoid warning with some system declarations of
73067         iconv.
73068
73069 2001-01-02  Volker Borchert  <bt@teknon.de>
73070
73071         * m4/rename.m4: New file.
73072         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
73073
73074 2001-01-01  Jim Meyering  <meyering@lucent.com>
73075
73076         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
73077         even on systems with utmpx.h.  It's necessary for the declaration of
73078         utmp's ut_user member.  Reported by Andreas Jaeger.
73079
73080         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
73081         available. They are required for the declarations of getgrgid and
73082         getpwuid resp.
73083         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
73084         Reported by Andreas Jaeger.
73085
73086 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
73087
73088         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
73089         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
73090         so `make install' also works in VPATH builds.
73091
73092 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
73093
73094         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
73095         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
73096         can be used in subdirectories.
73097
73098 2000-12-29  Paul Eggert  <eggert@twinsun.com>
73099
73100         * lib/modechange.c: Do not assume that mode_t uses the
73101         traditional octal encoding.  E.g. "chmod 1 FOO" should set
73102         the other-execute bit of FOO even if S_IXOTH != 1.
73103
73104         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
73105         WOTH, XOTH, ALLM): New macros.
73106         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
73107          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
73108         Use them.
73109         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
73110         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
73111         (mode_compile):
73112         No need to use uintmax_t; unsigned long is long enough.
73113         Don't bother to get suffix since we don't use it.
73114
73115 2000-12-26  Jim Meyering  <meyering@lucent.com>
73116
73117         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
73118         better with autoheader.
73119
73120 2000-12-24  Jim Meyering  <meyering@lucent.com>
73121
73122         * lib/hash.c (is_prime): Return explicit boolean values.
73123         (hash_get_first): Return NULL to appease Irix5.6's 89.
73124         Reported by Nelson Beebe.
73125
73126 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
73127
73128         * lib/localcharset.c (locale_charset): Add support for Win32.
73129
73130 2000-12-18  Paul Eggert  <eggert@twinsun.com>
73131
73132         * lib/physmem.h, lib/physmem.c: New files.
73133
73134         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
73135         (noinst_HEADERS): Add physmem.h.
73136
73137         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
73138         't' for compatibility with Solaris 8 sort.
73139
73140 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
73141
73142         * lib/config.charset: Add support for BeOS.
73143
73144 2000-12-17  Jim Meyering  <meyering@lucent.com>
73145
73146         * m4/dos.m4 (jm_AC_DOS): New file and macro.
73147         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
73148
73149 2000-12-16  Jim Meyering  <meyering@lucent.com>
73150
73151         This bug had a serious impact on chown: `chown N:M FILE' (for integer
73152         N and M) would have treated it like `chown N:N FILE'.
73153
73154         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
73155
73156 2000-12-16  Jim Meyering  <meyering@lucent.com>
73157
73158         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
73159         SHELLS_FILE to a file name that's useful on djgpp systems.
73160         Include stdlib.h.
73161         (ADDITIONAL_DEFAULT_SHELLS): Define.
73162         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
73163         Based mostly on a patch from Prashant TR.
73164
73165 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
73166
73167         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
73168         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
73169         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
73170
73171 2000-12-08  Andreas Schwab  <schwab@suse.de>
73172
73173         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
73174         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
73175
73176 2000-12-07  Jim Meyering  <meyering@lucent.com>
73177
73178         * lib/stripslash.c (ISSLASH): Define.
73179         (strip_trailing_slashes): Use ISSLASH rather than comparing against
73180         `/'.
73181         From Prashant TR.
73182
73183         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
73184         (dir_name_r): Declare this function as static.
73185         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
73186         manifest itself on a name containing a mix of slashes and
73187         backslashes.
73188         Make this function work with names starting with a DOS-style
73189         drive letter and colon prefix.
73190         (dir_name): Append `.' if necessary.
73191         Based mostly on patches from Prashant TR and Eli Zaretskii.
73192
73193         * lib/dirname.h (dir_name_r): Remove prototype.
73194
73195 2000-12-06  Paul Eggert  <eggert@twinsun.com>
73196
73197         * m4/off_t-format.m4: Remove this file.
73198         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
73199
73200 2000-12-06  Jim Meyering  <meyering@lucent.com>
73201
73202         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
73203         replacement strtoull, we may well need the replacement strtoul, too.
73204         Check for declarations of strtoul and strtoull.
73205         Check for strtol.  Mainly as a cue to cause automake to include
73206         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
73207         Check for limits.h -- strtol.c needs it.
73208
73209 2000-12-05  Jim Meyering  <meyering@lucent.com>
73210
73211         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
73212
73213 2000-12-04  Jim Meyering  <meyering@lucent.com>
73214
73215         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
73216         Also include memory.h, stdlib.h, unistd.h if appropriate.
73217         Reported by Andreas Jaeger (conflicting declaration of malloc).
73218
73219 2000-12-02  Jim Meyering  <meyering@lucent.com>
73220
73221         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
73222         * m4/jm-macros.m4 (jm_MACROS): require it.
73223
73224 2000-12-02  Jim Meyering  <meyering@lucent.com>
73225
73226         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
73227
73228 2000-12-01  Paul Eggert  <eggert@twinsun.com>
73229
73230         * lib/memrchr.c: Include <config.h> before any system include file.
73231
73232 2000-11-30  Jim Meyering  <meyering@lucent.com>
73233
73234         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
73235
73236 2000-11-30  Jim Meyering  <meyering@lucent.com>
73237
73238         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
73239
73240 2000-11-29  Paul Eggert  <eggert@twinsun.com>
73241
73242         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
73243
73244 2000-11-26  Jim Meyering  <meyering@lucent.com>
73245
73246         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
73247
73248 2000-11-22  Paul Eggert  <eggert@twinsun.com>
73249
73250         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
73251         size of (size_t) -1; it's not portable.
73252
73253 2000-11-17  Jim Meyering  <meyering@lucent.com>
73254
73255         * lib/strstr.c: Update from GNU libc.
73256
73257 2000-11-17  Akim Demaille  <akim@epita.fr>
73258
73259         * lib/obstack.h: Formatting changes.
73260         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
73261         prevent type checking.
73262         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
73263         cast the value to (void *): assigning a `foo *' to a `void *'
73264         variable is valid.
73265         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
73266
73267 2000-11-16  Jim Meyering  <meyering@lucent.com>
73268
73269         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
73270
73271 2000-11-11  Jim Meyering  <meyering@lucent.com>
73272
73273         * lib/error.c: Add a couple #includes, merging from GNU libc version.
73274
73275 2000-11-10  Jim Meyering  <meyering@lucent.com>
73276
73277         * lib/obstack.h: Update from GNU libc.
73278         * lib/obstack.c: Likewise.
73279
73280 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
73281
73282         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
73283
73284 2000-11-06  Paul Eggert  <eggert@twinsun.com>
73285
73286         * lib/getusershell.c (setusershell): Use rewind rather than
73287         fseek/fseeko, to avoid configuration hassles with fseeko.
73288         Don't bother opening SHELLS_FILE if shellstream is NULL;
73289         it's not necessary.
73290
73291 2000-11-05  Jim Meyering  <meyering@lucent.com>
73292
73293         * lib/makepath.h (make_dir): Declare.
73294         * lib/makepath.c (make_dir): Remove `static' attribute.
73295         Tweak a comment.
73296
73297 2000-11-04  Jim Meyering  <meyering@lucent.com>
73298
73299         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
73300
73301 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
73302
73303         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
73304         last one in a bucket, advance to the next bucket.
73305
73306 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
73307
73308         * lib/fnmatch.c: Do not comment out all the code if we are using
73309         the GNU C library, because in some cases we are replacing buggy
73310         code in the GNU C library itself.
73311
73312 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
73313
73314         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
73315         (regex_compile): Catch bogus \(\1\).
73316
73317 2000-10-30  Paul Eggert  <eggert@twinsun.com>
73318
73319         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
73320         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
73321         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
73322
73323 2000-10-30  Paul Eggert  <eggert@twinsun.com>
73324
73325         * lib/error.h, getline.h, modechange.h:
73326         Remove "2000" from Copyright line, as the file hasn't been
73327         changed this year other than in the copyright notice.
73328
73329         * lib/xalloc.h: Add "2000" to Copyright line, as this file
73330         was changed this year.
73331
73332 2000-10-29  Jim Meyering  <meyering@lucent.com>
73333
73334         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
73335         renaming.
73336         * m4/ls-mntd-fs.m4: Likewise
73337
73338 2000-10-29  Jim Meyering  <meyering@lucent.com>
73339
73340         * lib/xstat.in: Fix grammar in comment.
73341
73342 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
73343
73344         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
73345         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
73346         doesn't define __restrict_arr.
73347
73348 2000-10-28  Jim Meyering  <meyering@lucent.com>
73349
73350         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
73351         (jm_PREREQ_MEMCHR): New function.
73352
73353 2000-10-28  Jim Meyering  <meyering@lucent.com>
73354
73355         * lib/memchr.c: Update from libc.
73356         Adjust for portability:
73357         [HAVE_STDLIB_H]: Include stdlib.h.
73358         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
73359         Undef __memchr, too.
73360         [!weak_alias]: Define __memchr to memchr.
73361
73362         * lib/regex.c: Update from libc.
73363         * lib/regex.h: Likewise.
73364         * lib/getopt1.c: Likewise.
73365         * lib/memcmp.c: Likewise.
73366
73367         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
73368         Avoid using fseek, when possible -- it's broken by design.
73369         Patch by Ulrich Drepper.
73370
73371 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
73372
73373         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
73374         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
73375         Giving in to popular pressure to shut up the compiler with casts.
73376
73377 2000-10-26  Jim Meyering  <meyering@lucent.com>
73378
73379         * lib/strftime.c: Update from libc.
73380
73381 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
73382
73383         * regex.c: More `unsigned char' -> `re_char' changes.
73384         Also change several `int' into `re_wchar_t'.
73385         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
73386         (PUSH_FAILURE_POINTER): Don't cast any more.
73387         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
73388         We want GCC to complain, since this piece of code makes
73389         re_match non-reentrant, which *should* be fixed.
73390         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
73391         (EXTEND_BUFFER): Use RETALLOC.
73392         (SET_LIST_BIT): Don't cast.
73393         (re_wchar_t): New type.
73394         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
73395         that those two functions will always properly return.
73396         (IMMEDIATE_QUIT_CHECK): Cast to void.
73397         (analyse_first): Use recursion rather than an explicit stack.
73398         (re_compile_fastmap): Can't fail anymore.
73399         (re_search_2): Don't check re_compile_fastmap for failure.
73400         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
73401         Now also sets the new value (passed in a new argument).
73402         (re_match_2_internal): Use it.
73403         Also, use a new var `reg' of type size_t when looping through regs
73404         rather than reuse the inappropriate `mcnt'.
73405
73406 2000-10-25  Jim Meyering  <meyering@lucent.com>
73407
73408         * lib/obstack.c: Update from libc.
73409
73410 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
73411
73412         * regex.c (regex_compile): Change the way of handling a range from
73413         a char less than 256 to a char not less than 256.
73414
73415 2000-10-24  Andrew Innes  <andrewi@gnu.org>
73416
73417         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
73418         NT-Emacs only.
73419         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
73420         so that re_search functions only quit when callers expect them to.
73421
73422 2000-10-23  Jim Meyering  <meyering@lucent.com>
73423
73424         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
73425         wrong.  That set_locale call must not have any side effects.
73426         From Paul Eggert.
73427
73428 2000-10-22  Jim Meyering  <meyering@lucent.com>
73429
73430         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
73431         [CYCLIC]: Remove now-unused definition.
73432
73433         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
73434         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
73435         Suggestion from Ulrich Drepper.
73436
73437 2000-10-21  Jim Meyering  <meyering@lucent.com>
73438
73439         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
73440         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
73441         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
73442
73443 2000-10-21  Jim Meyering  <meyering@lucent.com>
73444
73445         * lib/dirname.c (memrchr): Declare if necessary.
73446         (dir_name): Remove the restriction that there be no
73447         trailing slashes.  Now, this code skips past them, effectively
73448         ignoring them.
73449         [TEST_DIRNAME] (main): New unit tests.
73450
73451         * lib/memrchr.c: New file from GNU libc.
73452         Undef __memrchr, too.
73453         [!weak_alias]: Define __memrchr to memrchr.
73454         Guard weak_alias use with `#ifdef weak_alias'.
73455
73456 2000-10-21  Jim Meyering  <meyering@lucent.com>
73457
73458         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
73459         (dir_name): Use dir_name_r.
73460         * lib/dirname.h (dir_name_r): Declare it.
73461
73462 2000-10-17  Jim Meyering  <meyering@lucent.com>
73463
73464         * lib/quote.h (PARAMS): Define and use.
73465         Reported by Akim Demaille.
73466
73467         * lib/getopt.c: Update from libc.
73468
73469 2000-10-16  Jim Meyering  <meyering@lucent.com>
73470
73471         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
73472         setlocale.
73473         From Jan Fedak.
73474
73475 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
73476
73477         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
73478
73479 2000-09-25  Jim Meyering  <meyering@lucent.com>
73480
73481         * lib/md5.h (rol): Define (from GnuPG).
73482
73483         * lib/sha.c: Give credit (GnuPG) where due.
73484         (M): Use rol rather than open-coding it.
73485         Add a FIXME comment.
73486
73487 2000-09-21  Jim Meyering  <meyering@lucent.com>
73488
73489         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
73490         Reported by Michael Stone.
73491
73492 2000-09-20  Jim Meyering  <meyering@lucent.com>
73493
73494         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
73495         (noinst_HEADERS): Add sha.h.
73496         Based on code from Scott G. Miller and from GnuPG.
73497
73498 2000-09-18  Jim Meyering  <meyering@lucent.com>
73499
73500         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
73501         LIBS. Otherwise, everyone ends up linking with -lelf for some
73502         configurations.
73503         Reported by Mike Stone.
73504
73505 2000-09-15  Jim Meyering  <meyering@lucent.com>
73506
73507         * lib/regex.c: Update from libc.
73508
73509 2000-09-10  Jim Meyering  <meyering@lucent.com>
73510
73511         * lib/getopt.c (_getopt_internal): Update from glibc.
73512
73513 2000-09-09  Jim Meyering  <meyering@lucent.com>
73514
73515         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
73516         think it should be used as a general replacement for isascii.
73517         * lib/fnmatch.c: Likewise.
73518         * lib/mbswidth.c: Likewise
73519         * lib/regex.c: Likewise.
73520
73521         Don't use atoi.
73522         * lib/userspec.c: Include sys/param.h and limits.h.
73523         Include xstrtol.h.
73524         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
73525         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
73526         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
73527         UID, GID.  Check range.
73528
73529 2000-09-06  Jim Meyering  <meyering@lucent.com>
73530
73531         * lib/getopt.c (_getopt_internal): Update from glibc.
73532
73533 2000-08-30  Jim Meyering  <meyering@lucent.com>
73534
73535         * lib/strftime.c: Merge in changes from GNU libc.
73536
73537 2000-08-26  Jim Meyering  <meyering@lucent.com>
73538
73539         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
73540         * m4/fpending.m4: New file.
73541
73542 2000-08-26  Jim Meyering  <meyering@lucent.com>
73543
73544         * lib/closeout.c: Include "__fpending.h".
73545         (close_stdout_status): Return right away if there's nothing to flush.
73546
73547         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
73548         * lib/__fpending.c: New file.
73549         * lib/__fpending.h: New file.
73550
73551 2000-08-20  Jim Meyering  <meyering@lucent.com>
73552
73553         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
73554         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
73555         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
73556
73557 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
73558
73559         Improve fileutils installation on systems where running
73560         programs (like install) can't be unlinked.
73561         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
73562         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
73563
73564 2000-08-07  Paul Eggert  <eggert@twinsun.com>
73565
73566         Standardize on "memory exhausted" instead of "Memory exhausted"
73567         or "virtual memory exhausted".
73568         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
73569         "virtual memory exhausted".
73570         * lib/same.c (same_name): Invoke xalloc_die instead of printing
73571         our own message.
73572         * lib/userspec.c (parse_user_spec): Likewise.
73573         * lib/bumpalloc.h: comment fix
73574         * lib/same.c, userspec.c: Include xalloc.h.
73575
73576         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
73577         not char *const and pointing to a constant array.
73578         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
73579         (xrealloc): Comment fix.
73580
73581         * lib/userspec.c (parse_user_spec):
73582         Don't translate a message until just before returning,
73583         to avoid unnecessary translation.
73584
73585 2000-08-07  Jim Meyering  <meyering@lucent.com>
73586
73587         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
73588         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
73589         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
73590         getgroups.c, gethostname.c, getopt.h, group-member.c,
73591         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
73592         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
73593         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
73594         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
73595         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
73596         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
73597         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
73598         yesno.c: Back out Copyright date changes for each file with no change
73599         this year.  This eases coordination with other programs using the same
73600         source code modules.  From Paul Eggert.
73601
73602 2000-08-06  Paul Eggert  <eggert@twinsun.com>
73603
73604         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
73605         not char, for compatibility with glibc 2.1.3 strftime.c.
73606
73607 2000-08-03  Greg McGary  <greg@mcgary.org>
73608
73609         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
73610         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
73611         (EXTEND_BUFFER): Use them.
73612
73613 2000-08-01  Jim Meyering  <meyering@lucent.com>
73614
73615         * lib/dirname.c (ISSLASH): Define.
73616         (BACKSLASH_IS_PATH_SEPARATOR): Define.
73617         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
73618         both `\' and `/' may be use as path separators.
73619         Based on a patch from Prashant TR.
73620
73621 2000-07-31  Paul Eggert  <eggert@twinsun.com>
73622
73623         * lib/quotearg.c (quotearg_n_options): Don't make the initial
73624         slot vector a constant, since it might get modified.
73625
73626 2000-07-31  Jim Meyering  <meyering@lucent.com>
73627
73628         * lib/xmalloc.c: Use `virtual memory exhausted', not
73629         `Memory exhausted'.
73630         * lib/obstack.c (print_and_abort): Likewise.
73631
73632 2000-07-30  Paul Eggert  <eggert@twinsun.com>
73633
73634         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
73635         buffer, so that the caller can always quote one small
73636         component of a "memory exhausted" message in slot 0.
73637         From a suggestion by Jim Meyering.
73638
73639 2000-07-30  Jim Meyering  <meyering@lucent.com>
73640
73641         * lib/makepath.c (make_path): Quote the other instance, too.
73642
73643         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
73644         (STATIC_BUF_SIZE): Define.
73645         (quotearg_n_options): Use only statically allocated storage when
73646         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
73647         than STATIC_BUF_SIZE.
73648
73649 2000-07-29  Jim Meyering  <meyering@lucent.com>
73650
73651         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
73652         * lib/dirname.c (dir_name): Likewise.
73653
73654         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
73655         `/'.
73656
73657         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
73658         (dir_name): Assert that there are no trailing slashes.
73659
73660 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
73661
73662         * lib/mbswidth.h (mbswidth): Add a flags argument.
73663         (mbswidth): New declaration.
73664         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
73665         * lib/mbswidth.c (mbswidth): Add a flags argument.
73666         (mbsnwidth): New function.
73667
73668 2000-07-24  Jim Meyering  <meyering@lucent.com>
73669
73670         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
73671
73672 2000-07-23  Paul Eggert  <eggert@twinsun.com>
73673
73674         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
73675
73676 2000-07-23  Paul Eggert  <eggert@twinsun.com>
73677
73678         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
73679         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
73680         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
73681         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
73682         invoke multibyte primitives.
73683
73684 2000-07-23  Paul Eggert  <eggert@twinsun.com>
73685
73686         * lib/quotearg.c:
73687         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
73688         so that mbstate_t is always defined.
73689
73690         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
73691         be 1 in at least one GCC installation, and this configuration
73692         error is likely to be common.  Ignoring MB_LEN_MAX hurts
73693         performance on hosts that have mbrtowc but have only unibyte
73694         locales, but I assume these hosts are rare.
73695
73696 2000-07-23  Paul Eggert  <eggert@twinsun.com>
73697
73698         * lib/mbswidth.c (_XOPEN_SOURCE):
73699         Don't define; this causes problems on Solaris 7.
73700         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
73701
73702 2000-07-23  Jim Meyering  <meyering@lucent.com>
73703
73704         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
73705         too: getgrgid, getpwuid, getuid.
73706
73707 2000-07-23  Jim Meyering  <meyering@lucent.com>
73708
73709         * lib/basename.c (base_name): Add an assertion.
73710
73711 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
73712
73713         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
73714         shadow its mbsinit function.
73715
73716 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
73717
73718         * lib/mbswidth.h: New file.
73719         * lib/mbswidth.c: New file.
73720         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
73721         (noinst_HEADERS): Add mbswidth.h.
73722
73723 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
73724
73725         * lib/config.charset: Add support for FreeBSD. Improve support for
73726         HP-UX and IRIX 6.
73727
73728 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
73729
73730         * m4/mbswidth.m4: New file.
73731         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
73732
73733 2000-07-15  Jim Meyering  <meyering@lucent.com>
73734
73735         * lib/makepath.c: Include quote.h.
73736         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
73737         corresponding argument in a `quote (...)' call.
73738         Give better diagnostics.
73739
73740         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
73741         (noinst_HEADERS): Add quote.h.
73742
73743         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
73744         from tar's src/misc.c.
73745         * lib/quote.h: New file.  Prototypes for same.
73746
73747 2000-07-14  Paul Eggert  <eggert@twinsun.com>
73748
73749         From a suggestion by Bruno Haible.
73750         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
73751         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
73752         to decide whether to define the BeOS workaround macro;
73753         this adjusts to the change to AC_MBSTATE_T.
73754
73755 2000-07-14  Jim Meyering  <meyering@lucent.com>
73756
73757         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
73758         jm_AC_TYPE_UINTMAX_T.
73759
73760 2000-07-13  Paul Eggert  <eggert@twinsun.com>
73761
73762         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
73763
73764         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
73765         quotearg_buffer_restyled): Add support for
73766         clocale_quoting_style.  Undo previous change to
73767         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
73768         and "{RIGHT QUOTATION MARK}" msgids.
73769
73770 2000-07-10  Paul Eggert  <eggert@twinsun.com>
73771
73772         From a suggestion by Bruno Haible.
73773         * m4/mbstate_t.m4 (AC_MBSTATE_T):
73774         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
73775         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
73776         and mbstate_t, to a single-part test that simply defines mbstate_t.
73777         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
73778         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
73779
73780 2000-07-10  Jim Meyering  <meyering@lucent.com>
73781
73782         * m4/strerror_r.m4: Mirror the correction made in autoconf.
73783
73784         * m4/gnu-source.m4: Output to confdefs.h directly.
73785         Suggestion from Akim Demaille.
73786
73787 2000-07-09  Paul Eggert  <eggert@twinsun.com>
73788
73789         The old behavior of quoting `like this' doesn't look good with
73790         newer, ISO-style fonts.  See:
73791         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
73792
73793         Instead, quote "like this" by default.  Let the translator
73794         tailor the locale-specific quoting behavior by providing
73795         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
73796
73797         * lib/quotearg.c (N_): New macro.
73798         (gettext_default): New function.
73799         (quotearg_buffer_restyled): Use
73800         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
73801         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
73802
73803 2000-07-09  Jim Meyering  <meyering@lucent.com>
73804
73805         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
73806         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
73807
73808         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
73809         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
73810
73811 2000-07-09  Jim Meyering  <meyering@lucent.com>
73812
73813         * lib/Most files: Update copyright dates to include 2000.
73814
73815 2000-07-08  Jim Meyering  <meyering@lucent.com>
73816
73817         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
73818         if not defined.
73819         (xgethostname): Remove now-unnecessary #ifdef.
73820         Move declaration of `err' into loop where it's used.
73821
73822 2000-07-05  Paul Eggert  <eggert@twinsun.com>
73823         and Bruno Haible  <haible@clisp.cons.org>
73824
73825         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
73826         only if the test for an object-type mbstate_t fails.  This
73827         prevents us from mistakenly reporting that mbstate_t is a
73828         system object type after we "#define mbstate_t int" to work
73829         around its lack.
73830
73831 2000-07-05  Paul Eggert  <eggert@twinsun.com>
73832         and Bruno Haible  <haible@clisp.cons.org>
73833
73834         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
73835
73836 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
73837
73838         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
73839         to strerror_r.
73840         Include <ctype.h> for use of isalpha.
73841
73842 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
73843
73844         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
73845         by allocating a larger buffer. Test the gethostname return value for
73846         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
73847         returns an error and ENAMETOOLONG isn't defined.
73848
73849 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
73850
73851         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
73852         dimension.
73853
73854 2000-07-04  Jim Meyering  <meyering@lucent.com>
73855
73856         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
73857         of the deprecated AC_CHECKING.
73858
73859 2000-07-04  Jim Meyering  <meyering@lucent.com>
73860
73861         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
73862         Reported by Bruno Haible.
73863
73864 2000-07-04  Jim Meyering  <meyering@lucent.com>
73865
73866         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
73867         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
73868         lacks mbrtowc.
73869
73870 2000-07-03  Paul Eggert  <eggert@twinsun.com>
73871
73872         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
73873         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
73874
73875 2000-07-03  Paul Eggert  <eggert@twinsun.com>
73876         and Bruno Haible  <haible@clisp.cons.org>
73877
73878         * lib/quotearg.c (mbrtowc):
73879         Assign to *pwc, and return 1 only if result is nonzero.
73880         (iswprint): Use ISPRINT when substituting our own mbrtowc.
73881
73882 2000-07-03  Jim Meyering  <meyering@lucent.com>
73883
73884         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
73885
73886 2000-07-03  Jim Meyering  <meyering@lucent.com>
73887
73888         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
73889         This is necessary to get a definition of e.g., UTMP_FILE on
73890         HP-UX 10.20.
73891         From Bob Proulx.
73892
73893 2000-07-02  Jim Meyering  <meyering@lucent.com>
73894
73895         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
73896
73897         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
73898         AC_LIBOBJ(function_name).
73899         * m4/chown.m4: Likewise.
73900         * m4/fnmatch.m4: Likewise.
73901         * m4/ftruncate.m4: Likewise.
73902         * m4/getgroups.m4: Likewise.
73903         * m4/getline.m4: Likewise.
73904         * m4/group-member.m4: Likewise.
73905         * m4/jm-macros.m4: Likewise.
73906         * m4/lstat.m4: Likewise.
73907         * m4/malloc.m4: Likewise.
73908         * m4/memcmp.m4: Likewise.
73909         * m4/nanosleep.m4: Likewise.
73910         * m4/putenv.m4: Likewise.
73911         * m4/realloc.m4: Likewise.
73912         * m4/regex.m4: Likewise.
73913         * m4/stat.m4: Likewise.
73914         * m4/strftime.m4: Likewise.
73915
73916 2000-07-02  Jim Meyering  <meyering@lucent.com>
73917
73918         * lib/quotearg.c (mbstate_t): Don't define here.
73919
73920 2000-07-02  Jim Meyering  <meyering@lucent.com>
73921
73922         * lib/nanosleep.c (SIGCONT): Define if not already defined.
73923
73924 2000-07-01  Jim Meyering  <meyering@lucent.com>
73925
73926         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
73927
73928 2000-07-01  Jim Meyering  <meyering@lucent.com>
73929
73930         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
73931         problem.
73932
73933 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
73934
73935         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
73936         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
73937
73938 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
73939
73940         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
73941         per change in ../m4/ls-mntd-fs.m4.
73942         (read_filesystem_list): Ignore symbolic links.
73943
73944 2000-06-29  Jim Meyering  <meyering@lucent.com>
73945
73946         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
73947         for declaration of strcmp.
73948
73949         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
73950
73951         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
73952         Avoid warning by casting result to `char *' to remove `const'.
73953
73954 2000-06-28  Jim Meyering  <meyering@lucent.com>
73955
73956         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
73957         included by quotearg.c, for which we perform this test.  From
73958         Bruno Haible.
73959
73960 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
73961
73962         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
73963         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
73964         <utmpx.h> exists, put readutmp.o into LIBOBJS.
73965
73966 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
73967
73968         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
73969
73970 2000-06-26  Paul Eggert  <eggert@twinsun.com>
73971
73972         savedir now sets errno on failure and invokes xmalloc to get memory.
73973         Fix a couple of other minor bugs while we're at it.
73974
73975         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
73976         (NAMLEN): Remove macro.
73977         (malloc, realloc): Remove decls.
73978         (stpcpy): Likewise.
73979         ("xalloc.h"): Include.
73980         (NAME_SIZE_DEFAULT): New macro.
73981         (savedir): Use xmalloc / xrealloc to allocate memory.
73982         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
73983         Skip "" directory entries.
73984         Use strlen to calculate directory entry length, since the old method
73985         is rarely used these days and isn't worth supporting.
73986         Don't use a pointer after freeing it.
73987         Check for integer overflow when calculating allocation size.
73988         Use memcpy to copy entries, instead of stpcpy.
73989         Set errno properly when returning NULL.
73990         Check for readdir error.
73991
73992 2000-06-26  Jim Meyering  <meyering@lucent.com>
73993
73994         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
73995
73996 2000-06-25  Jim Meyering  <meyering@lucent.com>
73997
73998         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
73999         Linux header bug when _XOPEN_SOURCE is defined to 500.
74000
74001 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
74002
74003         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
74004         deficiency.
74005
74006 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
74007
74008         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
74009         Include xalloc.h.
74010         Don't include <stdlib.h>.  Don't declare malloc, realloc.
74011
74012 2000-06-24  Jim Meyering  <meyering@lucent.com>
74013
74014         * m4/strerror_r.m4: Revive this file -- to try out an experimental
74015         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
74016         for which strerror does return char*, but which lacks a conveniently
74017         accessible declaration of the function.  If the compile-test says
74018         strerror_r doesn't work, then resort to a `run'-test that works on
74019         BeOS and segfaults on DEC Unix.
74020
74021 2000-06-24  Jim Meyering  <meyering@lucent.com>
74022
74023         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
74024
74025 2000-06-23  Paul Eggert  <eggert@twinsun.com>
74026
74027         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
74028         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
74029
74030 2000-06-23  Paul Eggert  <eggert@twinsun.com>
74031
74032         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
74033         (mbrtowc, mbstate_t): Define substitutes if
74034         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
74035         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
74036         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
74037
74038 2000-06-23  Jim Meyering  <meyering@lucent.com>
74039
74040         * m4/afs.m4: Add missing AC_MSG_RESULT.
74041         Reported by Bruno Haible.
74042
74043         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
74044         Suggestion from Bruno Haible.
74045
74046 2000-06-23  Jim Meyering  <meyering@lucent.com>
74047
74048         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
74049
74050 2000-06-21  Jim Meyering  <meyering@lucent.com>
74051
74052         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
74053
74054 2000-06-21  Jim Meyering  <meyering@lucent.com>
74055
74056         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
74057         (noinst_HEADERS): Add getstr.h.
74058
74059         * lib/getline.c (getstr): Move into a separate file.
74060         * lib/getstr.c (getstr): New file, extracted from getline.c, with
74061         the following changes: new parameter, delim2; both delim[12]
74062         parameters have type `int', not `char'.  The latter would lose
74063         with 8-bit delimiters.
74064         * lib/getstr.h: New file.
74065
74066 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
74067
74068         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
74069         than 1024, return a memory chunk of least possible size, instead
74070         of size PATH_MAX + 2. In the loop, increment the size proportionally.
74071         Use free/xmalloc instead of xrealloc to avoid copying for very long
74072         paths.
74073
74074 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
74075
74076         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
74077         the empty string.
74078
74079 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
74080
74081         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
74082         address, not strdup.  Include <stdlib.h> and don't declare free().
74083
74084 2000-06-19  Jim Meyering  <meyering@lucent.com>
74085
74086         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
74087
74088 2000-06-18  Jim Meyering  <meyering@lucent.com>
74089
74090         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
74091
74092         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
74093         `checking whether...' message to be consistent with that of the
74094         lstat test.
74095
74096 2000-06-18  Jim Meyering  <meyering@lucent.com>
74097
74098         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
74099         Besides, these days every porting target provides a mkdir function.
74100
74101         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
74102         needed. (this snippet comes from src/system.h).
74103
74104 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
74105
74106         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
74107
74108 2000-06-15  Paul Eggert  <eggert@twinsun.com>
74109
74110         * lib/human.c (adjust_value): New function.
74111         (human_readable_inexact): Apply rounding style even when
74112         printing approximate values.
74113
74114 2000-06-14  Paul Eggert  <eggert@twinsun.com>
74115
74116         * lib/human.c (human_readable_inexact): Allow an input block
74117         size that is not a multiple of the output block size, and vice versa.
74118         Reported by Piergiorgio Sartor.
74119
74120 2000-06-14  Paul Eggert  <eggert@twinsun.com>
74121
74122         * lib/getdate.y (get_date): Apply relative times after time
74123         zone indicator, not before.  Reported by Todd A. Jacobs.
74124
74125 2000-06-13  Jim Meyering  <meyering@lucent.com>
74126
74127         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
74128
74129         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
74130
74131 2000-06-12  Paul Eggert  <eggert@twinsun.com>
74132
74133         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
74134
74135 2000-06-12  Jim Meyering  <meyering@lucent.com>
74136
74137         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
74138         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
74139         optional argument.
74140         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
74141         the optional argument, `lib'.
74142
74143 2000-06-08  Jim Meyering  <meyering@lucent.com>
74144
74145         * m4/largefile.m4: Remove file (now that it's part of autoconf).
74146
74147 2000-06-04  Paul Eggert  <eggert@twinsun.com>
74148
74149         Rewrite largefile configuration so that we don't need to run
74150         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
74151         AC_CANONICAL_HOST in configure.in -- jmm]
74152
74153         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
74154         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
74155         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
74156         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
74157         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
74158         All uses changed.
74159         Instead of inspecting the output of getconf, try to compile the
74160         test program without and with the macro definition.
74161         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
74162         for getconf.  Instead, check for the needed flags by compiling
74163         test programs.
74164
74165 2000-06-04  Paul Eggert  <eggert@twinsun.com>
74166
74167         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
74168
74169 2000-06-04  Jim Meyering  <meyering@lucent.com>
74170
74171         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
74172         SunOS 4.1.4 for which gid_t is an unsigned type.
74173
74174 2000-06-03  Jim Meyering  <meyering@lucent.com>
74175
74176         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
74177         now that autoconf requires that.
74178
74179         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
74180         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
74181         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
74182
74183 2000-06-03  Jim Meyering  <meyering@lucent.com>
74184
74185         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
74186
74187 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
74188
74189         * m4/glibc21.m4: New file.
74190         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
74191
74192 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
74193
74194         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
74195         newer, don't install charset.alias.
74196         * lib/config.charset: Change the Linux/glibc rules so they become empty
74197         on glibc-2.1 or newer.
74198
74199 2000-06-02  Jim Meyering  <meyering@lucent.com>
74200
74201         * lib/mountlist.c: Back out last change.  Instead, do this...
74202         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
74203         me_dummy member using the same `ignore'-testing code.
74204         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
74205         fs_type strings.
74206         From Mark D. Roth.
74207
74208 2000-05-29  Jim Meyering  <meyering@lucent.com>
74209
74210         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
74211         mounts with the `ignore' attribute.  Based on a patch from
74212         Mark D. Roth.
74213
74214 2000-05-28  Jim Meyering  <meyering@lucent.com>
74215
74216         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
74217         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74218         * m4/stat.m4: Likewise.
74219         * m4/lstat.m4: Likewise.
74220         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
74221
74222         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
74223         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
74224
74225 2000-05-26  Jim Meyering  <meyering@lucent.com>
74226
74227         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
74228
74229 2000-05-24  Jim Meyering  <meyering@lucent.com>
74230
74231         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
74232         autoconf requires that.
74233         * m4/lib-check.m4: Likewise.
74234         * m4/jm-macros.m4: Likewise.
74235         * m4/strftime.m4: Likewise.
74236
74237         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
74238         AC_CHECK_DECLS, now that autoconf requires that.
74239
74240 2000-05-22  Jim Meyering  <meyering@lucent.com>
74241
74242         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74243         * m4/lstat.m4: Likewise.
74244
74245 2000-05-22  Jim Meyering  <meyering@lucent.com>
74246
74247         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
74248
74249 2000-05-20  Jim Meyering  <meyering@lucent.com>
74250
74251         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
74252         (jm_PREREQ): Use it.
74253
74254 2000-05-18  Jim Meyering  <meyering@lucent.com>
74255
74256         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
74257         back, too, since it may have been modified by allocate_entry.
74258         (hash_delete): Rewrite to use neither the assignment operator
74259         nor the comma operator in an if-expression.
74260
74261 2000-05-15  Paul Eggert  <eggert@twinsun.com>
74262
74263         * lib/closeout.c:
74264         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
74265         Remove; no longer needed.
74266         "quotearg.h": Add include.
74267         (file_name): Do not bother to explicitly initialize to NULL; it's less
74268         efficient on some hosts.
74269         (close_stdout_status): Remove test as to whether stdout was already
74270         closed; it breaks for the case "echo x | sort >&-".
74271         Quote file name colons.
74272         Do not assume that _("write error") lacks format strings.
74273
74274 2000-05-15  Jim Meyering  <meyering@lucent.com>
74275
74276         * lib/version-etc.c (version_etc_copyright): Update the copyright
74277         string used in all --version output.
74278
74279 2000-05-14  Jim Meyering  <meyering@lucent.com>
74280
74281         * lib/closeout.c (close_stdout_set_file_name): New function.
74282         (close_stdout_status): Use new file-scoped global.
74283         Return right away if fstat says the stdout file descriptor is invalid.
74284         * lib/closeout.h (close_stdout_set_file_name): Declare.
74285
74286 2000-05-10  Jim Meyering  <meyering@lucent.com>
74287
74288         * lib/closeout.c [default_exit_status]: New file-scoped variable.
74289         (close_stdout_set_status): New function.
74290         * lib/closeout.h (close_stdout_set_status): Declare.
74291
74292 2000-05-09  Jim Meyering  <meyering@lucent.com>
74293
74294         * m4/gettext.m4: Rename this...
74295         * m4/libintl.m4: ...to this.
74296
74297 2000-05-08  Jim Meyering  <meyering@lucent.com>
74298
74299         * lib/long-options.c: Don't include closeout.h.
74300         (parse_long_options): Don't call close_stdout for --version.
74301
74302 2000-05-06  Paul Eggert  <eggert@twinsun.com>
74303
74304         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
74305         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
74306         2.1.3 bug.  This avoids a clash when files like regex.c define
74307         _GNU_SOURCE.
74308
74309 2000-05-06  Jim Meyering  <meyering@lucent.com>
74310
74311         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
74312         (AC_REPLACE_FUNCS): Add strnlen.
74313
74314         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
74315         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
74316
74317         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
74318         AC_SEARCH_LIBS call for nanosleep.
74319         (LIB_NANOSLEEP): Set and AC_SUBST.
74320
74321 2000-05-06  Jim Meyering  <meyering@lucent.com>
74322
74323         * lib/strnlen.c: Undefine __strnlen and strnlen.
74324         [!weak_alias]: Define __strnlen to strnlen.
74325
74326         * lib/atexit.c: New file, from libiberty.
74327
74328 2000-05-06  Jim Meyering  <meyering@lucent.com>
74329
74330         * lib/closeout.c (close_stdout_status): Also check for errors on the
74331         stderr stream.
74332
74333 2000-05-05  Jim Meyering  <meyering@lucent.com>
74334
74335         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
74336         AC_SEARCH_LIBS call for clock_gettime.
74337         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
74338
74339         * m4/search-libs.m4: Update from autoconf.
74340
74341         su doesn't work on Solaris 2.6.
74342         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
74343         <shadow.h>.  Reported by Dragos Harabor.
74344
74345 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
74346
74347         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
74348         memcpy instead of xmalloc, xrealloc, path_concat.
74349         (locale_charset): Treat empty environment variables as absent.
74350         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
74351
74352 2000-05-04  Jim Meyering  <meyering@lucent.com>
74353
74354         * lib/getopt.c: Update from glibc.
74355         * lib/obstack.c: Likewise.
74356         * lib/obstack.h: Likewise.
74357         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
74358         file
74359
74360         * lib/regex.h: Likewise.
74361         * lib/strndup.c: Likewise.
74362         * lib/strnlen.c: New file, from glibc.
74363
74364 2000-05-03  Jim Meyering  <meyering@lucent.com>
74365
74366         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
74367
74368 2000-05-02  Paul Eggert  <eggert@twinsun.com>
74369
74370         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
74371         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
74372         compile-time test, rather than inspecting host and OS, to
74373         decide whether to define _LARGEFILE_SOURCE.
74374
74375 2000-05-01  Jim Meyering  <meyering@lucent.com>
74376
74377         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
74378
74379         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
74380         Based on a patch from Bruno Haible.
74381
74382 2000-05-01  Jim Meyering  <meyering@lucent.com>
74383
74384         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
74385
74386 2000-04-29  Jim Meyering  <meyering@lucent.com>
74387
74388         * lib/path-concat.c: Declare strdup only if it's not defined.
74389         * lib/canon-host.c: Likewise.
74390
74391 2000-04-28  Jim Meyering  <meyering@lucent.com>
74392
74393         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
74394         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
74395         is included first, then limits.h is included by locale.h by libintl.h.
74396         From John David Anglin.
74397
74398 2000-04-25  Jim Meyering  <meyering@lucent.com>
74399
74400         * lib/makepath.c (S_IRWXUGO): Define.
74401         (make_path): Always perform explicit chmod if MODE specifies any
74402         of the `special' permission bits.  Prompted by a bug report against
74403         install from Mate Wierdl and Joost van Baal.
74404
74405 2000-04-18  Jim Meyering  <meyering@lucent.com>
74406
74407         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
74408         (jm_PREREQ): Use it.
74409
74410 2000-04-18  Jim Meyering  <meyering@lucent.com>
74411
74412         * lib/README: New file.
74413
74414         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
74415         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
74416
74417 2000-04-17  Jim Meyering  <meyering@lucent.com>
74418
74419         Get it right :-)
74420         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
74421         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
74422         Suggestion from Akim Demaille.
74423
74424 2000-04-17  Jim Meyering  <meyering@lucent.com>
74425
74426         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
74427         the definition of it to rpl_strftime also defined-away the system's
74428         declaration.
74429
74430 2000-04-15  Jim Meyering  <meyering@lucent.com>
74431
74432         Use `C' to denote so-called `contiguous' files, the same way
74433         that tar does.
74434         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
74435         (ftypelet): Use S_ISCTG.
74436         From Michael Deutschmann.
74437
74438 2000-04-14  Jim Meyering  <meyering@lucent.com>
74439
74440         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
74441         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
74442         clobbered.
74443
74444 2000-04-14  Jim Meyering  <meyering@lucent.com>
74445
74446         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
74447
74448 2000-04-13  Jim Meyering  <meyering@lucent.com>
74449
74450         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
74451         AH_VERBATIM to insert required #ifndef into config.h.in.
74452         Suggestion from Akim Demaille.
74453
74454 2000-04-12  Jim Meyering  <meyering@lucent.com>
74455
74456         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
74457         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
74458         Christian Krackowizer.
74459
74460         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
74461         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
74462         (AC_SYS_LARGEFILE): Require.
74463         (AM_C_PROTOTYPES): Require.
74464
74465 2000-04-08  Jim Meyering  <meyering@lucent.com>
74466
74467         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
74468         names don't conflict.  Reported by Eli Zaretskii.
74469
74470 2000-04-07  Jim Meyering  <meyering@lucent.com>
74471
74472         * lib/putenv.c: Move inclusion of errno.h so it follows that of
74473         sys/types.h, to work around system header problems on AIX 3.2.5.
74474         From Bruno Haible.
74475
74476 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
74477
74478         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
74479         bug.  Deal with the different error behavior of Irix iconv.
74480
74481 2000-04-05  Paul Eggert  <eggert@twinsun.com>
74482
74483         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
74484         IRIX if the installer said otherwise.
74485
74486 2000-04-05  Jim Meyering  <meyering@lucent.com>
74487
74488         Portability tweaks required for ultrix4.3.
74489         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
74490         (jm_CHECK_DECLS): Add getutent to the list of functions.
74491         (_jm_DECL_HEADERS): Add utmpx.h.
74492         From John David Anglin.
74493
74494         * m4/strftime.m4: Back out the 2000-04-02 change.
74495         Instead of that change, simply undefine putenv in the test program.
74496
74497 2000-04-05  Jim Meyering  <meyering@lucent.com>
74498
74499         Portability tweaks required for ultrix4.3.
74500         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
74501         getutent.
74502         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
74503         * lib/canon-host.c: Declare strdup.
74504         * lib/path-concat.c: Likewise.
74505         From John David Anglin.
74506
74507 2000-04-04  Jim Meyering  <meyering@lucent.com>
74508
74509         Be more DOS 8.3-friendly.
74510         * lib/ref-add.sin: Renamed from ref-add.sed.in.
74511         * lib/ref-del.sin: Renamed from ref-del.sed.in.
74512         * lib/Makefile.am: Reflect renaming.
74513         Reported by Eli Zaretskii.
74514
74515         Use a temporary file name that won't clash with `charset.alias'
74516         in the DOS 8.3 name space.
74517         * lib/Makefile.am (charset_tmp): Define.
74518         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
74519         (uninstall-local): Likewise.
74520         Reported by Eli Zaretskii.
74521
74522 2000-04-03  Jim Meyering  <meyering@lucent.com>
74523
74524         * m4/gettext.m4: Fix typo in comment.
74525
74526         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
74527         textutils/configure.in).  Suggestion from Paul Eggert.
74528         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
74529
74530 2000-04-02  Paul Eggert  <eggert@twinsun.com>
74531
74532         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
74533         variable in the shell rather than using putenv, which isn't
74534         portable.  This avoids the configure-time inter-test dependency
74535         on the potentially-renamed putenv function.
74536
74537 2000-03-30  Paul Eggert  <eggert@twinsun.com>
74538
74539         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
74540         before checking struct stat.st_blksize, so that
74541         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
74542
74543 2000-03-29  Paul Eggert  <eggert@twinsun.com>
74544
74545         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
74546         since strftime.c uses HAVE_STRFTIME to decide whether to use
74547         the underlying strftime.
74548
74549 2000-03-29  Paul Eggert  <eggert@twinsun.com>
74550
74551         * lib/time/strftime.c (my_strftime): Make sure we call the system
74552         strftime, not ourselves, when invoking the underlying strftime.
74553
74554 2000-03-24  Jim Meyering  <meyering@lucent.com>
74555
74556         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
74557         (charset_alias): Define.
74558         (install-exec-local): Factor out common code.
74559         (uninstall-local): Split lines longer than 80.
74560         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
74561         (SUFFIXES): Define.
74562         (.sed.in.sed): New rule.  Don't redirect directly to $@.
74563         (CLEANFILES): Add ref-add.sed and ref-del.sed.
74564
74565 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
74566
74567         * lib/config.charset: Output a line containing "Packages using this
74568         file".
74569         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
74570         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
74571         ref-del.sed): New rules.
74572
74573 2000-03-17  Jim Meyering  <meyering@lucent.com>
74574
74575         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
74576         Otherwise, include <strings.h>
74577
74578 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
74579
74580         * lib/unicodeio.c (utf8_wctomb): New function.
74581         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
74582         format instead of in UCS-4 with platform dependent endianness.
74583
74584 2000-03-10  Jim Meyering  <meyering@lucent.com>
74585
74586         * m4/lib-check.m4: Look for getspnam in -lgen, too.
74587         From Marco Franzen.
74588
74589 2000-03-07  Paul Eggert  <eggert@twinsun.com>
74590
74591         * lib/savedir.c (savedir): Work even if directory size is
74592         negative; this can happen with some screwy NFS configurations.
74593
74594 2000-03-06  Jim Meyering  <meyering@lucent.com>
74595
74596         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
74597         if it's NULL (because we ran out of memory).  From Bruno Haible.
74598
74599 2000-03-05  Jim Meyering  <meyering@lucent.com>
74600
74601         * lib/localcharset.c ("path-concat.h"): Include.
74602         (get_charset_aliases): Use path_concat instead of ANSI string
74603         concatenation.
74604
74605         * lib/unicodeio.h (PARAMS): Define.
74606         Use it to guard prototype.
74607
74608 2000-03-04  Jim Meyering  <meyering@lucent.com>
74609
74610         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
74611         for lib/localcharset.c.
74612
74613 2000-03-04  Jim Meyering  <meyering@lucent.com>
74614
74615         * lib/Makefile.am (install-exec-local): Create $(libdir) before
74616         installing into it.
74617         (uninstall-local): Uncomment this rule so `make distcheck' works
74618         once again.
74619
74620         * lib/unicodeio.c (<errno.h>): Include it.
74621         (errno): Declare if not defined.
74622
74623         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
74624
74625         * lib/config.charset: New version, incorporating remarks from a linux
74626         i18n mailing list.  From Bruno Haible.
74627
74628 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
74629
74630         * m4/codeset.m4: New file.
74631         * m4/iconv.m4: New file.
74632         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
74633
74634 2000-03-03  Jim Meyering  <meyering@lucent.com>
74635
74636         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
74637
74638 2000-03-02  Jim Meyering  <meyering@lucent.com>
74639
74640         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
74641         the messages come out on separate lines.
74642
74643         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
74644         rather than jm_CHECK_DECLARATIONS.
74645         * m4/decl.m4: Remove now-unused file.
74646
74647         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
74648         geteuid.
74649
74650 2000-03-02  Jim Meyering  <meyering@lucent.com>
74651
74652         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
74653
74654 2000-03-01  Jim Meyering  <meyering@lucent.com>
74655
74656         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
74657         * lib/unicodeio.c: Likewise.
74658
74659 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
74660
74661         * lib/config.charset: New file.
74662         * lib/localcharset.c: New file.
74663         * lib/unicodeio.h, lib/unicodeio.c: New files.
74664         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
74665         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
74666         (noinst_HEADERS): Add unicodeio.h.
74667         (all-local, install-exec-local, charset.alias): New targets.
74668
74669 2000-02-28  Paul Eggert  <eggert@twinsun.com>
74670
74671         * lib/quotearg.c (ALERT_CHAR): New macro.
74672         (quotearg_buffer_restyled): Use it.
74673
74674 2000-02-27  Jim Meyering  <meyering@lucent.com>
74675
74676         * m4/check-decl.m4: Add getenv to the list.
74677
74678 2000-02-27  Jim Meyering  <meyering@lucent.com>
74679
74680         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
74681         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
74682
74683         * lib/backupfile.c: Guard inclusion of stdlib.h with
74684         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
74685         Declare malloc if needed.
74686
74687         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
74688         `#ifndef HAVE_DECL..'
74689         now that autoconf always defines the HAVE_DECL_ symbols.
74690         * lib/human.c: Likewise.
74691         * lib/same.c: Likewise.
74692         * lib/strtoumax.c: Likewise.
74693
74694         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
74695         declaration check was not run.
74696         * lib/hash.c: Likewise.
74697         * lib/human.c: Likewise.
74698         * lib/same.c: Likewise.
74699         * lib/strtoumax.c: Likewise.
74700
74701         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
74702         `.', then first look up the entire `.'-containing string as a login
74703         name.
74704
74705 2000-02-23  Jim Meyering  <meyering@lucent.com>
74706
74707         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
74708         in place of my hack.
74709
74710 2000-02-18  Paul Eggert  <eggert@twinsun.com>
74711
74712         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
74713         (textint): New typedef.
74714         (parser_control): Member year changed from int to textint.
74715         All uses changed.
74716         (YYSTYPE): Removed; replaced by %union with int and textint members.
74717         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
74718         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
74719         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
74720         (tSNUMBER, tUNUMBER): Now of type <textintval>.
74721         (date, number, to_year): Use width of number in digits, not its value,
74722         to determine whether it's a 2-digit year, or a 2-digit time.
74723         (yylex): Store number of digits of numeric tokens.
74724         Reported by John Kendall.
74725
74726         (parser_control): Changed from struct parser_control to typedef (for
74727         consistency).  All uses changed.
74728
74729         (tID): Removed; not used.
74730         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
74731
74732 2000-02-14  Paul Eggert  <eggert@twinsun.com>
74733
74734         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
74735         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
74736
74737 2000-02-12  Jim Meyering  <meyering@lucent.com>
74738
74739         * lib/userspec.c (ISDIGIT): Define it.
74740         (isdigit): Remove definition.
74741         (is_number): Use ISDIGIT, not isdigit.
74742         <libintl.h>: Include.
74743         (_ and N_): Define.
74744         (parse_user_spec): Mark translatable strings.
74745
74746 2000-02-10  Jim Meyering  <meyering@lucent.com>
74747
74748         With these changes, nanosleep.[ch] are finally enough like the other
74749         lib/* replacement files to compile on a few more losing systems.
74750
74751         * lib/nanosleep.h: Don't include config.h.
74752         Remove prototype from declaration of nanosleep.
74753         (PARAMS): Remove now-unneeded definition.
74754         * lib/nanosleep.c: #undef nanosleep.
74755         (rpl_nanosleep): Rename from nanosleep.
74756
74757 2000-02-10  Jim Meyering  <meyering@lucent.com>
74758
74759         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
74760         gnu_nanosleep to rpl_nanosleep.
74761
74762 2000-02-09  Jim Meyering  <meyering@lucent.com>
74763
74764         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
74765         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
74766
74767 2000-02-08  Akim Demaille  <akim@epita.fr>
74768
74769         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
74770         `[' and `]' and remove uses of `changequote'.
74771         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
74772         (AC_SYS_LARGEFILE): Likewise.
74773         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
74774         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
74775         of changequote.
74776         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
74777         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
74778         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
74779         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
74780
74781 2000-02-05  Jim Meyering  <meyering@lucent.com>
74782
74783         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
74784         Remove explicit use of AC_HEADER_TIME.  It is required by
74785         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
74786         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
74787         in autoconf whereby the expansion of the latter ended up preceding
74788         the expansion of its prerequisite, AC_HEADER_TIME.
74789         Reported by Volker Borchert.
74790
74791 2000-02-03  Jim Meyering  <meyering@lucent.com>
74792
74793         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
74794
74795 2000-02-03  Jim Meyering  <meyering@lucent.com>
74796
74797         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
74798         rather than with `#if HAVE_UTMPNAME'.
74799
74800 2000-02-02  Jim Meyering  <meyering@lucent.com>
74801
74802         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
74803         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
74804         Reported by Eli Zaretskii.
74805
74806 2000-02-01  Jim Meyering  <meyering@lucent.com>
74807
74808         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
74809
74810 2000-01-31  Jim Meyering  <meyering@lucent.com>
74811
74812         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
74813         functions.  Add the time.h and sys/time.h headers along with the
74814         AC_REQUIRE'ment of AC_HEADER_TIME.
74815
74816 2000-01-31  Jim Meyering  <meyering@lucent.com>
74817
74818         * lib/nanosleep.h (nanosleep): Guard declaration with
74819         `#if ! HAVE_DECL_NANOSLEEP'.
74820         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
74821         the declaration in that vendor's sys/timers.h.
74822         Reported by Christian Krackowizer.
74823
74824         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
74825         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
74826         (ISPRINT): Likewise.
74827         Reported by Tom Tromey.
74828
74829 2000-01-30  Jim Meyering  <meyering@lucent.com>
74830
74831         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
74832
74833         * m4/prereq.m4 (utmp_includes): Define.
74834         Check for ut_user and ut_name members in both struct utmpx
74835         and struct utmp.
74836
74837 2000-01-30  Jim Meyering  <meyering@lucent.com>
74838
74839         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
74840         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
74841         header files where only utmpx.ut_user is declared.
74842
74843         * lib/readutmp.h (UT_USER): Define.
74844
74845 2000-01-29  Jim Meyering  <meyering@lucent.com>
74846
74847         * m4/lib-check.m4: New file containing library-related checks from
74848         fileutils and sh-utils (textutils had none).
74849
74850 2000-01-28  Jim Meyering  <meyering@lucent.com>
74851
74852         * m4/perl.m4: Change format of warning message to look more like that
74853         from the missing script.  Suggestion from François Pinard.
74854
74855 2000-01-25  Jim Meyering  <meyering@lucent.com>
74856
74857         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
74858         well as time.h in the compile check.
74859         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
74860         Fix typo in cross-compiling case: s/yes/no/.
74861
74862 2000-01-23  Jim Meyering  <meyering@lucent.com>
74863
74864         * m4/jm-macros.m4: Move df-related tests here from
74865         fileutils/configure.in
74866
74867         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
74868         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
74869
74870         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
74871         s/space/ac_fsusage_space/.
74872         (jm_FILE_SYSTEM_USAGE): Take two parameters.
74873
74874         * m4/ftruncate.m4: New file (derived from part of
74875         fileutils/configure.in).
74876         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
74877         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
74878
74879         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
74880         AC_SUBST these here, rather than just in sh-util/configure.in, so
74881         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
74882         all the same.
74883         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
74884         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
74885         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
74886         (AC_SUBST(POW_LIBM)): Likewise.
74887         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
74888
74889 2000-01-23  Jim Meyering  <meyering@lucent.com>
74890
74891         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
74892         obstack.c.
74893
74894 2000-01-22  Jim Meyering  <meyering@lucent.com>
74895
74896         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
74897
74898         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
74899
74900         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
74901         configure.in
74902         (AC_CHECK_HEADERS): Likewise for sh-utils.
74903         (AC_CHECK_HEADERS): Likewise for textutils.
74904         Merge the three lists of headers.
74905
74906         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
74907         from fileutils' configure.in.
74908
74909         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
74910         code. Moved tests into their own function (_jm_DECL_HEADERS) in
74911         check-decl.m4.
74912
74913         * m4/check-decl.m4: Use #if rather than #ifdef.
74914         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
74915         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
74916         (_jm_DECL_HEADERS): Define new function.
74917         (jm_CHECK_DECLARATIONS): Require it.
74918
74919 2000-01-22  Jim Meyering  <meyering@lucent.com>
74920
74921         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
74922         [! HAVE_DECL_STRTOULL]: Declare strtoull.
74923         Required for some AIX systems.  Reported by Christian Krackowizer.
74924         [TESTING] (main): New function.
74925
74926         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
74927         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
74928         letters.
74929
74930         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
74931         iswprint.
74932
74933         * lib/strverscmp.c (ISDIGIT): Define.
74934         (strverscmp): Use ISDIGIT, not isdigit.
74935
74936 2000-01-19  Jim Meyering  <meyering@lucent.com>
74937
74938         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
74939         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
74940         defines `struct timespec' in <sys/time.h>
74941
74942         * m4/c-bs-a.m4: Remove uses of changequote altogether.
74943         Thanks to Akim for explaining.
74944
74945 2000-01-17  Paul Eggert  <eggert@twinsun.com>
74946
74947         * lib/nanosleep.c (nanosleep):
74948         Don't use SA_INTERRUPT to decide whether to call sigaction, as
74949         POSIX.1 doesn't require SA_INTERRUPT and some systems
74950         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
74951         it's been part of POSIX.1 since day 1 (in 1988).
74952
74953 2000-01-17  Jim Meyering  <meyering@lucent.com>
74954
74955         * lib/interlock: Remove unused file.  Reported by François Pinard.
74956
74957 2000-01-16  Paul Eggert  <eggert@twinsun.com>
74958
74959         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
74960         alert, backslash, formfeed, and vertical tab unnecessarily in
74961         shell quoting style.
74962
74963 2000-01-16  Jim Meyering  <meyering@lucent.com>
74964
74965         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
74966         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
74967         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
74968         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
74969
74970 2000-01-16  Jim Meyering  <meyering@lucent.com>
74971
74972         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
74973         because the latter didn't work.
74974
74975 2000-01-15  Jim Meyering  <meyering@lucent.com>
74976
74977         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
74978         (AC_REPLACE_FUNCS): Add memcpy and memset.
74979         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
74980         Add strpbrk.
74981         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
74982
74983 2000-01-12  Jim Meyering  <meyering@lucent.com>
74984
74985         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
74986         (jm_PREREQ): Use it.
74987         (jm_PREREQ_READUTMP): New macro.
74988         (jm_PREREQ): Use it.
74989
74990 2000-01-11  Paul Eggert  <eggert@twinsun.com>
74991
74992         Quote multibyte characters correctly.
74993         * m4/c-bs-a.m4: New file.
74994         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
74995         (jm_PREREQ): Use it.
74996
74997 2000-01-11  Paul Eggert  <eggert@twinsun.com>
74998
74999         * m4/uintmax_t.m4: Port to autoconf 2.13.
75000
75001 2000-01-08  Jim Meyering  <meyering@ascend.com>
75002
75003         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
75004         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
75005
75006 2000-01-04  Jim Meyering  <meyering@ascend.com>
75007
75008         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
75009         jm_STRUCT_DIRENT_D_TYPE.
75010         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
75011         jm_STRUCT_DIRENT_D_INO.
75012         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
75013         jm_STRUCT_UTIMBUF.
75014         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
75015         renamings.
75016         * m4/utime.m4: Likewise.
75017
75018         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
75019         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
75020
75021 2000-01-03  Paul Eggert  <eggert@twinsun.com>
75022
75023         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
75024         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
75025
75026 2000-01-02  Jim Meyering  <meyering@ascend.com>
75027
75028         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
75029         remember if this is necessary.
75030
75031 1999-12-26  Jim Meyering  <meyering@ascend.com>
75032
75033         * m4/jm-macros.m4: Use it here.
75034         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
75035
75036 1999-12-23  Jim Meyering  <meyering@ascend.com>
75037
75038         * m4/jm-macros.m4: Check for clock_gettime (moved from
75039         fileutils/configure.in)
75040         Check for gettimeofday.
75041
75042 1999-12-20  Jim Meyering  <meyering@ascend.com>
75043
75044         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
75045         autoconf-2.14a-1999-12-20.
75046
75047 1999-12-19  Jim Meyering  <meyering@ascend.com>
75048
75049         * m4/lstat-slash.m4: New file.
75050         * m4/jm-macros.m4: Use the new macro:
75051         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75052
75053 1999-12-07  Jim Meyering  <meyering@ascend.com>
75054
75055         * m4/perl.m4: Require that File::Compare be available, too.
75056         Too many systems seem to lack it.
75057
75058         * m4/strftime.m4: Add checks for most of the cpp macros tested in
75059         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
75060
75061 1999-11-18  Paul Eggert  <eggert@twinsun.com>
75062
75063         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
75064         problem with the QNX 4.25 shell, which doesn't propagate exit
75065         status of failed commands inside shell assignments.
75066
75067 1999-11-17  Jim Meyering  <meyering@ascend.com>
75068
75069         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
75070
75071 1999-11-07  Jim Meyering  <meyering@ascend.com>
75072
75073         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
75074
75075 1999-11-06  Jim Meyering  <meyering@ascend.com>
75076
75077         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
75078         * m4/jm-macros.m4 (jm_MACROS): Use it here.
75079
75080 1999-11-05  Jim Meyering  <meyering@ascend.com>
75081
75082         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
75083         configure.in of textutils, fileutils, and sh-utils into this one
75084         (shared between those packages) file.
75085         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
75086         AC_STRUCT_ST_BLKSIZE.
75087
75088 1999-11-03  Jim Meyering  <meyering@ascend.com>
75089
75090         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
75091         of AC_CHECK_TYPE checks includes unistd.h.
75092         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
75093         Suggestion from Akim Demaille.
75094
75095 1999-10-30  Jim Meyering  <meyering@ascend.com>
75096
75097         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
75098         m4-quoted string.
75099         * m4/ls-mntd-fs.m4: Likewise.
75100         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
75101         * m4/jm-winsz1.m4: Likewise.
75102
75103         * m4/const.m4: Remove file, since the fix made it into the experimental
75104         version of autoconf.
75105         * m4/mktime.m4: Likewise.
75106
75107         * m4/check-type.m4: Remove file, now that the latest version of
75108         AC_CHECK_TYPE takes a third arg to specify additional #includes.
75109
75110         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
75111         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
75112         AC_CHECK_TYPE.
75113
75114 1999-10-04  Jim Meyering  <meyering@ascend.com>
75115
75116         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
75117
75118 1999-09-22  Paul Eggert  <eggert@twinsun.com>
75119
75120         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
75121         2.95.1 bug with HP-UX 10.20.
75122
75123 1999-09-17  Jim Meyering  <meyering@ascend.com>
75124
75125         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
75126         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
75127         due to missing strdup (against sh-utils-2.0).
75128
75129 1999-08-29  Jim Meyering  <meyering@ascend.com>
75130
75131         * m4/jm-macros.m4: Require jm_BISON.
75132         * m4/bison.m4: New file.
75133
75134 1999-08-17  Paul Eggert  <eggert@twinsun.com>
75135
75136         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
75137         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
75138
75139 1999-08-05  Jim Meyering  <meyering@ascend.com>
75140
75141         * m4/getline.m4: Rename test file from conftestdata to conftest.data
75142         to avoid conflicts with `conftest' on 8+3 filesystems.
75143         Suggestion from Eli Zaretskii.
75144
75145 1999-08-04  Jim Meyering  <meyering@ascend.com>
75146
75147         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
75148         fileutils and sh-utils (textutils's getline test was inadequate).
75149         (AM_FUNC_GETLINE): Run this test.
75150         (AC_CHECK_FUNCS): Check for getdelim.
75151         Reported by Bob Proulx.
75152
75153 1999-08-02  Jim Meyering  <meyering@ascend.com>
75154
75155         * m4/jm-macros.m4: Add a comment.
75156
75157 1999-08-01  Paul Eggert  <eggert@twinsun.com>
75158
75159         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
75160         <inttypes.h> defines strtoumax as a macro (and not as a
75161         function).
75162
75163 1999-08-01  Paul Eggert  <eggert@twinsun.com>
75164
75165         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
75166         that we can shift, multiply and divide unsigned long long
75167         values; Ultrix cc can't do it.
75168
75169 1999-08-01  Paul Eggert  <eggert@twinsun.com>
75170
75171         * m4/mktime.m4: New file, which is a preview of what should appear
75172         in the next public autoconf release.
75173
75174 1999-08-01  Paul Eggert  <eggert@twinsun.com>
75175
75176         * m4/lfs.m4: Remove this file.
75177         * m4/largefile.m4: New file.  It contains the old contents of
75178         lfs.m4, except that all names with prefix AC_LFS have been
75179         changed to use the prefix AC_SYS_LARGEFILE instead, to be
75180         compatible with future autoconf versions.  Also, some minor m4
75181         quoting problems have been fixed.
75182
75183 1999-08-01  Paul Eggert  <eggert@twinsun.com>
75184
75185         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
75186         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
75187         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
75188         and simplify the shell code.
75189
75190 1999-08-01  Jim Meyering  <meyering@ascend.com>
75191
75192         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
75193         m4.
75194
75195 1999-07-20  Jim Meyering  <meyering@ascend.com>
75196
75197         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
75198
75199 1999-07-15  Jim Meyering  <meyering@ascend.com>
75200
75201         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
75202
75203 1999-05-22  Jim Meyering  <meyering@ascend.com>
75204
75205         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
75206
75207 1999-05-20  Jim Meyering  <meyering@ascend.com>
75208
75209         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
75210         Add a colon after each `then' in case $4 is empty.
75211
75212 1999-05-16  Jim Meyering  <meyering@ascend.com>
75213
75214         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
75215
75216 1999-05-10  Jim Meyering  <meyering@ascend.com>
75217
75218         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
75219
75220         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
75221         AC_FUNC_MKTIME.
75222
75223 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
75224
75225         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
75226
75227 1999-05-04  Paul Eggert  <eggert@twinsun.com>
75228
75229         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
75230         not CPPFLAGS, so that linking works correctly in IRIX.
75231
75232 1999-04-30  Paul Eggert  <eggert@twinsun.com>
75233
75234         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
75235
75236 1999-04-20  Paul Eggert  <eggert@twinsun.com>
75237
75238         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
75239         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
75240         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
75241         jm_AC_TYPE_UNSIGNED_LONG_LONG.
75242         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
75243
75244         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
75245
75246 1999-04-20  Jim Meyering  <meyering@ascend.com>
75247
75248         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
75249         AC_REPLACE xstroull if necessary.  From Paul Eggert.
75250         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
75251
75252 1999-04-18  Jim Meyering  <meyering@ascend.com>
75253
75254         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
75255         * m4/jm-macros.m4: Use it.
75256
75257 1999-04-06  Jim Meyering  <meyering@ascend.com>
75258
75259         * m4/strftime.m4: Remove test for %f.
75260
75261 1999-03-29  Jim Meyering  <meyering@ascend.com>
75262
75263         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
75264         superset of the AC_TYPE_* checks in the textutils, fileutils,
75265         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
75266         AC_TYPE_PID_T.
75267
75268 1999-03-28  Jim Meyering  <meyering@ascend.com>
75269
75270         * m4/jm-macros.m4: Define GNU_PACKAGE here.
75271         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
75272         replaced e.g., in the *.sh files of the sh-utils.
75273
75274 1999-03-20  Jim Meyering  <meyering@ascend.com>
75275
75276         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
75277         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
75278         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
75279
75280 1999-03-19  Jim Meyering  <meyering@ascend.com>
75281
75282         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
75283
75284 1999-03-12  Jim Meyering  <meyering@ascend.com>
75285
75286         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
75287
75288 1999-03-07  Jim Meyering  <meyering@ascend.com>
75289
75290         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
75291         declared.
75292
75293 1999-02-17  Jim Meyering  <meyering@ascend.com>
75294
75295         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
75296         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
75297
75298 1999-02-07  Jim Meyering  <meyering@ascend.com>
75299
75300         * m4/group-member.m4: New file -- extracted from sh-utils'
75301         configure.in.
75302
75303         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
75304         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
75305
75306 1999-02-06  Jim Meyering  <meyering@ascend.com>
75307
75308         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
75309         * m4/fnmatch.m4: Likewise.
75310         * m4/getgroups.m4: Likewise.
75311         * m4/lstat.m4: Likewise.
75312         * m4/malloc.m4: Likewise.
75313         * m4/putenv.m4: Likewise.
75314         * m4/realloc.m4: Likewise.
75315         * m4/regex.m4: Likewise.
75316         * m4/stat.m4: Likewise.
75317         * m4/strftime.m4: Likewise.
75318         Suggestion from Alain Magloire.
75319
75320         * m4/chown.m4: Use `.$ac_objext', not `.o'.
75321         * m4/fnmatch.m4: Likewise.
75322         * m4/getgroups.m4: Likewise.
75323         * m4/getline.m4: Likewise.
75324         * m4/lstat.m4: Likewise.
75325         * m4/malloc.m4: Likewise.
75326         * m4/memcmp.m4: Likewise.
75327         * m4/putenv.m4: Likewise.
75328         * m4/realloc.m4: Likewise.
75329         * m4/regex.m4: Likewise.
75330         * m4/stat.m4: Likewise.
75331         * m4/strftime.m4: Likewise.
75332         Suggestion from Alain Magloire.
75333
75334         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
75335         an argument.
75336
75337         * m4/regex.m4: Add a run-time Test for proper operation of
75338         re_compile_pattern.
75339
75340 1999-01-31  Jim Meyering  <meyering@ascend.com>
75341
75342         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
75343
75344 1999-01-30  Jim Meyering  <meyering@ascend.com>
75345
75346         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
75347
75348         * m4/jm-mktime.m4: Make this a wrapper around the official
75349         AM_FUNC_MKTIME rather than my private copy, now that the official one
75350         is up to date.
75351         * m4/mktime.m4: Remove file.
75352
75353         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
75354         * m4/uptime.m4: Likewise.
75355         * m4/uintmax_t.m4: Likewise.
75356
75357 1999-01-28  Jim Meyering  <meyering@ascend.com>
75358
75359         * m4/jm-macros.m4: Use jm_AFS.
75360         * m4/afs.m4: New file (from fileutils' configure.in).
75361
75362         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
75363         * m4/chown.m4: Likewise.
75364         * m4/d-ino.m4: Likewise.
75365         * m4/d-type.m4: Likewise.
75366         * m4/fnmatch.m4: Likewise.
75367         * m4/getgroups.m4: Likewise.
75368         * m4/gettext.m4: Likewise.
75369         * m4/jm-mktime.m4: Likewise.
75370         * m4/jm-winsz2.m4: Likewise.
75371         * m4/lcmessage.m4: Likewise.
75372         * m4/ls-mntd-fs.m4: Likewise.
75373         * m4/malloc.m4: Likewise.
75374         * m4/memcmp.m4: Likewise.
75375         * m4/putenv.m4: Likewise.
75376         * m4/realloc.m4: Likewise.
75377         * m4/st_mtim.m4: Likewise.
75378         * m4/strftime.m4: Likewise.
75379
75380 1999-01-16  Jim Meyering  <meyering@ascend.com>
75381
75382         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
75383         (ARGMATCH_DIE_DECL): Define.
75384
75385 1999-01-12  Jim Meyering  <meyering@ascend.com>
75386
75387         * m4/Makefile.am.in: Rewrite to avoid using fmt.
75388         Reported by Lars Hecking.
75389
75390 1999-01-10  Jim Meyering  <meyering@ascend.com>
75391
75392         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
75393         gross kludge.
75394         * m4/inttypes_h.m4: Likewise.
75395         * m4/lstat.m4: Likewise.
75396         * m4/malloc.m4: Likewise.
75397         * m4/readdir.m4: Likewise.
75398         * m4/realloc.m4: Likewise.
75399         * m4/st_dm_mode.m4: Likewise.
75400         * m4/stat.m4: Likewise.
75401         * m4/utimbuf.m4: Likewise.
75402         * m4/utimes.m4: Likewise.
75403
75404         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
75405         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
75406         comments in config.h.in are meaningful.
75407
75408         * m4/jm-macros.m4: Require autoconf-2.13 here.
75409
75410         * m4/regex.m4: By default, don't use the included regex.c on systems
75411         with glibc 2.  Suggestion from Uli Drepper.
75412
75413 1999-01-02  Jim Meyering  <meyering@ascend.com>
75414
75415         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
75416
75417 1998-12-18  Jim Meyering  <meyering@ascend.com>
75418
75419         * m4/Makefile.am.in (Makefile.am): Simplify rule.
75420         Based on a suggestion from Lars Hecking.
75421
75422 1998-11-16  Paul Eggert  <eggert@twinsun.com>
75423
75424         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
75425
75426 1998-11-16  Jim Meyering  <meyering@ascend.com>
75427
75428         * m4/lfs.m4: Double-quote the `uname...` expression.
75429
75430 1998-11-14  Jim Meyering  <meyering@ascend.com>
75431
75432         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
75433         * m4/stat.m4: Likewise.
75434
75435 1998-11-03  Jim Meyering  <meyering@ascend.com>
75436
75437         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
75438         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
75439
75440 1998-10-18  Jim Meyering  <meyering@ascend.com>
75441
75442         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
75443
75444 1998-10-17  Jim Meyering  <meyering@ascend.com>
75445
75446         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
75447         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
75448         calls for those previously hard-coded headers.  Instead, take a new
75449         parameter.
75450         (jm_CHECK_DECLARATIONS): Reflect interface change.
75451         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
75452         (jm_CHECK_DECL_LOCALTIME_R): New macro.
75453
75454         * m4/mktime.m4: Test for spring-forward gap before long-running test.
75455
75456 1998-10-14  Jim Meyering  <meyering@ascend.com>
75457
75458         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
75459         instead of "TZ=America/Vancouver".  From Paul Eggert.
75460
75461 1998-10-11  Jim Meyering  <meyering@ascend.com>
75462
75463         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
75464         This adds a test for a recently added compatibility fix for mktime.c.
75465         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
75466
75467 1998-09-27  Jim Meyering  <meyering@ascend.com>
75468
75469         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
75470
75471         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
75472         ../configure.in, including a change from Gordon Matzigkeit to allow
75473         cross-compiling for the Hurd.
75474
75475         * m4/glibc.m4: New file/macro to test for the GNU C Library
75476         versions 1 and 2.  From Gordon Matzigkeit.
75477         Indent.
75478
75479 1998-09-21  Jim Meyering  <meyering@ascend.com>
75480
75481         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
75482
75483 1998-08-18  Paul Eggert  <eggert@twinsun.com>
75484
75485         Port nanosecond-resolution times to UnixWare 2.1.2 and
75486         pedantic Solaris 2.6.
75487
75488         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
75489         AC_STRUCT_ST_MTIM.
75490         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
75491         Generate name of ns member, instead of just 1 or undef.
75492         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
75493
75494 1998-08-15  Jim Meyering  <meyering@ascend.com>
75495
75496         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
75497         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
75498         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
75499         instead of jm_TYPE_SSIZE_T.
75500
75501 1998-08-12  Jim Meyering  <meyering@ascend.com>
75502
75503         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
75504
75505 1998-08-02  Jim Meyering  <meyering@ascend.com>
75506
75507         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
75508         in acconfig.h manually.
75509
75510 1998-07-31  Paul Eggert  <eggert@twinsun.com>
75511
75512         * m4/st_mtim.m4: New file.
75513
75514 1998-07-28  Jim Meyering  <meyering@ascend.com>
75515
75516         * m4/utimes.m4: Undef stat.
75517
75518 1998-07-25  Jim Meyering  <meyering@ascend.com>
75519
75520         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
75521         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
75522
75523 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
75524
75525         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
75526         uid and gid actually remain unchanged.
75527
75528 1998-07-07  Jim Meyering  <meyering@ascend.com>
75529
75530         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
75531
75532 1998-07-04  Jim Meyering  <meyering@ascend.com>
75533
75534         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
75535         to prove that this macro can be used in packages without regex.c.
75536
75537 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
75538
75539         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
75540         is to be used.
75541
75542 1998-07-03  Jim Meyering  <meyering@ascend.com>
75543
75544         * m4/gettext.m4: Add -lintl if it's found to be necessary.
75545
75546         * m4/gettext.m4: New file -- from gettext-0.10.35.
75547         * m4/lcmessage.m4: Likewise.
75548         * m4/progtest.m4: Likewise.
75549
75550         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
75551         * m4/jm-macros.m4: Require the new macro.
75552
75553 1998-06-29  Jim Meyering  <meyering@ascend.com>
75554
75555         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
75556         for the definition of NGROUPS (used in a system header included
75557         by sys/mount.h).
75558
75559 1998-06-28  Jim Meyering  <meyering@ascend.com>
75560
75561         * m4/ls-mntd-fs.m4: New file.
75562         * m4/fstypename.m4: New file.
75563
75564         * m4/jm-macros.m4: Require the new macro.
75565         * m4/jm-glibc-io.m4: New file.
75566
75567 1998-05-19  Jim Meyering  <meyering@ascend.com>
75568
75569         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
75570         * m4/lchown.m4: New file.
75571
75572         * m4/Makefile.am.in: New file.
75573         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
75574
75575 1998-05-14  Jim Meyering  <meyering@ascend.com>
75576
75577         * m4/Makefile.am (EXTRA_DIST): Add them.
75578         * m4/jm-macros.m4: New file.
75579         * m4/utimbuf.m4: New file.
75580
75581 1998-05-12  Jim Meyering  <meyering@ascend.com>
75582
75583         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
75584
75585 1998-05-11  Jim Meyering  <meyering@ascend.com>
75586
75587         * m4/isc-posix.m4: New file.
75588
75589 1998-05-10  Jim Meyering  <meyering@ascend.com>
75590
75591         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
75592
75593 1998-05-09  Jim Meyering  <meyering@ascend.com>
75594
75595         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
75596         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
75597         with automake.
75598
75599         * m4/ssize_t.m4: New file.
75600         * m4/mktime.m4: Remove file -- the new automake has this now.
75601
75602 1998-04-26  Jim Meyering  <meyering@ascend.com>
75603
75604         * m4/assert.m4: New file.
75605         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
75606
75607 1998-04-05  Jim Meyering  <meyering@ascend.com>
75608
75609         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
75610         (jm_PREREQ): Use it here.
75611
75612 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
75613
75614         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
75615         in acconfig.h.
75616
75617 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
75618
75619         * m4/prereq.m4: New file.
75620         * m4/error.m4: New file.
75621         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
75622
75623 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
75624
75625         * m4/getline.m4: Don't set am_cv_func_working_getline before the
75626         cache-check for the same variable -- that defeated the purpose of
75627         the test; the test program was never run.  This was a problem only
75628         on systems with losing getline functions -- HP-UX 10.20 is one.
75629         Reported by Bjorn Helgaas.
75630
75631 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
75632
75633         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
75634
75635 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
75636
75637         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
75638
75639         * m4/const.m4: New file.  Use an initializer in this declaration
75640         typedef int charset[2]; const charset x;
75641         Reported by Bob Glickstein.
75642
75643 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
75644
75645         * m4/chown.m4: Fix reversed types on -1 args to chown.
75646         From Kaveh Ghazi.
75647
75648 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
75649
75650         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
75651         Add lseek and memchr.
75652
75653         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
75654         T.E.Dickey <dickey@clark.net> said that some older preprocessors
75655         have a 20-character limit on names.
75656
75657 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
75658
75659         * m4/inttypes_h.m4: New file.
75660         * m4/uintmax_t.m4: New file.
75661         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
75662
75663
75664         -----
75665
75666         Local Variables:
75667         coding: utf-8
75668         End:
75669
75670         Copyright (C) 1997-2011 Free Software Foundation, Inc.
75671
75672         Copying and distribution of this file, with or without
75673         modification, are permitted provided the copyright notice
75674         and this notice are preserved.