Update and improve help for --without-included-regex.
[gnulib.git] / ChangeLog
1 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
2
3         * m4/regex.m4: update and improve help for
4         --without-included-regex.
5
6 2009-03-17  Simon Josefsson  <simon@josefsson.org>
7
8         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
9         failure on missing include files.
10
11 2009-03-17  Eric Blake  <ebb9@byu.net>
12
13         doc: mention more functions added in cygwin 1.7.0
14         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
15         addition.
16         * doc/posix-functions/fwscanf.texi: Likewise.
17         * doc/posix-functions/swprintf.texi: Likewise.
18         * doc/posix-functions/swscanf.texi: Likewise.
19         * doc/posix-functions/vfwprintf.texi: Likewise.
20         * doc/posix-functions/vfwscanf.texi: Likewise.
21         * doc/posix-functions/vswprintf.texi: Likewise.
22         * doc/posix-functions/vswscanf.texi: Likewise.
23         * doc/posix-functions/vwprintf.texi: Likewise.
24         * doc/posix-functions/vwscanf.texi: Likewise.
25         * doc/posix-functions/wcscasecmp.texi: Likewise.
26         * doc/posix-functions/wcsdup.texi: Likewise.
27         * doc/posix-functions/wcsftime.texi: Likewise.
28         * doc/posix-functions/wcsncasecmp.texi: Likewise.
29         * doc/posix-functions/wprintf.texi: Likewise.
30         * doc/posix-functions/wscanf.texi: Likewise.
31         * doc/glibc-functions/gethostbyname2.texi: Likewise.
32
33 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34
35         maint.mk: really add $(AM_MAKEFLAGS)
36         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
37         was inadvertently omitted in the last commit.
38         Spotted by Bruno Haible.
39
40         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
41         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
42         $(AM_MAKEFLAGS)' rather than plain `make'.
43
44         gnulib-tool: execute $MAKE not make
45         * gnulib-tool: Default $MAKE to 'make'.
46         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
47         than make.  Initialize $MAKE in the do-autobuild script.
48
49         gnulib-tool: use $MAKE not make in generated files
50         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
51         make, in generated files.  Initialize $MAKE in the do-autobuild
52         script.
53
54         * top/GNUmakefile (_have-git-version-gen): Fix typo.
55
56         GNUmakefile: disable parallelism only for multiple, recursive targets
57         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
58         additions in the Makefile.
59         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
60         by Automake.
61         (.NOTPARALLEL): Only disable parallel builds if multiple targets
62         are listed on the command line and at least one of them is
63         listed in $(ALL_RECURSIVE_TARGETS).
64
65 2009-03-14  Bruno Haible  <bruno@clisp.org>
66
67         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
68         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
69         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
70         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
71         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
72         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
73         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
74         unistr/u8-uctomb.
75         * modules/unistr/u8-strchr (Depends-on): Likewise.
76         * modules/unistr/u8-strrchr (Depends-on): Likewise.
77         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
78         unistr/u16-uctomb.
79         * modules/unistr/u16-strchr (Depends-on): Likewise.
80         * modules/unistr/u16-strrchr (Depends-on): Likewise.
81
82 2009-03-12  Bruno Haible  <bruno@clisp.org>
83
84         Work around select() bug on Interix 3.5.
85         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
86         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
87         * m4/select.m4: New file.
88         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
89         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
90         * modules/select (Files): Add m4/select.m4.
91         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
92         * modules/nanosleep (Depends-on): Add select.
93         * modules/poll (Depends-on): Likewise.
94         * doc/posix-functions/select.texi: Mention the Interix bug.
95         Reported by Markus Duft <mduft@gentoo.org>.
96
97         * lib/select.c: Renamed from lib/winsock-select.c.
98         * modules/select (Files): Add lib/select.c, remove
99         lib/winsock-select.c.
100         (configure.ac): Update.
101
102 2009-03-12  Jim Meyering  <meyering@redhat.com>
103
104         avoid gcc warnings about unused macro definitions
105         * lib/readtokens.c (STREQ): Remove unused definition.
106         * lib/xmalloc.c (SIZE_MAX): Likewise.
107         * lib/openat-die.c (N_): Likewise.
108         * lib/mountlist.c (SIZE_MAX): Remove definition.
109         Instead, include <stdint.h>.
110         * lib/readutmp.c: Likewise.
111         * modules/readutmp (Depends-on): Add stdint.
112         * modules/mountlist (Depends-on): Add stdint.
113         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
114
115 2009-03-10  Bruno Haible  <bruno@clisp.org>
116
117         Tests for module 'mbmemcasecoll'.
118         * modules/mbmemcasecoll-tests: New file.
119         * tests/test-mbmemcasecoll1.sh: New file.
120         * tests/test-mbmemcasecoll2.sh: New file.
121         * tests/test-mbmemcasecoll3.sh: New file.
122         * tests/test-mbmemcasecoll.c: New file.
123
124         New module 'mbmemcasecoll'.
125         * lib/mbmemcasecoll.h: New file.
126         * lib/mbmemcasecoll.c: New file.
127         * modules/mbmemcasecoll: New file.
128
129         * tests/test-mbmemcasecmp.h: New file, extracted from
130         tests/test-mbmemcasecmp.c.
131         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
132         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
133         (main): Update.
134         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
135
136 2009-03-09  Bruno Haible  <bruno@clisp.org>
137
138         Tests for module 'mbmemcasecmp'.
139         * modules/mbmemcasecmp-tests: New file.
140         * tests/test-mbmemcasecmp1.sh: New file.
141         * tests/test-mbmemcasecmp2.sh: New file.
142         * tests/test-mbmemcasecmp3.sh: New file.
143         * tests/test-mbmemcasecmp.c: New file.
144
145         New module 'mbmemcasecmp'.
146         * lib/mbmemcasecmp.h: New file.
147         * lib/mbmemcasecmp.c: New file.
148         * modules/mbmemcasecmp: New file.
149
150 2009-03-09  Bruno Haible  <bruno@clisp.org>
151
152         Tests for module 'unicase/ulc-casecoll'.
153         * modules/unicase/ulc-casecoll-tests: New file.
154         * tests/unicase/test-ulc-casecoll1.sh: New file.
155         * tests/unicase/test-ulc-casecoll2.sh: New file.
156         * tests/unicase/test-ulc-casecoll.c: New file.
157
158         New module 'unicase/ulc-casecoll'.
159         * lib/unicase.h (ulc_casecoll): New declaration.
160         * lib/unicase/ulc-casecoll.c: New file.
161         * modules/unicase/ulc-casecoll: New file.
162
163         New module 'unicase/ulc-casexfrm'.
164         * lib/unicase.h (ulc_casexfrm): New declaration.
165         * lib/unicase/ulc-casexfrm.c: New file.
166         * modules/unicase/ulc-casexfrm: New file.
167
168 2009-03-09  Bruno Haible  <bruno@clisp.org>
169
170         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
171         invocations.
172
173         * m4/mbscasecmp.m4: Remove file.
174         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
175         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
176
177         * m4/mbscasestr.m4: Remove file.
178         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
179         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
180
181         * m4/mbschr.m4: Remove file.
182         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
183         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
184
185         * m4/mbscspn.m4: Remove file.
186         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
187         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
188
189         * m4/mbslen.m4: Remove file.
190         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
191         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
192
193         * m4/mbsncasecmp.m4: Remove file.
194         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
195         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
196
197         * m4/mbsnlen.m4: Remove file.
198         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
199         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
200
201         * m4/mbspbrk.m4: Remove file.
202         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
203         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
204
205         * m4/mbspcasecmp.m4: Remove file.
206         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
207         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
208
209         * m4/mbsrchr.m4: Remove file.
210         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
211         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
212
213         * m4/mbssep.m4: Remove file.
214         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
215         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
216
217         * m4/mbsspn.m4: Remove file.
218         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
219         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
220
221         * m4/mbsstr.m4: Remove file.
222         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
223         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
224
225         * m4/mbstok_r.m4: Remove file.
226         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
227         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
228
229         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
230
231         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
232         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
233
234         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
235
236 2009-03-08  Bruno Haible  <bruno@clisp.org>
237
238         Tests for module 'unicase/ulc-casecmp'.
239         * modules/unicase/ulc-casecmp-tests: New file.
240         * tests/unicase/test-ulc-casecmp1.sh: New file.
241         * tests/unicase/test-ulc-casecmp2.sh: New file.
242         * tests/unicase/test-ulc-casecmp.c: New file.
243
244         New module 'unicase/ulc-casecmp'.
245         * lib/unicase.h (ulc_casecmp): New declaration.
246         * lib/unicase/ulc-casecmp.c: New file.
247         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
248         'const SRC_UNIT *'.
249         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
250         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
251         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
252         * modules/unicase/ulc-casecmp: New file.
253
254         Tests for module 'unicase/u32-is-cased'.
255         * modules/unicase/u32-is-cased-tests: New file.
256         * tests/unicase/test-u32-is-cased.c: New file.
257
258         Tests for module 'unicase/u16-is-cased'.
259         * modules/unicase/u16-is-cased-tests: New file.
260         * tests/unicase/test-u16-is-cased.c: New file.
261
262         Tests for module 'unicase/u8-is-cased'.
263         * modules/unicase/u8-is-cased-tests: New file.
264         * tests/unicase/test-u8-is-cased.c: New file.
265         * tests/unicase/test-is-cased.h: New file.
266
267         New module 'unicase/u32-is-cased'.
268         * lib/unicase/u32-is-cased.c: New file.
269         * modules/unicase/u32-is-cased: New file.
270
271         New module 'unicase/u16-is-cased'.
272         * lib/unicase/u16-is-cased.c: New file.
273         * modules/unicase/u16-is-cased: New file.
274
275         New module 'unicase/u8-is-cased'.
276         * lib/unicase/u8-is-cased.c: New file.
277         * lib/unicase/u-is-cased.h: New file.
278         * modules/unicase/u8-is-cased: New file.
279
280         Tests for module 'unicase/u32-is-casefolded'.
281         * modules/unicase/u32-is-casefolded-tests: New file.
282         * tests/unicase/test-u32-is-casefolded.c: New file.
283
284         Tests for module 'unicase/u16-is-casefolded'.
285         * modules/unicase/u16-is-casefolded-tests: New file.
286         * tests/unicase/test-u16-is-casefolded.c: New file.
287
288         Tests for module 'unicase/u8-is-casefolded'.
289         * modules/unicase/u8-is-casefolded-tests: New file.
290         * tests/unicase/test-u8-is-casefolded.c: New file.
291         * tests/unicase/test-is-casefolded.h: New file.
292
293         New module 'unicase/u32-is-casefolded'.
294         * lib/unicase/u32-is-casefolded.c: New file.
295         * modules/unicase/u32-is-casefolded: New file.
296
297         New module 'unicase/u16-is-casefolded'.
298         * lib/unicase/u16-is-casefolded.c: New file.
299         * modules/unicase/u16-is-casefolded: New file.
300
301         New module 'unicase/u8-is-casefolded'.
302         * lib/unicase/u8-is-casefolded.c: New file.
303         * modules/unicase/u8-is-casefolded: New file.
304
305         Tests for module 'unicase/u32-is-titlecase'.
306         * modules/unicase/u32-is-titlecase-tests: New file.
307         * tests/unicase/test-u32-is-titlecase.c: New file.
308
309         Tests for module 'unicase/u16-is-titlecase'.
310         * modules/unicase/u16-is-titlecase-tests: New file.
311         * tests/unicase/test-u16-is-titlecase.c: New file.
312
313         Tests for module 'unicase/u8-is-titlecase'.
314         * modules/unicase/u8-is-titlecase-tests: New file.
315         * tests/unicase/test-u8-is-titlecase.c: New file.
316         * tests/unicase/test-is-titlecase.h: New file.
317
318         New module 'unicase/u32-is-titlecase'.
319         * lib/unicase/u32-is-titlecase.c: New file.
320         * modules/unicase/u32-is-titlecase: New file.
321
322         New module 'unicase/u16-is-titlecase'.
323         * lib/unicase/u16-is-titlecase.c: New file.
324         * modules/unicase/u16-is-titlecase: New file.
325
326         New module 'unicase/u8-is-titlecase'.
327         * lib/unicase/u8-is-titlecase.c: New file.
328         * modules/unicase/u8-is-titlecase: New file.
329
330         Tests for module 'unicase/u32-is-lowercase'.
331         * modules/unicase/u32-is-lowercase-tests: New file.
332         * tests/unicase/test-u32-is-lowercase.c: New file.
333
334         Tests for module 'unicase/u16-is-lowercase'.
335         * modules/unicase/u16-is-lowercase-tests: New file.
336         * tests/unicase/test-u16-is-lowercase.c: New file.
337
338         Tests for module 'unicase/u8-is-lowercase'.
339         * modules/unicase/u8-is-lowercase-tests: New file.
340         * tests/unicase/test-u8-is-lowercase.c: New file.
341         * tests/unicase/test-is-lowercase.h: New file.
342
343         New module 'unicase/u32-is-lowercase'.
344         * lib/unicase/u32-is-lowercase.c: New file.
345         * modules/unicase/u32-is-lowercase: New file.
346
347         New module 'unicase/u16-is-lowercase'.
348         * lib/unicase/u16-is-lowercase.c: New file.
349         * modules/unicase/u16-is-lowercase: New file.
350
351         New module 'unicase/u8-is-lowercase'.
352         * lib/unicase/u8-is-lowercase.c: New file.
353         * modules/unicase/u8-is-lowercase: New file.
354
355         Tests for module 'unicase/u32-is-uppercase'.
356         * modules/unicase/u32-is-uppercase-tests: New file.
357         * tests/unicase/test-u32-is-uppercase.c: New file.
358
359         Tests for module 'unicase/u16-is-uppercase'.
360         * modules/unicase/u16-is-uppercase-tests: New file.
361         * tests/unicase/test-u16-is-uppercase.c: New file.
362
363         Tests for module 'unicase/u8-is-uppercase'.
364         * modules/unicase/u8-is-uppercase-tests: New file.
365         * tests/unicase/test-u8-is-uppercase.c: New file.
366         * tests/unicase/test-is-uppercase.h: New file.
367
368         New module 'unicase/u32-is-uppercase'.
369         * lib/unicase/u32-is-uppercase.c: New file.
370         * modules/unicase/u32-is-uppercase: New file.
371
372         New module 'unicase/u16-is-uppercase'.
373         * lib/unicase/u16-is-uppercase.c: New file.
374         * modules/unicase/u16-is-uppercase: New file.
375
376         New module 'unicase/u8-is-uppercase'.
377         * lib/unicase/u8-is-uppercase.c: New file.
378         * modules/unicase/u8-is-uppercase: New file.
379
380         New module 'unicase/u32-is-invariant'.
381         * lib/unicase/u32-is-invariant.c: New file.
382         * modules/unicase/u32-is-invariant: New file.
383
384         New module 'unicase/u16-is-invariant'.
385         * lib/unicase/u16-is-invariant.c: New file.
386         * modules/unicase/u16-is-invariant: New file.
387
388         New module 'unicase/u8-is-invariant'.
389         * lib/unicase/u8-is-invariant.c: New file.
390         * lib/unicase/invariant.h: New file.
391         * lib/unicase/u-is-invariant.h: New file.
392         * modules/unicase/u8-is-invariant: New file.
393
394         Tests for module 'unicase/u32-casecoll'.
395         * modules/unicase/u32-casecoll-tests: New file.
396         * tests/unicase/test-u32-casecoll.c: New file.
397
398         Tests for module 'unicase/u16-casecoll'.
399         * modules/unicase/u16-casecoll-tests: New file.
400         * tests/unicase/test-u16-casecoll.c: New file.
401
402         Tests for module 'unicase/u8-casecoll'.
403         * modules/unicase/u8-casecoll-tests: New file.
404         * tests/unicase/test-u8-casecoll.c: New file.
405
406         New module 'unicase/u32-casecoll'.
407         * lib/unicase/u32-casecoll.c: New file.
408         * modules/unicase/u32-casecoll: New file.
409
410         New module 'unicase/u16-casecoll'.
411         * lib/unicase/u16-casecoll.c: New file.
412         * modules/unicase/u16-casecoll: New file.
413
414         New module 'unicase/u8-casecoll'.
415         * lib/unicase/u8-casecoll.c: New file.
416         * lib/unicase/u-casecoll.h: New file.
417         * modules/unicase/u8-casecoll: New file.
418
419         New module 'unicase/u32-casexfrm'.
420         * lib/unicase/u32-casexfrm.c: New file.
421         * modules/unicase/u32-casexfrm: New file.
422
423         New module 'unicase/u16-casexfrm'.
424         * lib/unicase/u16-casexfrm.c: New file.
425         * modules/unicase/u16-casexfrm: New file.
426
427         New module 'unicase/u8-casexfrm'.
428         * lib/unicase/u8-casexfrm.c: New file.
429         * lib/unicase/u-casexfrm.h: New file.
430         * modules/unicase/u8-casexfrm: New file.
431
432         Tests for module 'unicase/u32-casecmp'.
433         * modules/unicase/u32-casecmp-tests: New file.
434         * tests/unicase/test-u32-casecmp.c: New file.
435
436         Tests for module 'unicase/u16-casecmp'.
437         * modules/unicase/u16-casecmp-tests: New file.
438         * tests/unicase/test-u16-casecmp.c: New file.
439
440         Tests for module 'unicase/u8-casecmp'.
441         * modules/unicase/u8-casecmp-tests: New file.
442         * tests/unicase/test-u8-casecmp.c: New file.
443         * tests/unicase/test-casecmp.h: New file.
444
445         New module 'unicase/u32-casecmp'.
446         * lib/unicase/u32-casecmp.c: New file.
447         * modules/unicase/u32-casecmp: New file.
448
449         New module 'unicase/u16-casecmp'.
450         * lib/unicase/u16-casecmp.c: New file.
451         * modules/unicase/u16-casecmp: New file.
452
453         New module 'unicase/u8-casecmp'.
454         * lib/unicase/u8-casecmp.c: New file.
455         * lib/unicase/u-casecmp.h: New file.
456         * modules/unicase/u8-casecmp: New file.
457
458         Tests for module 'unicase/u32-casefold'.
459         * modules/unicase/u32-casefold-tests: New file.
460         * tests/unicase/test-u32-casefold.c: New file.
461
462         Tests for module 'unicase/u16-casefold'.
463         * modules/unicase/u16-casefold-tests: New file.
464         * tests/unicase/test-u16-casefold.c: New file.
465
466         Tests for module 'unicase/u8-casefold'.
467         * modules/unicase/u8-casefold-tests: New file.
468         * tests/unicase/test-u8-casefold.c: New file.
469
470         New module 'unicase/u32-casefold'.
471         * lib/unicase/u32-casefold.c: New file.
472         * modules/unicase/u32-casefold: New file.
473
474         New module 'unicase/u16-casefold'.
475         * lib/unicase/u16-casefold.c: New file.
476         * modules/unicase/u16-casefold: New file.
477
478         New module 'unicase/u8-casefold'.
479         * lib/unicase/u8-casefold.c: New file.
480         * lib/unicase/u-casefold.h: New file.
481         * modules/unicase/u8-casefold: New file.
482
483         New module 'unicase/tocasefold'.
484         * lib/unicase/casefold.h: New file.
485         * lib/unicase/tocasefold.c: New file.
486         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
487         * modules/unicase/tocasefold: New file.
488
489         Tests for module 'unicase/u32-totitle'.
490         * modules/unicase/u32-totitle-tests: New file.
491         * tests/unicase/test-u32-totitle.c: New file.
492
493         Tests for module 'unicase/u16-totitle'.
494         * modules/unicase/u16-totitle-tests: New file.
495         * tests/unicase/test-u16-totitle.c: New file.
496
497         Tests for module 'unicase/u8-totitle'.
498         * modules/unicase/u8-totitle-tests: New file.
499         * tests/unicase/test-u8-totitle.c: New file.
500
501         New module 'unicase/u32-totitle'.
502         * lib/unicase/u32-totitle.c: New file.
503         * modules/unicase/u32-totitle: New file.
504
505         New module 'unicase/u16-totitle'.
506         * lib/unicase/u16-totitle.c: New file.
507         * modules/unicase/u16-totitle: New file.
508
509         New module 'unicase/u8-totitle'.
510         * lib/unicase/u8-totitle.c: New file.
511         * lib/unicase/u-totitle.h: New file.
512         * modules/unicase/u8-totitle: New file.
513
514         Tests for module 'unicase/u32-tolower'.
515         * modules/unicase/u32-tolower-tests: New file.
516         * tests/unicase/test-u32-tolower.c: New file.
517
518         Tests for module 'unicase/u16-tolower'.
519         * modules/unicase/u16-tolower-tests: New file.
520         * tests/unicase/test-u16-tolower.c: New file.
521
522         Tests for module 'unicase/u8-tolower'.
523         * modules/unicase/u8-tolower-tests: New file.
524         * tests/unicase/test-u8-tolower.c: New file.
525
526         New module 'unicase/u32-tolower'.
527         * lib/unicase/u32-tolower.c: New file.
528         * modules/unicase/u32-tolower: New file.
529
530         New module 'unicase/u16-tolower'.
531         * lib/unicase/u16-tolower.c: New file.
532         * modules/unicase/u16-tolower: New file.
533
534         New module 'unicase/u8-tolower'.
535         * lib/unicase/u8-tolower.c: New file.
536         * modules/unicase/u8-tolower: New file.
537
538         Tests for module 'unicase/u32-toupper'.
539         * modules/unicase/u32-toupper-tests: New file.
540         * tests/unicase/test-u32-toupper.c: New file.
541
542         Tests for module 'unicase/u16-toupper'.
543         * modules/unicase/u16-toupper-tests: New file.
544         * tests/unicase/test-u16-toupper.c: New file.
545
546         Tests for module 'unicase/u8-toupper'.
547         * modules/unicase/u8-toupper-tests: New file.
548         * tests/unicase/test-u8-toupper.c: New file.
549
550         New module 'unicase/u32-toupper'.
551         * lib/unicase/u32-toupper.c: New file.
552         * modules/unicase/u32-toupper: New file.
553
554         New module 'unicase/u16-toupper'.
555         * lib/unicase/u16-toupper.c: New file.
556         * modules/unicase/u16-toupper: New file.
557
558         New module 'unicase/u8-toupper'.
559         * lib/unicase/u8-toupper.c: New file.
560         * modules/unicase/u8-toupper: New file.
561
562         New module 'unicase/u32-casemap'.
563         * lib/unicase/u32-casemap.c: New file.
564         * modules/unicase/u32-casemap: New file.
565
566         New module 'unicase/u16-casemap'.
567         * lib/unicase/u16-casemap.c: New file.
568         * modules/unicase/u16-casemap: New file.
569
570         New module 'unicase/u8-casemap'.
571         * lib/unicase/unicasemap.h: New file.
572         * lib/unicase/u8-casemap.c: New file.
573         * lib/unicase/u-casemap.h: New file.
574         * modules/unicase/u8-casemap: New file.
575
576         New module 'unicase/special-casing'.
577         * lib/unicase/special-casing.h: New file.
578         * lib/unicase/special-casing.c: New file.
579         * lib/unicase/special-casing-table.gperf: New file, generated by
580         gen-uni-tables.c.
581         * modules/unicase/special-casing: New file.
582
583         Tests for module 'unicase/locale-language'.
584         * modules/unicase/locale-language-tests: New file.
585         * tests/unicase/test-locale-language.sh: New file.
586         * tests/unicase/test-locale-language.c: New file.
587
588         New module 'unicase/locale-language'.
589         * lib/unicase/locale-language.c: New file.
590         * lib/unicase/locale-languages.gperf: New file.
591         * modules/unicase/locale-language: New file.
592
593         Generate more tables for case conversion and case folding.
594         * lib/gen-uni-tables.c (SCC_*): New enum items.
595         (struct special_casing_rule): New type.
596         (casing_rules, num_casing_rules, allocated_casing_rules): New
597         variables.
598         (add_casing_rule, fill_casing_rules): New functions.
599         (struct casefold_rule): New type.
600         (casefolding_rules, num_casefolding_rules,
601         allocated_casefolding_rules): New variables.
602         (fill_casefolding_rules): New function.
603         (unicode_casefold): New variable.
604         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
605         sort_casing_rules, output_casing_rules): New functions.
606         (main): Accept to more arguments: SpecialCasing.txt and
607         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
608         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
609         Output mapping for casefolding.
610
611         * lib/unicase.h: Include stdbool.h, uninorm.h.
612         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
613         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
614         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
615         arguments.
616         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
617         resultp arguments.
618         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
619         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
620         resultp arguments.
621         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
622         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
623         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
624         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
625         declarations.
626         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
627
628 2009-03-08  Bruno Haible  <bruno@clisp.org>
629
630         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
631         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
632         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
633         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
634
635 2009-03-07  Bruno Haible  <bruno@clisp.org>
636
637         Adjust u*_normcmp, u*_normcoll API.
638         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
639         u16_normcoll, u32_normcoll): Change failure conventions.
640         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
641         errno and return -1.
642         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
643
644 2009-03-07  Bruno Haible  <bruno@clisp.org>
645
646         Tests for module 'uninorm/u32-normcoll'.
647         * modules/uninorm/u32-normcoll-tests: New file.
648         * tests/uninorm/test-u32-normcoll.c: New file.
649
650         Tests for module 'uninorm/u16-normcoll'.
651         * modules/uninorm/u16-normcoll-tests: New file.
652         * tests/uninorm/test-u16-normcoll.c: New file.
653
654         Tests for module 'uninorm/u8-normcoll'.
655         * modules/uninorm/u8-normcoll-tests: New file.
656         * tests/uninorm/test-u8-normcoll.c: New file.
657
658 2009-03-07  Bruno Haible  <bruno@clisp.org>
659
660         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
661         tests/uninorm/test-u32-normcmp.c.
662         * tests/uninorm/test-u32-normcmp.c: Include it.
663         (test_nonascii): New function, extracted from main. Add some more
664         tests.
665         (main): Invoke test_ascii and test_nonascii.
666         * modules/uninorm/u32-normcmp-tests (Files): Add
667         tests/uninorm/test-u32-normcmp.h.
668         (Depends-on): Remove uninorm/u32-normcmp.
669
670         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
671         tests/uninorm/test-u16-normcmp.c.
672         * tests/uninorm/test-u16-normcmp.c: Include it.
673         (test_nonascii): New function, extracted from main. Add some more
674         tests.
675         (main): Invoke test_ascii and test_nonascii.
676         * modules/uninorm/u16-normcmp-tests (Files): Add
677         tests/uninorm/test-u16-normcmp.h.
678         (Depends-on): Remove uninorm/u16-normcmp.
679
680         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
681         tests/uninorm/test-u8-normcmp.c.
682         * tests/uninorm/test-u8-normcmp.c: Include it.
683         (test_nonascii): New function, extracted from main. Add some more
684         tests.
685         (main): Invoke test_ascii and test_nonascii.
686         * modules/uninorm/u8-normcmp-tests (Files): Add
687         tests/uninorm/test-u8-normcmp.h.
688         (Depends-on): Remove uninorm/u8-normcmp.
689
690 2009-03-07  Bruno Haible  <bruno@clisp.org>
691
692         New module 'uninorm/u32-normcoll'.
693         * lib/uninorm/u32-normcoll.c: New file.
694         * modules/uninorm/u32-normcoll: New file.
695
696         New module 'uninorm/u16-normcoll'.
697         * lib/uninorm/u16-normcoll.c: New file.
698         * modules/uninorm/u16-normcoll: New file.
699
700         New module 'uninorm/u8-normcoll'.
701         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
702         declarations.
703         * lib/uninorm/u8-normcoll.c: New file.
704         * lib/uninorm/u-normcoll.h: New file.
705         * modules/uninorm/u8-normcoll: New file.
706
707         New module 'uninorm/u32-normxfrm'.
708         * lib/uninorm/u32-normxfrm.c: New file.
709         * modules/uninorm/u32-normxfrm: New file.
710
711         New module 'uninorm/u16-normxfrm'.
712         * lib/uninorm/u16-normxfrm.c: New file.
713         * modules/uninorm/u16-normxfrm: New file.
714
715         New module 'uninorm/u8-normxfrm'.
716         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
717         declarations.
718         * lib/uninorm/u8-normxfrm.c: New file.
719         * lib/uninorm/u-normxfrm.h: New file.
720         * modules/uninorm/u8-normxfrm: New file.
721
722 2009-03-07  Bruno Haible  <bruno@clisp.org>
723
724         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
725         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
726         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
727
728 2009-03-07  Bruno Haible  <bruno@clisp.org>
729
730         New module 'memxfrm'.
731         * lib/memxfrm.h: New file.
732         * lib/memxfrm.c: New file.
733         * modules/memxfrm: New file.
734
735 2009-03-07  Bruno Haible  <bruno@clisp.org>
736
737         New module 'memcmp2'.
738         * lib/memcmp2.h: New file.
739         * lib/memcmp2.c: New file.
740         * modules/memcmp2: New file.
741
742 2009-03-07  Bruno Haible  <bruno@clisp.org>
743
744         Tests for module 'uninorm/decomposing-form'.
745         * modules/uninorm/decomposing-form-tests: New file.
746         * tests/uninorm/test-decomposing-form.c: New file.
747
748         New module 'uninorm/decomposing-form'.
749         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
750         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
751         Add 'decomposing_variant' field.
752         * lib/uninorm/decomposing-form.c: New file.
753         * lib/uninorm/nfc.c (uninorm_nfc): Update.
754         * lib/uninorm/nfd.c (uninorm_nfd): Update.
755         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
756         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
757         * modules/uninorm/decomposing-form: New file.
758         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
759         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
760
761 2009-03-07  Bruno Haible  <bruno@clisp.org>
762
763         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
764         strings.
765
766 2009-03-06  Bruno Haible  <bruno@clisp.org>
767
768         Tests for module 'uninorm/u32-normcmp'.
769         * tests/uninorm/test-u32-normcmp.c: New file.
770         * modules/uninorm/u32-normcmp-tests: New file.
771
772         Tests for module 'uninorm/u16-normcmp'.
773         * tests/uninorm/test-u16-normcmp.c: New file.
774         * modules/uninorm/u16-normcmp-tests: New file.
775
776         Tests for module 'uninorm/u8-normcmp'.
777         * tests/uninorm/test-u8-normcmp.c: New file.
778         * modules/uninorm/u8-normcmp-tests: New file.
779
780         New module 'uninorm/u32-normcmp'.
781         * lib/uninorm/u32-normcmp.c: New file.
782         * modules/uninorm/u32-normcmp: New file.
783
784         New module 'uninorm/u16-normcmp'.
785         * lib/uninorm/u16-normcmp.c: New file.
786         * modules/uninorm/u16-normcmp: New file.
787
788         New module 'uninorm/u8-normcmp'.
789         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
790         declarations.
791         * lib/uninorm/u8-normcmp.c: New file.
792         * lib/uninorm/u-normcmp.h: New file.
793         * modules/uninorm/u8-normcmp: New file.
794
795 2009-03-06  Bruno Haible  <bruno@clisp.org>
796
797         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
798         Reported by Eric Blake.
799
800 2009-03-06  Eric Blake  <ebb9@byu.net>
801             Bruno Haible  <bruno@clisp.org>
802
803         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
804         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
805         condition.
806         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
807         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
808         condition.
809         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
810
811 2009-03-06  Eric Blake  <ebb9@byu.net>
812
813         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
814         to avoid compiler warnings.
815         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
816
817 2009-03-05  Bruno Haible  <bruno@clisp.org>
818
819         * tests/test-ftell.c (main): Disable test beyond end of file on
820         FreeMiNT.
821         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
822
823 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
824
825         * lib/filevercmp.c: Move hidden files up in ordering.
826         * tests/test-filevercmp.c: Add tests for hidden files.
827
828 2009-03-04  Bruno Haible  <bruno@clisp.org>
829
830         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
831         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
832         AM_CFLAGS.
833         Reported by Simon Josefsson.
834
835 2009-03-03  Bruno Haible  <bruno@clisp.org>
836
837         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
838         Reported by Simon Josefsson.
839
840         * doc/ld-version-script.texi: Update node reference.
841
842 2009-03-03  Bruno Haible  <bruno@clisp.org>
843
844         * modules/visibility (License): Change to 'unlimited'.
845         Suggested by Simon Josefsson.
846
847 2009-03-03  Jim Meyering  <meyering@redhat.com>
848
849         unlinkdir: cannot_unlink_dir may modify process state
850         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
851         it's neither thread-safe nor appropriate for use in a library.
852
853 2009-03-03  Eric Blake  <ebb9@byu.net>
854
855         test-closein: silence test under Darwin
856         * tests/test-closein.sh: Ignore stderr from cat, since we don't
857         care if it dies from EPIPE or EBADF.
858
859 2009-03-03  Bruno Haible  <bruno@clisp.org>
860
861         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
862         earlier.
863         * doc/visibility.texi: Fix @node and @section.
864
865 2009-03-03  Simon Josefsson  <simon@josefsson.org>
866
867         * doc/gnulib.texi: Link to sections for ld version script and
868         visibility.
869         * doc/visibility.texi: Add @node and @section.
870         * modules/ld-version-script: New module.
871         * m4/ld-version-script.m4: New file.
872         * doc/ld-version-script.texi: New file.
873
874 2009-03-02  David Lutterkort  <lutter@redhat.com>
875
876         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
877         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
878
879 2009-03-02  Bruno Haible  <bruno@clisp.org>
880
881         * doc/visibility.texi: Mention libtool's -export-symbols option.
882
883 2009-03-02  Jim Meyering  <meyering@redhat.com>
884
885         announce-gen: new option: --no-print-checksums
886         * build-aux/announce-gen (usage): Describe it.
887         (print_checksums): Print a newline here, not in the [*] footnote.
888         (main): Honor it.
889
890 2009-03-01  Bruno Haible  <bruno@clisp.org>
891
892         Use socklen_t in the native Windows replacements prototypes.
893         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
894         instead of 'int'.
895         * lib/getsockopt.c (rpl_getsockopt): Likewise.
896         * lib/setsockopt.c (rpl_setsockopt): Likewise.
897         * modules/getsockopt (Depends-on): Add socklen.
898         * modules/setsockopt (Depends-on): Add socklen.
899
900 2009-03-01  Bruno Haible  <bruno@clisp.org>
901
902         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
903         least 4.2.
904
905 2009-03-01  Eric Blake  <ebb9@byu.net>
906             Bruno Haible  <bruno@clisp.org>
907
908         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
909         error messages.
910         * lib/wait-process.c (wait_subprocess): Omit error message about
911         deadly signal sent to the child of termsigp != NULL.
912
913 2009-03-01  Eric Blake  <ebb9@byu.net>
914
915         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
916
917 2009-03-01  Bruno Haible  <bruno@clisp.org>
918
919         Avoid a gcc warning.
920         * tests/test-sched.c (b): Make global.
921         Reported by Eric Blake.
922
923 2009-01-19  Martin Lambers  <marlam@marlam.de>
924
925         Provide POSIX semantics for socket timeout options on W32.
926         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
927         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
928         * modules/setsockopt: Depend on sys_time module for struct timeval.
929         * modules/getsockopt: Depend on sys_time module for struct timeval.
930
931 2009-03-01  Simon Josefsson  <simon@josefsson.org>
932
933         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
934         __USE_GNU, for consistency with netdb.in.h.
935         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
936
937 2009-03-01  Bruno Haible  <bruno@clisp.org>
938
939         More support for FreeMiNT.
940         * lib/fseeko.c (rpl_fseeko): Complete last commit.
941         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
942
943 2009-03-01  Bruno Haible  <bruno@clisp.org>
944
945         More support for FreeMiNT.
946         * lib/fpurge.c (fpurge): Correct last commit.
947         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
948
949 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
950
951         Fix unportable awk script in vc-list-files.
952         * build-aux/vc-list-files: In the replacement awk script, use
953         substr with a second argument of 1, not zero.
954         Report by Simon Josefsson.
955
956 2009-02-28  Bruno Haible  <bruno@clisp.org>
957
958         More support for FreeMiNT.
959         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
960         to FreeMiNT today.
961         * lib/fwriting.c (fwriting): Likewise.
962         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
963
964 2009-02-28  Bruno Haible  <bruno@clisp.org>
965
966         * tests/test-freadseek.c (main): Disable test beyond end of file on
967         FreeMiNT.
968         * tests/test-ftello.c (main): Likewise.
969         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
970
971 2009-02-28  Bruno Haible  <bruno@clisp.org>
972
973         Add tentative support for FreeMiNT.
974         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
975         * lib/fpurge.c (fpurge): Likewise.
976         * lib/freadable.c (freadable): Likewise.
977         * lib/freading.c (freading): Likewise.
978         * lib/freadptr.c (freadptr): Likewise.
979         * lib/freadseek.c (freadptrinc): Likewise.
980         * lib/fseeko.c (rpl_fseeko): Likewise.
981         * lib/fseterr.c (fseterr): Likewise.
982         * lib/fwritable.c (fwritable): Likewise.
983         * lib/fwriting.c (fwriting): Likewise.
984         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
985         Hourihane.
986         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
987
988 2009-02-28  Bruno Haible  <bruno@clisp.org>
989
990         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
991         SIGCHLD.
992         Reported by Jim Meyering.
993
994 2009-02-28  Bruno Haible  <bruno@clisp.org>
995
996         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
997         Mention the results of these tests on various platforms.
998         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
999         order.
1000         * doc/posix-functions/printf.texi: Likewise.
1001         * doc/posix-functions/snprintf.texi: Likewise.
1002         * doc/posix-functions/sprintf.texi: Likewise.
1003         * doc/posix-functions/vfprintf.texi: Likewise.
1004         * doc/posix-functions/vprintf.texi: Likewise.
1005         * doc/posix-functions/vsnprintf.texi: Likewise.
1006         * doc/posix-functions/vsprintf.texi: Likewise.
1007         * doc/glibc-functions/obstack_printf.texi: Likewise.
1008         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
1009
1010 2009-02-28  Bruno Haible  <bruno@clisp.org>
1011
1012         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
1013         Reported by Loïc Minier <lool@dooz.org>.
1014
1015 2009-02-27  Bruno Haible  <bruno@clisp.org>
1016
1017         * gnulib-tool (func_import): Make the sed expression used to create the
1018         sed script for updating the .gitignore file POSIX compliant.
1019         Reported by Eric Blake.
1020
1021 2009-02-27  Bruno Haible  <bruno@clisp.org>
1022
1023         * gnulib-tool (sed): Don't alias as "sed --posix".
1024         Reported by Eric Blake.
1025
1026 2009-02-27  Bruno Haible  <bruno@clisp.org>
1027
1028         Avoid test link errors.
1029         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
1030         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
1031         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
1032         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
1033         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1034
1035 2009-02-27  Bruno Haible  <bruno@clisp.org>
1036
1037         Avoid spurious "(cached)" in configure output.
1038         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
1039         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
1040         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
1041         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
1042         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
1043         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
1044         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
1045         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
1046         Reported by Eric Blake.
1047
1048 2009-02-27  Eric Blake  <ebb9@byu.net>
1049
1050         printf: fix regression in previous patch
1051         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
1052
1053 2009-02-27  Bruno Haible  <bruno@clisp.org>
1054
1055         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
1056         value.
1057         * lib/stdint.in.h: Likewise.
1058         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
1059
1060 2009-02-27  Eric Blake  <ebb9@byu.net>
1061
1062         doc: mention more functions added in cygwin 1.7.0
1063         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
1064         addition.
1065         * doc/posix-functions/open_wmemstream.texi: Likewise.
1066         * doc/posix-functions/wcsnlen.texi: Likewise.
1067         * doc/posix-functions/wcsnrtombs.texi: Likewise.
1068         * doc/posix-functions/wcstod.texi: Likewise.
1069         * doc/posix-functions/wcstof.texi: Likewise.
1070         * doc/posix-functions/wcstoimax.texi: Likewise.
1071         * doc/posix-functions/wcstok.texi: Likewise.
1072         * doc/posix-functions/wcstoumax.texi: Likewise.
1073
1074         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
1075         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
1076         * doc/posix-functions/fprintf.texi: Update.
1077         * doc/posix-functions/printf.texi: Update.
1078         * doc/posix-functions/snprintf.texi: Update.
1079         * doc/posix-functions/sprintf.texi: Update.
1080         * doc/posix-functions/vfprintf.texi: Update.
1081         * doc/posix-functions/vprintf.texi: Update.
1082         * doc/posix-functions/vsnprintf.texi: Update.
1083         * doc/posix-functions/vsprintf.texi: Update.
1084         * doc/glibc-functions/obstack_printf.texi: Update.
1085         * doc/glibc-functions/obstack_vprintf.texi: Update.
1086
1087 2009-02-26  Eric Blake  <ebb9@byu.net>
1088
1089         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
1090         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
1091         compilation bug by using runtime conversion.
1092         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
1093         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
1094         * modules/ceill-tests (Files): Use nan.h.
1095         * modules/floorl-tests (Files): Likewise.
1096         * modules/frexpl-tests (Files): Likewise.
1097         * modules/isnanl-tests (Files): Likewise.
1098         * modules/ldexpl-tests (Files): Likewise.
1099         * modules/roundl-tests (Files): Likewise.
1100         * modules/truncl-tests (Files): Likewise.
1101         * tests/test-ceill.c (main): Use a working NaN.
1102         * tests/test-floorl.c (main): Likewise.
1103         * tests/test-frexpl.c (main): Likewise.
1104         * tests/test-isnan.c (test_long_double): Likewise.
1105         * tests/test-isnanl.h (main): Likewise.
1106         * tests/test-ldexpl.h (main): Likewise.
1107         * tests/test-roundl.h (main): Likewise.
1108         * tests/test-truncl.h (main): Likewise.
1109         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
1110
1111 2009-02-26  Eric Blake  <ebb9@byu.net>
1112             Bruno Haible  <bruno@clisp.org>
1113
1114         Work around a *printf bug with %ls on Solaris.
1115         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
1116         precision is specified, sprintf stops converting the wide string
1117         argument when the number of bytes that have been produced by this
1118         conversion equals or exceeds the precision.
1119         * doc/posix-functions/fprintf.texi: Update.
1120         * doc/posix-functions/printf.texi: Update.
1121         * doc/posix-functions/snprintf.texi: Update.
1122         * doc/posix-functions/sprintf.texi: Update.
1123         * doc/posix-functions/vfprintf.texi: Update.
1124         * doc/posix-functions/vprintf.texi: Update.
1125         * doc/posix-functions/vsnprintf.texi: Update.
1126         * doc/posix-functions/vsprintf.texi: Update.
1127         * doc/glibc-functions/obstack_printf.texi: Update.
1128         * doc/glibc-functions/obstack_vprintf.texi: Update.
1129
1130 2009-02-26  Eric Blake  <ebb9@byu.net>
1131
1132         stdlib: favor compiler check of random.h
1133         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
1134         to avoid an ObjC random.h installed by Swarm.
1135
1136 2009-02-26  Bruno Haible  <bruno@clisp.org>
1137
1138         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
1139         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
1140         Reported by Gary V. Vaughan <gary@gnu.org>.
1141
1142 2009-02-26  Bruno Haible  <bruno@clisp.org>
1143
1144         Fix *printf behaviour regarding the %ls directive.
1145         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
1146         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
1147         NEED_PRINTF_DIRECTIVE_LS.
1148         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
1149         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
1150         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1151         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
1152         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
1153         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
1154         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
1155         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1156         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1157         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1158         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1159         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
1160         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1161         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1162         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1163         * doc/posix-functions/fprintf.texi: Update.
1164         * doc/posix-functions/printf.texi: Update.
1165         * doc/posix-functions/snprintf.texi: Update.
1166         * doc/posix-functions/sprintf.texi: Update.
1167         * doc/posix-functions/vfprintf.texi: Update.
1168         * doc/posix-functions/vprintf.texi: Update.
1169         * doc/posix-functions/vsnprintf.texi: Update.
1170         * doc/posix-functions/vsprintf.texi: Update.
1171         * doc/glibc-functions/obstack_printf.texi: Update.
1172         * doc/glibc-functions/obstack_vprintf.texi: Update.
1173         Reported by Eric Blake.
1174
1175 2009-02-25  Bruno Haible  <bruno@clisp.org>
1176
1177         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
1178         with known value.
1179         Reported by Gary V. Vaughan <gary@gnu.org>.
1180
1181 2009-02-25  Bruno Haible  <bruno@clisp.org>
1182
1183         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
1184         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
1185         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
1186         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
1187         Reported by Gary V. Vaughan <gary@gnu.org>.
1188
1189 2009-02-25  Bruno Haible  <bruno@clisp.org>
1190
1191         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
1192         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
1193         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
1194         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
1195         Reported by Gary V. Vaughan <gary@gnu.org>.
1196
1197 2009-02-25  Eric Blake  <ebb9@byu.net>
1198
1199         tests: skip fseek/ftell tests if ungetc is broken
1200         * m4/ungetc.m4: New file.
1201         * modules/fseek-tests: Split test, so ungetc dependency is
1202         separate from rest of test.
1203         * modules/fseeko-tests: Likewise.
1204         * modules/ftell-tests: Likewise.
1205         * modules/ftello-tests: Likewise.
1206         * tests/test-fseek.c (main): Isolate ungetc dependency.
1207         * tests/test-fseeko.c (main): Likewise.
1208         * tests/test-ftell.c (main): Likewise.
1209         * tests/test-ftello.c (main): Likewise.
1210         * tests/test-fseek2.sh: New file.
1211         * tests/test-fseeko2.sh: Likewise.
1212         * tests/test-ftell2.sh: Likewise.
1213         * tests/test-ftello2.sh: Likewise.
1214
1215 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
1216
1217         test-getaddrinfo: fix usage of skip return code 77
1218         * tests/test-gettaddrinfo.c: Return skip code 77 only
1219         for first occurance of skip (4x77 is not 77)
1220
1221 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
1222
1223         strtod: avoid C99 decl-after-statement
1224         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
1225
1226 2009-02-24  Eric Blake  <ebb9@byu.net>
1227
1228         strtod: detect HP-UX 11.31 bug
1229         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
1230         Reported by Gary V. Vaughan.
1231
1232 2009-02-23  Bruno Haible  <bruno@clisp.org>
1233
1234         Fix invalid read past end of memory block.
1235         * lib/vasnprintf.c (DCHAR_SET): Define.
1236         (local_wcslen): Define only when needed.
1237         (local_strnlen, local_wcsnlen): New functions.
1238         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
1239         directives that involve a conversion ourselves.
1240         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
1241         wcsnlen, mbrtowc, wcrtomb.
1242         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
1243         * tests/test-vasprintf-posix.c (test_function): Likewise.
1244         * tests/test-snprintf-posix.h (test_function): Likewise.
1245         * tests/test-sprintf-posix.h (test_function): Likewise.
1246         Reported by Ben Pfaff <blp@cs.stanford.edu>.
1247
1248 2009-02-22  Bruno Haible  <bruno@clisp.org>
1249
1250         Implement new clarified decomposition of Hangul syllables.
1251         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
1252         of type LTV, return only a pairwise decomposition.
1253         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
1254         Likewise.
1255         * tests/uninorm/test-decomposition.c (main): Updated expected result.
1256         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
1257         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
1258
1259 2009-02-22  Bruno Haible  <bruno@clisp.org>
1260
1261         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
1262         zero-length results and shrink excess allocated memory.
1263         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
1264         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
1265         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
1266         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
1267         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
1268         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
1269         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
1270         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
1271         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
1272         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
1273         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
1274         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
1275
1276 2009-02-21  Bruno Haible  <bruno@clisp.org>
1277
1278         * doc/gnulib.texi: Include safe-alloc.texi earlier.
1279         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
1280         spaces after a period. Put a space between a macro name and its
1281         argument list. Trivial rewordings.
1282         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
1283         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
1284         (main): Return 0 explicitly.
1285
1286 2009-02-21  Bruno Haible  <bruno@clisp.org>
1287
1288         Tests for module 'uninorm/filter'.
1289         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
1290         * modules/uninorm/filter-tests: New file.
1291
1292         New module 'uninorm/filter'.
1293         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
1294         uninorm_filter_flush, uninorm_filter_free): New declarations.
1295         * lib/uninorm/uninorm-filter.c: New file.
1296         * modules/uninorm/filter: New file.
1297
1298 2009-02-21  Bruno Haible  <bruno@clisp.org>
1299
1300         Tests for module 'uninorm/nfkc'.
1301         * tests/uninorm/test-nfkc.c: New file.
1302         * tests/uninorm/test-u8-nfkc.c: New file.
1303         * tests/uninorm/test-u16-nfkc.c: New file.
1304         * tests/uninorm/test-u32-nfkc.c: New file.
1305         * tests/uninorm/test-u32-nfkc-big.sh: New file.
1306         * tests/uninorm/test-u32-nfkc-big.c: New file.
1307         * modules/uninorm/nfkc-tests: New file.
1308
1309         New module 'uninorm/nfkc'.
1310         * lib/uninorm/nfkc.c: New file.
1311         * modules/uninorm/nfkc: New file.
1312
1313         Tests for module 'uninorm/nfkd'.
1314         * tests/uninorm/test-nfkd.c: New file.
1315         * tests/uninorm/test-u8-nfkd.c: New file.
1316         * tests/uninorm/test-u16-nfkd.c: New file.
1317         * tests/uninorm/test-u32-nfkd.c: New file.
1318         * tests/uninorm/test-u32-nfkd-big.sh: New file.
1319         * tests/uninorm/test-u32-nfkd-big.c: New file.
1320         * modules/uninorm/nfkd-tests: New file.
1321
1322         New module 'uninorm/nfkd'.
1323         * lib/uninorm/nfkd.c: New file.
1324         * modules/uninorm/nfkd: New file.
1325
1326         Tests for module 'uninorm/nfc'.
1327         * tests/uninorm/test-nfc.c: New file.
1328         * tests/uninorm/test-u8-nfc.c: New file.
1329         * tests/uninorm/test-u16-nfc.c: New file.
1330         * tests/uninorm/test-u32-nfc.c: New file.
1331         * tests/uninorm/test-u32-nfc-big.sh: New file.
1332         * tests/uninorm/test-u32-nfc-big.c: New file.
1333         * modules/uninorm/nfc-tests: New file.
1334
1335         New module 'uninorm/nfc'.
1336         * lib/uninorm/nfc.c: New file.
1337         * modules/uninorm/nfc: New file.
1338
1339         Tests for module 'uninorm/nfd'.
1340         * tests/uninorm/test-nfd.c: New file.
1341         * tests/uninorm/test-u8-nfd.c: New file.
1342         * tests/uninorm/test-u16-nfd.c: New file.
1343         * tests/uninorm/test-u32-nfd.c: New file.
1344         * tests/uninorm/test-u32-nfd-big.sh: New file.
1345         * tests/uninorm/test-u32-nfd-big.c: New file.
1346         * tests/uninorm/test-u32-normalize-big.h: New file.
1347         * tests/uninorm/test-u32-normalize-big.c: New file.
1348         * tests/uninorm/NormalizationTest.txt: New file, created from
1349         Unicode 5.1.0 NormalizationTest.txt.
1350         * modules/uninorm/nfd-tests: New file.
1351
1352         New module 'uninorm/nfd'.
1353         * lib/uninorm/nfd.c: New file.
1354         * modules/uninorm/nfd: New file.
1355
1356         New module 'uninorm/u32-normalize'.
1357         * lib/uninorm/u32-normalize.c: New file.
1358         * modules/uninorm/u32-normalize: New file.
1359
1360         New module 'uninorm/u16-normalize'.
1361         * lib/uninorm/u16-normalize.c: New file.
1362         * modules/uninorm/u16-normalize: New file.
1363
1364         New module 'uninorm/u8-normalize'.
1365         * lib/uninorm/u8-normalize.c: New file.
1366         * lib/uninorm/normalize-internal.h: New file.
1367         * lib/uninorm/u-normalize-internal.h: New file.
1368         * modules/uninorm/u8-normalize: New file.
1369
1370         New module 'uninorm/decompose-internal'.
1371         * lib/uninorm/decompose-internal.c: New file.
1372         * modules/uninorm/decompose-internal: New file.
1373
1374         Tests for module 'uninorm/composition'.
1375         * tests/uninorm/test-composition.c: New file.
1376         * modules/uninorm/composition-tests: New file.
1377
1378         New module 'uninorm/composition'.
1379         * lib/uninorm/composition.c: New file.
1380         * lib/uninorm/composition-table.gperf: New file, generated by
1381         gen-uni-tables.
1382         * modules/uninorm/composition: New file.
1383
1384         Tests for module 'uninorm/compat-decomposition'.
1385         * tests/uninorm/test-compat-decomposition.c: New file.
1386         * modules/uninorm/compat-decomposition-tests: New file.
1387
1388         New module 'uninorm/compat-decomposition'.
1389         * lib/uninorm/decompose-internal.h: New file.
1390         * lib/uninorm/compat-decomposition.c: New file.
1391         * modules/uninorm/compat-decomposition: New file.
1392
1393         Tests for module 'uninorm/canonical-decomposition'.
1394         * tests/uninorm/test-canonical-decomposition.c: New file.
1395         * modules/uninorm/canonical-decomposition-tests: New file.
1396
1397         New module 'uninorm/canonical-decomposition'.
1398         * lib/uninorm/canonical-decomposition.c: New file.
1399         * modules/uninorm/canonical-decomposition: New file.
1400
1401         Tests for module 'uninorm/decomposition'.
1402         * tests/uninorm/test-decomposition.c: New file.
1403         * modules/uninorm/decomposition-tests: New file.
1404
1405         New module 'uninorm/decomposition'.
1406         * lib/uninorm/decomposition.c: New file.
1407         * modules/uninorm/decomposition: New file.
1408
1409         New module 'uninorm/decomposition-table'.
1410         * lib/uninorm/decomposition-table.h: New file.
1411         * lib/uninorm/decomposition-table.c: New file.
1412         * lib/uninorm/decomposition-table1.h: New file, generated by
1413         gen-uni-tables.
1414         * lib/uninorm/decomposition-table2.h: New file, generated by
1415         gen-uni-tables.
1416         * modules/uninorm/decomposition-table: New file.
1417
1418         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
1419         (UC_DECOMP_*): New enumeration items.
1420         (get_decomposition): New function.
1421         (struct decomp_table): New type.
1422         (output_decomposition, output_decomposition_tables): New functions.
1423         (unicode_composition_exclusions): New variable.
1424         (fill_composition_exclusions, debug_output_composition_tables): New
1425         functions.
1426         (main): Accept one more argument. Invoke fill_composition_exclusions.
1427         Output decomposition and composition tables.
1428
1429         New module 'uninorm/base'.
1430         * lib/uninorm.h: New file.
1431         * lib/unictype.h: Update comment.
1432         * modules/uninorm/base: New file.
1433
1434 2009-02-21  David Lutterkort  <lutter@redhat.com>
1435
1436         Tests for module 'safe-alloc'.
1437         * tests/test-safe-alloc.c: New file.
1438         * modules/safe-alloc-tests: New file.
1439
1440         New module 'safe-alloc'.
1441         * lib/safe-alloc.h: New file.
1442         * lib/safe-alloc.c: New file.
1443         * m4/safe-alloc.m4: New file.
1444         * modules/safe-alloc: New file.
1445         * doc/safe-alloc.texi: New file.
1446         * doc/gnulib.texi: Include it.
1447         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
1448         safe-alloc.
1449
1450 2009-02-18  Bruno Haible  <bruno@clisp.org>
1451
1452         Fix link error on non-glibc systems.
1453         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
1454         variable.
1455         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1456
1457 2009-02-18  Jim Meyering  <meyering@redhat.com>
1458
1459         fts: avoid used-uninitialized error due to recent change
1460         * lib/fts.c (fts_read): Guard uses of the new member,
1461         parent->fts_n_dirs_remaining, since it's not relevant for
1462         the parent of a directory specified on the command-line.
1463
1464 2009-02-17  James Youngman  <jay@gnu.org>
1465             Bruno Haible  <bruno@clisp.org>
1466
1467         * m4/include_next.m4: Reformulate comment.
1468
1469 2009-02-16  Jim Meyering  <meyering@redhat.com>
1470
1471         fts: add #if guards so that the fts_lgpl module still builds
1472         * lib/fts.c: Guard just-added hash-table-using parts with
1473         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
1474         Reported by Simon Josefsson.
1475
1476 2009-02-15  Bruno Haible  <bruno@clisp.org>
1477
1478         * modules/array-mergesort-tests: New file.
1479         * tests/test-array-mergesort.c: New file.
1480
1481         New module 'array-mergesort'.
1482         * modules/array-mergesort: New file.
1483         * lib/array-mergesort.h: New file.
1484
1485 2009-02-15  Bruno Haible  <bruno@clisp.org>
1486
1487         Fix 2009-02-07 commit.
1488         * lib/gen-uni-tables.c (output_predicate, output_category,
1489         output_combclass, output_bidi_category, output_decimal_digit,
1490         output_digit, output_numeric, output_mirror, output_scripts,
1491         output_ident_category, output_simple_mapping): Fix format directives.
1492         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
1493
1494 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
1495
1496         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
1497         fixes are available from IBM.
1498
1499 2009-02-13  Jim Meyering  <meyering@redhat.com>
1500
1501         fts: arrange not to stat non-directories in more cases
1502         This makes GNU find (when it doesn't need to stat each file)
1503         *much* more efficient at traversing reiserfs file systems.
1504         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
1505         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
1506         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
1507         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
1508         (leaf_optimization_applies): New function.
1509         (LCO_hash, LCO_compare): New helper functions.
1510         (link_count_optimize_ok): New function.
1511         (fts_stat): Initialize new member (if dir).
1512         (fts_read): Decrement parent's fts_n_dirs_remaining count if
1513         we've just stat'ed a directory.  Skip the stat call when possible.
1514         ---
1515         Note this AFS-related exchange:
1516         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
1517         and note find's pioctl call in find/fstype.c.
1518         But that is necessary only if you want to enable the
1519         optimization for AFS, and for now, I don't.
1520
1521         fts: move a function definition "up" (no semantic change)
1522         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
1523         "up" to precede upcoming use of a related function.
1524
1525 2009-02-11  Jim Meyering  <meyering@redhat.com>
1526
1527         fts: correct internal computation of nlinks (optimization-related)
1528         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
1529         whether the current entry is a directory, so don't test it.
1530
1531 2009-02-10  Bruno Haible  <bruno@clisp.org>
1532
1533         Tests for module 'uniwbrk/ulc-wordbreaks'.
1534         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
1535         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
1536         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
1537
1538         Tests for module 'uniwbrk/u32-wordbreaks'.
1539         * modules/uniwbrk/u32-wordbreaks-tests: New file.
1540         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
1541
1542         Tests for module 'uniwbrk/u16-wordbreaks'.
1543         * modules/uniwbrk/u16-wordbreaks-tests: New file.
1544         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
1545
1546         Tests for module 'uniwbrk/u8-wordbreaks'.
1547         * modules/uniwbrk/u8-wordbreaks-tests: New file.
1548         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
1549
1550 2009-02-10  Bruno Haible  <bruno@clisp.org>
1551
1552         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
1553         property.
1554         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
1555         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
1556         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
1557
1558 2009-02-10  Simon Josefsson  <simon@josefsson.org>
1559
1560         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
1561         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
1562
1563 2009-02-10  Bruno Haible  <bruno@clisp.org>
1564
1565         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
1566         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
1567         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
1568         * lib/unilbrk/u8-possible-linebreaks.c: Update.
1569         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
1570         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
1571
1572 2009-02-09  Simon Josefsson  <simon@josefsson.org>
1573
1574         * lib/sockets.h (gl_fd_to_handle): New function.
1575
1576         * tests/test-sockets.c: Call gl_fd_to_handle.
1577
1578 2009-02-09  Bruno Haible  <bruno@clisp.org>
1579
1580         * doc/havelib.texi: Document the conventions on bi-arch systems.
1581
1582 2009-02-08  Bruno Haible  <bruno@clisp.org>
1583
1584         Document the AC_LIB_LINKFLAGS macro.
1585         * doc/havelib.texi: New file, mostly written on 2005-05-24.
1586         * doc/gnulib.texi: Include it.
1587
1588 2009-02-08  Bruno Haible  <bruno@clisp.org>
1589
1590         Fix wrong order of sections, compared to TOC.
1591         * doc/gnulib.texi: Include relocatable-maint.texi after the
1592         "Regular expressions" node, not before.
1593
1594 2009-02-08  Bruno Haible  <bruno@clisp.org>
1595
1596         Tests for module 'unicase/totitle'.
1597         * modules/unicase/totitle-tests: New file.
1598
1599         Tests for module 'unicase/tolower'.
1600         * modules/unicase/tolower-tests: New file.
1601
1602         Tests for module 'unicase/toupper'.
1603         * modules/unicase/toupper-tests: New file.
1604         * tests/unicase/test-mapping-part1.h: New file.
1605         * tests/unicase/test-mapping-part2.h: New file.
1606
1607         New module 'unicase/totitle'.
1608         * modules/unicase/totitle: New file.
1609         * lib/unicase/totitle.c: New file.
1610
1611         New module 'unicase/tolower'.
1612         * modules/unicase/tolower: New file.
1613         * lib/unicase/tolower.c: New file.
1614
1615         New module 'unicase/toupper'.
1616         * modules/unicase/toupper: New file.
1617         * lib/unicase/toupper.c: New file.
1618         * lib/unicase/simple-mapping.h: New file.
1619
1620         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
1621         (mapping_table): New structure.
1622         (output_simple_mapping): New function.
1623         (main): Invoke output_simple_mapping_test and output_simple_mapping.
1624         * modules/gen-uni-tables (Description): Update.
1625         * lib/unicase/toupper.h: New file, automatically generated by
1626         gen-uni-tables.
1627         * lib/unicase/tolower.h: New file, automatically generated by
1628         gen-uni-tables.
1629         * lib/unicase/totitle.h: New file, automatically generated by
1630         gen-uni-tables.
1631         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
1632         gen-uni-tables.
1633         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
1634         gen-uni-tables.
1635         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
1636         gen-uni-tables.
1637
1638         New module 'unicase/base'.
1639         * modules/unicase/base: New file.
1640         * lib/unicase.h: New file.
1641
1642 2009-02-08  Bruno Haible  <bruno@clisp.org>
1643
1644         New module 'uniwbrk/ulc-wordbreaks'.
1645         * modules/uniwbrk/ulc-wordbreaks: New file.
1646         * lib/uniwbrk/ulc-wordbreaks.c: New file.
1647
1648         New module 'uniwbrk/u32-wordbreaks'.
1649         * modules/uniwbrk/u32-wordbreaks: New file.
1650         * lib/uniwbrk/u32-wordbreaks.c: New file.
1651
1652         New module 'uniwbrk/u16-wordbreaks'.
1653         * modules/uniwbrk/u16-wordbreaks: New file.
1654         * lib/uniwbrk/u16-wordbreaks.c: New file.
1655
1656         New module 'uniwbrk/u8-wordbreaks'.
1657         * modules/uniwbrk/u8-wordbreaks: New file.
1658         * lib/uniwbrk/u8-wordbreaks.c: New file.
1659         * lib/uniwbrk/u-wordbreaks.h: New file.
1660
1661         New module 'uniwbrk/table'.
1662         * modules/uniwbrk/table: New file.
1663         * lib/uniwbrk/wbrktable.h: New file.
1664         * lib/uniwbrk/wbrktable.c: New file.
1665
1666         New module 'uniwbrk/wordbreak-property'.
1667         * modules/uniwbrk/wordbreak-property: New file.
1668         * lib/uniwbrk/wordbreak-property.c: New file.
1669
1670         * lib/gen-uni-tables.c (WBP_*): New enum items.
1671         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
1672         (unicode_org_wbp): New variable.
1673         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
1674         New functions.
1675         (wbp_table): New structure.
1676         (output_wbp, output_wbrk_tables): New functions.
1677         (main): Accept additional argument. Invoke fill_org_wbp,
1678         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
1679         output_wbrk_tables.
1680         * modules/gen-uni-tables (Description): Update.
1681         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
1682         gen-uni-tables.
1683
1684         New module 'uniwbrk/base'.
1685         * modules/uniwbrk/base: New file.
1686         * lib/uniwbrk.h: New file.
1687
1688 2009-02-08  Bruno Haible  <bruno@clisp.org>
1689
1690         Update to Unicode 5.1.0.
1691         * lib/gen-uni-tables.c (is_property_alphabetic): Include
1692         U+2185..U+2188.
1693         (is_property_default_ignorable_code_point): Don't include characters
1694         of category Cc or Cs and not-a-characters.
1695         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
1696         U+0D79, U+109E, U+109F, U+A60C.
1697         * lib/unictype/bidi_of.h: Regenerated.
1698         * lib/unictype/blocks.h: Regenerated.
1699         * lib/unictype/categ_C.h: Regenerated.
1700         * lib/unictype/categ_Cf.h: Regenerated.
1701         * lib/unictype/categ_Cn.h: Regenerated.
1702         * lib/unictype/categ_L.h: Regenerated.
1703         * lib/unictype/categ_Ll.h: Regenerated.
1704         * lib/unictype/categ_Lm.h: Regenerated.
1705         * lib/unictype/categ_Lo.h: Regenerated.
1706         * lib/unictype/categ_Lu.h: Regenerated.
1707         * lib/unictype/categ_M.h: Regenerated.
1708         * lib/unictype/categ_Mc.h: Regenerated.
1709         * lib/unictype/categ_Me.h: Regenerated.
1710         * lib/unictype/categ_Mn.h: Regenerated.
1711         * lib/unictype/categ_N.h: Regenerated.
1712         * lib/unictype/categ_Nd.h: Regenerated.
1713         * lib/unictype/categ_Nl.h: Regenerated.
1714         * lib/unictype/categ_No.h: Regenerated.
1715         * lib/unictype/categ_P.h: Regenerated.
1716         * lib/unictype/categ_Pd.h: Regenerated.
1717         * lib/unictype/categ_Pe.h: Regenerated.
1718         * lib/unictype/categ_Pf.h: Regenerated.
1719         * lib/unictype/categ_Pi.h: Regenerated.
1720         * lib/unictype/categ_Po.h: Regenerated.
1721         * lib/unictype/categ_Ps.h: Regenerated.
1722         * lib/unictype/categ_S.h: Regenerated.
1723         * lib/unictype/categ_Sk.h: Regenerated.
1724         * lib/unictype/categ_Sm.h: Regenerated.
1725         * lib/unictype/categ_So.h: Regenerated.
1726         * lib/unictype/categ_of.h: Regenerated.
1727         * lib/unictype/combining.h: Regenerated.
1728         * lib/unictype/ctype_alnum.h: Regenerated.
1729         * lib/unictype/ctype_alpha.h: Regenerated.
1730         * lib/unictype/ctype_graph.h: Regenerated.
1731         * lib/unictype/ctype_lower.h: Regenerated.
1732         * lib/unictype/ctype_print.h: Regenerated.
1733         * lib/unictype/ctype_punct.h: Regenerated.
1734         * lib/unictype/ctype_upper.h: Regenerated.
1735         * lib/unictype/decdigit.h: Regenerated.
1736         * lib/unictype/digit.h: Regenerated.
1737         * lib/unictype/mirror.h: Regenerated.
1738         * lib/unictype/numeric.h: Regenerated.
1739         * lib/unictype/pr_alphabetic.h: Regenerated.
1740         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
1741         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
1742         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
1743         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
1744         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
1745         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
1746         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
1747         * lib/unictype/pr_combining.h: Regenerated.
1748         * lib/unictype/pr_dash.h: Regenerated.
1749         * lib/unictype/pr_decimal_digit.h: Regenerated.
1750         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
1751         * lib/unictype/pr_deprecated.h: Regenerated.
1752         * lib/unictype/pr_diacritic.h: Regenerated.
1753         * lib/unictype/pr_extender.h: Regenerated.
1754         * lib/unictype/pr_format_control.h: Regenerated.
1755         * lib/unictype/pr_grapheme_base.h: Regenerated.
1756         * lib/unictype/pr_grapheme_extend.h: Regenerated.
1757         * lib/unictype/pr_grapheme_link.h: Regenerated.
1758         * lib/unictype/pr_id_continue.h: Regenerated.
1759         * lib/unictype/pr_id_start.h: Regenerated.
1760         * lib/unictype/pr_ideographic.h: Regenerated.
1761         * lib/unictype/pr_ignorable_control.h: Regenerated.
1762         * lib/unictype/pr_lowercase.h: Regenerated.
1763         * lib/unictype/pr_math.h: Regenerated.
1764         * lib/unictype/pr_numeric.h: Regenerated.
1765         * lib/unictype/pr_other_alphabetic.h: Regenerated.
1766         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
1767         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
1768         * lib/unictype/pr_other_id_continue.h: Regenerated.
1769         * lib/unictype/pr_other_lowercase.h: Regenerated.
1770         * lib/unictype/pr_other_math.h: Regenerated.
1771         * lib/unictype/pr_punctuation.h: Regenerated.
1772         * lib/unictype/pr_sentence_terminal.h: Regenerated.
1773         * lib/unictype/pr_soft_dotted.h: Regenerated.
1774         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
1775         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
1776         * lib/unictype/pr_unified_ideograph.h: Regenerated.
1777         * lib/unictype/pr_uppercase.h: Regenerated.
1778         * lib/unictype/pr_xid_continue.h: Regenerated.
1779         * lib/unictype/pr_xid_start.h: Regenerated.
1780         * lib/unictype/pr_zero_width.h: Regenerated.
1781         * lib/unictype/scripts.h: Regenerated.
1782         * lib/unictype/scripts_byname.gperf: Regenerated.
1783         * lib/unictype/sy_java_ident.h: Regenerated.
1784         * lib/unilbrk/lbrkprop1.h: Regenerated.
1785         * lib/unilbrk/lbrkprop2.h: Regenerated.
1786         * tests/unictype/test-categ_C.c: Regenerated.
1787         * tests/unictype/test-categ_Cf.c: Regenerated.
1788         * tests/unictype/test-categ_Cn.c: Regenerated.
1789         * tests/unictype/test-categ_L.c: Regenerated.
1790         * tests/unictype/test-categ_Ll.c: Regenerated.
1791         * tests/unictype/test-categ_Lm.c: Regenerated.
1792         * tests/unictype/test-categ_Lo.c: Regenerated.
1793         * tests/unictype/test-categ_Lu.c: Regenerated.
1794         * tests/unictype/test-categ_M.c: Regenerated.
1795         * tests/unictype/test-categ_Mc.c: Regenerated.
1796         * tests/unictype/test-categ_Me.c: Regenerated.
1797         * tests/unictype/test-categ_Mn.c: Regenerated.
1798         * tests/unictype/test-categ_N.c: Regenerated.
1799         * tests/unictype/test-categ_Nd.c: Regenerated.
1800         * tests/unictype/test-categ_Nl.c: Regenerated.
1801         * tests/unictype/test-categ_No.c: Regenerated.
1802         * tests/unictype/test-categ_P.c: Regenerated.
1803         * tests/unictype/test-categ_Pd.c: Regenerated.
1804         * tests/unictype/test-categ_Pe.c: Regenerated.
1805         * tests/unictype/test-categ_Pf.c: Regenerated.
1806         * tests/unictype/test-categ_Pi.c: Regenerated.
1807         * tests/unictype/test-categ_Po.c: Regenerated.
1808         * tests/unictype/test-categ_Ps.c: Regenerated.
1809         * tests/unictype/test-categ_S.c: Regenerated.
1810         * tests/unictype/test-categ_Sk.c: Regenerated.
1811         * tests/unictype/test-categ_Sm.c: Regenerated.
1812         * tests/unictype/test-categ_So.c: Regenerated.
1813         * tests/unictype/test-ctype_alnum.c: Regenerated.
1814         * tests/unictype/test-ctype_alpha.c: Regenerated.
1815         * tests/unictype/test-ctype_graph.c: Regenerated.
1816         * tests/unictype/test-ctype_lower.c: Regenerated.
1817         * tests/unictype/test-ctype_print.c: Regenerated.
1818         * tests/unictype/test-ctype_punct.c: Regenerated.
1819         * tests/unictype/test-ctype_upper.c: Regenerated.
1820         * tests/unictype/test-decdigit.h: Regenerated.
1821         * tests/unictype/test-digit.h: Regenerated.
1822         * tests/unictype/test-numeric.h: Regenerated.
1823         * tests/unictype/test-pr_alphabetic.c: Regenerated.
1824         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
1825         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
1826         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
1827         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
1828         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
1829         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
1830         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
1831         * tests/unictype/test-pr_combining.c: Regenerated.
1832         * tests/unictype/test-pr_dash.c: Regenerated.
1833         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
1834         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
1835         * tests/unictype/test-pr_deprecated.c: Regenerated.
1836         * tests/unictype/test-pr_diacritic.c: Regenerated.
1837         * tests/unictype/test-pr_extender.c: Regenerated.
1838         * tests/unictype/test-pr_format_control.c: Regenerated.
1839         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
1840         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
1841         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
1842         * tests/unictype/test-pr_id_continue.c: Regenerated.
1843         * tests/unictype/test-pr_id_start.c: Regenerated.
1844         * tests/unictype/test-pr_ideographic.c: Regenerated.
1845         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
1846         * tests/unictype/test-pr_lowercase.c: Regenerated.
1847         * tests/unictype/test-pr_math.c: Regenerated.
1848         * tests/unictype/test-pr_numeric.c: Regenerated.
1849         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
1850         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
1851         Regenerated.
1852         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
1853         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
1854         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
1855         * tests/unictype/test-pr_other_math.c: Regenerated.
1856         * tests/unictype/test-pr_punctuation.c: Regenerated.
1857         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
1858         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
1859         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
1860         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
1861         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
1862         * tests/unictype/test-pr_uppercase.c: Regenerated.
1863         * tests/unictype/test-pr_xid_continue.c: Regenerated.
1864         * tests/unictype/test-pr_xid_start.c: Regenerated.
1865         * tests/unictype/test-pr_zero_width.c: Regenerated.
1866
1867         Update to Unicode 5.1.0.
1868         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
1869         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
1870         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
1871         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
1872         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
1873         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
1874         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
1875         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
1876         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
1877         (nonspacing_table_ind): Update.
1878         * tests/uniwidth/test-uc_width2.sh: Update expected result.
1879
1880         Update to Unicode 5.1.0.
1881         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
1882         code transform.
1883         * lib/uniname/uniname.c (unicode_character_name,
1884         unicode_name_character): Add the range 0x1Fxxx to the code transform.
1885         * lib/uniname/uninames.h: Regenerated.
1886         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
1887
1888 2009-02-07  Bruno Haible  <bruno@clisp.org>
1889
1890         Merge gen-ctype and gen-lbrk into a single program.
1891         * lib/gen-uni-tables.c: New file, incorporating
1892         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
1893         Add directory prefixes to the names of the generated files.
1894         * lib/unictype/gen-ctype.c: Remove file.
1895         * lib/unilbrk/gen-lbrk.c: Remove file.
1896         * modules/gen-uni-tables: New file.
1897         * modules/unictype/gen-ctype: Remove file.
1898         * modules/unilbrk/gen-lbrk: Remove file.
1899
1900 2009-02-07  Bruno Haible  <bruno@clisp.org>
1901
1902         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
1903
1904         New module 'unistr/u32-strcoll'.
1905         * modules/unistr/u32-strcoll: New file.
1906         * lib/unistr/u32-strcoll.c: New file.
1907
1908         New module 'unistr/u16-strcoll'.
1909         * modules/unistr/u16-strcoll: New file.
1910         * lib/unistr/u16-strcoll.c: New file.
1911
1912         New module 'unistr/u8-strcoll'.
1913         * modules/unistr/u8-strcoll: New file.
1914         * lib/unistr/u8-strcoll.c: New file.
1915         * lib/unistr/u-strcoll.h: New file.
1916
1917 2009-02-07  Bruno Haible  <bruno@clisp.org>
1918
1919         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
1920         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
1921         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
1922         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
1923         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
1924         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
1925
1926 2009-02-07  Bruno Haible  <bruno@clisp.org>
1927
1928         Make 64-bit clean.
1929         * lib/unictype/gen-ctype.c (output_predicate, output_category,
1930         output_combclass, output_bidi_category, output_decimal_digit,
1931         output_digit, output_numeric, output_mirror, output_scripts,
1932         output_ident_category): Use proper width specifier in format strings.
1933
1934 2009-02-07  Bruno Haible  <bruno@clisp.org>
1935
1936         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
1937         failure behaviour.
1938
1939 2009-02-07  Jim Meyering  <meyering@redhat.com>
1940
1941         regex: avoid compilation failure with upcoming gcc-4.4
1942         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
1943         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
1944         "... error: integer overflow in preprocessor expression".
1945
1946 2009-02-05  Ben Pfaff  <blp@gnu.org>
1947
1948         Fix link errors on Windows when close module is used.
1949         * modules/close: Add $(LIB_CLOSE) to Link section.
1950         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
1951         $(LIB_CLOSE) on Windows.
1952
1953 2009-02-05  Jim Meyering  <meyering@redhat.com>
1954
1955         still avoid unused-parameter warnings, but do it cleanly
1956         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
1957         (get_fs_usage): Cast to void instead.
1958         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
1959         (dev_from_mount_options, read_file_system_list): Cast to void.
1960         Prompted by Bruno Haible.
1961
1962 2009-02-04  Jim Meyering  <meyering@redhat.com>
1963
1964         fsusage.c: correct copyright year
1965         * lib/fsusage.c: Reflect year in which the change is pushed into
1966
1967         avoid misc. warnings
1968         * lib/fsusage.c (UNUSED_PARAM): Define.
1969         (get_fs_usage): Mark parameter "disk" as unused.
1970         * lib/getugroups.c (getgrent): Use "void" in prototype.
1971         * lib/mountlist.c: Mark unused parameters.
1972         (read_file_system_list): Declare a local with "const".
1973         * lib/nanosleep.c (getnow): Declare static.
1974         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
1975
1976         dirfd: set errno upon failure
1977         * lib/dirfd.c: Include <errno.h>.
1978         Set errno to ENOTSUP when returning -1.
1979         * modules/dirfd (Depends-on): Add errno.
1980         Suggested by John Kodis <kodis@comcast.net>.
1981
1982 2009-02-01  Bruno Haible  <bruno@clisp.org>
1983
1984         Don't assume sizeof (long) >= sizeof (void *).
1985         * lib/memcmp.c: Include stdint.h.
1986         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
1987         srcp2 to 'const byte *'.
1988         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
1989         types to uintptr_t.
1990         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
1991         * modules/memcmp (Depends-on): Add stdint.
1992         Reported by Ozkan Sezer <sezeroz@gmail.com>.
1993
1994 2009-01-30  Eric Blake  <ebb9@byu.net>
1995
1996         fix more require-before-expand issues
1997         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
1998         expand, AC_PROG_AWK.
1999         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
2000
2001 2009-01-28  Eric Blake  <ebb9@byu.net>
2002
2003         version-etc: use consistent URL formatting
2004         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
2005         Improve formatting.  Use fputs for string without %.
2006
2007 2009-01-28  Jim Meyering  <meyering@redhat.com>
2008
2009         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
2010         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
2011         "underquoted definition of NAME" from autoconf-2.59.
2012
2013 2009-01-28  Bruno Haible  <bruno@clisp.org>
2014
2015         * doc/gnulib.texi: Add "Obsolete modules" to index.
2016
2017 2009-01-28  Jim Meyering  <meyering@redhat.com>
2018
2019         useless-if-before-free: recognize more variants
2020         * build-aux/useless-if-before-free: Also recognize e.g.,
2021         if (NULL != p) free (p);
2022
2023 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
2024
2025         test-getaddrinfo: skip (don't fail) this test when there's no network
2026         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
2027         on the presumption that it means you lack network access.
2028
2029 2009-01-26  Jim Meyering  <meyering@redhat.com>
2030
2031         fflush: avoid warnings on modern systems
2032         * lib/fflush.c (rpl_fflush): Move declarations of locals,
2033         pos and result, into scopes where they're used.
2034
2035 2009-01-26  Eric Blake  <ebb9@byu.net>
2036
2037         Silence warning reintroduced by recent extensions patch.
2038         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
2039         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
2040         autoconf.
2041
2042         Backport improved autoconf semantics of AC_DEFUN_ONCE.
2043         * m4/00gnulib.m4: New file.
2044         * gnulib-tool (func_get_filelist): Always use it.
2045         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
2046         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
2047
2048 2009-01-25  Bruno Haible  <bruno@clisp.org>
2049
2050         Make test-quotearg work on MacOS X and AIX.
2051         * tests/test-quotearg.sh: New file.
2052         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
2053         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
2054         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
2055         include <libintl.h>.
2056         (fake_locale): Remove variable.
2057         (gettext, dgettext, dcgettext): Remove functions.
2058         (main): Instead of setting a fake locale, set a real locale. Call
2059         textdomain and bindtextdomain.
2060         * modules/quotearg-tests (Files): Add the new files.
2061         (Depends-on): Add gettext, setenv, unsetenv.
2062         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
2063         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
2064         Augment TESTS_ENVIRONMENT.
2065
2066 2009-01-25  Bruno Haible  <bruno@clisp.org>
2067
2068         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
2069         fr_FR.ISO8859-1 locale on MacOS X.
2070         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
2071         ja_JP.eucJP locale on MacOS X.
2072         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
2073         zh_CN.GB18030 locale on MacOS X.
2074
2075 2009-01-25  Bruno Haible  <bruno@clisp.org>
2076
2077         Avoid link errors on MacOS X 10.3.
2078         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
2079         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
2080
2081 2009-01-25  Bruno Haible  <bruno@clisp.org>
2082
2083         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
2084         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
2085         * modules/pipe (Files): Remove m4/posix_spawn.m4.
2086         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
2087         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
2088         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
2089         posix_spawnattr_init, posix_spawnattr_setsigmask,
2090         posix_spawnattr_setflags, posix_spawnattr_destroy.
2091
2092         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
2093         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
2094         * modules/execute (Files): Remove m4/posix_spawn.m4.
2095         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
2096         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
2097         posix_spawnattr_init, posix_spawnattr_setsigmask,
2098         posix_spawnattr_setflags, posix_spawnattr_destroy.
2099
2100 2009-01-25  Bruno Haible  <bruno@clisp.org>
2101
2102         * lib/glthread/threadlib.c: Include <stdlib.h>.
2103
2104 2009-01-25  Bruno Haible  <bruno@clisp.org>
2105
2106         * lib/glthread/threadlib.c (dummy): New declaration.
2107
2108 2009-01-25  Bruno Haible  <bruno@clisp.org>
2109
2110         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
2111         multibyte characters also for the GB18030 encoding. Don't crash when
2112         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
2113
2114 2009-01-25  Bruno Haible  <bruno@clisp.org>
2115
2116         Avoid redefining 'struct random_data' on OSF/1 5.1.
2117         * lib/stdlib.in.h: Include <random.h> if it exists.
2118         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
2119         HAVE_RANDOM_H. Include <random.h> when testing whether
2120         'struct random_data' exists.
2121         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
2122
2123 2009-01-25  Bruno Haible  <bruno@clisp.org>
2124
2125         Don't install charset.alias on MacOS X >= 10.3.
2126         * lib/localcharset.c (DARWIN7): New macro.
2127         (get_charset_aliases): Hardcode the result for Darwin7.
2128         * modules/localcharset (install-exec-local): Don't install
2129         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
2130
2131 2009-01-25  Bruno Haible  <bruno@clisp.org>
2132
2133         Don't install charset.alias on mingw and Cygwin.
2134         * modules/localcharset (install-exec-local): Don't install
2135         charset.alias on mingw and Cygwin, if the file does not yet exist.
2136         The result for these platforms is hardcoded in localcharset.c.
2137
2138 2009-01-25  Bruno Haible  <bruno@clisp.org>
2139
2140         Make it possible again to use AC_GNU_SOURCE together with gnulib.
2141         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
2142         before requiring AC_USE_SYSTEM_EXTENSIONS.
2143
2144 2009-01-25  Jim Meyering  <meyering@redhat.com>
2145
2146         c-strtod: avoid warnings
2147         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
2148         "assignment discards qualifiers from pointer target type" warnings.
2149
2150 2009-01-24  Bruno Haible  <bruno@clisp.org>
2151
2152         Add support for non-UTF-8 locales on MacOS X.
2153         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
2154         canonical encodings. For Darwin 7 and newer, don't map traditional
2155         encodings to UTF-8.
2156         Reported by Vincent Lefevre <vincent@vinc17.org>
2157         at <http://savannah.gnu.org/bugs/?25235>.
2158
2159 2009-01-24  Bruno Haible  <bruno@clisp.org>
2160
2161         * doc/gnulib.texi (Obsolete modules): New section.
2162         Reported by Mike Frysinger <vapier@gentoo.org>.
2163
2164 2009-01-24  Bruno Haible  <bruno@clisp.org>
2165
2166         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
2167         (%.dvi): New rule.
2168
2169 2009-01-24  Bruno Haible  <bruno@clisp.org>
2170
2171         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
2172         Reported by Eric Blake.
2173
2174 2009-01-24  Bruno Haible  <bruno@clisp.org>
2175
2176         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
2177         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
2178         Reported by Gary V. Vaughan <gary@gnu.org>.
2179
2180 2009-01-24  Bruno Haible  <bruno@clisp.org>
2181
2182         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
2183
2184 2009-01-23  Bruno Haible  <bruno@clisp.org>
2185
2186         Make c-strtod, c-strtold usable in libraries.
2187         * lib/c-strtod.c: Include string.h instead of xalloc.h.
2188         (C_STRTOD): Call strdup instead of xstrdup.
2189         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
2190         * modules/c-strtold (Depends-on): Likewise.
2191         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
2192         * NEWS: Mention the change.
2193         Reported by Michael Gold <mgold@ncf.ca>.
2194
2195 2009-01-23  Jim Meyering  <meyering@redhat.com>
2196
2197         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
2198         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
2199         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
2200
2201 2009-01-23  Simon Josefsson  <simon@josefsson.org>
2202
2203         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
2204         GNU CoreUtils.
2205         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
2206         * modules/version-etc (Description): Update.
2207
2208 2009-01-22  Bruno Haible  <bruno@clisp.org>
2209
2210         Cache the C locale object.
2211         * lib/c-strtod.c (c_locale_cache): New variable.
2212         (c_locale): New function.
2213         (C_STRTOD): Use it, and don't call freelocale.
2214         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
2215         Suggested by Paolo Bonzini.
2216
2217 2009-01-21  Bruno Haible  <bruno@clisp.org>
2218
2219         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
2220         conditions other than overflow.
2221
2222 2009-01-21  Bruno Haible  <bruno@clisp.org>
2223
2224         * lib/c-strtod.c: Include errno.h.
2225         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
2226         value from STRTOD_L and STRTOD.
2227
2228 2009-01-21  Bruno Haible  <bruno@clisp.org>
2229         and Jim Meyering  <meyering@redhat.com>
2230
2231         nanosleep: skip configure test (fail it) for apple universal builds
2232         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
2233         universal builds, assume that nanosleep does not work.
2234         * modules/nanosleep (Depends-on): Add multiarch.
2235
2236         mktime: skip configure test (fail it) for apple universal builds
2237         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
2238         universal builds, assume that mktime does not work.
2239         * modules/mktime (Depends-on): Add multiarch.
2240
2241 2009-01-21  Eric Blake  <ebb9@byu.net>
2242
2243         multiarch: avoid expand-before-require warning
2244         * modules/multiarch (configure.ac): Require, rather than expand,
2245         gl_MULTIARCH.
2246         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
2247         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
2248         enforce that all clients require it.  Partial reversion of
2249         2008-12-29 patch.
2250
2251         error: avoid expand-before-require warning
2252         * modules/errno (configure.ac): Require, rather than expand,
2253         gl_HEADER_ERRNO_H.
2254         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
2255         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
2256         enforce that all clients require it.
2257
2258         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
2259         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
2260         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
2261         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
2262
2263 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
2264
2265         Revert:
2266         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
2267
2268         regex: do not depend on obsolete modules.
2269         * modules/regex: Remove memcmp and memmove.
2270
2271 2009-01-20  Bruno Haible  <bruno@clisp.org>
2272
2273         Make the 'link' module link on Windows NT 4.
2274         * lib/link.c (_WIN32_WINNT): Don't define.
2275         (CreateHardLinkFuncType): New type.
2276         (CreateHardLinkFunc, initialized): New variables.
2277         (initialize): New function.
2278         (link): Invoke CreateHardLink indirectly through the function pointer.
2279
2280 2009-01-20  Bruno Haible  <bruno@clisp.org>
2281
2282         Fix compilation failure on mingw.
2283         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
2284
2285 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
2286
2287         * doc/c-strtod.texi: Mention a couple of restrictions.
2288
2289 2009-01-20  Jim Meyering  <meyering@redhat.com>
2290
2291         gettimeofday: move more declarations out of functions
2292         * lib/gettimeofday.c: Move extern declarations of tzset and
2293         gmtime out of containing functions.  Prompted by Bruno Haible.
2294
2295 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
2296
2297         regex: do not depend on obsolete modules.
2298         * modules/regex: Remove memcmp and memmove.
2299
2300 2009-01-19  Bruno Haible  <bruno@clisp.org>
2301
2302         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
2303         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
2304         gl_BIGENDIAN, not AC_C_BIGENDIAN.
2305         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
2306         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
2307
2308 2009-01-19  Bruno Haible  <bruno@clisp.org>
2309
2310         * tests/test-link.c: Include <errno.h>.
2311         (main): Exit with code 77 when a hard link cannot be created due to
2312         the file system.
2313         * tests/test-link.sh: Skip test when a hard link cannot be created due
2314         to the file system.
2315         Suggested by Eric Blake.
2316
2317 2009-01-19  Martin Lambers  <marlam@marlam.de>
2318
2319         * modules/link-tests: New file.
2320         * tests/test-link.sh: New file.
2321         * tests/test-link.c: New file.
2322
2323 2009-01-19  Eric Blake  <ebb9@byu.net>
2324
2325         doc: mention another function added in cygwin 1.7.0
2326         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
2327         Another new function in cygwin 1.7.
2328
2329 2009-01-19  Bruno Haible  <bruno@clisp.org>
2330
2331         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
2332         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
2333         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
2334         gl_BIGENDIAN, not AC_C_BIGENDIAN.
2335         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
2336         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
2337         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
2338         * m4/md4.m4 (gl_MD4): Likewise.
2339         * m4/md5.m4 (gl_MD5): Likewise.
2340         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
2341         * m4/sha1.m4 (gl_SHA1): Likewise.
2342         * m4/sha256.m4 (gl_SHA256): Likewise.
2343         * m4/sha512.m4 (gl_SHA512): Likewise.
2344
2345 2009-01-19  Bruno Haible  <bruno@clisp.org>
2346
2347         * modules/uniname/uniname-tests (Depends-on): Add progname.
2348         * tests/uniname/test-uninames.c: Include progname.h.
2349         (main): Call set_program_name.
2350
2351         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
2352         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
2353         (main): Call set_program_name.
2354
2355         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
2356         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
2357         (main): Call set_program_name.
2358
2359         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
2360         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
2361         (main): Call set_program_name.
2362
2363         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
2364         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
2365         (main): Call set_program_name.
2366
2367         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
2368         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
2369         (main): Call set_program_name.
2370
2371         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
2372         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
2373         (main): Call set_program_name.
2374
2375         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
2376         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
2377         (main): Call set_program_name.
2378
2379         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
2380         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
2381         (main): Call set_program_name.
2382
2383 2009-01-19  Eric Blake  <ebb9@byu.net>
2384
2385         test-unistd: test previous patch
2386         * tests/test-unistd.c: Test *_FILENO macros.
2387
2388         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
2389         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
2390         Guarantee a definition.
2391         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
2392         * modules/unistd-safer (Depends-on): Add dependency on unistd.
2393         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
2394         * lib/dup-safer.c (STDERR_FILENO): Likewise.
2395         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
2396         Likewise.
2397         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
2398         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
2399         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
2400         Likewise.
2401         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
2402         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
2403         (STDERR_FILENO): Likewise.
2404         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
2405         (STDERR_FILENO): Likewise.
2406         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
2407         (STDERR_FILENO): Likewise.
2408         Reported by Elbert Pol.
2409
2410 2009-01-19  Eric Blake  <ebb9@byu.net>
2411
2412         doc: mention more functions added in cygwin 1.7.0
2413         * doc/posix-functions/abort.texi (abort): Update wording related
2414         to cygwin.
2415         * doc/posix-functions/daylight.texi (daylight): Likewise.
2416         * doc/posix-functions/optarg.texi (optarg): Likewise.
2417         * doc/posix-functions/optarg.texi (opterr): Likewise.
2418         * doc/posix-functions/optarg.texi (optind): Likewise.
2419         * doc/posix-functions/optarg.texi (optopt): Likewise.
2420         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
2421         worked in 1.5.x, and was withdrawn in 1.7.
2422         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
2423         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
2424         cygwin versions.
2425         * doc/posix-functions/perror.texi (perror): Likewise.
2426         * doc/posix-functions/printf.texi (printf): Likewise.
2427         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
2428         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
2429         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2430         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2431         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2432         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
2433         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
2434         Likewise.
2435         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
2436         Likewise.
2437         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
2438         this function.
2439         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
2440         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
2441         Likewise.
2442         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
2443         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
2444         * doc/posix-functions/confstr.texi (confstr): Likewise.
2445         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
2446         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
2447         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
2448         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
2449         * doc/posix-functions/fputws.texi (fputws): Likewise.
2450         * doc/posix-functions/fwide.texi (fwide): Likewise.
2451         * doc/posix-functions/getwc.texi (getwc): Likewise.
2452         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
2453         * doc/posix-functions/putwc.texi (putwc): Likewise.
2454         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
2455         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
2456         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
2457         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
2458         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
2459         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
2460         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
2461         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
2462         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
2463         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
2464         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
2465
2466 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
2467
2468         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
2469         * lib/ioctl.c: Include <sys/ioctl.h>.
2470
2471 2009-01-19  Simon Josefsson  <simon@josefsson.org>
2472
2473         * modules/getdate-tests (Depends-on): Add progname.
2474         * tests/test-getdate.c: Use progname module, to avoid link errors
2475         on non-glibc systems.
2476
2477 2009-01-18  Simon Josefsson  <simon@josefsson.org>
2478
2479         * modules/filenamecat-tests (Depends-on): Add progname.
2480         * modules/fstrcmp-tests (Depends-on): Likewise.
2481
2482         * tests/test-filenamecat.c: Use progname module, to avoid link
2483         errors on non-glibc systems.
2484         * tests/test-fstrcmp.c: Likewise.
2485
2486 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
2487
2488         gettimeofday: avoid warning: nested extern declaration of 'localtime'
2489         * lib/gettimeofday.c: Move extern declaration out of function.
2490
2491 2009-01-18  Bruno Haible  <bruno@clisp.org>
2492
2493         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
2494         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
2495         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
2496
2497 2009-01-18  Bruno Haible  <bruno@clisp.org>
2498
2499         * lib/strftime.c (MEMPCPY): Remove unused macro.
2500         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
2501
2502 2009-01-18  Martin Lambers  <marlam@marlam.de>
2503
2504         New module 'link'.
2505         * lib/unistd.in.h (link): New declaration.
2506         * lib/link.c: New file.
2507         * m4/link.m4: New file.
2508         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
2509         HAVE_LINK.
2510         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
2511         * modules/link: New file.
2512         * doc/posix-functions/link.texi: Mention the new module.
2513
2514 2009-01-18  Bruno Haible  <bruno@clisp.org>
2515
2516         * tests/test-avltree_list.c (main): Call set_program_name.
2517         * tests/test-avltree_oset.c (main): Likewise.
2518         * tests/test-obstack-printf.c: Include progname.h.
2519         (main): Call set_program_name.
2520         * tests/test-quotearg.c: Include progname.h.
2521         (main): Call set_program_name.
2522         * tests/test-xmemdup0.c: Include progname.h.
2523         (main): Call set_program_name.
2524
2525 2009-01-18  Bruno Haible  <bruno@clisp.org>
2526
2527         New module 'alphasort'.
2528         * lib/dirent.in.h (alphasort): New declaration.
2529         * lib/alphasort.c: New file, from glibc with modifications.
2530         * m4/alphasort.m4: New file.
2531         * modules/alphasort: New file.
2532         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
2533         HAVE_ALPHASORT.
2534         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
2535         HAVE_ALPHASORT.
2536         * doc/posix-functions/alphasort.texi: Mention the new module and the
2537         portability problems.
2538
2539 2009-01-18  Bruno Haible  <bruno@clisp.org>
2540
2541         New module 'scandir'.
2542         * lib/dirent.in.h (scandir): New declaration.
2543         * lib/scandir.c: New file, from glibc with modifications.
2544         * m4/scandir.m4: New file.
2545         * modules/scandir: New file.
2546         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
2547         HAVE_SCANDIR.
2548         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
2549         HAVE_SCANDIR.
2550         * doc/posix-functions/scandir.texi: Mention the new module and the
2551         portability problems.
2552
2553 2009-01-17  Bruno Haible  <bruno@clisp.org>
2554
2555         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
2556         Update documentation.
2557         (func_remove_suffix): Escape all dots in the suffix. Update
2558         documentation.
2559         (func_filter_filelist): Update documentation.
2560         Reported by Ralf Wildenhues.
2561
2562 2009-01-17  Bruno Haible  <bruno@clisp.org>
2563
2564         * modules/dprintf-posix-tests: New file.
2565         * tests/test-dprintf-posix.sh: New file.
2566         * tests/test-dprintf-posix.c: New file.
2567
2568         New modules 'dprintf', 'dprintf-posix'.
2569         * lib/stdio.in.h (dprintf): New declaration.
2570         * lib/dprintf.c: New file.
2571         * m4/dprintf.m4: New file.
2572         * m4/dprintf-posix.m4: New file.
2573         * modules/dprintf: New file.
2574         * modules/dprintf-posix: New file.
2575         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
2576         HAVE_DPRINTF, REPLACE_DPRINTF.
2577         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
2578         HAVE_DPRINTF, REPLACE_DPRINTF.
2579         * doc/posix-functions/dprintf.texi: Mention the new modules.
2580
2581 2009-01-17  Bruno Haible  <bruno@clisp.org>
2582
2583         * modules/vdprintf-posix-tests: New file.
2584         * tests/test-vdprintf-posix.sh: New file.
2585         * tests/test-vdprintf-posix.c: New file.
2586
2587         New modules 'vdprintf', 'vdprintf-posix'.
2588         * lib/stdio.in.h (vdprintf): New declaration.
2589         * lib/vdprintf.c: New file.
2590         * m4/vdprintf.m4: New file.
2591         * m4/vdprintf-posix.m4: New file.
2592         * modules/vdprintf: New file.
2593         * modules/vdprintf-posix: New file.
2594         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
2595         HAVE_VDPRINTF, REPLACE_VDPRINTF.
2596         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
2597         HAVE_VDPRINTF, REPLACE_VDPRINTF.
2598         * doc/posix-functions/vdprintf.texi: Mention the new modules.
2599
2600 2009-01-17  Bruno Haible  <bruno@clisp.org>
2601
2602         Fix replacement of fopen on mingw.
2603         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
2604         mingw.
2605
2606 2009-01-17  Bruno Haible  <bruno@clisp.org>
2607
2608         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
2609         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
2610
2611 2009-01-17  Bruno Haible  <bruno@clisp.org>
2612
2613         Avoid test-fflush2.sh failure on mingw.
2614         * tests/test-fflush2.c: Include binary-io.h.
2615         (main): Put standard input into binary mode.
2616         * modules/fflush-tests (Depends-on): Add binary-io.
2617
2618 2009-01-17  Bruno Haible  <bruno@clisp.org>
2619
2620         * lib/wchar.in.h: In another particular situation, include only the
2621         system's <wchar.h> file.
2622         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
2623         Reported by Albert Chin-A-Young <china@thewrittenword.com>
2624         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
2625
2626 2009-01-17  Bruno Haible  <bruno@clisp.org>
2627
2628         Support for stripping executables in --enable-relocatable.
2629         * build-aux/install-reloc: Expect one more argument, or an environment
2630         variable RELOC_STRIP_PROG. If set, strip the destination program and
2631         its wrapper.
2632         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
2633         RELOC_STRIP_PROG.
2634         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
2635         to set RELOCATABLE_STRIP.
2636         * NEWS: Mention the new Makefile requirement.
2637
2638 2009-01-17  Bruno Haible  <bruno@clisp.org>
2639
2640         * build-aux/install-reloc: Remove debugging information left over by
2641         C compiler on MacOS X.
2642
2643 2009-01-17  Bruno Haible  <bruno@clisp.org>
2644
2645         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
2646         * lib/progreloc.c (find_executable): Fix type of pointer passed to
2647         _NSGetExecutablePath.
2648
2649 2009-01-16  Jim Meyering  <meyering@redhat.com>
2650
2651         strerror: avoid warnings about discarding "const"
2652         * lib/strerror.c (rpl_strerror): Instead of returning a const
2653         string from each and every "case", use a variable, and add a single
2654         cast after the switch.
2655
2656 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
2657
2658         * lib/arpa_inet.in.h: Add extern "C" block for C++.
2659
2660 2009-01-16  Bruno Haible  <bruno@clisp.org>
2661
2662         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
2663         array initializer syntax that also works in C++ mode.
2664         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2665
2666 2009-01-16  Jim Meyering  <meyering@redhat.com>
2667
2668         poll: suppress a warning
2669         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
2670         to ignore "...unsigned expression < 0 is always false" warnings.
2671
2672 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
2673
2674         poll: remove declarations of unused variables
2675         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
2676         sockbuf and optlen.
2677
2678 2009-01-15  Bruno Haible  <bruno@clisp.org>
2679
2680         Make fflush-after-ungetc POSIX compliant on BSD systems.
2681         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
2682         (clear_ungetc_buffer): Implement also for other systems.
2683         (rpl_fflush): On glibc systems, invoke
2684         clear_ungetc_buffer_preserving_position. Otherwise, invoke
2685         clear_ungetc_buffer after fetching the stream's position, not before.
2686
2687 2009-01-15  Bruno Haible  <bruno@clisp.org>
2688
2689         Make fflush-after-ungetc POSIX compliant on glibc systems.
2690         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
2691         after ungetc.
2692         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
2693         (rpl_fflush): On glibc systems, simply call the system's fflush
2694         function after clearing the ungetc buffer.
2695         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
2696         Instead, lseek only to the end of file, then use the system's fseeko
2697         for the rest. On glibc systems, reset the EOF indicator bit.
2698
2699 2009-01-15  Jim Meyering  <meyering@redhat.com>
2700
2701         openmp.m4: revert quote-adding change, for portability to older autoconf
2702         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
2703         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
2704         Simon Josefsson noticed the problem when using autoconf-2.61.
2705
2706 2009-01-15  Bruno Haible  <bruno@clisp.org>
2707
2708         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
2709         * tests/test-fflush2.c (ASSERT): Always fail.
2710         (main): Add two tests for fflush() after ungetc(), taking into account
2711         the Austin Group's clarification.
2712         Suggested by Eric Blake.
2713
2714 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
2715
2716         mktime.m4: remove K&R-style function prototypes
2717         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
2718         for the Sun C++ compiler.
2719
2720 2009-01-14  Bruno Haible  <bruno@clisp.org>
2721
2722         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
2723         while including <wchar.h>.
2724         * lib/wchar.in.h: In two particular situations on HP-UX, include only
2725         the system's <wchar.h> file.
2726         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2727
2728 2009-01-14  Bruno Haible  <bruno@clisp.org>
2729
2730         * m4/csharp.m4: Don't mention gettext on the serial number line.
2731         * m4/csharpexec.m4: Likewise.
2732         * m4/eaccess.m4: Likewise.
2733         * m4/javaexec.m4: Likewise.
2734         * m4/sig_atomic_t.m4: Likewise.
2735         * m4/tmpdir.m4: Likewise.
2736         * m4/intldir.m4: Bump gettext version.
2737         * m4/lib-ld.m4: Likewise.
2738
2739 2009-01-14  Bruno Haible  <bruno@clisp.org>
2740
2741         * lib/progname.c (set_program_name): Add more comments.
2742         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
2743
2744 2009-01-14  Simon Josefsson  <simon@josefsson.org>
2745
2746         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
2747         were sys/stat.h does not define it.
2748
2749 2009-01-14  Jim Meyering  <meyering@redhat.com>
2750
2751         many *.m4 files: improve m4 quoting
2752         99% of this change was performed by running the following commands:
2753         git ls-files | grep '\.m4$' | xargs perl -pi \
2754           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
2755           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
2756           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
2757           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
2758         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
2759         The remainder were to add Copyright dates, increment serial numbers,
2760         undo some changes in comments, exclude m4/intl.m4, and add quotes
2761         around the "1" in ",1" where the unusual spacing prohibited the
2762         above regexps from doing the job.  For more details, see
2763         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
2764         * m4/acl.m4: Modified.
2765         * m4/afs.m4: Likewise.
2766         * m4/alloca.m4: Likewise.
2767         * m4/argp.m4: Likewise.
2768         * m4/argz.m4: Likewise.
2769         * m4/atexit.m4: Likewise.
2770         * m4/bison-i18n.m4: Likewise.
2771         * m4/bison.m4: Likewise.
2772         * m4/byteswap.m4: Likewise.
2773         * m4/c-stack.m4: Likewise.
2774         * m4/c-strtod.m4: Likewise.
2775         * m4/calloc.m4: Likewise.
2776         * m4/canonicalize-lgpl.m4: Likewise.
2777         * m4/chown.m4: Likewise.
2778         * m4/clock_time.m4: Likewise.
2779         * m4/codeset.m4: Likewise.
2780         * m4/copy-file.m4: Likewise.
2781         * m4/csharp.m4: Likewise.
2782         * m4/csharpcomp.m4: Likewise.
2783         * m4/csharpexec.m4: Likewise.
2784         * m4/d-ino.m4: Likewise.
2785         * m4/d-type.m4: Likewise.
2786         * m4/dirfd.m4: Likewise.
2787         * m4/double-slash-root.m4: Likewise.
2788         * m4/eaccess.m4: Likewise.
2789         * m4/eealloc.m4: Likewise.
2790         * m4/environ.m4: Likewise.
2791         * m4/errno_h.m4: Likewise.
2792         * m4/euidaccess.m4: Likewise.
2793         * m4/execute.m4: Likewise.
2794         * m4/fatal-signal.m4: Likewise.
2795         * m4/fchdir.m4: Likewise.
2796         * m4/fcntl_h.m4: Likewise.
2797         * m4/fileblocks.m4: Likewise.
2798         * m4/filenamecat.m4: Likewise.
2799         * m4/findprog.m4: Likewise.
2800         * m4/flexmember.m4: Likewise.
2801         * m4/fnmatch.m4: Likewise.
2802         * m4/fopen.m4: Likewise.
2803         * m4/fpending.m4: Likewise.
2804         * m4/fprintf-posix.m4: Likewise.
2805         * m4/free.m4: Likewise.
2806         * m4/frexp.m4: Likewise.
2807         * m4/frexpl.m4: Likewise.
2808         * m4/fsusage.m4: Likewise.
2809         * m4/ftruncate.m4: Likewise.
2810         * m4/gc-camellia.m4: Likewise.
2811         * m4/gc-random.m4: Likewise.
2812         * m4/gc.m4: Likewise.
2813         * m4/getaddrinfo.m4: Likewise.
2814         * m4/getcwd-abort-bug.m4: Likewise.
2815         * m4/getcwd-path-max.m4: Likewise.
2816         * m4/getdate.m4: Likewise.
2817         * m4/getdomainname.m4: Likewise.
2818         * m4/getgroups.m4: Likewise.
2819         * m4/gethostname.m4: Likewise.
2820         * m4/gethrxtime.m4: Likewise.
2821         * m4/getline.m4: Likewise.
2822         * m4/getloadavg.m4: Likewise.
2823         * m4/getndelim2.m4: Likewise.
2824         * m4/getpass.m4: Likewise.
2825         * m4/gettext.m4: Likewise.
2826         * m4/gettime.m4: Likewise.
2827         * m4/gettimeofday.m4: Likewise.
2828         * m4/gnulib-common.m4: Likewise.
2829         * m4/group-member.m4: Likewise.
2830         * m4/host-os.m4: Likewise.
2831         * m4/iconv.m4: Likewise.
2832         * m4/iconv_open.m4: Likewise.
2833         * m4/inet_ntop.m4: Likewise.
2834         * m4/inet_pton.m4: Likewise.
2835         * m4/inline.m4: Likewise.
2836         * m4/intldir.m4: Likewise.
2837         * m4/intlmacosx.m4: Likewise.
2838         * m4/intmax.m4: Likewise.
2839         * m4/intmax_t.m4: Likewise.
2840         * m4/inttypes.m4: Likewise.
2841         * m4/inttypes_h.m4: Likewise.
2842         * m4/inttypes-pri.m4: Likewise.
2843         * m4/isapipe.m4: Likewise.
2844         * m4/isnand.m4: Likewise.
2845         * m4/isnanf.m4: Likewise.
2846         * m4/isnanl.m4: Likewise.
2847         * m4/javacomp.m4: Likewise.
2848         * m4/javaexec.m4: Likewise.
2849         * m4/jm-winsz1.m4: Likewise.
2850         * m4/jm-winsz2.m4: Likewise.
2851         * m4/lchown.m4: Likewise.
2852         * m4/lcmessage.m4: Likewise.
2853         * m4/ldexpl.m4: Likewise.
2854         * m4/lib-ld.m4: Likewise.
2855         * m4/lib-link.m4: Likewise.
2856         * m4/libsigsegv.m4: Likewise.
2857         * m4/link-follow.m4: Likewise.
2858         * m4/localcharset.m4: Likewise.
2859         * m4/locale-fr.m4: Likewise.
2860         * m4/locale-ja.m4: Likewise.
2861         * m4/locale-tr.m4: Likewise.
2862         * m4/locale-zh.m4: Likewise.
2863         * m4/lock.m4: Likewise.
2864         * m4/longlong.m4: Likewise.
2865         * m4/ls-mntd-fs.m4: Likewise.
2866         * m4/lstat.m4: Likewise.
2867         * m4/malloc.m4: Likewise.
2868         * m4/mathl.m4: Likewise.
2869         * m4/mbrtowc.m4: Likewise.
2870         * m4/mbstate_t.m4: Likewise.
2871         * m4/mbswidth.m4: Likewise.
2872         * m4/memchr.m4: Likewise.
2873         * m4/memcmp.m4: Likewise.
2874         * m4/memcpy.m4: Likewise.
2875         * m4/memmem.m4: Likewise.
2876         * m4/memmove.m4: Likewise.
2877         * m4/mempcpy.m4: Likewise.
2878         * m4/memrchr.m4: Likewise.
2879         * m4/memset.m4: Likewise.
2880         * m4/minmax.m4: Likewise.
2881         * m4/mkdir-slash.m4: Likewise.
2882         * m4/mkdtemp.m4: Likewise.
2883         * m4/mktime.m4: Likewise.
2884         * m4/mmap-anon.m4: Likewise.
2885         * m4/mountlist.m4: Likewise.
2886         * m4/nanosleep.m4: Likewise.
2887         * m4/nls.m4: Likewise.
2888         * m4/nocrash.m4: Likewise.
2889         * m4/open.m4: Likewise.
2890         * m4/openat.m4: Likewise.
2891         * m4/openmp.m4: Likewise.
2892         * m4/pathmax.m4: Likewise.
2893         * m4/perl.m4: Likewise.
2894         * m4/physmem.m4: Likewise.
2895         * m4/pipe.m4: Likewise.
2896         * m4/po.m4: Likewise.
2897         * m4/poll.m4: Likewise.
2898         * m4/posixtm.m4: Likewise.
2899         * m4/posixver.m4: Likewise.
2900         * m4/printf-frexp.m4: Likewise.
2901         * m4/printf-frexpl.m4: Likewise.
2902         * m4/printf-posix.m4: Likewise.
2903         * m4/printf-posix-rpl.m4: Likewise.
2904         * m4/printf.m4: Likewise.
2905         * m4/progtest.m4: Likewise.
2906         * m4/putenv.m4: Likewise.
2907         * m4/readline.m4: Likewise.
2908         * m4/readlink.m4: Likewise.
2909         * m4/readutmp.m4: Likewise.
2910         * m4/realloc.m4: Likewise.
2911         * m4/regex.m4: Likewise.
2912         * m4/relocatable.m4: Likewise.
2913         * m4/relocatable-lib.m4: Likewise.
2914         * m4/rename-dest-slash.m4: Likewise.
2915         * m4/rename.m4: Likewise.
2916         * m4/rmdir-errno.m4: Likewise.
2917         * m4/rmdir.m4: Likewise.
2918         * m4/roundf.m4: Likewise.
2919         * m4/roundl.m4: Likewise.
2920         * m4/rpmatch.m4: Likewise.
2921         * m4/save-cwd.m4: Likewise.
2922         * m4/selinux-selinux-h.m4: Likewise.
2923         * m4/setenv.m4: Likewise.
2924         * m4/settime.m4: Likewise.
2925         * m4/sig2str.m4: Likewise.
2926         * m4/sig_atomic_t.m4: Likewise.
2927         * m4/signalblocking.m4: Likewise.
2928         * m4/signbit.m4: Likewise.
2929         * m4/sigpipe.m4: Likewise.
2930         * m4/sockets.m4: Likewise.
2931         * m4/sockpfaf.m4: Likewise.
2932         * m4/st_dm_mode.m4: Likewise.
2933         * m4/stat-time.m4: Likewise.
2934         * m4/stdbool.m4: Likewise.
2935         * m4/stdint.m4: Likewise.
2936         * m4/stdint_h.m4: Likewise.
2937         * m4/stpcpy.m4: Likewise.
2938         * m4/stpncpy.m4: Likewise.
2939         * m4/strcase.m4: Likewise.
2940         * m4/strchrnul.m4: Likewise.
2941         * m4/strcspn.m4: Likewise.
2942         * m4/strdup.m4: Likewise.
2943         * m4/strftime.m4: Likewise.
2944         * m4/strndup.m4: Likewise.
2945         * m4/strnlen.m4: Likewise.
2946         * m4/strpbrk.m4: Likewise.
2947         * m4/strptime.m4: Likewise.
2948         * m4/strsep.m4: Likewise.
2949         * m4/strtod.m4: Likewise.
2950         * m4/strtoimax.m4: Likewise.
2951         * m4/strtok_r.m4: Likewise.
2952         * m4/strtol.m4: Likewise.
2953         * m4/strtoll.m4: Likewise.
2954         * m4/strtoul.m4: Likewise.
2955         * m4/strtoull.m4: Likewise.
2956         * m4/strtoumax.m4: Likewise.
2957         * m4/strverscmp.m4: Likewise.
2958         * m4/threadlib.m4: Likewise.
2959         * m4/timegm.m4: Likewise.
2960         * m4/tm_gmtoff.m4: Likewise.
2961         * m4/tmpdir.m4: Likewise.
2962         * m4/tmpfile.m4: Likewise.
2963         * m4/tzset.m4: Likewise.
2964         * m4/uintmax_t.m4: Likewise.
2965         * m4/unlinkdir.m4: Likewise.
2966         * m4/unlocked-io.m4: Likewise.
2967         * m4/uptime.m4: Likewise.
2968         * m4/userspec.m4: Likewise.
2969         * m4/utimbuf.m4: Likewise.
2970         * m4/utime.m4: Likewise.
2971         * m4/utimes-null.m4: Likewise.
2972         * m4/utimes.m4: Likewise.
2973         * m4/vararrays.m4: Likewise.
2974         * m4/vasnprintf.m4: Likewise.
2975         * m4/vfprintf-posix.m4: Likewise.
2976         * m4/vprintf-posix.m4: Likewise.
2977         * m4/wait-process.m4: Likewise.
2978         * m4/wchar_t.m4: Likewise.
2979         * m4/wint_t.m4: Likewise.
2980         * m4/write-any-file.m4: Likewise.
2981         * m4/yield.m4: Likewise.
2982
2983 2009-01-13  Bruno Haible  <bruno@clisp.org>
2984
2985         Avoid test-copy-file.sh failures when ACL support insufficient.
2986         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
2987         TESTS_ENVIRONMENT.
2988         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
2989         Reported by Jim Meyering.
2990
2991 2009-01-13  Bruno Haible  <bruno@clisp.org>
2992
2993         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
2994         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
2995         * modules/unistdio/u8-printf-parse (Files): Likewise.
2996         * modules/unistdio/u32-printf-parse (Files): Likewise.
2997         * modules/unistdio/ulc-printf-parse (Files): Likewise.
2998
2999 2009-01-13  Simon Josefsson  <simon@josefsson.org>
3000
3001         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
3002         and m4/inttypes_h.m4 too.
3003
3004 2009-01-12  Eric Blake  <ebb9@byu.net>
3005
3006         tests: IRIX 6.2 cc can't compile -0.0 into .data
3007         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
3008         rather than at compile-time.
3009         * tests/test-floorl.c (minus_zero): Likewise.
3010         * tests/test-frexpl.c (minus_zero): Likewise.
3011         * tests/test-isnan.c (minus_zerol): Likewise.
3012         * tests/test-isnanl.h (minus_zero): Likewise.
3013         * tests/test-ldexpl.c (minus_zero): Likewise.
3014         * tests/test-roundl.c (minus_zero): Likewise.
3015         * tests/test-signbit.c (minus_zerol): Likewise.
3016         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
3017         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
3018         * tests/test-truncl.c (minus_zero): Likewise.
3019         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
3020         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
3021         Reported by Tom G. Christensen and Nelson H. F. Beebe.
3022
3023 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
3024
3025         regex: fix glibc bug 9697
3026         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
3027         handling.
3028
3029 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
3030
3031         regex: fix glibc bug 697
3032         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
3033         being NULL also if there are no backreferences.
3034
3035 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
3036
3037         regex: merge glibc changes
3038         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
3039         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
3040         re_string_skip_chars, re_string_reconstruct): Likewise.
3041         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
3042
3043 2009-01-07  Jim Meyering  <meyering@redhat.com>
3044
3045         poll: filter through cppi
3046         * lib/poll.c: Indent cpp directives to reflect nesting.
3047
3048 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
3049
3050         poll: don't return uninitialized
3051         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
3052
3053 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
3054
3055         avoid compile failure on AIX 6.1
3056         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
3057         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
3058
3059 2009-01-04  Jim Meyering  <meyering@redhat.com>
3060
3061         remove duplicate inclusion of <stdio.h>
3062         * tests/test-fprintf-posix.c: Likewise.
3063         * tests/test-printf-posix.c: Likewise.
3064         * tests/test-snprintf-posix.c: Likewise.
3065         * tests/test-sprintf-posix.c: Likewise.
3066         * tests/test-vasprintf-posix.c: Likewise.
3067         * tests/test-vfprintf-posix.c: Likewise.
3068         * tests/test-vprintf-posix.c: Likewise.
3069         * tests/test-vsnprintf-posix.c: Likewise.
3070         * tests/test-vsprintf-posix.c: Likewise.
3071
3072 2009-01-03  Jim Meyering  <meyering@redhat.com>
3073
3074         gnulib-tool: fix sed-based filtering
3075         * gnulib-tool (func_filter_filelist): Remove extra backslash
3076         in sed_fff_filter definition.
3077
3078 2009-01-02  Jim Meyering  <meyering@redhat.com>
3079
3080         strftime: avoid compilation failure on Solaris 2.6
3081         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
3082         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
3083         Don't #define mbrlen or mbsinit, since now they're guaranteed to
3084         be available.  Reported by Tom G. Christensen.  Details in
3085         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
3086
3087 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3088             Bruno Haible  <bruno@clisp.org>
3089
3090         Speed up gnulib-tool by doing more string processing through shell
3091         built-ins.
3092         * gnulib-tool (fast_func_append): New variable.
3093         (func_remove_prefix, func_remove_suffix): New functions.
3094         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
3095         (func_filter_filelist): New function.
3096         (func_get_dependencies): Use func_remove_suffix instead of sed.
3097         (func_get_automake_snippet): Use func_filter_filelist instead of a
3098         subshell and sed invocation.
3099
3100 2009-01-01  Bruno Haible  <bruno@clisp.org>
3101
3102         Fix a security bug.
3103         * gnulib-tool (func_import, import, update): Don't allow the characters
3104         '"', '$', '`', '\' in macro arguments that become part of commands that
3105         are evaluated.
3106
3107 2009-01-01  Bruno Haible  <bruno@clisp.org>
3108
3109         * gnulib-tool (func_reset_sigpipe): Add more comments.
3110
3111 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3112
3113         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
3114         func_emit_tests_Makefile_am, func_import): Abort loops early if we
3115         already know the answer.
3116
3117 2009-01-01  Jim Meyering  <meyering@redhat.com>
3118
3119         * lib/version-etc.c (version_etc_va): Update copyright year.
3120
3121 2008-12-30  Bruno Haible  <bruno@clisp.org>
3122
3123         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
3124         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
3125         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
3126
3127 2008-12-29  Eric Blake  <ebb9@byu.net>
3128
3129         multiarch: avoid autoconf AC_REQUIRE bug
3130         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
3131         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
3132         2.63 and older.
3133         Reported by Bruno Haible, and analyzed in
3134         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
3135
3136 2008-12-29  Bruno Haible  <bruno@clisp.org>
3137
3138         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
3139         files in subdirectories correctly.
3140         Reported by Ralf Wildenhues.
3141
3142 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3143
3144         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
3145         rather than 'join FILE -', for Solaris join.
3146
3147 2008-12-29  Bruno Haible  <bruno@clisp.org>
3148
3149         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
3150         quoting.
3151         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
3152         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
3153         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
3154         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
3155         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
3156         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
3157         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
3158         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
3159         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
3160         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
3161         * m4/nls.m4 (AM_NLS): Likewise.
3162         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
3163         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
3164         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
3165         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
3166         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
3167         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
3168         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
3169         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
3170         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
3171         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
3172         * m4/xsize.m4 (gl_XSIZE): Likewise.
3173         Suggested by Jim Meyering.
3174
3175 2008-11-17  Bruce Korb  <bkorb@gnu.org>
3176
3177         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
3178         * lib/parse-duration.c: use a switch instead of cascading if's.
3179
3180 2008-12-29  Eric Blake  <ebb9@byu.net>
3181
3182         wchar.h: supply WEOF on Irix 5.3
3183         * lib/wchar.in.h (wint_t): Also supply WEOF.
3184         * lib/wctype.in.h (wint_t): Likewise.
3185         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
3186         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
3187         Reported by Tom G. Christensen.
3188
3189 2008-12-26  Bruno Haible  <bruno@clisp.org>
3190
3191         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
3192         i486, i586, i686.
3193
3194 2008-12-26  Bruno Haible  <bruno@clisp.org>
3195
3196         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
3197
3198 2008-12-26  Bruno Haible  <bruno@clisp.org>
3199
3200         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
3201         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
3202         not __STDC_CONSTANT_MACROS.
3203         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
3204
3205 2008-12-25  Bruno Haible  <bruno@clisp.org>
3206
3207         Add support for universal builds to vasnprintf.
3208         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
3209         universal builds, guess no.
3210         * modules/vasnprintf-posix (Depends-on): Add multiarch.
3211         * modules/vasprintf-posix (Depends-on): Likewise.
3212         * modules/fprintf-posix (Depends-on): Likewise.
3213         * modules/vfprintf-posix (Depends-on): Likewise.
3214         * modules/snprintf-posix (Depends-on): Likewise.
3215         * modules/vsnprintf-posix (Depends-on): Likewise.
3216         * modules/sprintf-posix (Depends-on): Likewise.
3217         * modules/vsprintf-posix (Depends-on): Likewise.
3218         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3219         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3220         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3221         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3222         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3223         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3224         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3225
3226         Add support for universal builds to <inttypes.h>.
3227         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
3228         _SCNu64_PREFIX): In Apple
3229         universal builds, define directly, using _LP64.
3230         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
3231         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
3232         * modules/inttypes (Depends-on): Add multiarch.
3233         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
3234
3235         Add support for universal builds to <stdint.h>.
3236         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
3237         universal builds, define directly, using _LP64.
3238         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
3239         Apple universal builds, don't test for the size and suffix of ptrdiff_t
3240         and size_t.
3241         * modules/stdint (Depends-on): Add multiarch.
3242         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
3243
3244         New module 'multiarch'.
3245         * modules/multiarch: New file.
3246         * m4/multiarch.m4: New file.
3247
3248 2008-12-25  Bruno Haible  <bruno@clisp.org>
3249
3250         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
3251
3252 2008-12-25  Bruno Haible  <bruno@clisp.org>
3253
3254         * modules/btowc (License): Relicense under LGPLv2+.
3255         * modules/mbsinit (License): Likewise.
3256         * modules/mbrtowc (License): Likewise.
3257         * modules/wcrtomb (License): Likewise.
3258         * modules/streq (License): Likewise.
3259         Reported by David Lutterkort <lutter@redhat.com>.
3260
3261 2008-12-23  Bruno Haible  <bruno@clisp.org>
3262
3263         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
3264
3265 2008-12-23  Bruno Haible  <bruno@clisp.org>
3266
3267         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
3268         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
3269         GETADDRINFO_LIB, not in LIBS.
3270         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
3271         * modules/canon-host (Link): Likewise.
3272         * NEWS: Mention the change.
3273         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
3274         GETADDRINFO_LIB.
3275
3276 2008-12-22  Bruno Haible  <bruno@clisp.org>
3277
3278         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
3279         * doc/posix-functions/iswalpha_l.texi: Likewise.
3280         * doc/posix-functions/iswblank_l.texi: Likewise.
3281         * doc/posix-functions/iswcntrl_l.texi: Likewise.
3282         * doc/posix-functions/iswctype_l.texi: Likewise.
3283         * doc/posix-functions/iswdigit_l.texi: Likewise.
3284         * doc/posix-functions/iswgraph_l.texi: Likewise.
3285         * doc/posix-functions/iswlower_l.texi: Likewise.
3286         * doc/posix-functions/iswprint_l.texi: Likewise.
3287         * doc/posix-functions/iswpunct_l.texi: Likewise.
3288         * doc/posix-functions/iswspace_l.texi: Likewise.
3289         * doc/posix-functions/iswupper_l.texi: Likewise.
3290         * doc/posix-functions/iswxdigit_l.texi: Likewise.
3291         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
3292         * doc/posix-functions/open_wmemstream.texi: Likewise.
3293         * doc/posix-functions/swscanf.texi: Likewise.
3294         * doc/posix-functions/towctrans_l.texi: Likewise.
3295         * doc/posix-functions/towlower.texi: Likewise.
3296         * doc/posix-functions/towlower_l.texi: Likewise.
3297         * doc/posix-functions/towupper.texi: Likewise.
3298         * doc/posix-functions/towupper_l.texi: Likewise.
3299         * doc/posix-functions/vfwprintf.texi: Likewise.
3300         * doc/posix-functions/vfwscanf.texi: Likewise.
3301         * doc/posix-functions/vswscanf.texi: Likewise.
3302         * doc/posix-functions/vwprintf.texi: Likewise.
3303         * doc/posix-functions/vwscanf.texi: Likewise.
3304         * doc/posix-functions/wcpcpy.texi: Likewise.
3305         * doc/posix-functions/wcpncpy.texi: Likewise.
3306         * doc/posix-functions/wcscasecmp.texi: Likewise.
3307         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
3308         * doc/posix-functions/wcscoll_l.texi: Likewise.
3309         * doc/posix-functions/wcsdup.texi: Likewise.
3310         * doc/posix-functions/wcsncasecmp.texi: Likewise.
3311         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
3312         * doc/posix-functions/wcsnlen.texi: Likewise.
3313         * doc/posix-functions/wcsnrtombs.texi: Likewise.
3314         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
3315         * doc/posix-functions/wctrans_l.texi: Likewise.
3316         * doc/posix-functions/wctype_l.texi: Likewise.
3317         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
3318         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
3319         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
3320         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
3321         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
3322         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
3323         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
3324         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
3325         * doc/glibc-functions/wcschrnul.texi: Likewise.
3326         * doc/glibc-functions/wcsftime_l.texi: Likewise.
3327         * doc/glibc-functions/wcstod_l.texi: Likewise.
3328         * doc/glibc-functions/wcstof_l.texi: Likewise.
3329         * doc/glibc-functions/wcstol_l.texi: Likewise.
3330         * doc/glibc-functions/wcstold_l.texi: Likewise.
3331         * doc/glibc-functions/wcstoll_l.texi: Likewise.
3332         * doc/glibc-functions/wcstoq.texi: Likewise.
3333         * doc/glibc-functions/wcstoul_l.texi: Likewise.
3334         * doc/glibc-functions/wcstoull_l.texi: Likewise.
3335         * doc/glibc-functions/wcstouq.texi: Likewise.
3336         * doc/glibc-functions/wmempcpy.texi: Likewise.
3337
3338 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
3339             Eric Blake  <ebb9@byu.net>
3340             Paolo Bonzini  <bonzini@gnu.org>
3341             Bruno Haible  <bruno@clisp.org>
3342
3343         Make c-stack work on Haiku.
3344         * lib/c-stack.c (SA_ONSTACK): Define fallback.
3345         (c_stack_action): Use SA_ONSTACK flag.
3346
3347 2008-12-22  Bruno Haible  <bruno@clisp.org>
3348
3349         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
3350
3351 2008-12-22  Bruno Haible  <bruno@clisp.org>
3352
3353         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
3354         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
3355         being overridden.
3356         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
3357         New macros.
3358         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
3359         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
3360         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
3361         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
3362
3363 2008-12-22  Bruno Haible  <bruno@clisp.org>
3364
3365         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
3366         from test code.
3367
3368 2008-12-22  Eric Blake  <ebb9@byu.net>
3369
3370         Avoid gcc warnings on cygwin.
3371         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
3372         Avoid unused variable.
3373         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
3374         Likewise.
3375
3376 2008-12-22  Bruno Haible  <bruno@clisp.org>
3377
3378         Remove HAVE_MBRTOWC conditionals.
3379         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
3380         (mbscasecmp): Assume mbrtowc function.
3381         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
3382         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
3383         * lib/mbschr.c: Include mbuiter.h unconditionally.
3384         (mbschr): Assume mbrtowc function.
3385         * lib/mbscspn.c: Include mbuiter.h unconditionally.
3386         (mbscspn): Assume mbrtowc function.
3387         * lib/mbslen.c: Include mbuiter.h unconditionally.
3388         (mbslen): Assume mbrtowc function.
3389         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
3390         (mbsncasecmp): Assume mbrtowc function.
3391         * lib/mbsnlen.c: Include mbiter.h unconditionally.
3392         (mbsnlen): Assume mbrtowc function.
3393         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
3394         (mbspbrk): Assume mbrtowc function.
3395         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
3396         (mbspcasecmp): Assume mbrtowc function.
3397         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
3398         (mbsrchr): Assume mbrtowc function.
3399         * lib/mbssep.c: Include mbuiter.h unconditionally.
3400         (mbssep): Assume mbrtowc function.
3401         * lib/mbsspn.c: Include mbuiter.h unconditionally.
3402         (mbsspn): Assume mbrtowc function.
3403         * lib/mbsstr.c: Include mbuiter.h unconditionally.
3404         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
3405         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
3406         (mbstok_r): Assume mbrtowc function.
3407         * lib/propername.c: Include mbuiter.h unconditionally.
3408         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
3409         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
3410         (trim2): Assume mbrtowc function.
3411         * lib/mbswidth.c (mbsinit): Remove fallback definition.
3412         (mbsnwidth): Assume mbrtowc function.
3413         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
3414         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
3415         fallback definitions.
3416         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
3417
3418 2008-12-22  Bruno Haible  <bruno@clisp.org>
3419
3420         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
3421
3422 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
3423
3424         * modules/regex: Request emulations for the mb*/wc* functions we need.
3425         * m4/regex.m4: Don't look for those functions here.
3426         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
3427
3428 2008-12-22  Bruno Haible  <bruno@clisp.org>
3429
3430         * modules/fnmatch (Depends-on): Remove duplicated dependency.
3431
3432 2008-12-21  Bruno Haible  <bruno@clisp.org>
3433
3434         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
3435         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
3436         (Include): Remove conditionalization.
3437         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
3438         (Include): Remove conditionalization.
3439         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
3440         (Include): Remove conditionalization.
3441         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
3442         * m4/mbfile.m4 (gl_MBFILE): Likewise.
3443         * NEWS: Mention the change.
3444         Reported by Alan Hourihane <alanh@fairlite.co.uk>
3445         via Sergey Poznyakoff <gray@gnu.org.ua>.
3446
3447 2008-12-21  Bruno Haible  <bruno@clisp.org>
3448
3449         * MODULES.html.sh (Extended multibyte and wide character utilities
3450         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
3451         wcrtomb, wcsrtombs.
3452         (Support for systems lacking POSIX:2008): Add accept, bind, close,
3453         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
3454         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
3455         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
3456
3457 2008-12-21  Bruno Haible  <bruno@clisp.org>
3458
3459         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
3460
3461 2008-12-21  Bruno Haible  <bruno@clisp.org>
3462
3463         * modules/wcsnrtombs-tests: New file.
3464         * tests/test-wcsnrtombs1.sh: New file.
3465         * tests/test-wcsnrtombs2.sh: New file.
3466         * tests/test-wcsnrtombs3.sh: New file.
3467         * tests/test-wcsnrtombs4.sh: New file.
3468         * tests/test-wcsnrtombs.c: New file.
3469
3470         New module 'wcsnrtombs'.
3471         * lib/wchar.in.h (wcsnrtombs): New declaration.
3472         * lib/wcsnrtombs.c: New file.
3473         * lib/wcsrtombs-state.c: New file.
3474         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
3475         (internal_state): Remove variable.
3476         * m4/wcsnrtombs.m4: New file.
3477         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
3478         compilation units.
3479         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
3480         HAVE_WCSNRTOMBS.
3481         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
3482         HAVE_WCSNRTOMBS.
3483         * modules/wcsnrtombs: New file.
3484         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
3485         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
3486
3487 2008-12-21  Bruno Haible  <bruno@clisp.org>
3488
3489         * modules/wcsrtombs-tests: New file.
3490         * tests/test-wcsrtombs1.sh: New file.
3491         * tests/test-wcsrtombs2.sh: New file.
3492         * tests/test-wcsrtombs3.sh: New file.
3493         * tests/test-wcsrtombs4.sh: New file.
3494         * tests/test-wcsrtombs.c: New file.
3495
3496         New module 'wcsrtombs'.
3497         * lib/wchar.in.h (wcsrtombs): New declaration.
3498         * lib/wcsrtombs.c: New file.
3499         * m4/wcsrtombs.m4: New file.
3500         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
3501         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
3502         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
3503         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
3504         * modules/wcsrtombs: New file.
3505         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
3506         bugs.
3507
3508 2008-12-21  Bruno Haible  <bruno@clisp.org>
3509
3510         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
3511         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
3512         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
3513         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
3514         if not correct.
3515         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
3516         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
3517         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
3518         m4/locale-zh.m4, m4/codeset.m4.
3519         * doc/posix-functions/wcrtomb.texi: Document the bug.
3520
3521 2008-12-21  Bruno Haible  <bruno@clisp.org>
3522
3523         Work around a btowc() bug on IRIX 6.5.
3524         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
3525         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
3526         REPLACE_WTOBC if not.
3527         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
3528         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
3529         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
3530
3531 2008-12-21  Bruno Haible  <bruno@clisp.org>
3532
3533         * modules/wcrtomb-tests: New file.
3534         * tests/test-wcrtomb.sh: New file.
3535         * tests/test-wcrtomb.c: New file.
3536
3537         New module 'wcrtomb'.
3538         * lib/wchar.in.h (wcrtomb): New declaration.
3539         * lib/wcrtomb.c: New file.
3540         * m4/wcrtomb.m4: New file.
3541         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
3542         HAVE_WCRTOMB.
3543         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
3544         HAVE_WCRTOMB.
3545         * modules/wcrtomb: New file.
3546         * doc/posix-functions/wcrtomb.texi: Mention the new module.
3547
3548 2008-12-21  Bruno Haible  <bruno@clisp.org>
3549
3550         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
3551         * modules/mbsrtowcs (Files): Likewise.
3552         * modules/wctob (Files): Likewise.
3553         * modules/c-strcase-tests (Files): Likewise.
3554         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
3555         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
3556         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
3557         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
3558         * modules/vasnprintf-posix-tests (Files): Likewise.
3559
3560 2008-12-21  William Pursell  <bill.pursell@gmail.com>
3561
3562         gitlog-to-changelog: pass all command-line arguments to git-log
3563         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
3564         it is sometimes convenient to filter the commits in various ways.
3565         gitlog-to-changelog only allows --since to specify a start date,
3566         but git-log itself supports many other filtering mechanisms.
3567         At the moment, I want to filter by branch name.  Rather than
3568         adding a --branch option to gitlog-to-changelog, it seems more
3569         flexible to simply pass all options directly to git-log and let
3570         git do the work.  Notice that this effectively makes --since a
3571         redundant option for gitlog-to-changelog, but removing it would
3572         require current usage to change since calls would then require
3573         an additional '--'.
3574
3575 2008-12-21  Bruno Haible  <bruno@clisp.org>
3576
3577         * modules/mbsnrtowcs-tests: New file.
3578         * tests/test-mbsnrtowcs1.sh: New file.
3579         * tests/test-mbsnrtowcs2.sh: New file.
3580         * tests/test-mbsnrtowcs3.sh: New file.
3581         * tests/test-mbsnrtowcs4.sh: New file.
3582         * tests/test-mbsnrtowcs.c: New file.
3583
3584         New module 'mbsnrtowcs'.
3585         * lib/wchar.in.h (mbsnrtowcs): New declaration.
3586         * lib/mbsnrtowcs.c: New file.
3587         * lib/mbsrtowcs-state.c: New file.
3588         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
3589         (internal_state): Remove variable.
3590         * m4/mbsnrtowcs.m4: New file.
3591         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
3592         compilation units.
3593         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
3594         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
3595         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
3596         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
3597         * modules/mbsnrtowcs: New file.
3598         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
3599         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
3600         portability problem.
3601
3602 2008-12-21  Bruno Haible  <bruno@clisp.org>
3603
3604         Work around mbsrtowcs bug.
3605         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
3606         (gl_FUNC_MBSRTOWCS): Invoke it.
3607         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
3608         m4/locale-zh.m4.
3609         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
3610
3611 2008-12-21  Bruno Haible  <bruno@clisp.org>
3612
3613         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
3614
3615 2008-12-21  Bruno Haible  <bruno@clisp.org>
3616
3617         Update doc for AIX.
3618         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
3619         16-bit wchar_t type.
3620         * doc/posix-functions/btowc.texi: Likewise.
3621         * doc/posix-functions/fgetwc.texi: Likewise.
3622         * doc/posix-functions/fgetws.texi: Likewise.
3623         * doc/posix-functions/fputwc.texi: Likewise.
3624         * doc/posix-functions/fputws.texi: Likewise.
3625         * doc/posix-functions/fwide.texi: Likewise.
3626         * doc/posix-functions/fwprintf.texi: Likewise.
3627         * doc/posix-functions/fwscanf.texi: Likewise.
3628         * doc/posix-functions/getwchar.texi: Likewise.
3629         * doc/posix-functions/getwc.texi: Likewise.
3630         * doc/posix-functions/iswalnum.texi: Likewise.
3631         * doc/posix-functions/iswalpha.texi: Likewise.
3632         * doc/posix-functions/iswblank.texi: Likewise.
3633         * doc/posix-functions/iswcntrl.texi: Likewise.
3634         * doc/posix-functions/iswctype.texi: Likewise.
3635         * doc/posix-functions/iswdigit.texi: Likewise.
3636         * doc/posix-functions/iswgraph.texi: Likewise.
3637         * doc/posix-functions/iswlower.texi: Likewise.
3638         * doc/posix-functions/iswprint.texi: Likewise.
3639         * doc/posix-functions/iswpunct.texi: Likewise.
3640         * doc/posix-functions/iswspace.texi: Likewise.
3641         * doc/posix-functions/iswupper.texi: Likewise.
3642         * doc/posix-functions/iswxdigit.texi: Likewise.
3643         * doc/posix-functions/mbrtowc.texi: Likewise.
3644         * doc/posix-functions/mbsrtowcs.texi: Likewise.
3645         * doc/posix-functions/mbstowcs.texi: Likewise.
3646         * doc/posix-functions/mbtowc.texi: Likewise.
3647         * doc/posix-functions/putwchar.texi: Likewise.
3648         * doc/posix-functions/putwc.texi: Likewise.
3649         * doc/posix-functions/swprintf.texi: Likewise.
3650         * doc/posix-functions/tolower.texi: Likewise.
3651         * doc/posix-functions/toupper.texi: Likewise.
3652         * doc/posix-functions/towctrans.texi: Likewise.
3653         * doc/posix-functions/ungetwc.texi: Likewise.
3654         * doc/posix-functions/vswprintf.texi: Likewise.
3655         * doc/posix-functions/wcrtomb.texi: Likewise.
3656         * doc/posix-functions/wcscat.texi: Likewise.
3657         * doc/posix-functions/wcschr.texi: Likewise.
3658         * doc/posix-functions/wcscmp.texi: Likewise.
3659         * doc/posix-functions/wcscoll.texi: Likewise.
3660         * doc/posix-functions/wcscpy.texi: Likewise.
3661         * doc/posix-functions/wcscspn.texi: Likewise.
3662         * doc/posix-functions/wcsftime.texi: Likewise.
3663         * doc/posix-functions/wcslen.texi: Likewise.
3664         * doc/posix-functions/wcsncat.texi: Likewise.
3665         * doc/posix-functions/wcsncmp.texi: Likewise.
3666         * doc/posix-functions/wcsncpy.texi: Likewise.
3667         * doc/posix-functions/wcspbrk.texi: Likewise.
3668         * doc/posix-functions/wcsrchr.texi: Likewise.
3669         * doc/posix-functions/wcsrtombs.texi: Likewise.
3670         * doc/posix-functions/wcsspn.texi: Likewise.
3671         * doc/posix-functions/wcsstr.texi: Likewise.
3672         * doc/posix-functions/wcstod.texi: Likewise.
3673         * doc/posix-functions/wcstof.texi: Likewise.
3674         * doc/posix-functions/wcstoimax.texi: Likewise.
3675         * doc/posix-functions/wcstok.texi: Likewise.
3676         * doc/posix-functions/wcstold.texi: Likewise.
3677         * doc/posix-functions/wcstoll.texi: Likewise.
3678         * doc/posix-functions/wcstol.texi: Likewise.
3679         * doc/posix-functions/wcstombs.texi: Likewise.
3680         * doc/posix-functions/wcstoull.texi: Likewise.
3681         * doc/posix-functions/wcstoul.texi: Likewise.
3682         * doc/posix-functions/wcstoumax.texi: Likewise.
3683         * doc/posix-functions/wcswidth.texi: Likewise.
3684         * doc/posix-functions/wcsxfrm.texi: Likewise.
3685         * doc/posix-functions/wctob.texi: Likewise.
3686         * doc/posix-functions/wctomb.texi: Likewise.
3687         * doc/posix-functions/wctrans.texi: Likewise.
3688         * doc/posix-functions/wctype.texi: Likewise.
3689         * doc/posix-functions/wcwidth.texi: Likewise.
3690         * doc/posix-functions/wmemchr.texi: Likewise.
3691         * doc/posix-functions/wmemcmp.texi: Likewise.
3692         * doc/posix-functions/wmemcpy.texi: Likewise.
3693         * doc/posix-functions/wmemmove.texi: Likewise.
3694         * doc/posix-functions/wmemset.texi: Likewise.
3695         * doc/posix-functions/wprintf.texi: Likewise.
3696         * doc/posix-functions/wscanf.texi: Likewise.
3697
3698 2008-12-21  Bruno Haible  <bruno@clisp.org>
3699
3700         Update doc for HP-UX 11.11.
3701         * doc/posix-functions/btowc.texi: Clarify that the function is missing
3702         in HP-UX version 11.00, not in all versions of HP-UX 11.
3703         * doc/posix-functions/fwide.texi: Likewise.
3704         * doc/posix-functions/fwprintf.texi: Likewise.
3705         * doc/posix-functions/fwscanf.texi: Likewise.
3706         * doc/posix-functions/inet_ntop.texi: Likewise.
3707         * doc/posix-functions/inet_pton.texi: Likewise.
3708         * doc/posix-functions/mbrlen.texi: Likewise.
3709         * doc/posix-functions/mbrtowc.texi: Likewise.
3710         * doc/posix-functions/mbsinit.texi: Likewise.
3711         * doc/posix-functions/mbsrtowcs.texi: Likewise.
3712         * doc/posix-functions/swprintf.texi: Likewise.
3713         * doc/posix-functions/swscanf.texi: Likewise.
3714         * doc/posix-functions/towctrans.texi: Likewise.
3715         * doc/posix-functions/vfwprintf.texi: Likewise.
3716         * doc/posix-functions/vswprintf.texi: Likewise.
3717         * doc/posix-functions/vwprintf.texi: Likewise.
3718         * doc/posix-functions/wcrtomb.texi: Likewise.
3719         * doc/posix-functions/wcsrtombs.texi: Likewise.
3720         * doc/posix-functions/wcsstr.texi: Likewise.
3721         * doc/posix-functions/wctob.texi: Likewise.
3722         * doc/posix-functions/wctrans.texi: Likewise.
3723         * doc/posix-functions/wmemchr.texi: Likewise.
3724         * doc/posix-functions/wmemcmp.texi: Likewise.
3725         * doc/posix-functions/wmemcpy.texi: Likewise.
3726         * doc/posix-functions/wmemmove.texi: Likewise.
3727         * doc/posix-functions/wmemset.texi: Likewise.
3728         * doc/posix-functions/wprintf.texi: Likewise.
3729         * doc/posix-functions/wscanf.texi: Likewise.
3730
3731 2008-12-21  Bruno Haible  <bruno@clisp.org>
3732
3733         Work around a portability problem.
3734         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
3735         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
3736
3737 2008-12-20  Bruno Haible  <bruno@clisp.org>
3738
3739         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
3740         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
3741         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
3742         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
3743         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
3744
3745         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
3746         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
3747         set.
3748         (GNULIB_defined_mbstate_t): New macro.
3749         (mbsinit): Redefine if REPLACE_MBSINIT is set.
3750         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
3751         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
3752         reuses the system's mbrtowc function but works around the bugs.
3753         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
3754         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
3755         macros.
3756         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
3757         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
3758         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
3759         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
3760         REPLACE_MBSINIT if mbsinit needs to be overridden.
3761         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
3762         REPLACE_MBSINIT, REPLACE_MBRTOWC.
3763         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
3764         REPLACE_MBSINIT, REPLACE_MBRTOWC.
3765         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
3766         m4/locale-zh.m4.
3767         (Depends): Add mbsinit.
3768         * modules/mbsinit (Depends): Add mbrtowc.
3769         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
3770
3771 2008-12-20  Bruno Haible  <bruno@clisp.org>
3772
3773         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
3774         so that there are no conversion errors on AIX.
3775         * tests/test-mbsrtowcs.c (main): LIkewise.
3776
3777 2008-12-20  Bruno Haible  <bruno@clisp.org>
3778
3779         Work around wctob bug on Solaris <= 9.
3780         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
3781         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
3782         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
3783         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
3784         * modules/wctob (Files): Add m4/locale-fr.m4.
3785         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
3786
3787 2008-12-20  Bruno Haible  <bruno@clisp.org>
3788
3789         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
3790         /dev/null.
3791         * tests/test-select-in.sh: Likewise.
3792         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3793
3794 2008-12-20  Bruno Haible  <bruno@clisp.org>
3795
3796         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
3797         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
3798         Cygwin 1.5.x.
3799
3800 2008-12-20  Bruno Haible  <bruno@clisp.org>
3801
3802         Ensure mbstate_t is defined on HP-UX 11.11.
3803         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
3804         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
3805         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
3806         AC_USE_SYSTEM_EXTENSIONS.
3807         * modules/fnmatch (Depends-on): Add extensions.
3808         * modules/mbrlen (Depends-on): Likewise.
3809         * modules/mbrtowc (Depends-on): Likewise.
3810         * modules/mbsinit (Depends-on): Likewise.
3811         * modules/mbsrtowcs (Depends-on): Likewise.
3812         * modules/mbswidth (Depends-on): Likewise.
3813         * modules/quotearg (Depends-on): Likewise.
3814         * modules/strftime (Depends-on): Likewise.
3815
3816 2008-12-20  Bruno Haible  <bruno@clisp.org>
3817
3818         Ensure wctob is declared on IRIX 6.5.
3819         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
3820         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
3821         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
3822         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
3823         of HAVE_WCTOB.
3824         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
3825         HAVE_WCTOB.
3826         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
3827
3828 2008-12-19  Bruno Haible  <bruno@clisp.org>
3829
3830         * modules/mbsrtowcs-tests: New file.
3831         * tests/test-mbsrtowcs1.sh: New file.
3832         * tests/test-mbsrtowcs2.sh: New file.
3833         * tests/test-mbsrtowcs3.sh: New file.
3834         * tests/test-mbsrtowcs4.sh: New file.
3835         * tests/test-mbsrtowcs.c: New file.
3836
3837         New module 'mbsrtowcs'.
3838         * lib/wchar.in.h (mbsrtowcs): New declaration.
3839         * lib/mbsrtowcs.c: New file.
3840         * m4/mbsrtowcs.m4: New file.
3841         * modules/mbsrtowcs: New file.
3842         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
3843         HAVE_MBSRTOWCS.
3844         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
3845         HAVE_MBSRTOWCS.
3846         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
3847
3848 2008-12-19  Bruno Haible  <bruno@clisp.org>
3849
3850         New module 'mbrlen'.
3851         * lib/wchar.in.h (mbrlen): New declaration.
3852         * lib/mbrlen.c: New file.
3853         * m4/mbrlen.m4: New file.
3854         * modules/mbrlen: New file.
3855         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
3856         HAVE_MBRLEN.
3857         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
3858         HAVE_MBRLEN.
3859         * doc/posix-functions/mbrlen.texi: Document the new module.
3860
3861 2008-12-19  Bruno Haible  <bruno@clisp.org>
3862
3863         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
3864         * modules/mbrtowc (Depends-on): Add verify.
3865         Suggested by Paul Eggert.
3866
3867 2008-12-18  Bruno Haible  <bruno@clisp.org>
3868
3869         * modules/mbsinit-tests: New file.
3870         * tests/test-mbsinit.sh: New file.
3871         * tests/test-mbsinit.c: New file.
3872
3873 2008-12-18  Bruno Haible  <bruno@clisp.org>
3874
3875         * modules/mbrtowc-tests: New file.
3876         * tests/test-mbrtowc1.sh: New file.
3877         * tests/test-mbrtowc2.sh: New file.
3878         * tests/test-mbrtowc3.sh: New file.
3879         * tests/test-mbrtowc4.sh: New file.
3880         * tests/test-mbrtowc.c: New file.
3881
3882         New module 'mbrtowc'.
3883         * lib/wchar.in.h (mbstate_t): Override when the system does not have
3884         mbsinit and mbrtowc.
3885         (mbrtowc): New declaration.
3886         * lib/mbrtowc.c: New file.
3887         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
3888         * modules/mbrtowc: New file.
3889         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
3890         HAVE_MBRTOWC.
3891         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
3892         HAVE_MBRTOWC.
3893         * doc/posix-functions/mbrtowc.texi: Document the new module.
3894
3895 2008-12-18  Bruno Haible  <bruno@clisp.org>
3896
3897         New module 'wctob'.
3898         * lib/wchar.in.h (wctob): New declaration.
3899         * lib/wctob.c: New file.
3900         * m4/wctob.m4: New file.
3901         * modules/wctob: New file.
3902         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
3903         HAVE_WCTOB.
3904         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
3905         * doc/posix-functions/wctob.texi: Document the new module.
3906
3907 2008-12-18  Bruno Haible  <bruno@clisp.org>
3908
3909         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
3910         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
3911
3912 2008-12-18  Simon Josefsson  <simon@josefsson.org>
3913
3914         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
3915         G. Christensen" <tgc@jupiterrise.com>.
3916
3917         * lib/flock.c: Need to include errno.h.  Reported by "Tom
3918         G. Christensen" <tgc@jupiterrise.com>.
3919
3920         * lib/flock.c: Need to include string.h.  Reported by "Tom
3921         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
3922         <ebb9@byu.net>.
3923
3924 2008-12-18  Bruno Haible  <bruno@clisp.org>
3925
3926         * m4/locale-ja.m4: New file, from GNU gettext.
3927
3928 2008-12-17  Bruno Haible  <bruno@clisp.org>
3929
3930         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
3931         Suggested by Eric Blake.
3932
3933 2008-12-17  Bruno Haible  <bruno@clisp.org>
3934
3935         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
3936
3937 2008-12-17  Bruno Haible  <bruno@clisp.org>
3938
3939         * lib/mbsinit.c: Include verify.h. Verify an assumption.
3940         * modules/mbsinit (Depends-on): Add verify.
3941         Suggested by Paul Eggert.
3942
3943 2008-12-17  Bruno Haible  <bruno@clisp.org>
3944
3945         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
3946         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
3947         gl_FUNC_MBRTOWC.
3948         * m4/mbiter.m4 (gl_MBITER): LIkewise.
3949         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
3950         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
3951         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
3952         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
3953         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
3954         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
3955         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
3956         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
3957         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
3958         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
3959         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
3960         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
3961         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
3962         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
3963         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
3964         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
3965         * modules/trim (configure.ac): Likewise.
3966
3967 2008-12-17  Bruno Haible  <bruno@clisp.org>
3968
3969         * modules/btowc-tests: New file.
3970         * tests/test-btowc1.sh: New file.
3971         * tests/test-btowc2.sh: New file.
3972         * tests/test-btowc.c: New file.
3973
3974         New module 'btowc'.
3975         * lib/wchar.in.h (btowc): New declaration.
3976         * lib/btowc.c: New file.
3977         * m4/btowc.m4: New file.
3978         * modules/btowc: New file.
3979         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
3980         HAVE_BTOWC.
3981         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
3982         * doc/posix-functions/btowc.texi: Document the new module.
3983
3984 2008-12-17  Bruno Haible  <bruno@clisp.org>
3985
3986         New module 'mbsinit'.
3987         * lib/wchar.in.h (mbsinit): New declaration.
3988         * lib/mbsinit.c: New file.
3989         * m4/mbsinit.m4: New file.
3990         * modules/mbsinit: New file.
3991         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
3992         HAVE_MBSINIT.
3993         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
3994         HAVE_MBSINIT.
3995         * doc/posix-functions/mbsinit.texi: Document the new module.
3996
3997 2008-12-16  Bruno Haible  <bruno@clisp.org>
3998
3999         * lib/unistd.in.h: Add comment.
4000         * tests/test-environ.c: Don't include <stdlib.h>.
4001
4002 2008-12-16  Bruno Haible  <bruno@clisp.org>
4003
4004         * lib/parse-duration.h (parse_duration): Document return value
4005         convention.
4006         * lib/parse-duration.c: Include specification header first. Add
4007         comments.
4008         (_): Remove macro.
4009         (parse_year_month_day, parse_hour_minute_second): Move side effects
4010         outside of strchr call.
4011         (parse_non_iso8601): Move side effects outside of isspace call.
4012         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
4013         call.
4014
4015 2008-12-16  Bruno Haible  <bruno@clisp.org>
4016
4017         * tests/test-parse-duration.sh: Produce no output when the test
4018         succeeds.
4019
4020 2008-12-16  Bruno Haible  <bruno@clisp.org>
4021
4022         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
4023         expressions.
4024
4025 2008-12-15  Bruno Haible  <bruno@clisp.org>
4026
4027         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
4028         * doc/glibc-functions/flistxattr.texi: Likewise.
4029         * doc/glibc-functions/fopencookie.texi: Likewise.
4030         * doc/glibc-functions/fremovexattr.texi: Likewise.
4031         * doc/glibc-functions/fsetxattr.texi: Likewise.
4032         * doc/glibc-functions/getxattr.texi: Likewise.
4033         * doc/glibc-functions/lgetxattr.texi: Likewise.
4034         * doc/glibc-functions/listxattr.texi: Likewise.
4035         * doc/glibc-functions/llistxattr.texi: Likewise.
4036         * doc/glibc-functions/lremovexattr.texi: Likewise.
4037         * doc/glibc-functions/lsetxattr.texi: Likewise.
4038         * doc/glibc-functions/removexattr.texi: Likewise.
4039         * doc/glibc-functions/setxattr.texi: Likewise.
4040         * doc/posix-functions/open_memstream.texi: Likewise.
4041
4042 2008-12-15  Eric Blake  <ebb9@byu.net>
4043
4044         Update doc for cygwin 1.7.
4045         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
4046         functions.
4047         * doc/posix-functions/fchmodat.texi: Likewise.
4048         * doc/posix-functions/fchownat.texi: Likewise.
4049         * doc/posix-functions/fdopendir.texi: Likewise.
4050         * doc/posix-functions/fmemopen.texi: Likewise.
4051         * doc/posix-functions/freeaddrinfo.texi: Likewise.
4052         * doc/posix-functions/fstatat.texi: Likewise.
4053         * doc/posix-functions/futimens.texi: Likewise.
4054         * doc/posix-functions/gai_strerror.texi: Likewise.
4055         * doc/posix-functions/getaddrinfo.texi: Likewise.
4056         * doc/posix-functions/getnameinfo.texi: Likewise.
4057         * doc/posix-functions/if_freenameindex.texi: Likewise.
4058         * doc/posix-functions/if_indextoname.texi: Likewise.
4059         * doc/posix-functions/if_nameindex.texi: Likewise.
4060         * doc/posix-functions/if_nametoindex.texi: Likewise.
4061         * doc/posix-functions/insque.texi: Likewise.
4062         * doc/posix-functions/linkat.texi: Likewise.
4063         * doc/posix-functions/llrint.texi: Likewise.
4064         * doc/posix-functions/llrintf.texi: Likewise.
4065         * doc/posix-functions/llrintl.texi: Likewise.
4066         * doc/posix-functions/lockf.texi: Likewise.
4067         * doc/posix-functions/lrintl.texi: Likewise.
4068         * doc/posix-functions/mkdirat.texi: Likewise.
4069         * doc/posix-functions/mkfifoat.texi: Likewise.
4070         * doc/posix-functions/mknodat.texi: Likewise.
4071         * doc/posix-functions/mq_close.texi: Likewise.
4072         * doc/posix-functions/mq_getattr.texi: Likewise.
4073         * doc/posix-functions/mq_notify.texi: Likewise.
4074         * doc/posix-functions/mq_open.texi: Likewise.
4075         * doc/posix-functions/mq_receive.texi: Likewise.
4076         * doc/posix-functions/mq_send.texi: Likewise.
4077         * doc/posix-functions/mq_setattr.texi: Likewise.
4078         * doc/posix-functions/mq_timedreceive.texi: Likewise.
4079         * doc/posix-functions/mq_timedsend.texi: Likewise.
4080         * doc/posix-functions/mq_unlink.texi: Likewise.
4081         * doc/posix-functions/open_memstream.texi: Likewise.
4082         * doc/posix-functions/openat.texi: Likewise.
4083         * doc/posix-functions/posix_fadvise.texi: Likewise.
4084         * doc/posix-functions/posix_fallocate.texi: Likewise.
4085         * doc/posix-functions/posix_madvise.texi: Likewise.
4086         * doc/posix-functions/posix_memalign.texi: Likewise.
4087         * doc/posix-functions/posix_openpt.texi: Likewise.
4088         * doc/posix-functions/readlinkat.texi: Likewise.
4089         * doc/posix-functions/remque.texi: Likewise.
4090         * doc/posix-functions/renameat.texi: Likewise.
4091         * doc/posix-functions/rintl.texi: Likewise.
4092         * doc/posix-functions/sem_unlink.texi: Likewise.
4093         * doc/posix-functions/shm_open.texi: Likewise.
4094         * doc/posix-functions/shm_unlink.texi: Likewise.
4095         * doc/posix-functions/signgam.texi: Likewise.
4096         * doc/posix-functions/sigset.texi: Likewise.
4097         * doc/posix-functions/stpcpy.texi: Likewise.
4098         * doc/posix-functions/stpncpy.texi: Likewise.
4099         * doc/posix-functions/strerror.texi: Likewise.
4100         * doc/posix-functions/strtod.texi: Likewise.
4101         * doc/posix-functions/symlinkat.texi: Likewise.
4102         * doc/posix-functions/unlinkat.texi: Likewise.
4103         * doc/posix-functions/utimensat.texi: Likewise.
4104         * doc/glibc-functions/bindresvport.texi: Likewise.
4105         * doc/glibc-functions/dn_expand.texi: Likewise.
4106         * doc/glibc-functions/exp10.texi: Likewise.
4107         * doc/glibc-functions/exp10f.texi: Likewise.
4108         * doc/glibc-functions/fgetxattr.texi: Likewise.
4109         * doc/glibc-functions/flistxattr.texi: Likewise.
4110         * doc/glibc-functions/fopencookie.texi: Likewise.
4111         * doc/glibc-functions/freeifaddrs.texi: Likewise.
4112         * doc/glibc-functions/fremovexattr.texi: Likewise.
4113         * doc/glibc-functions/fsetxattr.texi: Likewise.
4114         * doc/glibc-functions/getifaddrs.texi: Likewise.
4115         * doc/glibc-functions/getxattr.texi: Likewise.
4116         * doc/glibc-functions/lgetxattr.texi: Likewise.
4117         * doc/glibc-functions/listxattr.texi: Likewise.
4118         * doc/glibc-functions/llistxattr.texi: Likewise.
4119         * doc/glibc-functions/lremovexattr.texi: Likewise.
4120         * doc/glibc-functions/lsetxattr.texi: Likewise.
4121         * doc/glibc-functions/pow10.texi: Likewise.
4122         * doc/glibc-functions/pow10f.texi: Likewise.
4123         * doc/glibc-functions/rcmd_af.texi: Likewise.
4124         * doc/glibc-functions/removexattr.texi: Likewise.
4125         * doc/glibc-functions/res_init.texi: Likewise.
4126         * doc/glibc-functions/res_mkquery.texi: Likewise.
4127         * doc/glibc-functions/res_query.texi: Likewise.
4128         * doc/glibc-functions/res_querydomain.texi: Likewise.
4129         * doc/glibc-functions/res_send.texi: Likewise.
4130         * doc/glibc-functions/rresvport_af.texi: Likewise.
4131         * doc/glibc-functions/setxattr.texi: Likewise.
4132         * doc/glibc-functions/strcasestr.texi: Likewise.
4133
4134 2008-12-15  Bruno Haible  <bruno@clisp.org>
4135
4136         Fix compilation error on OSF/1 4.0.
4137         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
4138         <sys/time.h>, simply delegate to the system header.
4139         Reported by Daniel Richard G. <oss@teragram.com>.
4140
4141 2008-12-15  Bruno Haible  <bruno@clisp.org>
4142
4143         * doc/posix-functions/openat.texi: Mention the 'openat' module.
4144         * doc/posix-functions/fchmodat.texi: Likewise.
4145         * doc/posix-functions/fchownat.texi: Likewise.
4146         * doc/posix-functions/fdopendir.texi: Likewise.
4147         * doc/posix-functions/fstatat.texi: Likewise.
4148         * doc/posix-functions/mkdirat.texi: Likewise.
4149         * doc/posix-functions/unlinkat.texi: Likewise.
4150
4151 2008-12-14  Bruno Haible  <bruno@clisp.org>
4152
4153         Update doc for POSIX:2008.
4154         * doc/posix-functions/faccessat.texi: New file.
4155         * doc/posix-functions/fchmodat.texi: New file.
4156         * doc/posix-functions/fchownat.texi: New file.
4157         * doc/posix-functions/fdopendir.texi: New file.
4158         * doc/posix-functions/fstatat.texi: New file.
4159         * doc/posix-functions/futimens.texi: New file.
4160         * doc/posix-functions/linkat.texi: New file.
4161         * doc/posix-functions/mkdirat.texi: New file.
4162         * doc/posix-functions/mkfifoat.texi: New file.
4163         * doc/posix-functions/mknodat.texi: New file.
4164         * doc/posix-functions/open_wmemstream.texi: New file.
4165         * doc/posix-functions/openat.texi: New file.
4166         * doc/posix-functions/psiginfo.texi: New file.
4167         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
4168         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
4169         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
4170         * doc/posix-functions/readlinkat.texi: New file.
4171         * doc/posix-functions/renameat.texi: New file.
4172         * doc/posix-functions/strerror_l.texi: New file.
4173         * doc/posix-functions/symlinkat.texi: New file.
4174         * doc/posix-functions/unlinkat.texi: New file.
4175         * doc/posix-functions/utimensat.texi: New file.
4176         * doc/gnulib.texi (Function Substitutes): Add these subsections.
4177
4178 2008-12-14  Bruno Haible  <bruno@clisp.org>
4179
4180         Update doc for POSIX:2008.
4181         * doc/posix-functions/alphasort.texi: Renamed from
4182         doc/glibc-functions/alphasort.texi.
4183         * doc/posix-functions/dirfd.texi: Renamed from
4184         doc/glibc-functions/dirfd.texi.
4185         * doc/posix-functions/dprintf.texi: Renamed from
4186         doc/glibc-functions/dprintf.texi.
4187         * doc/posix-functions/duplocale.texi: Renamed from
4188         doc/glibc-functions/duplocale.texi.
4189         * doc/posix-functions/fexecve.texi: Renamed from
4190         doc/glibc-functions/fexecve.texi.
4191         * doc/posix-functions/fmemopen.texi: Renamed from
4192         doc/glibc-functions/fmemopen.texi.
4193         * doc/posix-functions/freelocale.texi: Renamed from
4194         doc/glibc-functions/freelocale.texi.
4195         * doc/posix-functions/getdate_err.texi: Renamed from
4196         doc/glibc-functions/getdate_err.texi.
4197         * doc/posix-functions/isalnum_l.texi: Renamed from
4198         doc/glibc-functions/isalnum_l.texi.
4199         * doc/posix-functions/isalpha_l.texi: Renamed from
4200         doc/glibc-functions/isalpha_l.texi.
4201         * doc/posix-functions/isblank_l.texi: Renamed from
4202         doc/glibc-functions/isblank_l.texi.
4203         * doc/posix-functions/iscntrl_l.texi: Renamed from
4204         doc/glibc-functions/iscntrl_l.texi.
4205         * doc/posix-functions/isdigit_l.texi: Renamed from
4206         doc/glibc-functions/isdigit_l.texi.
4207         * doc/posix-functions/isgraph_l.texi: Renamed from
4208         doc/glibc-functions/isgraph_l.texi.
4209         * doc/posix-functions/islower_l.texi: Renamed from
4210         doc/glibc-functions/islower_l.texi.
4211         * doc/posix-functions/isprint_l.texi: Renamed from
4212         doc/glibc-functions/isprint_l.texi.
4213         * doc/posix-functions/ispunct_l.texi: Renamed from
4214         doc/glibc-functions/ispunct_l.texi.
4215         * doc/posix-functions/isspace_l.texi: Renamed from
4216         doc/glibc-functions/isspace_l.texi.
4217         * doc/posix-functions/isupper_l.texi: Renamed from
4218         doc/glibc-functions/isupper_l.texi.
4219         * doc/posix-functions/iswalnum_l.texi: Renamed from
4220         doc/glibc-functions/iswalnum_l.texi.
4221         * doc/posix-functions/iswalpha_l.texi: Renamed from
4222         doc/glibc-functions/iswalpha_l.texi.
4223         * doc/posix-functions/iswblank_l.texi: Renamed from
4224         doc/glibc-functions/iswblank_l.texi.
4225         * doc/posix-functions/iswcntrl_l.texi: Renamed from
4226         doc/glibc-functions/iswcntrl_l.texi.
4227         * doc/posix-functions/iswctype_l.texi: Renamed from
4228         doc/glibc-functions/iswctype_l.texi.
4229         * doc/posix-functions/iswdigit_l.texi: Renamed from
4230         doc/glibc-functions/iswdigit_l.texi.
4231         * doc/posix-functions/iswgraph_l.texi: Renamed from
4232         doc/glibc-functions/iswgraph_l.texi.
4233         * doc/posix-functions/iswlower_l.texi: Renamed from
4234         doc/glibc-functions/iswlower_l.texi.
4235         * doc/posix-functions/iswprint_l.texi: Renamed from
4236         doc/glibc-functions/iswprint_l.texi.
4237         * doc/posix-functions/iswpunct_l.texi: Renamed from
4238         doc/glibc-functions/iswpunct_l.texi.
4239         * doc/posix-functions/iswspace_l.texi: Renamed from
4240         doc/glibc-functions/iswspace_l.texi.
4241         * doc/posix-functions/iswupper_l.texi: Renamed from
4242         doc/glibc-functions/iswupper_l.texi.
4243         * doc/posix-functions/iswxdigit_l.texi: Renamed from
4244         doc/glibc-functions/iswxdigit_l.texi.
4245         * doc/posix-functions/isxdigit_l.texi: Renamed from
4246         doc/glibc-functions/isxdigit_l.texi.
4247         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
4248         doc/glibc-functions/mbsnrtowcs.texi.
4249         * doc/posix-functions/mkdtemp.texi: Renamed from
4250         doc/glibc-functions/mkdtemp.texi.
4251         * doc/posix-functions/newlocale.texi: Renamed from
4252         doc/glibc-functions/newlocale.texi.
4253         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
4254         doc/glibc-functions/nl_langinfo_l.texi.
4255         * doc/posix-functions/open_memstream.texi: Renamed from
4256         doc/glibc-functions/open_memstream.texi.
4257         * doc/posix-functions/opterr.texi: Renamed from
4258         doc/glibc-functions/opterr.texi.
4259         * doc/posix-functions/optind.texi: Renamed from
4260         doc/glibc-functions/optind.texi.
4261         * doc/posix-functions/optopt.texi: Renamed from
4262         doc/glibc-functions/optopt.texi.
4263         * doc/posix-functions/psignal.texi: Renamed from
4264         doc/glibc-functions/psignal.texi.
4265         * doc/posix-functions/scandir.texi: Renamed from
4266         doc/glibc-functions/scandir.texi.
4267         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
4268         doc/glibc-functions/sched_get_priority_min.texi.
4269         * doc/posix-functions/signgam.texi: Renamed from
4270         doc/glibc-functions/signgam.texi.
4271         * doc/posix-functions/stpcpy.texi: Renamed from
4272         doc/glibc-functions/stpcpy.texi.
4273         * doc/posix-functions/stpncpy.texi: Renamed from
4274         doc/glibc-functions/stpncpy.texi.
4275         * doc/posix-functions/strcasecmp_l.texi: Renamed from
4276         doc/glibc-functions/strcasecmp_l.texi.
4277         * doc/posix-functions/strcoll_l.texi: Renamed from
4278         doc/glibc-functions/strcoll_l.texi.
4279         * doc/posix-functions/strfmon_l.texi: Renamed from
4280         doc/glibc-functions/strfmon_l.texi.
4281         * doc/posix-functions/strftime_l.texi: Renamed from
4282         doc/glibc-functions/strftime_l.texi.
4283         * doc/posix-functions/strncasecmp_l.texi: Renamed from
4284         doc/glibc-functions/strncasecmp_l.texi.
4285         * doc/posix-functions/strndup.texi: Renamed from
4286         doc/glibc-functions/strndup.texi.
4287         * doc/posix-functions/strnlen.texi: Renamed from
4288         doc/glibc-functions/strnlen.texi.
4289         * doc/posix-functions/strsignal.texi: Renamed from
4290         doc/glibc-functions/strsignal.texi.
4291         * doc/posix-functions/strxfrm_l.texi: Renamed from
4292         doc/glibc-functions/strxfrm_l.texi.
4293         * doc/posix-functions/timer_gettime.texi: Renamed from
4294         doc/glibc-functions/timer_gettime.texi.
4295         * doc/posix-functions/tolower_l.texi: Renamed from
4296         doc/glibc-functions/tolower_l.texi.
4297         * doc/posix-functions/toupper_l.texi: Renamed from
4298         doc/glibc-functions/toupper_l.texi.
4299         * doc/posix-functions/towctrans_l.texi: Renamed from
4300         doc/glibc-functions/towctrans_l.texi.
4301         * doc/posix-functions/towlower_l.texi: Renamed from
4302         doc/glibc-functions/towlower_l.texi.
4303         * doc/posix-functions/towupper_l.texi: Renamed from
4304         doc/glibc-functions/towupper_l.texi.
4305         * doc/posix-functions/uselocale.texi: Renamed from
4306         doc/glibc-functions/uselocale.texi.
4307         * doc/posix-functions/vdprintf.texi: Renamed from
4308         doc/glibc-functions/vdprintf.texi.
4309         * doc/posix-functions/wcpcpy.texi:
4310         Renamed from doc/glibc-functions/wcpcpy.texi.
4311         * doc/posix-functions/wcpncpy.texi: Renamed from
4312         doc/glibc-functions/wcpncpy.texi.
4313         * doc/posix-functions/wcscasecmp.texi: Renamed from
4314         doc/glibc-functions/wcscasecmp.texi.
4315         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
4316         doc/glibc-functions/wcscasecmp_l.texi.
4317         * doc/posix-functions/wcscoll_l.texi: Renamed from
4318         doc/glibc-functions/wcscoll_l.texi.
4319         * doc/posix-functions/wcsdup.texi: Renamed from
4320         doc/glibc-functions/wcsdup.texi.
4321         * doc/posix-functions/wcsncasecmp.texi: Renamed from
4322         doc/glibc-functions/wcsncasecmp.texi.
4323         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
4324         doc/glibc-functions/wcsncasecmp_l.texi.
4325         * doc/posix-functions/wcsnlen.texi: Renamed from
4326         doc/glibc-functions/wcsnlen.texi.
4327         * doc/posix-functions/wcsnrtombs.texi: Renamed from
4328         doc/glibc-functions/wcsnrtombs.texi.
4329         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
4330         doc/glibc-functions/wcsxfrm_l.texi.
4331         * doc/posix-functions/wctrans_l.texi: Renamed from
4332         doc/glibc-functions/wctrans_l.texi.
4333         * doc/posix-functions/wctype_l.texi: Renamed from
4334         doc/glibc-functions/wctype_l.texi.
4335         * doc/gnulib.texi (Function Substitutes): Add these subsections.
4336         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
4337         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
4338         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
4339         these subsections.
4340         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
4341         Remove sections.
4342
4343 2008-12-14  Bruno Haible  <bruno@clisp.org>
4344
4345         Update doc for POSIX:2008.
4346         * doc/posix-functions/*.texi: Update URL of POSIX specification.
4347
4348 2008-12-14  Bruno Haible  <bruno@clisp.org>
4349
4350         Update doc for POSIX:2008.
4351         * doc/pastposix-functions/bcmp.texi: Renamed from
4352         doc/posix-functions/bcmp.texi.
4353         * doc/pastposix-functions/bcopy.texi: Renamed from
4354         doc/posix-functions/bcopy.texi.
4355         * doc/pastposix-functions/bsd_signal.texi: Renamed from
4356         doc/posix-functions/bsd_signal.texi.
4357         * doc/pastposix-functions/bzero.texi: Renamed from
4358         doc/posix-functions/bzero.texi.
4359         * doc/pastposix-functions/ecvt.texi: Renamed from
4360         doc/posix-functions/ecvt.texi.
4361         * doc/pastposix-functions/fcvt.texi: Renamed from
4362         doc/posix-functions/fcvt.texi.
4363         * doc/pastposix-functions/ftime.texi: Renamed from
4364         doc/posix-functions/ftime.texi.
4365         * doc/pastposix-functions/gcvt.texi: Renamed from
4366         doc/posix-functions/gcvt.texi.
4367         * doc/pastposix-functions/getcontext.texi: Renamed from
4368         doc/posix-functions/getcontext.texi.
4369         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
4370         doc/posix-functions/gethostbyaddr.texi.
4371         * doc/pastposix-functions/gethostbyname.texi: Renamed from
4372         doc/posix-functions/gethostbyname.texi.
4373         * doc/pastposix-functions/getwd.texi: Renamed from
4374         doc/posix-functions/getwd.texi.
4375         * doc/pastposix-functions/h_errno.texi: Renamed from
4376         doc/posix-functions/h_errno.texi.
4377         * doc/pastposix-functions/index.texi: Renamed from
4378         doc/posix-functions/index.texi.
4379         * doc/pastposix-functions/makecontext.texi: Renamed from
4380         doc/posix-functions/makecontext.texi.
4381         * doc/pastposix-functions/mktemp.texi: Renamed from
4382         doc/posix-functions/mktemp.texi.
4383         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
4384         doc/posix-functions/pthread_attr_getstackaddr.texi.
4385         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
4386         doc/posix-functions/pthread_attr_setstackaddr.texi.
4387         * doc/pastposix-functions/rindex.texi: Renamed from
4388         doc/posix-functions/rindex.texi.
4389         * doc/pastposix-functions/scalb.texi: Renamed from
4390         doc/posix-functions/scalb.texi.
4391         * doc/pastposix-functions/setcontext.texi: Renamed from
4392         doc/posix-functions/setcontext.texi.
4393         * doc/pastposix-functions/swapcontext.texi: Renamed from
4394         doc/posix-functions/swapcontext.texi.
4395         * doc/pastposix-functions/ualarm.texi: Renamed from
4396         doc/posix-functions/ualarm.texi.
4397         * doc/pastposix-functions/usleep.texi: Renamed from
4398         doc/posix-functions/usleep.texi.
4399         * doc/pastposix-functions/vfork.texi: Renamed from
4400         doc/posix-functions/vfork.texi.
4401         * doc/pastposix-functions/wcswcs.texi: Renamed from
4402         doc/posix-functions/wcswcs.texi.
4403         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
4404         (Function Substitutes): Update.
4405
4406 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4407
4408         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
4409         m4/strerror.m4.
4410
4411 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4412             Bruno Haible  <bruno@clisp.org>
4413
4414         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
4415
4416 2008-12-13  Bruno Haible  <bruno@clisp.org>
4417
4418         * modules/strtoull (Depends-on): Remove unistd.
4419
4420 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4421
4422         * modules/strtoull (Depends-on): Add stdlib.
4423
4424 2008-12-11  Simon Josefsson  <simon@josefsson.org>
4425
4426         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
4427
4428 2008-12-10  Jim Meyering  <meyering@redhat.com>
4429
4430         gl_ASSERT: don't say assertions are disabled when they're not
4431         * m4/assert.m4 (gl_ASSERT): Do not make configure report
4432         "checking whether to enable assertions... no", when they are in
4433         fact enabled.  This is solely a bug in the output of configure.
4434         In spite of saying "no", NDEBUG was not defined in that case.
4435         Also, as noted by Eric Blake, leave assertions enabled upon
4436         --enable-assert=INVALID.
4437
4438 2008-12-10  Bruno Haible  <bruno@clisp.org>
4439
4440         Change MODULES.html to refer to POSIX:2008 where possible.
4441         * MODULES.html.sh (POSIX2008_URL): New variable.
4442         (posix_headers): Remove sys/timeb, ucontext.
4443         (posix2001_headers): New variable.
4444         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
4445         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
4446         index, makecontext, mktemp, pthread_attr_getstackaddr,
4447         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
4448         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
4449         (posix2001_functions): New variable.
4450         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
4451         otherwise.
4452
4453 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4454
4455         add missing include to parse-duration.c
4456         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
4457         * modules/parse-duration (Depends-on): Add xalloc.
4458
4459         fix sed script reading maint.mk
4460         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
4461         (syntax-check-rules): Use it.
4462
4463 2008-12-09  Bruno Haible  <bruno@clisp.org>
4464
4465         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
4466         MacOS X 10.4/PowerPC.
4467         Reported by Simon Josefsson.
4468
4469 2008-12-08  Jim Meyering  <meyering@redhat.com>
4470
4471         work around mingw's lack of some S_IF definitions
4472         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
4473         Reported by Simon Josefsson.
4474
4475 2008-12-08  Bruno Haible  <bruno@clisp.org>
4476
4477         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
4478         applied to variables. Needed on MacOS X 10.4/PowerPC.
4479         Reported by Simon Josefsson.
4480
4481 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
4482         and Eric Blake  <ebb9@byu.net>
4483
4484         assert: honor --enable-assert
4485         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
4486         order to honor --enable-assert, rather than treating it as a
4487         synonym for --disable-assert.
4488
4489 2008-12-08  Jim Meyering  <meyering@redhat.com>
4490
4491         * lib/posixtm.c: Remove now-useless declaration of mktime.
4492
4493         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
4494
4495 2008-12-07  Bruno Haible  <bruno@clisp.org>
4496
4497         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
4498         test_once): Mark functions as static.
4499         * tests/test-tls.c (test_tls): Likewise.
4500
4501 2008-12-07  Bruno Haible  <bruno@clisp.org>
4502
4503         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
4504         iconv_register_autodetect.
4505
4506 2008-12-07  Jim Meyering  <meyering@redhat.com>
4507
4508         posixtm.c: avoid a warning
4509         * lib/posixtm.c (posixtime): Don't initialize tm0.
4510         It's no longer needed to placate gcc4's -Wuninitialized,
4511         and the attempt to placate would elicit a new warning.
4512
4513         unicodeio.c: mark unused parameters
4514         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
4515         (fallback_failure_callback): Likewise.
4516
4517 2008-12-07  Bruno Haible  <bruno@clisp.org>
4518
4519         * gnulib-tool (func_create_testdir): When building the tests
4520         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
4521         Reported by Simon Josefsson.
4522
4523 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4524
4525         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
4526
4527 2008-12-06  Bruno Haible  <bruno@clisp.org>
4528
4529         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
4530         Suggested by Eric Blake.
4531
4532 2008-12-06  Bruno Haible  <bruno@clisp.org>
4533
4534         Fix a c-stack test failure on MacOS X.
4535         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
4536         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
4537         handler for SIGBUS as well.
4538         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
4539         install a signal handler for SIGBUS as well.
4540         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
4541
4542 2008-12-06  Bruno Haible  <bruno@clisp.org>
4543
4544         Advocacy documentation.
4545         * doc/gnulib-intro.texi (Benefits): New section.
4546         * doc/gnulib.texi: Update.
4547
4548 2008-12-06  Bruno Haible  <bruno@clisp.org>
4549
4550         Document the 'manywarnings' module.
4551         * doc/manywarnings.texi: New file.
4552         * doc/gnulib.texi: Include it.
4553
4554 2008-12-05  Eric Blake  <ebb9@byu.net>
4555
4556         tests: silence some gcc warnings
4557         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
4558         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
4559         type mismatches.
4560
4561 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4562             Bruno Haible  <bruno@clisp.org>
4563
4564         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
4565
4566 2008-11-29  Jim Meyering  <meyering@redhat.com>
4567
4568         unicodeio.c: mark unused parameters
4569         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
4570         (fallback_failure_callback): Likewise.
4571
4572         fts: fix a thinko
4573         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
4574         (set_stat_type): Return S_IF*-valued "type" directly.
4575         Prompted by James Youngman's spotting a related bug.
4576         Confirmed by further testing through find.
4577
4578         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
4579         * lib/fts.c (D_TYPE): Define.
4580         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
4581         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
4582         (s_ifmt_shift_bits): New function.
4583         (set_stat_type): New function.
4584         (fts_build): When not calling fts_stat, call set_stat_type
4585         to propagate dirent.d_type info to fts_read caller.
4586         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
4587         fts_statp->st_mode type information may be valid.
4588
4589 2008-11-28  Simon Josefsson  <simon@josefsson.org>
4590
4591         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
4592         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
4593         <sds@gnu.org>.
4594
4595 2008-11-20  Bruno Haible  <bruno@clisp.org>
4596
4597         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
4598         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
4599         INCLUDE_NEXT.
4600         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
4601         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
4602         * modules/math (Makefile.am): Substitute
4603         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
4604         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4605
4606 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
4607             Bruno Haible  <bruno@clisp.org>
4608
4609         * lib/stdint.in.h: Define all type macros so that their expansion is
4610         a single typedef'ed token. Fixes a compilation failure in Boost which
4611         does "using ::int8_t;".
4612
4613 2008-11-18  Simon Josefsson  <simon@josefsson.org>
4614
4615         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
4616         gl_MANYWARN_ALL_GCC.
4617         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
4618         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
4619         * modules/manywarnings: New file.
4620         * MODULES.html.sh: Mention manywarnings module.
4621
4622 2008-11-18  Bruno Haible  <bruno@clisp.org>
4623
4624         * doc/gnulib-tool.texi (Unit tests): New section.
4625
4626 2008-11-18  Simon Josefsson  <simon@josefsson.org>
4627
4628         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
4629         paths like 'lib/po/foo.po'.
4630
4631 2008-11-17  Simon Josefsson  <simon@josefsson.org>
4632
4633         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
4634         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
4635
4636 2008-11-17  Simon Josefsson  <simon@josefsson.org>
4637
4638         * m4/warnings.m4: Use CPPFLAGS to really check whether the
4639         parameter works.
4640
4641 2008-11-17  Simon Josefsson  <simon@josefsson.org>
4642
4643         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
4644
4645 2008-11-17  Bruce Korb  <bkorb@gnu.org>
4646
4647         * modules/parse-duration-tests: New file.
4648         * tests/test-parse-duration.sh: New file.
4649         * tests/test-parse-duration.c: New file.
4650
4651         New module 'parse-duration'.
4652         * lib/parse-duration.h: New file.
4653         * lib/parse-duration.c: New file.
4654         * modules/parse-duration: New file.
4655
4656 2008-11-17  Bruno Haible  <bruno@clisp.org>
4657
4658         * tests/test-select-out.sh: Comment out the first pipe test.
4659         Reported by Simon Josefsson.
4660
4661 2008-11-17  Bruno Haible  <bruno@clisp.org>
4662
4663         * modules/getaddrinfo (Depends-on): Add servent, hostent.
4664         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
4665         gl_HOSTENT.
4666
4667 2008-11-17  Bruno Haible  <bruno@clisp.org>
4668
4669         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
4670         -lnetwork and -lnet. Needed for Haiku and BeOS.
4671
4672 2008-11-16  Bruno Haible  <bruno@clisp.org>
4673
4674         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
4675
4676 2008-11-16  Bruno Haible  <bruno@clisp.org>
4677
4678         Avoid test failure on Haiku.
4679         * tests/test-fsync.c: Include <errno.h>.
4680         (main): Don't require that fsync (0) fails.
4681
4682 2008-11-15  Bruno Haible  <bruno@clisp.org>
4683
4684         New module 'hostent'.
4685         * modules/hostent: New file.
4686         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
4687
4688 2008-11-15  Bruno Haible  <bruno@clisp.org>
4689
4690         New module 'servent'.
4691         * modules/servent: New file.
4692         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
4693
4694 2008-11-15  Bruno Haible  <bruno@clisp.org>
4695
4696         Avoid generating same test program with two different rules.
4697         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
4698         test-frexp to test-frexp-nolibm.
4699         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
4700         test-frexpl to test-frexpl-nolibm.
4701
4702 2008-11-15  Bruno Haible  <bruno@clisp.org>
4703
4704         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
4705         $(FREXPL_LIBM).
4706
4707 2008-11-15  Bruno Haible  <bruno@clisp.org>
4708
4709         * lib/netdb.in.h: Activate the definitions also when the system's
4710         <netdb.h> has 'struct addrinfo'.
4711         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
4712         EAI_OVERFLOW or AI_NUMERICSERV.
4713         * doc/posix-headers/netdb.texi: Document the problem.
4714
4715 2008-11-15  Bruno Haible  <bruno@clisp.org>
4716
4717         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
4718
4719         Make the 'sched' module work on platforms where <sched.h> exists but
4720         is incomplete (such as Haiku).
4721         * lib/sched.in.h; Include the system's <sched.h> if it exists.
4722         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
4723         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
4724         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
4725         HAVE_STRUCT_SCHED_PARAM.
4726         * modules/sched (Depends-on): Add include_next.
4727         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
4728         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
4729         * doc/posix-headers/sched.texi: Document the issue.
4730
4731 2008-11-13  Jim Meyering  <meyering@redhat.com>
4732
4733         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
4734         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
4735         test would fail due to the difference in the Report bugs to ...
4736         line.  The expected address is empty, "<>", while the actual
4737         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
4738
4739 2008-11-12  Bruno Haible  <bruno@clisp.org>
4740
4741         lstat: don't compile lstat.c on systems lacking lstat
4742         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
4743         which don't have lstat; this is handled by lib/sys_stat.in.h already.
4744         Reported by Daniel P. Berrange via Jim Meyering.
4745
4746 2008-11-12  Jim Meyering  <meyering@redhat.com>
4747
4748         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
4749
4750 2008-11-12  Simon Josefsson  <simon@josefsson.org>
4751
4752         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
4753         instead.
4754
4755 2008-11-12  Bruno Haible  <bruno@clisp.org>
4756
4757         * lib/unicodeio.c: Include unistr.h.
4758         (utf8_wctomb): Remove function.
4759         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
4760
4761 2008-11-12  Simon Josefsson  <simon@josefsson.org>
4762
4763         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
4764         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
4765         <bruno@clisp.org>.
4766         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
4767
4768 2008-11-12  Simon Josefsson  <simon@josefsson.org>
4769
4770         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
4771         * doc/gnulib.texi: Add section for warnings.
4772
4773 2008-11-11  Bruno Haible  <bruno@clisp.org>
4774
4775         * lib/sockets.h: Add a comment.
4776
4777 2008-11-11  Karl Berry  <karl@gnu.org>
4778
4779         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
4780
4781 2008-11-11  Eric Blake  <ebb9@byu.net>
4782
4783         fdl.texi: avoid git symlinks
4784         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
4785
4786 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
4787
4788         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
4789
4790 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
4791
4792         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
4793         (gl_WARN_ADD): Substitute $2 if literal.
4794
4795 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
4796
4797         * m4/warning.m4: Remove.
4798
4799 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
4800
4801         * m4/warnings.m4: Almost complete rewrite. :-)
4802
4803 2008-11-10  Simon Josefsson  <simon@josefsson.org>
4804
4805         * modules/warnings: New module.
4806         * m4/warnings.m4: New file.
4807         * MODULES.html.sh: Mention warnings module.
4808         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
4809         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4810
4811 2008-11-10  Eric Blake  <ebb9@byu.net>
4812
4813         fdl.texi: make a symlink to the latest version
4814         * doc/standards.texi: Revert today's earlier change.
4815         * doc/fdl-1.2.texi: Rename from old fdl.texi...
4816         * doc/fdl.texi: ...and replace this with a symlink to the newer
4817         fdl-1.3.texi.
4818
4819 2008-11-10  Bruno Haible  <bruno@clisp.org>
4820
4821         * tests/test-select-fd.c (main): Accept the result file name as fourth
4822         argument.
4823         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
4824         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
4825
4826 2008-11-10  Bruno Haible  <bruno@clisp.org>
4827
4828         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
4829         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
4830         as autoconf-substituted macros.
4831         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
4832         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
4833         gl_NETDB_H_DEFAULTS. Set these variables.
4834         * modules/netdb (Makefile.am): Substitute these variables.
4835
4836 2008-11-10  Eric Blake  <ebb9@byu.net>
4837
4838         standards.texi: include correct file for FDL 1.3
4839         * doc/standards.texi (GNU Free Documentation License): Change
4840         include file to pull in FDL 1.3, not 1.2.
4841
4842         fdl.texi: revert accidental change to license
4843         * doc/fdl.texi: This is FDL 1.2, not 1.3.
4844
4845 2008-11-10  Bruno Haible  <bruno@clisp.org>
4846
4847         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
4848         cross-compiling guesses also when the native compile gives no result.
4849
4850 2008-11-10  Bruno Haible  <bruno@clisp.org>
4851
4852         * lib/spawni.c (__spawni): Force variable into the stack.
4853
4854 2008-11-10  Bruno Haible  <bruno@clisp.org>
4855
4856         Add support for Haiku.
4857         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
4858         glibc and BeOS, but also on Haiku.
4859         * lib/fpurge.c (fpurge): Likewise.
4860         * lib/freadable.c (freadable): Likewise.
4861         * lib/freadahead.c (freadahead): Likewise.
4862         * lib/freading.c (freading): Likewise.
4863         * lib/freadptr.c (freadptr): Likewise.
4864         * lib/freadseek.c (freadptrinc): Likewise.
4865         * lib/fseeko.c (rpl_fseeko): Likewise.
4866         * lib/fseterr.c (fseterr): Likewise.
4867         * lib/fwritable.c (fwritable): Likewise.
4868         * lib/fwriting.c (fwriting): Likewise.
4869         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
4870
4871 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
4872
4873         * lib/config.charset: Treat Haiku like BeOS.
4874
4875 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
4876
4877         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
4878         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
4879
4880 2008-11-08  Bruno Haible  <bruno@clisp.org>
4881
4882         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
4883         AC_CACHE_CHECK.
4884
4885 2008-11-08  Bruno Haible  <bruno@clisp.org>
4886
4887         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
4888
4889 2008-11-08  Bruno Haible  <bruno@clisp.org>
4890
4891         * tests/test-select-fd.c: New file.
4892         * tests/test-select-in.sh: New file.
4893         * tests/test-select-out.sh: New file.
4894         * tests/test-select-stdin.c: New file.
4895         * modules/select-tests (Files): Add the new files.
4896         (Depends-on): Add gettimeofday.
4897         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
4898         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
4899         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
4900
4901 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
4902             Bruno Haible  <bruno@clisp.org>
4903
4904         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
4905
4906 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
4907
4908         * build-aux/pmccabe2html: Added support for C++ source files.
4909
4910 2008-11-05  Ben Pfaff  <blp@gnu.org>
4911
4912         Fix lib/close.c build on Windows.
4913         * modules/close (Files): Add lib/w32sock.h.
4914
4915 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
4916
4917         Accept Bison's NEWS format.
4918         * build-aux/announce-gen (print_news_deltas): Tweak
4919         $re_prefix.
4920
4921 2008-11-04  Bruno Haible  <bruno@clisp.org>
4922
4923         * modules/random_r (Maintainer): Add glibc.
4924
4925 2008-11-04  Simon Josefsson  <simon@josefsson.org>
4926
4927         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
4928         by karl@freefriends.org (Karl Berry).
4929         * doc/alloca.texi: Likewise.
4930         * doc/c-ctype.texi: Likewise.
4931         * doc/c-strcase.texi: Likewise.
4932         * doc/c-strcaseeq.texi: Likewise.
4933         * doc/c-strcasestr.texi: Likewise.
4934         * doc/c-strstr.texi: Likewise.
4935         * doc/c-strtod.texi: Likewise.
4936         * doc/c-strtold.texi: Likewise.
4937         * doc/ctime.texi: Likewise.
4938         * doc/error.texi: Likewise.
4939         * doc/fdl.texi: Likewise.
4940         * doc/gcd.texi: Likewise.
4941         * doc/getdate.texi: Likewise.
4942         * doc/gnulib-intro.texi: Likewise.
4943         * doc/gnulib-tool.texi: Likewise.
4944         * doc/gnulib.texi: Likewise.
4945         * doc/inet_ntoa.texi: Likewise.
4946         * doc/maintain.texi: Likewise.
4947         * doc/make-stds.texi: Likewise.
4948         * doc/quote.texi: Likewise.
4949         * doc/regexprops-generic.texi: Likewise.
4950         * doc/standards.texi: Likewise.
4951         * doc/verify.texi: Likewise.
4952         * doc/visibility.texi: Likewise.
4953         * doc/gnulib.texi (GNU Free Documentation License): Include
4954         fdl-1.3.texi instead of fdl.texi.
4955
4956 2008-11-04  Simon Josefsson  <simon@josefsson.org>
4957
4958         * doc/fdl-1.3.texi: New file, from
4959         <http://www.gnu.org/licenses/fdl-1.3.texi>.
4960         * modules/fdl-1.3: Add.
4961         * MODULES.html.sh: Add fdl-1.3.
4962
4963 2008-11-03  Bruno Haible  <bruno@clisp.org>
4964
4965         Make determination of absolute name of header file work with AIX xlc.
4966         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
4967         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
4968         preprocessing.
4969         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
4970         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
4971
4972 2008-11-03  Simon Josefsson  <simon@josefsson.org>
4973
4974         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
4975         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
4976         <ludo@gnu.org>.
4977
4978 2008-11-02  Bruno Haible  <bruno@clisp.org>
4979
4980         Mark 'strpbrk' obsolete.
4981         * modules/strpbrk (Status, Notice): New sections.
4982         * modules/strtok_r (Depends-on): Add strpbrk.
4983
4984 2008-11-02  Bruno Haible  <bruno@clisp.org>
4985
4986         Mark 'strdup' obsolete.
4987         * modules/strdup (Status, Notice): New sections.
4988         * modules/findprog (Depends-on): Add strdup.
4989         * modules/getaddrinfo (Depends-on): Likewise.
4990         * modules/localename (Depends-on): Likewise.
4991         * modules/relocatable-lib (Depends-on): Likewise.
4992         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
4993         * modules/relocatable-prog (Depends-on): Likewise.
4994         * modules/trim (Depends-on): Likewise.
4995         * modules/unictype/gen-ctype (Depends-on): Likewise.
4996         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
4997
4998 2008-11-02  Bruno Haible  <bruno@clisp.org>
4999
5000         Mark 'strcspn' obsolete.
5001         * modules/strcspn (Status, Notice): New sections.
5002
5003 2008-11-02  Bruno Haible  <bruno@clisp.org>
5004
5005         Mark 'rmdir' obsolete.
5006         * modules/rmdir (Status, Notice): New sections.
5007         * modules/clean-temp (Depends-on): Add rmdir.
5008         * modules/openat (Depends-on): Likewise.
5009
5010 2008-11-02  Bruno Haible  <bruno@clisp.org>
5011
5012         Mark 'raise' obsolete.
5013         * modules/raise (Status, Notice): New sections.
5014         (Include): Specify <signal.h>.
5015         * modules/stdio (Depends-on): Add raise.
5016         * modules/write (Depends-on): Likewise.
5017
5018 2008-11-02  Bruno Haible  <bruno@clisp.org>
5019
5020         Mark 'memset' obsolete.
5021         * modules/memset (Status, Notice): New sections.
5022
5023 2008-11-02  Bruno Haible  <bruno@clisp.org>
5024
5025         Mark 'memmove' obsolete.
5026         * modules/memmove (Status, Notice): New sections.
5027         * modules/argp (Depends-on): Add memmove.
5028         * modules/argz (Depends-on): Likewise.
5029         * modules/canonicalize (Depends-on): Likewise.
5030         * modules/canonicalize-lgpl (Depends-on): Likewise.
5031         * modules/fts (Depends-on): Likewise.
5032         * modules/getcwd (Depends-on): Likewise.
5033         * modules/human (Depends-on): Likewise.
5034         * modules/regex (Depends-on): Likewise.
5035         * modules/striconveh (Depends-on): Likewise.
5036         * modules/trim (Depends-on): Likewise.
5037         * modules/unistr/u8-move (Depends-on): Likewise.
5038         * modules/unistr/u16-move (Depends-on): Likewise.
5039         * modules/unistr/u32-move (Depends-on): Likewise.
5040
5041 2008-11-02  Bruno Haible  <bruno@clisp.org>
5042
5043         Mark 'memcpy' obsolete.
5044         * modules/memcpy (Status, Notice): New sections.
5045
5046 2008-11-02  Bruno Haible  <bruno@clisp.org>
5047
5048         Mark 'memcmp' obsolete.
5049         * modules/memcmp (Status, Notice): New sections.
5050         * modules/argmatch (Depends-on): Add memchr.
5051         * modules/backupfile (Depends-on): Likewise.
5052         * modules/c-strcasestr (Depends-on): Likewise.
5053         * modules/crypto/des (Depends-on): Likewise.
5054         * modules/csharpcomp (Depends-on): Likewise.
5055         * modules/fnmatch (Depends-on): Likewise.
5056         * modules/git-merge-changelog (Depends-on): Likewise.
5057         * modules/isnand (Depends-on): Likewise.
5058         * modules/isnand-nolibm (Depends-on): Likewise.
5059         * modules/isnanf (Depends-on): Likewise.
5060         * modules/isnanf-nolibm (Depends-on): Likewise.
5061         * modules/isnanl (Depends-on): Likewise.
5062         * modules/isnanl-nolibm (Depends-on): Likewise.
5063         * modules/mbchar (Depends-on): Likewise.
5064         * modules/memcoll (Depends-on): Likewise.
5065         * modules/quotearg (Depends-on): Likewise.
5066         * modules/regex (Depends-on): Likewise.
5067         * modules/relocatable-prog (Depends-on): Likewise.
5068         * modules/same (Depends-on): Likewise.
5069         * modules/signbit (Depends-on): Likewise.
5070         * modules/strcasestr-simple (Depends-on): Likewise.
5071         * modules/unictype/gen-ctype (Depends-on): Likewise.
5072         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
5073         * modules/uniname/uniname (Depends-on): Likewise.
5074         * modules/unistr/u8-cmp (Depends-on): Likewise.
5075
5076 2008-11-02  Bruno Haible  <bruno@clisp.org>
5077
5078         Mark 'memchr' obsolete.
5079         * modules/memchr (Status, Notice): New sections.
5080         * modules/argp (Depends-on): Add memchr.
5081         * modules/base64 (Depends-on): Likewise.
5082         * modules/c-strcasestr (Depends-on): Likewise.
5083         * modules/chdir-long (Depends-on): Likewise.
5084         * modules/fnmatch (Depends-on): Likewise.
5085         * modules/getsubopt (Depends-on): Likewise.
5086         * modules/git-merge-changelog (Depends-on): Likewise.
5087         * modules/glob (Depends-on): Likewise.
5088         * modules/strcasestr-simple (Depends-on): Likewise.
5089         * modules/strnlen (Depends-on): Likewise.
5090
5091 2008-11-02  Bruno Haible  <bruno@clisp.org>
5092
5093         Mark 'atexit' obsolete.
5094         * modules/atexit (Status, Notice): New sections.
5095         * modules/chdir-long (Depends-on): Add atexit.
5096         * modules/wait-process (Depends-on): Likewise.
5097
5098 2008-11-02  Bruno Haible  <bruno@clisp.org>
5099
5100         * gnulib-tool: New option --with-obsolete.
5101         (func_usage): Document it.
5102         (func_modules_transitive_closure): Drop obsolete dependencies if
5103         incobsolete is not true.
5104         (func_import): Read and save the incobsolete variable to the cache.
5105
5106 2008-11-02  Bruno Haible  <bruno@clisp.org>
5107
5108         * modules/TEMPLATE-EXTENDED: New field 'Status'.
5109         * gnulib-tool: New option --extract-status.
5110         (func_usage): Document it.
5111         (sed_extract_prog): Recognize it.
5112         (func_get_status): New function.
5113
5114 2008-10-30  Simon Josefsson  <simon@josefsson.org>
5115
5116         * modules/sockets (License): Change from LGPL to LGPLv2+.
5117
5118 2008-10-28  Simon Josefsson  <simon@josefsson.org>
5119
5120         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
5121
5122 2008-10-28  Simon Josefsson  <simon@josefsson.org>
5123
5124         * MODULES.html.sh (Support for systems lacking POSIX:2001):
5125         Mention times and sys_times.
5126         * modules/sys_times, modules/sys_times-tests: New modules.
5127         * modules/times, modules/times-tests: Likewise
5128         * m4/sys_times_h.m4: New file.
5129         * lib/sys_times.in.h: Likewise
5130         * lib/times.c: Likewise.
5131         * tests/test-sys_times.c: Likewise.
5132         * tests/test-times.c: Likewise.
5133         * doc/posix-headers/sys_times.texi: Update.
5134         * doc/posix-functions/times.texi: Update.
5135
5136 2008-10-28  Jim Meyering  <meyering@redhat.com>
5137
5138         * modules/tempname (Depends-on): Add lstat.
5139
5140         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
5141
5142 2008-10-28  Simon Josefsson  <simon@josefsson.org>
5143
5144         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
5145         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
5146         using idiom used elsewhere in gnulib.
5147
5148 2008-10-27  Jim Meyering  <meyering@redhat.com>
5149
5150         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
5151
5152 2008-10-27  Simon Josefsson  <simon@josefsson.org>
5153
5154         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
5155         TESTS_ENVIRONMENT, for shell scripts that needs to call built
5156         programs.
5157         * tests/test-argp-2.sh: Use $EXEEXT when needed.
5158
5159 2008-10-27  Simon Josefsson  <simon@josefsson.org>
5160
5161         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
5162
5163 2008-10-27  Bruno Haible  <bruno@clisp.org>
5164
5165         * tests/test-lstat.c: Include <stdio.h>.
5166
5167 2008-10-27  Simon Josefsson  <simon@josefsson.org>
5168
5169         * modules/lstat-tests: New module.
5170         * tests/test-lstat.c: New file.
5171
5172 2008-10-26  Jim Meyering  <meyering@redhat.com>
5173
5174         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
5175
5176 2008-10-26  Simon Josefsson  <simon@josefsson.org>
5177             Bruno Haible  <bruno@clisp.org>
5178
5179         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
5180         * modules/configmake (Include): Add a note that the include must come
5181         after all system headers.
5182         * lib/javaversion.c: Include configmake.h after all other includes.
5183
5184 2008-10-26  Bruno Haible  <bruno@clisp.org>
5185
5186         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
5187         HAVE_STRUCT_RANDOM_DATA to 1.
5188         (gl_STDLIB_H): Simplify.
5189
5190 2008-10-26  Simon Josefsson  <simon@josefsson.org>
5191
5192         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
5193         substitute HAVE_STRUCT_RANDOM_DATA.
5194         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
5195         random_data.
5196         * modules/stdlib (Makefile.am): Substitute
5197         HAVE_STRUCT_RANDOM_DATA.
5198
5199 2008-10-26  Simon Josefsson  <simon@josefsson.org>
5200
5201         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
5202         * doc/gnulib-intro.texi (Copyright): Likewise.
5203
5204 2008-10-26  Simon Josefsson  <simon@josefsson.org>
5205
5206         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
5207         findings.
5208
5209 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
5210             Bruno Haible  <bruno@clisp.org>
5211
5212         * lib/unistd.in.h: Include <winsock2.h>.
5213         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
5214         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
5215         Provide dummy declarations.
5216         (gethostname): Override.
5217         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
5218         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
5219         gl_PREREQ_SYS_H_WINSOCK2.
5220         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
5221         * doc/posix-functions/gethostname.texi: More details.
5222
5223 2008-10-25  Bruno Haible  <bruno@clisp.org>
5224
5225         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
5226         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
5227         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
5228
5229         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
5230         here ...
5231         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
5232         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
5233         gl_UNISTD_H_DEFAULTS.
5234
5235 2008-10-25  Eric Blake  <ebb9@byu.net>
5236
5237         signbit: avoid spurious compiler failure
5238         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
5239         declarations inside function.
5240
5241 2008-10-24  Simon Josefsson  <simon@josefsson.org>
5242             Bruno Haible  <bruno@clisp.org>
5243
5244         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
5245         * modules/random_r (Depends-on): Add stdint.
5246
5247 2008-10-24  Bruno Haible  <bruno@clisp.org>
5248
5249         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
5250         Eggert.
5251         * modules/strerror (License): Likewise.
5252
5253 2008-10-24  Jim Meyering  <meyering@redhat.com>
5254
5255         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
5256         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
5257
5258 2008-10-24  Eric Blake  <ebb9@byu.net>
5259
5260         getgroups: fix compilation when getgroups is available
5261         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
5262         but with <config.h> override of getgroups disabled.
5263
5264 2008-10-24  Simon Josefsson  <simon@josefsson.org>
5265
5266         * doc/gnulib.texi (Header files): Add note about C++ problems.
5267         Explained by Bruno Haible <bruno@clisp.org>.
5268
5269 2008-10-23  Bruno Haible  <bruno@clisp.org>
5270
5271         Define a dummy SA_NODEFER macro on Interix.
5272         * lib/signal.in.h (SA_NODEFER): Define fallback.
5273         Reported by Aleksey Cheusov <cheusov@tut.by> via
5274         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
5275
5276 2008-10-23  Bruno Haible  <bruno@clisp.org>
5277
5278         * modules/freadahead (License): Change to LGPLv2+.
5279         Suggested by Simon Josefsson.
5280
5281 2008-10-23  Jim Meyering  <meyering@redhat.com>
5282
5283         random_r: new module
5284         * modules/random_r: New file.
5285         * m4/random_r.m4: New file.
5286         * lib/random_r.c: New file, from glibc.
5287         * modules/random_r-tests: New file.
5288         * tests/test-random_r.c: New file.
5289         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
5290          Declare.
5291         (RAND_MAX): Define.
5292         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
5293         * modules/stdlib: Substitute them, too.
5294         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
5295         * doc/glibc-functions/initstate_r.texi: Mention the new module.
5296         * doc/glibc-functions/random_r.texi: Likewise.
5297         * doc/glibc-functions/setstate_r.texi: Likewise.
5298         * doc/glibc-functions/srandom_r.texi: Likewise.
5299         * config/srclist.txt: Mention it.
5300
5301 2008-10-23  David Lutterkort  <lutter@redhat.com>
5302
5303         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
5304         link requirement
5305
5306 2008-10-23  Jim Meyering  <meyering@redhat.com>
5307
5308         selinux-h: mark parameters of stub functions as intentionally unused
5309         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
5310         * lib/se-context.in.h: Likewise.
5311
5312 2008-10-22  Simon Josefsson  <simon@josefsson.org>
5313
5314         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
5315
5316 2008-10-22  Simon Josefsson  <simon@josefsson.org>
5317
5318         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
5319
5320 2008-10-22  Eric Blake  <ebb9@byu.net>
5321
5322         glthread/thread: avoid compiler warning
5323         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
5324         Add unreachable abort to silence compiler.
5325
5326 2008-10-22  Eric Blake  <ebb9@byu.net>
5327
5328         netdb: also supply struct addrinfo for cygwin 1.5.x
5329         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
5330         older cygwin.
5331         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
5332         cygwin.
5333         * doc/posix-headers/netdb.texi (netdb.h): Document this.
5334
5335 2008-10-22  Bruno Haible  <bruno@clisp.org>
5336
5337         * users.txt: Update entry about pspp.
5338
5339 2008-10-21  Bruno Haible  <bruno@clisp.org>
5340
5341         Simplification.
5342         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
5343         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
5344
5345         Simplification.
5346         * lib/ioctl.c (ioctl): Don't undefine.
5347         * lib/socket.c (socket): Don't undefine.
5348
5349         Remove unused module indicator macros.
5350         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
5351         GNULIB_$1 as a C macro.
5352
5353         * doc/posix-functions/close.texi: Undo last change.
5354         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
5355         Windows platforms.
5356
5357 2008-10-21  Bruno Haible  <bruno@clisp.org>
5358
5359         Add gethostname() declaration to <unistd.h>.
5360         * lib/unistd.in.h (gethostname): New declaration.
5361         * lib/gethostname.c: Include <unistd.h>.
5362         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
5363         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
5364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
5365         and HAVE_GETHOSTNAME.
5366         * modules/gethostname (Depends-on): Add unistd.
5367         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5368         (Include): Specify <unistd.h>.
5369         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
5370         HAVE_GETHOSTNAME.
5371         * tests/test-gethostname.c: Include <unistd.h> first.
5372
5373 2008-10-21  Bruno Haible  <bruno@clisp.org>
5374
5375         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
5376         * modules/select-tests (Depends-on): Likewise.
5377         Reported by Simon Josefsson.
5378
5379 2008-10-21  Simon Josefsson  <simon@josefsson.org>
5380
5381         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
5382         * lib/accept.c: New file, based on winsock.c.
5383         * lib/bind.c: New file, based on winsock.c.
5384         * lib/connect.c: New file, based on winsock.c.
5385         * lib/getpeername.c: New file, based on winsock.c.
5386         * lib/getsockname.c: New file, based on winsock.c.
5387         * lib/getsockopt.c: New file, based on winsock.c.
5388         * lib/ioctl.c: New file, based on winsock.c.
5389         * lib/listen.c: New file, based on winsock.c.
5390         * lib/recv.c: New file, based on winsock.c.
5391         * lib/recvfrom.c: New file, based on winsock.c.
5392         * lib/send.c: New file, based on winsock.c.
5393         * lib/sendto.c: New file, based on winsock.c.
5394         * lib/setsockopt.c: New file, based on winsock.c.
5395         * lib/shutdown.c: New file, based on winsock.c.
5396         * lib/socket.c: New file, based on winsock.c.
5397         * lib/w32sock.h: New file, based on winsock.c.
5398         * lib/winsock.c: Remove file.
5399         * modules/accept: Likewise.
5400         * modules/bind: Likewise.
5401         * modules/connect: Likewise.
5402         * modules/getpeername: Likewise.
5403         * modules/getsockname: Likewise.
5404         * modules/getsockopt: Likewise.
5405         * modules/ioctl: Likewise.
5406         * modules/listen: Likewise.
5407         * modules/recv: Likewise.
5408         * modules/recvfrom: Likewise.
5409         * modules/send: Likewise.
5410         * modules/sendto: Likewise.
5411         * modules/setsockopt: Likewise.
5412         * modules/shutdown: Likewise.
5413         * modules/socket: Use socket.c instead of winsock.c.
5414         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
5415         * doc/posix-functions/accept.texi: Doc fix.
5416         * doc/posix-functions/bind.texi: Doc fix.
5417         * doc/posix-functions/close.texi: Doc fix.
5418         * doc/posix-functions/connect.texi: Doc fix.
5419         * doc/posix-functions/getpeername.texi: Doc fix.
5420         * doc/posix-functions/getsockname.texi: Doc fix.
5421         * doc/posix-functions/getsockopt.texi: Doc fix.
5422         * doc/posix-functions/ioctl.texi: Doc fix.
5423         * doc/posix-functions/listen.texi: Doc fix.
5424         * doc/posix-functions/recv.texi: Doc fix.
5425         * doc/posix-functions/recvfrom.texi: Doc fix.
5426         * doc/posix-functions/send.texi: Doc fix.
5427         * doc/posix-functions/sendto.texi: Doc fix.
5428         * doc/posix-functions/setsockopt.texi: Doc fix.
5429         * doc/posix-functions/shutdown.texi: Doc fix.
5430         * doc/posix-functions/socket.texi: Doc fix.
5431
5432 2008-10-20  Bruno Haible  <bruno@clisp.org>
5433
5434         Take into account the role of SIGABRT_COMPAT on Windows 2008.
5435         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
5436         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
5437         as an alias for SIGABRT.
5438         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
5439         (sigaction): Map it to SIGABRT.
5440         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
5441
5442 2008-10-20  Bruno Haible  <bruno@clisp.org>
5443
5444         * lib/fts.c: Don't include lstat.h.
5445         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
5446
5447         Move the lstat() declaration to <sys/stat.h>.
5448         * lib/lstat.h: Remove file.
5449         * lib/sys_stat.in.h: Add special invocation convention.
5450         (lstat): New declaration.
5451         * lib/lstat.c (orig_lstat): New function.
5452         (rpl_lstat): Use orig_lstat instead of lstat.
5453         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
5454         AC_C_INLINE. Set REPLACE_LSTAT.
5455         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
5456         and REPLACE_LSTAT.
5457         * modules/lstat (Files): Remove lib/lstat.h.
5458         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
5459         (Include): Specify <sys/stat.h> instead of lstat.h.
5460         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
5461         REPLACE_LSTAT.
5462         * NEWS: Mention the change.
5463
5464 2008-10-20  Bruno Haible  <bruno@clisp.org>
5465
5466         * modules/posix_spawn-tests: New file.
5467         * tests/test-posix_spawn3.c: New file.
5468
5469 2008-10-20  Bruno Haible  <bruno@clisp.org>
5470
5471         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
5472         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
5473         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
5474         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
5475         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
5476
5477 2008-10-20  Bruno Haible  <bruno@clisp.org>
5478
5479         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
5480         of posix_spawn on AIX 5.3.
5481
5482 2008-10-20  Bruno Haible  <bruno@clisp.org>
5483
5484         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
5485
5486 2008-10-20  Bruno Haible  <bruno@clisp.org>
5487
5488         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
5489         of AC_LANG_PROGRAM.
5490
5491 2008-10-20  Simon Josefsson  <simon@josefsson.org>
5492
5493         * lib/netdb.in.h: Don't define GNU specific constants until they
5494         are supported or needed.  Reported by Bruno Haible
5495         <bruno@clisp.org>.
5496
5497 2008-10-20  Simon Josefsson  <simon@josefsson.org>
5498
5499         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
5500
5501 2008-10-20  Simon Josefsson  <simon@josefsson.org>
5502
5503         * lib/getaddrinfo.h: Remove file.
5504         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
5505         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
5506         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
5507         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
5508         * modules/netdb: Substitute GNULIB_GETADDRINFO.
5509         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
5510         * tests/test-getaddrinfo.c: Likewise.
5511         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
5512         * NEWS: Mention change.
5513
5514 2008-10-19  Bruno Haible  <bruno@clisp.org>
5515
5516         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
5517
5518 2008-10-19  Bruno Haible  <bruno@clisp.org>
5519
5520         * lib/wait-process.c: Include simply <sys/wait.h>.
5521         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
5522         WIFSTOPPED): Remove fallback definitions.
5523         * modules/wait-process (Depends-on): Add sys_wait.
5524
5525         New module 'sys_wait'.
5526         * modules/sys_wait: New file.
5527         * lib/sys_wait.in.h: New file, partially copied from
5528         lib/wait-process.c.
5529         * m4/sys_wait_h.m4: New file.
5530         * doc/posix-headers/sys_wait.texi: Mention the new module.
5531
5532 2008-10-19  Bruno Haible  <bruno@clisp.org>
5533
5534         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
5535
5536 2008-10-19  Bruno Haible  <bruno@clisp.org>
5537
5538         Assume that waitpid() fills an 'int' status, not a 'union wait'.
5539         * lib/wait-process.c (WAIT_T): Remove type.
5540         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
5541         (wait_subprocess): Update.
5542
5543 2008-10-19  Bruno Haible  <bruno@clisp.org>
5544
5545         New module 'atoll'.
5546         * modules/atoll: New file.
5547         * lib/stdlib.in.h (atoll): New declaration.
5548         * lib/atoll.c: New file, from glibc with modifications.
5549         * m4/atoll.m4: New file.
5550         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
5551         HAVE_ATOLL.
5552         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
5553         * doc/posix-functions/atoll.texi: Mention the new module.
5554
5555 2008-10-19  Bruno Haible  <bruno@clisp.org>
5556
5557         Add strtoull() declaration to <stdlib.h>.
5558         * lib/stdlib.in.h (strtoull): New declaration.
5559         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
5560         Set HAVE_STRTOULL.
5561         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
5562         HAVE_STRTOULL.
5563         * modules/strtoull (Depends-on): Add stdlib.
5564         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5565         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
5566         HAVE_STRTOULL.
5567
5568 2008-10-19  Bruno Haible  <bruno@clisp.org>
5569
5570         Add strtoll() declaration to <stdlib.h>.
5571         * lib/stdlib.in.h (strtoll): New declaration.
5572         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
5573         Set HAVE_STRTOLL.
5574         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
5575         HAVE_STRTOLL.
5576         * modules/strtoll (Depends-on): Add stdlib.
5577         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5578         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
5579
5580 2008-10-19  Bruno Haible  <bruno@clisp.org>
5581
5582         * modules/bcopy (Depends-on): Add strings.
5583         (Include): Specify <strings.h>.
5584
5585 2008-10-19  Bruno Haible  <bruno@clisp.org>
5586
5587         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
5588
5589 2008-10-19  Bruno Haible  <bruno@clisp.org>
5590
5591         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
5592         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
5593         mingw.
5594
5595 2008-10-19  Bruno Haible  <bruno@clisp.org>
5596
5597         * lib/atanl.c: Don't include isnanl.h.
5598         * lib/cosl.c: Likewise.
5599         * lib/ldexpl.c: Likewise.
5600         * lib/logl.c: Likewise.
5601         * lib/sinl.c: Likewise.
5602         * lib/sqrtl.c: Likewise.
5603         * lib/tanl.c: Likewise.
5604
5605         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
5606         * lib/isnanf.h: Remove file.
5607         * lib/isnand.h: Remove file.
5608         * lib/isnanl.h: Remove file.
5609         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
5610         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
5611         macros.
5612         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
5613         HAVE_ISNANF, don't define it as a C macro.
5614         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
5615         HAVE_ISNAND, don't define it as a C macro.
5616         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
5617         HAVE_ISNANL, don't define it as a C macro.
5618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
5619         HAVE_ISNAN[FDL].
5620         * modules/isnanf (Files): Remove lib/isnanf.h.
5621         (Depends-on): Add math.
5622         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5623         (Include): Specify <math.h> instead of isnanf.h.
5624         * modules/isnand (Files): Remove lib/isnand.h.
5625         (Depends-on): Add math.
5626         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5627         (Include): Specify <math.h> instead of isnand.h.
5628         * modules/isnanl (Files): Remove lib/isnanl.h.
5629         (Depends-on): Add math.
5630         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5631         (Include): Specify <math.h> instead of isnanl.h.
5632         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
5633         HAVE_ISNAN[FDL].
5634         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
5635         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
5636         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
5637         * NEWS: Mention the change.
5638
5639 2008-10-18  Bruno Haible  <bruno@clisp.org>
5640
5641         Add getusershell(), setusershell(), endusershell() declarations to
5642         <unistd.h>.
5643         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
5644         declarations.
5645         * lib/getusershell.c: Include unistd.h.
5646         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
5647         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
5648         HAVE_GETUSERSHELL.
5649         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
5650         and HAVE_GETUSERSHELL.
5651         * modules/getusershell (Depends-on): Add unistd, extensions.
5652         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5653         (Include): Specify <unistd.h>.
5654         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
5655         HAVE_GETUSERSHELL.
5656
5657 2008-10-18  Bruno Haible  <bruno@clisp.org>
5658
5659         Add a getloadavg() declaration to <stdlib.h>.
5660         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
5661         getloadavg declaration.
5662         (getloadavg): New declaration.
5663         * lib/getloadavg.c: Include <stdlib.h> first.
5664         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
5665         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
5666         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
5667         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
5668         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
5669         * modules/getloadavg (Depends-on): Add stdlib, extensions.
5670         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5671         (Include): Specify <stdlib.h>.
5672         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
5673         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
5674
5675 2008-10-18  Bruno Haible  <bruno@clisp.org>
5676
5677         * lib/dirchownmod.c: Don't include lchmod.h.
5678
5679         Move the lchmod() declaration to <sys/stat.h>.
5680         * lib/lchmod.h: Remove file.
5681         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
5682         (lchmod): New declaration, moved here from lib/lchown.h.
5683         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
5684         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
5685         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
5686         and HAVE_LCHMOD.
5687         * modules/lchmod (Files): Remove lib/lchmod.h.
5688         (Depends-on): Add sys_stat, extensions.
5689         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
5690         (Include): Specify <sys/stat.h> instead of lchmod.h.
5691         * modules/sys_stat (Depends-on): Add link-warning.
5692         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
5693         definition of GL_LINK_WARNING.
5694         * NEWS: Mention the change.
5695
5696 2008-10-18  Bruno Haible  <bruno@clisp.org>
5697
5698         * lib/fchdir.c: Don't include dirfd.h.
5699         * lib/fts.c: Likewise.
5700         * lib/getcwd.c: Likewise.
5701         * lib/glob.c: Likewise.
5702
5703         Move the dirfd() declaration to <dirent.h>.
5704         * lib/dirfd.h: Remove file.
5705         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
5706         (dirfd): New declaration.
5707         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
5708         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
5709         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
5710         HAVE_DECL_DIRFD.
5711         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
5712         HAVE_DECL_DIRFD.
5713         * modules/dirfd (Files): Remove lib/dirfd.h.
5714         (Depends-on): Add dirent, extensions.
5715         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
5716         (Include): Specify <dirent.h> instead of dirfd.h.
5717         * modules/dirent (Depends-on): Add link-warning.
5718         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
5719         definition of GL_LINK_WARNING.
5720         * NEWS: Mention the change.
5721
5722 2008-10-18  Bruno Haible  <bruno@clisp.org>
5723
5724         Move the euidaccess() declaration to <unistd.h>.
5725         * lib/euidaccess.h: Remove file.
5726         * lib/unistd.in.h (euidaccess): New declaration.
5727         * lib/euidaccess.c: Don't include euidaccess.h.
5728         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
5729         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
5730         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
5731         and HAVE_EUIDACCESS.
5732         * modules/euidaccess (Files): Remove lib/euidaccess.h.
5733         (Depends-on): Add unistd.
5734         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5735         (Include): Specify <unistd.h> instead of euidaccess.h.
5736         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
5737         HAVE_EUIDACCESS.
5738         * NEWS: Mention the change.
5739
5740 2008-10-18  Bruno Haible  <bruno@clisp.org>
5741
5742         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
5743
5744         Move the getdomainname() declaration to <unistd.h>.
5745         * lib/getdomainname.h: Remove file.
5746         * lib/unistd.in.h (getdomainname): New declaration.
5747         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
5748         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
5749         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
5750         HAVE_GETDOMAINNAME.
5751         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5752         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
5753         * modules/getdomainname (Files): Remove lib/getdomainname.h.
5754         (Depends-on): Add unistd, extensions.
5755         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5756         (Includes): Specify <unistd.h> instead of getdomainname.h.
5757         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
5758         HAVE_GETDOMAINNAME.
5759         * NEWS: Mention the change.
5760
5761 2008-10-18  Bruno Haible  <bruno@clisp.org>
5762
5763         * modules/dirent: New file.
5764         * m4/dirent_h.m4: New file.
5765         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
5766         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
5767         * modules/fchdir (Files): Remove lib/dirent.in.h.
5768         (Depends-on): Add dirent.
5769         (Makefile.am): Move rules to modules/dirent.
5770         * doc/posix-headers/dirent.texi: Mention the new module.
5771
5772 2008-10-18  Bruno Haible  <bruno@clisp.org>
5773
5774         Avoid -Wunused-parameter warnings in public gnulib header files.
5775         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
5776         macro.
5777         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
5778
5779 2008-10-18  Bruno Haible  <bruno@clisp.org>
5780
5781         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
5782         * doc/glibc-functions/error.texi: Mention the module 'error'.
5783         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
5784         * doc/glibc-functions/getdomainname.texi: Mention the module
5785         'getdomainname'.
5786         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
5787         * doc/glibc-functions/getpagesize.texi: Mention the module
5788         'getpagesize'.
5789         * doc/glibc-functions/getusershell.texi: Mention the module
5790         'getusershell'.
5791         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
5792         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
5793         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
5794         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
5795         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
5796         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
5797         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
5798         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
5799         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
5800         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
5801         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
5802         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
5803         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
5804         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
5805
5806 2008-10-17  Bruno Haible  <bruno@clisp.org>
5807
5808         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
5809         HP-UX and IRIX, use -0.0L.
5810         * tests/test-ceill.c (minus_zero): Likewise.
5811         * tests/test-floorl.c (minus_zero): Likewise.
5812         * tests/test-frexpl.c (minus_zero): Likewise.
5813         * tests/test-isnan.c (minus_zerol): Likewise.
5814         * tests/test-isnanl.h (minus_zero): Likewise.
5815         * tests/test-ldexpl.c (minus_zero): Likewise.
5816         * tests/test-roundl.c (minus_zero): Likewise.
5817         * tests/test-signbit.c (minus_zerol): Likewise.
5818         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
5819         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
5820         * tests/test-truncl.c (minus_zero): Likewise.
5821         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
5822         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
5823         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
5824         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
5825
5826 2008-10-17  Bruno Haible  <bruno@clisp.org>
5827
5828         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
5829         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
5830         that it gets activated only for gcc >= 3.0.
5831         * lib/dirent.in.h: Likewise.
5832         * lib/errno.in.h: Likewise.
5833         * lib/fcntl.in.h: Likewise.
5834         * lib/float.in.h: Likewise.
5835         * lib/iconv.in.h: Likewise.
5836         * lib/inttypes.in.h: Likewise.
5837         * lib/locale.in.h: Likewise.
5838         * lib/math.in.h: Likewise.
5839         * lib/netdb.in.h: Likewise.
5840         * lib/netinet_in.in.h: Likewise.
5841         * lib/search.in.h: Likewise.
5842         * lib/signal.in.h: Likewise.
5843         * lib/spawn.in.h: Likewise.
5844         * lib/stdarg.in.h: Likewise.
5845         * lib/stdint.in.h: Likewise.
5846         * lib/stdio.in.h: Likewise.
5847         * lib/stdlib.in.h: Likewise.
5848         * lib/string.in.h: Likewise.
5849         * lib/strings.in.h: Likewise.
5850         * lib/sys_file.in.h: Likewise.
5851         * lib/sys_ioctl.in.h: Likewise.
5852         * lib/sys_select.in.h: Likewise.
5853         * lib/sys_socket.in.h: Likewise.
5854         * lib/sys_stat.in.h: Likewise.
5855         * lib/sys_time.in.h: Likewise.
5856         * lib/sysexits.in.h: Likewise.
5857         * lib/time.in.h: Likewise.
5858         * lib/unistd.in.h: Likewise.
5859         * lib/wchar.in.h: Likewise.
5860         * lib/wctype.in.h: Likewise.
5861         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
5862
5863 2008-10-17  Jim Meyering  <meyering@redhat.com>
5864
5865         ignore-value: don't depend on inline module
5866         * modules/ignore-value (Depends-on): Remove 'inline'.
5867         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
5868         Suggestion from Bruno Haible.
5869
5870 2008-10-17  Bruno Haible  <bruno@clisp.org>
5871
5872         New implementation of condition variables for Win32.
5873         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
5874         (gl_linked_waitqueue_t): New type.
5875         (gl_cond_t): Use it.
5876         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
5877         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
5878         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
5879         (glthread_cond_init_func, glthread_cond_wait_func,
5880         glthread_cond_timedwait_func, glthread_cond_signal_func,
5881         glthread_cond_broadcast_func, glthread_cond_destroy_func):
5882         Reimplemented on the basis of gl_linked_waitqueue_t.
5883         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
5884         gl_waitqueue_t.
5885         (gl_rwlock_t): Update.
5886         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
5887
5888 2008-10-17  Simon Josefsson  <simon@josefsson.org>
5889
5890         * modules/recvfrom (Depends-on): Add dependency on getpeername.
5891         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
5892
5893 2008-10-17  Jim Meyering  <meyering@redhat.com>
5894
5895         ignore-value: new module
5896         * modules/ignore-value: New file.
5897         * lib/ignore-value.h: New file.
5898         * MODULES.html.sh (Compiler warning management): New section,
5899         just for this module.  More to come.
5900
5901 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
5902
5903         open-safer.c: avoid 'signed and unsigned in conditional...' warning
5904         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
5905         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
5906
5907 2008-10-16  Jim Meyering  <meyering@redhat.com>
5908
5909         openat-die.c: avoid 'no previous prototype' warning
5910         * lib/openat-die.c: Include "openat.h".
5911         Reported by Reuben Thomas <rrt@sc3d.org>.
5912
5913 2008-10-16  Simon Josefsson  <simon@josefsson.org>
5914
5915         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
5916         * lib/netdb.in.h: Fix typo.
5917         Reported by Bruno Haible  <bruno@clisp.org>
5918
5919         * lib/netdb.in.h: Include sys/socket.h for platforms without
5920         netdb.h, to get structures like hostent on MinGW.
5921         * modules/netdb (Depends-on): Add sys_socket.
5922
5923 2008-10-15  Simon Josefsson  <simon@josefsson.org>
5924
5925         * modules/netdb, modules/netdb-tests: New file.
5926         * m4/netdb_h.m4: New file.
5927         * lib/netdb.in.h: Add, currently just an empty file pending
5928         definitions.
5929         * tests/test-netdb.c: New file.
5930         * doc/posix-headers/netdb.texi: Mention that we replace it if
5931         needed.
5932         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
5933         netdb.
5934
5935 2008-10-15  Simon Josefsson  <simon@josefsson.org>
5936
5937         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
5938         with code.
5939
5940 2008-10-13  Bruno Haible  <bruno@clisp.org>
5941
5942         * lib/glthread/cond.c (glthread_cond_wait_func,
5943         glthread_cond_timedwait_func): Add a comment.
5944
5945 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
5946
5947         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
5948         * tests/test-select.c: Likewise,
5949
5950 2008-10-13  Bruno Haible  <bruno@clisp.org>
5951
5952         * lib/glthread/cond.c (glthread_cond_wait_func,
5953         glthread_cond_timedwait_func): Fix variable name.
5954         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
5955
5956 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
5957
5958         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
5959         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
5960         struct sockaddr.sa_len.
5961         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
5962
5963 2008-10-13  Simon Josefsson  <simon@josefsson.org>
5964
5965         * build-aux/pmccabe2html: Add css and css_url parameters.
5966
5967 2008-10-12  Bruno Haible  <bruno@clisp.org>
5968
5969         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
5970         calling aclx_get.
5971         Reported by Rainer Tammer <tammer@tammer.net>.
5972
5973 2008-10-12  Bruno Haible  <bruno@clisp.org>
5974
5975         Use msvcrt aware primitives for creation/termination of Win32 threads.
5976         * lib/glthread/thread.c: Include <process.h>.
5977         (glthread_create_func): Use _beginthreadex instead of CreateThread.
5978         (wrapper_func): Update signature.
5979         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
5980
5981 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
5982             Bruno Haible  <bruno@clisp.org>
5983
5984         Provide a Win32 implementation of the 'cond' module.
5985         * lib/glthread/cond.h [USE_WIN32]: New implementation.
5986         * lib/glthread/cond.c (glthread_cond_init_func,
5987         glthread_cond_wait_func, glthread_cond_timedwait_func,
5988         glthread_cond_signal_func, glthread_cond_broadcast_func,
5989         glthread_cond_destroy_func) [USE_WIN32]: New functions.
5990         * modules/cond (Dependencies): Add gettimeofday.
5991
5992 2008-10-11  Bruno Haible  <bruno@clisp.org>
5993
5994         Make sleep work on older versions of mingw.
5995         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
5996         only whether it exists.
5997         * doc/posix-functions/sleep.texi: Mention the problem with older
5998         versions of mingw.
5999
6000 2008-10-11  Bruno Haible  <bruno@clisp.org>
6001
6002         New module 'shutdown'.
6003         * modules/shutdown: New file.
6004         * lib/sys_socket.in.h (shutdown): New declaration.
6005         * lib/winsock.c (shutdown): New function.
6006         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
6007         GNULIB_SHUTDOWN.
6008         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
6009         * doc/posix-functions/shutdown.texi: Document the new module.
6010
6011 2008-10-11  Jim Meyering  <meyering@redhat.com>
6012
6013         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
6014
6015 2008-10-11  Bruno Haible  <bruno@clisp.org>
6016
6017         New module 'fclose'.
6018         * modules/fclose: New file.
6019         * lib/stdio.in.h (fclose): New declaration.
6020         * lib/fclose.c: New file.
6021         * m4/fclose.m4: New file.
6022         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
6023         REPLACE_FCLOSE.
6024         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
6025         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
6026         REPLACE_FCLOSE.
6027         * modules/close (Depends-on): fclose.
6028         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
6029
6030 2008-10-11  Bruno Haible  <bruno@clisp.org>
6031
6032         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
6033         set errno and don't call _close.
6034
6035 2008-10-10  Bruno Haible  <bruno@clisp.org>
6036
6037         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
6038         ACL, not afterwards. Fixes test failure on Cygwin.
6039
6040 2008-10-09  Ben Pfaff  <blp@gnu.org>
6041
6042         * build-aux/announce-gen: Fix gnulib version related part of usage
6043         message.  Die with a useful error message if no tarballs are
6044         found.
6045
6046 2008-10-10  Jim Meyering  <meyering@redhat.com>
6047
6048         bootstrap: use git's --depth=N option only if it's supported
6049         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
6050         recognize the --depth option.  Reported by Pádraig Brady.
6051
6052 2008-10-09  Bruno Haible  <bruno@clisp.org>
6053
6054         New module 'ioctl'.
6055         * modules/ioctl: New file.
6056         * lib/sys_socket.in.h (ioctl): Remove declaration.
6057         * lib/winsock.c: Include <sys/ioctl.h>.
6058         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
6059         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
6060         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
6061         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
6062         * doc/posix-functions/ioctl.texi: Mention the new module.
6063
6064 2008-10-09  Bruno Haible  <bruno@clisp.org>
6065
6066         New module 'sys_ioctl'.
6067         * lib/sys_ioctl.in.h: New file.
6068         * m4/sys_ioctl_h.m4: New file.
6069         * modules/sys_ioctl: New file.
6070         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
6071
6072 2008-10-09  Bruno Haible  <bruno@clisp.org>
6073
6074         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
6075         * lib/winsock.c: Include <stdarg.h>.
6076         (rpl_ioctl): Change to second argument 'int' and then varargs.
6077
6078 2008-10-09  Bruno Haible  <bruno@clisp.org>
6079
6080         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
6081         when the sys_socket module is present and the system has <winsock2.h>.
6082
6083 2008-10-09  Bruno Haible  <bruno@clisp.org>
6084
6085         * doc/posix-functions/close.texi: Mention module 'close' instead of
6086         module 'sys_socket'.
6087
6088 2008-10-09  Bruno Haible  <bruno@clisp.org>
6089
6090         * doc/glibc-headers/sys_ioctl.texi: New file.
6091         * doc/gnulib.texi: Include it.
6092
6093 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6094             Bruno Haible  <bruno@clisp.org>
6095
6096         Combine the two replacements of 'close'.
6097         * lib/sys_socket.in.h (close): Define to a reminder to include
6098         <unistd.h>.
6099         (_gl_close_fd_maybe_socket): New declaration.
6100         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
6101         * lib/winsock.c (close): Remove undefinition.
6102         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
6103         needed for the gnulib module 'close'.
6104         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
6105         define to an error symbol or to a warning, if suitable.
6106         * lib/close.c: Include <sys/socket.h>.
6107         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
6108         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
6109         UNISTD_H_HAVE_WINSOCK2_H.
6110         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
6111         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6112         UNISTD_H_HAVE_WINSOCK2_H.
6113         * modules/sys_socket (Files): Add m4/unistd_h.m4.
6114         (configure.ac): Set a module indicator.
6115         (Makefile.am): Substitute GNULIB_CLOSE.
6116         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
6117         * modules/poll-tests (Depends-on): Add close.
6118         * modules/select-tests (Depends-on): Likewise.
6119
6120 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6121             Bruno Haible  <bruno@clisp.org>
6122
6123         New module 'close'.
6124         * modules/close: New file.
6125         * lib/unistd.in.h (close): Move declaration out of the
6126         FCHDIR_REPLACEMENT scope.
6127         (_gl_unregister_fd): New declaration.
6128         * lib/close.c: New file.
6129         * lib/fchdir.c (rpl_close): Remove function.
6130         * m4/close.m4: New file.
6131         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
6132         close.
6133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
6134         REPLACE_CLOSE.
6135         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
6136         REPLACE_CLOSE.
6137         * modules/fchdir (Depends-on): Add close.
6138
6139 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6140             Bruno Haible  <bruno@clisp.org>
6141
6142         * lib/fcntl.in.h (open): Simplify conditionals.
6143         (_gl_register_fd): New declaration.
6144         * lib/fchdir.c (rpl_open): Remove function.
6145         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
6146         also.
6147         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
6148         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
6149         open.
6150
6151 2008-10-09  Jim Meyering  <meyering@redhat.com>
6152
6153         GNUmakefile: use the more name-space-friendly "_version"
6154         * top/GNUmakefile (_dummy): Update.
6155         (_version): Rename from "version".
6156
6157 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6158             Bruno Haible  <bruno@clisp.org>
6159
6160         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
6161         rpl_close.
6162         (_gl_register_fd): New function, extracted from rpl_open.
6163         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
6164         (rpl_open, rpl_opendir): Use _gl_register_fd.
6165
6166 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6167
6168         Fix organization of 'open' replacement.
6169         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
6170         (gl_FUNC_OPEN): Use it.
6171         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
6172
6173 2008-10-08  Bruno Haible  <bruno@clisp.org>
6174
6175         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
6176
6177 2008-10-08  Simon Josefsson  <simon@josefsson.org>
6178
6179         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
6180         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
6181         listen).
6182
6183 2008-10-08  Eric Blake  <ebb9@byu.net>
6184
6185         GNUmakefile: add 'make version' target
6186         * top/GNUmakefile (_curr-ver): Split version update rules...
6187         (version): ...into a target.
6188
6189 2008-10-07  Bruno Haible  <bruno@clisp.org>
6190
6191         Use a more portable replacement expression for -0.0L.
6192         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
6193         instead of -0.0L. Fix m4 quotation.
6194
6195         * tests/test-signbit.c: Include <float.h>.
6196         (minus_zero): New variable.
6197         (test_signbitl): Use minus_zero instead of -zero.
6198         * modules/signbit-tests (Depends-on): Add float.
6199
6200         * tests/test-ceill.c: Include <float.h>.
6201         (zero): Remove variable.
6202         (minus_zero): New variable.
6203         (main): Use minus_zero instead of -zero.
6204         * modules/ceill-tests (Depends-on): Add float.
6205
6206         * tests/test-floorl.c: Include <float.h>.
6207         (zero): Remove variable.
6208         (minus_zero): New variable.
6209         (main): Use minus_zero instead of -zero.
6210         * modules/floorl-tests (Depends-on): Add float.
6211
6212         * tests/test-roundl.c: Include <float.h>.
6213         (zero): Remove variable.
6214         (minus_zero): New variable.
6215         (main): Use minus_zero instead of -zero.
6216         * modules/roundl-tests (Depends-on): Add float.
6217
6218         * tests/test-truncl.c: Include <float.h>.
6219         (zero): Remove variable.
6220         (minus_zero): New variable.
6221         (main): Use minus_zero instead of -zero.
6222         * modules/truncl-tests (Depends-on): Add float.
6223
6224         * tests/test-frexpl.c (zero): Remove variable.
6225         (minus_zero): New variable.
6226         (main): Use minus_zero instead of -zero.
6227         * modules/frexpl-tests (Depends-on): Add float.
6228
6229         * tests/test-isnan.c (zerol): Remove variable.
6230         (minus_zerol): New variable.
6231         (test_long_double): Use minus_zerol instead of -zerol.
6232         * modules/isnan-tests (Depends-on): Add float.
6233
6234         * tests/test-isnanl.h (zero): Remove variable.
6235         (minus_zero): New variable.
6236         (main): Use minus_zero instead of -zero.
6237         * modules/isnanl-nolibm-tests (Depends-on): Add float.
6238         * modules/isnanl-tests (Depends-on): Add float.
6239
6240         * tests/test-ldexpl.c (zero): Remove variable.
6241         (minus_zero): New variable.
6242         (main): Use minus_zero instead of -zero.
6243         * modules/ldexpl-tests (Depends-on): Add float.
6244
6245         * tests/test-snprintf-posix.h (zerol): Remove variable.
6246         (minus_zerol): New variable.
6247         (test_function): Use minus_zerol instead of -zerol.
6248         * modules/snprintf-posix-tests (Depends-on): Add float.
6249         * modules/vsnprintf-posix-tests (Depends-on): Add float.
6250
6251         * tests/test-sprintf-posix.h (zerol): Remove variable.
6252         (minus_zerol): New variable.
6253         (test_function): Use minus_zerol instead of -zerol.
6254         * modules/sprintf-posix-tests (Depends-on): Add float.
6255         * modules/vsprintf-posix-tests (Depends-on): Add float.
6256
6257         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
6258         (minus_zerol): New variable.
6259         (test_function): Use minus_zerol instead of -zerol.
6260         * modules/vasnprintf-posix-tests (Depends-on): Add float.
6261
6262         * tests/test-vasprintf-posix.c (zerol): Remove variable.
6263         (minus_zerol): New variable.
6264         (test_function): Use minus_zerol instead of -zerol.
6265         * modules/vasprintf-posix-tests (Depends-on): Add float.
6266
6267 2008-10-07  Simon Josefsson  <simon@josefsson.org>
6268
6269         * MODULES.html.sh (Support for building documentation): Mention
6270         pmccabe2html.  Sort entries.
6271
6272         Add pmccabe2html module, from gnupdf.
6273         * build-aux/pmccabe.css: New file.
6274         * build-aux/pmccabe2html: New file.
6275         * m4/pmccabe2html.m4: New file.
6276         * modules/pmccabe2html: New file.
6277
6278 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
6279
6280         flock: new module
6281         * MODULES.html.sh: Add to list of modules.
6282         * lib/flock.c: flock implementation for Windows and Unix systems
6283         which have fcntl.
6284         * doc/glibc-functions/flock.texi: Update documentation.
6285         * lib/sys_file.in.h: <sys/file.h> header file.
6286         * m4/flock.m4: M4 macros.
6287         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
6288         * modules/flock: flock module.
6289         * modules/flock-tests: flock tests module.
6290         * modules/sys_file: sys/file.h module.
6291         * tests/test-flock.c: test suite for flock.
6292
6293 2008-10-06  Jim Meyering  <meyering@redhat.com>
6294
6295         bootstrap: check for LT_INIT more portably still ;-)
6296         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
6297         Spotted by Bruno Haible.
6298
6299 2008-10-06  Eric Blake  <ebb9@byu.net>
6300
6301         test-signbit: avoid tripping Irix cc bug on -0.0L
6302         * tests/test-signbit.c (minus_zerol): Delete, and replace with
6303         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
6304         entire testsuite consistent and avoids an Irix 6.2 bug.
6305
6306 2008-10-05  Bruno Haible  <bruno@clisp.org>
6307             Jim Meyering  <jim@meyering.net>
6308
6309         Add an option for ignoring EPIPE during close_stdout.
6310         * lib/closeout.h: Include <stdbool.h>.
6311         (close_stdout_set_ignore_EPIPE): New declaration.
6312         * lib/closeout.c: Include <stdbool.h>.
6313         (ignore_EPIPE): New variable.
6314         (close_stdout_set_ignore_EPIPE): New function.
6315         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
6316         * lib/close-stream.c (close_stream): Mention the possible EPIPE
6317         failure.
6318         * modules/closeout (Depends-on): Add stdbool.
6319
6320 2008-10-05  Bruno Haible  <bruno@clisp.org>
6321
6322         * modules/accept: New file.
6323         * modules/bind: New file.
6324         * modules/connect: New file.
6325         * modules/getpeername: New file.
6326         * modules/getsockname: New file.
6327         * modules/getsockopt: New file.
6328         * modules/listen: New file.
6329         * modules/recv: New file.
6330         * modules/recvfrom: New file.
6331         * modules/send: New file.
6332         * modules/sendto: New file.
6333         * modules/setsockopt: New file.
6334         * modules/socket: New file.
6335         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
6336         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6337         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
6338         the particular module is requested. Add a link warning when the
6339         particular module is not requested.
6340         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
6341         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
6342         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
6343         the particular module is requested.
6344         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
6345         gl_SYS_SOCKET_H_DEFAULTS): New macros.
6346         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
6347         * modules/sys_socket (Depends-on): Add link-warning.
6348         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
6349         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
6350         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
6351         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
6352         GL_LINK_WARNING.
6353         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
6354         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
6355         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
6356         * doc/posix-functions/getpeername.texi: Mention the new module
6357         'getpeername'.
6358         * doc/posix-functions/getsockname.texi: Mention the new module
6359         'getsockname'.
6360         * doc/posix-functions/getsockopt.texi: Mention the new module
6361         'getsockopt'.
6362         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
6363         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
6364         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
6365         * doc/posix-functions/send.texi: Mention the new module 'send'.
6366         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
6367         * doc/posix-functions/setsockopt.texi: Mention the new module
6368         'setsockopt'.
6369         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
6370         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
6371         listen, connect, accept.
6372         * modules/select-tests (Depends-on): Likewise.
6373
6374 2008-10-05  Bruno Haible  <bruno@clisp.org>
6375
6376         * lib/winsock.c (strerror): Remove unused #undef.
6377         (rpl_close): Remove unused local variable.
6378
6379         * modules/sys_socket (Depends-on); Add errno.
6380
6381 2008-10-05  Bruno Haible  <bruno@clisp.org>
6382
6383         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
6384         (select): Add a link warning when the 'select' module is not used.
6385         * modules/sys_select (Depends-on): Add link-warning.
6386         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
6387         Suggested by Paolo Bonzini.
6388
6389 2008-10-05  Jim Meyering  <meyering@redhat.com>
6390
6391         bootstrap: check for LT_INIT more portably
6392         * build-aux/bootstrap: Avoid using grep -E, since it's not
6393         portable enough.  Suggestion from Bruno Haible.
6394
6395 2008-10-05  Bruno Haible  <bruno@clisp.org>
6396
6397         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
6398         as being fixed by gnulib.
6399
6400 2008-10-05  Bruno Haible  <bruno@clisp.org>
6401
6402         * modules/select-tests: New file, mostly copied from
6403         modules/sys_select-tests.
6404         * tests/test-select.c: New file, mostly copied from
6405         tests/test-sys_select.c.
6406         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
6407         * modules/sys_select-tests (Depends-on): Remove all dependencies.
6408         (Makefile.am): Remove test_sys_select_LDADD.
6409
6410         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
6411         to an undefined symbol, for an error message.
6412         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
6413         (gl_SYS_SELECT_H_DEFAULTS): New macro.
6414         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
6415         winsock-select.c here.
6416         * modules/sys_select (Files): Remove lib/winsock-select.c.
6417         (Depends-on): Remove alloca.
6418         (Makefile.am): Substitute GNULIB_SELECT.
6419         * modules/select: New file.
6420         * doc/posix-functions/select.texi: Update.
6421
6422 2008-10-05  Bruno Haible  <bruno@clisp.org>
6423
6424         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
6425         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
6426         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
6427         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
6428         getdtablesize.
6429         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
6430         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
6431
6432 2008-10-05  Bruno Haible  <bruno@clisp.org>
6433
6434         * modules/getdtablesize-tests: New file.
6435         * tests/test-getdtablesize.c: New file.
6436
6437         New module 'getdtablesize'.
6438         * lib/unistd.in.h (getdtablesize): New declaration.
6439         * lib/getdtablesize.c: New file.
6440         * m4/getdtablesize.m4: New file.
6441         * modules/getdtablesize: New file.
6442         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6443         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
6444         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
6445         HAVE_GETDTABLESIZE.
6446         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
6447
6448 2008-10-05  Bruno Haible  <bruno@clisp.org>
6449
6450         * modules/sched (Makefile.am): Fix typo.
6451         Reported by Simon Josefsson.
6452
6453 2008-10-05  Jim Meyering  <meyering@redhat.com>
6454
6455         bootstrap: check for LT_INIT, too
6456         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
6457         are deprecated.  Suggestion from Ralf Wildenhues.
6458
6459 2008-10-05  Bruno Haible  <bruno@clisp.org>
6460
6461         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
6462         overriding them by ours.
6463         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
6464
6465 2008-10-05  Jim Meyering  <meyering@redhat.com>
6466
6467         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
6468         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
6469         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
6470
6471 2008-10-04  Bruno Haible  <bruno@clisp.org>
6472
6473         * modules/dup2 (License): Change to LGPLv2+.
6474         * modules/sleep (License): Likewise.
6475         * modules/perror (License): Likewise.
6476         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
6477         Blake.
6478         * modules/signal (License): Likewise.
6479         * modules/sigprocmask (License): Likewise.
6480         * modules/raise (License): Change to LGPLv2+, with approval by Jim
6481         Meyering.
6482
6483 2008-10-04  Bruno Haible  <bruno@clisp.org>
6484
6485         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
6486         Reported by Rainer Tammer <tammer@tammer.net>.
6487
6488 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
6489             Bruno Haible  <bruno@clisp.org>
6490
6491         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
6492         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
6493         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
6494
6495 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
6496
6497         filevercmp: new module
6498         * lib/filevercmp.h: New function filevercmp comparing version strings.
6499         * lib/filevercmp.c: Implementation of filevercmp function.
6500         * modules/filevercmp: Module metadata.
6501         * tests/test-filevercmp.c: Unit test for new module.
6502         * modules/filevercmp-tests: Unit test metadata.
6503         * MODULES.html.sh: Add filevercmp module.
6504
6505 2008-10-03  Bruno Haible  <bruno@clisp.org>
6506
6507         * lib/c-ctype.h: Add comment.
6508         Reported by Jim Meyering.
6509
6510 2008-10-02  Bruno Haible  <bruno@clisp.org>
6511
6512         * modules/posix_spawn-internal (Depends-on): Add 'open'.
6513
6514 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
6515
6516         * build-aux/bootstrap: Allow renaming bootstrap, and change the
6517         name of bootstrap.conf accordingly.
6518
6519 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
6520
6521         * build-aux/bootstrap: Install git-merge-changelog configuration
6522         items into .gitconfig if needed.
6523
6524 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
6525
6526         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
6527         git repository, and initialize/update it accordingly.
6528
6529 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
6530
6531         * modules/fsync-tests: New file.
6532         * tests/test-fsync.c: New file.
6533
6534         New module 'fsync'.
6535         * lib/fsync.c: New file.
6536         * m4/fsync.m4: New file.
6537         * modules/fsync: New file.
6538         * lib/unistd.in.h (fsync): New declaration.
6539         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
6540         GNULIB_FSYNC and HAVE_FSYNC.
6541         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
6542         * MODULES.html.sh (posix_functions): Add fsync.
6543         * doc/posix-functions/fsync.texi: Mention the new module.
6544
6545 2008-10-02  Jim Meyering  <meyering@redhat.com>
6546
6547         fts.c: sync with similar code from coreutils' remove.c
6548         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
6549         Guard also with "#if defined __linux__", since for now at least,
6550         this code is Linux-kernel-specific.
6551
6552 2008-10-02  Jim Meyering  <meyering@redhat.com>
6553
6554         fts: bug fixes
6555         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
6556         Include <sys/vfs.h>, not <sys/statfs.h>.
6557
6558         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
6559         Include <sys/vfs.h>, not <sys/statfs.h>.
6560
6561 2008-10-01  Bruno Haible  <bruno@clisp.org>
6562
6563         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
6564         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
6565         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
6566         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
6567         * doc/posix-functions/posix_spawnp.texi: Likewise.
6568         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
6569         whether posix_spawn actually works.
6570         * m4/pipe.m4 (gl_PIPE): Likewise.
6571         * modules/execute (Files): Add m4/posix_spawn.m4.
6572         * modules/pipe (Files): Add m4/posix_spawn.m4.
6573         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
6574
6575 2008-10-01  Jim Meyering  <meyering@redhat.com>
6576
6577         remove trailing spaces
6578         * NEWS: Likewise.
6579         * lib/poll.c (poll): Likewise.
6580         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
6581         * lib/winsock.c (rpl_close): Likewise.
6582         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
6583         * modules/yield: Likewise.
6584         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
6585         * tests/test-sys_select.c (connect_to_socket): Likewise.
6586
6587         fts.c: adjust a new interface to be more generally useful
6588         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
6589         (fts_build): Adjust caller.
6590
6591 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6592
6593         * modules/cond-tests: New file.
6594         * tests/test-cond.c: New file.
6595
6596 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6597             Bruno Haible  <bruno@clisp.org>
6598
6599         * modules/cond (Dependencies): Add errno, time.
6600         * lib/glthread/cond.h: Include <time.h>.
6601         (gl_cond_define, gl_cond_define_initialized): Use the same definition
6602         across platforms.
6603
6604 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6605             Bruno Haible  <bruno@clisp.org>
6606
6607         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
6608
6609 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6610             Bruno Haible  <bruno@clisp.org>
6611
6612         * modules/tls-tests (Depends-on): Add thread, yield.
6613         (configure.ac): Remove all checks.
6614         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
6615         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
6616         gl_thread_self): Remove definitions. Include glthread/thread.h and
6617         glthread/yield.h instead.
6618         (test_tls): Pass an additional NULL argument to gl_thread_join.
6619
6620 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6621             Bruno Haible  <bruno@clisp.org>
6622
6623         * modules/lock-tests (Depends-on): Add thread, yield.
6624         (configure.ac): Remove all checks.
6625         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
6626         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
6627         gl_thread_self): Remove definitions. Include glthread/thread.h and
6628         glthread/yield.h instead.
6629         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
6630         additional NULL argument to gl_thread_join.
6631
6632 2008-09-30  Bruno Haible  <bruno@clisp.org>
6633
6634         Fix the Win32 implementation of the 'thread' module.
6635         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
6636         pointer type.
6637         (gl_thread_self): Invoke gl_thread_self_func.
6638         (gl_thread_self_func): New declaration.
6639         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
6640         (do_init_self_key, init_self_key): New functions.
6641         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
6642         Remove some fields.
6643         (running_threads, running_lock): Remove variables.
6644         (get_current_thread_handle): New function.
6645         (gl_thread_self_func, wrapper_func, glthread_create_func,
6646         glthread_join_func, gl_thread_exit_func): Largely rewritten and
6647         simplified.
6648
6649 2008-09-30  Bruno Haible  <bruno@clisp.org>
6650
6651         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
6652         files.
6653
6654 2008-09-30  Jim Meyering  <meyering@redhat.com>
6655
6656         fts.m4: correct the test for statfs.f_type
6657         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
6658         when checking for statfs.f_type.
6659
6660 2008-09-15  Simon Josefsson  <simon@josefsson.org>
6661
6662         tests: avoid some compiler warnings
6663         * tests/test-memchr.c (main): Pass NULL indirectly.
6664         * tests/test-getdate.c (main): Remove unused variable 'ret'.
6665
6666 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
6667
6668         getdate.y: disallow countable dayshifts like "4 yesterday ago"
6669         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
6670         exactly specified dayshifts.
6671         (dayshift): New rule.
6672         (rel): Add dayshift.
6673         (relative_time_table) [tomorrow, yesterday, today, now]:
6674         Use tDAY_SHIFT in place of tDAY_UNIT.
6675         * tests/test-getdate.c: Add tests for now-disallowed countable
6676         dayshifts, e.g., "4 yesterday ago".
6677
6678 2008-09-29  Bruno Haible  <bruno@clisp.org>
6679
6680         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
6681         * tests/test-posix_spawn1.in.sh: Renamed from
6682         tests/test-posix_spawn.in.sh.
6683         * tests/test-posix_spawn2.c: New file.
6684         * tests/test-posix_spawn2.in.sh: New file.
6685         * modules/posix_spawnp-tests (Files): Update.
6686         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
6687
6688 2008-09-29  Bruno Haible  <bruno@clisp.org>
6689
6690         Propagate effects of putenv/setenv/unsetenv to child processes.
6691         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
6692         * lib/pipe.c (create_pipe): Likewise.
6693
6694 2008-09-29  Bruno Haible  <bruno@clisp.org>
6695
6696         Enable use of shell scripts as executables in mingw.
6697         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
6698         run the program as a shell script.
6699         * lib/pipe.c (create_pipe): Likewise.
6700         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
6701         resulting array.
6702
6703 2008-09-29  Eric Blake  <ebb9@byu.net>
6704
6705         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
6706
6707 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
6708
6709         * doc/posix-functions/accept.texi: Update mingw problems.
6710         * doc/posix-functions/bind.texi: Update mingw problems.
6711         * doc/posix-functions/close.texi: Update mingw problems.
6712         * doc/posix-functions/connect.texi: Update mingw problems.
6713         * doc/posix-functions/getpeername.texi: Update mingw problems.
6714         * doc/posix-functions/getsockname.texi: Update mingw problems.
6715         * doc/posix-functions/getsockopt.texi: Update mingw problems.
6716         * doc/posix-functions/ioctl.texi: Update mingw problems.
6717         * doc/posix-functions/listen.texi: Update mingw problems.
6718         * doc/posix-functions/recv.texi: Update mingw problems.
6719         * doc/posix-functions/recvfrom.texi: Update mingw problems.
6720         * doc/posix-functions/select.texi: Update mingw problems.
6721         * doc/posix-functions/send.texi: Update mingw problems.
6722         * doc/posix-functions/sendto.texi: Update mingw problems.
6723         * doc/posix-functions/setsockopt.texi: Update mingw problems.
6724         * doc/posix-functions/socket.texi: Update mingw problems.
6725
6726 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
6727             Bruno Haible  <bruno@clisp.org>
6728
6729         * lib/sys_select.in.h: Include sys/time.h.
6730         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
6731         * modules/sys_select: Depend on sys_time.
6732         * tests/test-sys_select.c: Test that sys/select.h defines struct
6733         timeval fully.
6734
6735 2008-09-29  Bruno Haible  <bruno@clisp.org>
6736
6737         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
6738         * lib/sys_select.in.h: Likewise.
6739
6740 2008-09-29  Bruno Haible  <bruno@clisp.org>
6741
6742         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
6743
6744 2008-09-29  Bruno Haible  <bruno@clisp.org>
6745
6746         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
6747         Set LIBSOCKET instead of augmenting LIBS.
6748         * modules/sockets (Link): New section.
6749         * modules/sockets-tests (test_sockets_LDADD): New variable.
6750         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
6751         * modules/poll-tests (test_poll_LDADD): New variable.
6752         * NEWS: Document the change.
6753
6754 2008-09-29  Bruno Haible  <bruno@clisp.org>
6755
6756         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
6757         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
6758         ARPA_INET_H directly.
6759         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
6760
6761 2008-09-28  Bruno Haible  <bruno@clisp.org>
6762
6763         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
6764         from gl_HEADER_SYS_SOCKET.
6765         (gl_HEADER_SYS_SOCKET): Invoke it.
6766         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6767
6768 2008-09-28  Bruno Haible  <bruno@clisp.org>
6769
6770         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
6771         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
6772         Needed on OSF/1 4.0.
6773
6774 2008-09-28  Bruno Haible  <bruno@clisp.org>
6775
6776         Override open more carefully.
6777         * lib/open.c (orig_open): New function.
6778         (rpl_open): Use orig_open instead of open.
6779         * lib/fcntl.in.h: Add special invocation convention.
6780         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
6781         (gl_FUNC_OPEN): Invoke it.
6782
6783         Override freopen more carefully.
6784         * lib/freopen.c (orig_freopen): New function.
6785         (rpl_freopen): Use orig_freopen instead of freopen.
6786         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
6787         (gl_FUNC_FREOPEN): Invoke it.
6788
6789         Override fopen more carefully.
6790         * lib/fopen.c (orig_fopen): New function.
6791         (rpl_fopen): Use orig_fopen instead of fopen.
6792         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
6793         (gl_FUNC_FOPEN): Invoke it.
6794         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
6795
6796 2008-09-28  Bruno Haible  <bruno@clisp.org>
6797
6798         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
6799         SIGPIPE.
6800
6801 2008-09-28  Bruno Haible  <bruno@clisp.org>
6802
6803         * tests/test-sigaction.c (handler, main): Disable the check whether
6804         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
6805         glibc systems with LinuxThreads.
6806
6807 2008-09-28  Bruno Haible  <bruno@clisp.org>
6808
6809         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
6810
6811         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
6812         with AIX xlc.
6813         * lib/fcntl.in.h (open): Likewise.
6814         Reported by Rainer Tammer <tammer@tammer.net>.
6815
6816 2008-09-28  Bruno Haible  <bruno@clisp.org>
6817
6818         * modules/posix_spawnp-tests: New file.
6819         * tests/test-posix_spawn.c: New file.
6820         * tests/test-posix_spawn.in.sh: New file.
6821
6822         New module 'posix_spawnp'.
6823         * modules/posix_spawnp: New file.
6824         * lib/spawnp.c: New file, from GNU libc with modifications.
6825         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
6826
6827         New module 'posix_spawn'.
6828         * modules/posix_spawn: New file.
6829         * lib/spawn.c: New file, from GNU libc with modifications.
6830         * doc/posix-functions/posix_spawn.texi: Mention the new module.
6831
6832         New module 'posix_spawnattr_destroy'.
6833         * modules/posix_spawnattr_destroy: New file.
6834         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
6835         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
6836         module.
6837
6838         New module 'posix_spawnattr_setsigmask'.
6839         * modules/posix_spawnattr_setsigmask: New file.
6840         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
6841         modifications.
6842         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
6843         new module.
6844
6845         New module 'posix_spawnattr_getsigmask'.
6846         * modules/posix_spawnattr_getsigmask: New file.
6847         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
6848         modifications.
6849         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
6850         new module.
6851
6852         New module 'posix_spawnattr_setsigdefault'.
6853         * modules/posix_spawnattr_setsigdefault: New file.
6854         * lib/spawnattr_setdefault.c: New file, from GNU libc with
6855         modifications.
6856         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
6857         new module.
6858
6859         New module 'posix_spawnattr_getsigdefault'.
6860         * modules/posix_spawnattr_getsigdefault: New file.
6861         * lib/spawnattr_getdefault.c: New file, from GNU libc with
6862         modifications.
6863         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
6864         new module.
6865
6866         New module 'posix_spawnattr_setschedpolicy'.
6867         * modules/posix_spawnattr_setschedpolicy: New file.
6868         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
6869         modifications.
6870         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
6871         new module.
6872
6873         New module 'posix_spawnattr_getschedpolicy'.
6874         * modules/posix_spawnattr_getschedpolicy: New file.
6875         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
6876         modifications.
6877         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
6878         new module.
6879
6880         New module 'posix_spawnattr_setschedparam'.
6881         * modules/posix_spawnattr_setschedparam: New file.
6882         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
6883         modifications.
6884         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
6885         new module.
6886
6887         New module 'posix_spawnattr_getschedparam'.
6888         * modules/posix_spawnattr_getschedparam: New file.
6889         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
6890         modifications.
6891         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
6892         new module.
6893
6894         New module 'posix_spawnattr_setpgroup'.
6895         * modules/posix_spawnattr_setpgroup: New file.
6896         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
6897         modifications.
6898         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
6899         module.
6900
6901         New module 'posix_spawnattr_getpgroup'.
6902         * modules/posix_spawnattr_getpgroup: New file.
6903         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
6904         modifications.
6905         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
6906         module.
6907
6908         New module 'posix_spawnattr_setflags'.
6909         * modules/posix_spawnattr_setflags: New file.
6910         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
6911         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
6912         module.
6913
6914         New module 'posix_spawnattr_getflags'.
6915         * modules/posix_spawnattr_getflags: New file.
6916         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
6917         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
6918         module.
6919
6920         New module 'posix_spawnattr_init'.
6921         * modules/posix_spawnattr_init: New file.
6922         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
6923         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
6924         module.
6925
6926         New module 'posix_spawn_file_actions_destroy'.
6927         * modules/posix_spawn_file_actions_destroy: New file.
6928         * lib/spawn_faction_destroy.c: New file, from GNU libc with
6929         modifications.
6930         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
6931         the new module.
6932
6933         New module 'posix_spawn_file_actions_addopen'.
6934         * modules/posix_spawn_file_actions_addopen: New file.
6935         * lib/spawn_faction_addopen.c: New file, from GNU libc with
6936         modifications.
6937         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
6938         the new module.
6939
6940         New module 'posix_spawn_file_actions_adddup2'.
6941         * modules/posix_spawn_file_actions_adddup2: New file.
6942         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
6943         modifications.
6944         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
6945         the new module.
6946
6947         New module 'posix_spawn_file_actions_addclose'.
6948         * modules/posix_spawn_file_actions_addclose: New file.
6949         * lib/spawn_faction_addclose.c: New file, from GNU libc with
6950         modifications.
6951         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
6952         the new module.
6953
6954         New module 'posix_spawn_file_actions_init'.
6955         * modules/posix_spawn_file_actions_init: New file.
6956         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
6957         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
6958         new module.
6959
6960         New module 'posix_spawn-internal'.
6961         * modules/posix_spawn-internal: New file.
6962         * lib/spawn_int.h: New file, from GNU libc with modifications.
6963         * lib/spawni.c: New file, from GNU libc with modifications.
6964         * m4/posix_spawn.m4: New file.
6965
6966         New module 'spawn'.
6967         * modules/spawn: New file.
6968         * lib/spawn.in.h: New file, from GNU libc with modifications.
6969         * m4/spawn_h.m4: New file.
6970         * doc/posix-headers/spawn.texi: Mention the new module.
6971
6972 2008-09-28  Bruno Haible  <bruno@clisp.org>
6973
6974         * modules/sched-tests: New file.
6975         * tests/test-sched.c: New file.
6976
6977         New module 'sched'.
6978         * modules/sched: New file.
6979         * lib/sched.in.h: New file.
6980         * m4/sched_h.m4: New file.
6981         * doc/posix-headers/sched.texi: Mention the new module.
6982
6983 2008-09-27  Eric Blake  <ebb9@byu.net>
6984
6985         Fix previous patch, and tweak references to $0.
6986         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
6987         (func_version, func_gnulib_dir): Don't call this program
6988         gnulib-tool.
6989         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
6990         with using $0 in function.
6991         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
6992         (func_fatal_error): Reuse the name the user invoked us with.
6993
6994 2008-09-27  Bruno Haible  <bruno@clisp.org>
6995
6996         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
6997         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
6998         (gl_ICONV_H): Not here.
6999         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
7000         instead of assigning ICONV_H directly.
7001
7002         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
7003         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
7004         WCHAR_H directly.
7005
7006 2008-09-27  Bruno Haible  <bruno@clisp.org>
7007
7008         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
7009         * modules/arpa_inet (Depends-on): Add link-warning.
7010         (Makefile.am): Insert the definition of GL_LINK-WARNING.
7011         * modules/unistd (Makefile.am): Likewise.
7012
7013 2008-09-26  Bruno Haible  <bruno@clisp.org>
7014
7015         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
7016         variables.
7017         (func_version): Essentially copied from gnulib-tool.
7018         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
7019         func_readlink): Copied from gnulib-tool.
7020
7021 2008-09-26  Bruno Haible  <bruno@clisp.org>
7022
7023         * gnulib-tool (func_version): Change directory to $gnulib_dir before
7024         invoking git-version-gen.
7025
7026 2008-09-26  Bruno Haible  <bruno@clisp.org>
7027
7028         * posix-modules: Update to directory names changed on 2008-01-19.
7029         Remove commas in output before splitting into words. No more need to
7030         avoid 'ftruncate' since 2007-02-19.
7031
7032 2008-09-26  Bruno Haible  <bruno@clisp.org>
7033
7034         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
7035
7036 2008-09-26  Bruno Haible  <bruno@clisp.org>
7037
7038         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
7039         * modules/fwriteerror (Depends-on): Add errno.
7040
7041 2008-09-26  Bruno Haible  <bruno@clisp.org>
7042
7043         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
7044         * tests/test-vc-list-files-cvs.sh: Likewise.
7045
7046 2008-09-26  Bruno Haible  <bruno@clisp.org>
7047
7048         * doc/posix-headers/sys_resource.texi: Reorder items.
7049
7050 2008-09-26  Jim Meyering  <meyering@redhat.com>
7051
7052         fts: tweak inode comparison function
7053         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
7054         inode numbers, as documented.
7055
7056         fts: sort dirent entries on inode number before traversing
7057         This avoids a quadratic, seek-related performance penalty when
7058         operating on a directory containing many entries (measurable at 10k;
7059         3.5 hours at 2 million entries with a cold cache) on certain types
7060         of file systems, including ext3 and ext4, but not tmpfs.
7061         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
7062         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
7063         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
7064         (fs_handles_readdir_ordered_dirents_efficiently): New function.
7065         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
7066         (fts_build): Set the stat.st_ino member from D_INO.
7067         If it is likely to be useful, sort dirent entries on inode number.
7068
7069         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
7070         and the struct statfs.f_type member.
7071         * modules/fts (Depends-on): Add d-ino.
7072
7073 2008-09-26  Bruno Haible  <bruno@clisp.org>
7074
7075         * modules/sigpipe-die (Depends-on): Add sigpipe.
7076
7077         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
7078         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
7079         and GNULIB_STDIO_H_SIGPIPE are set.
7080         * lib/stdio-write.c: New file.
7081         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
7082         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
7083         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
7084         REPLACE_STDIO_WRITE_FUNCS.
7085         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
7086         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
7087         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
7088         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
7089         * modules/stdio (Files): Add lib/stdio-write.c.
7090         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
7091         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
7092         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
7093         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
7094         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
7095         REPLACE_FPRINTF_POSIX.
7096         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
7097         REPLACE_PRINTF_POSIX.
7098         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
7099         REPLACE_VFPRINTF_POSIX.
7100         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
7101         REPLACE_VPRINTF_POSIX.
7102         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
7103         SIGPIPE issue.
7104         * doc/posix-functions/fputc.texi: Likewise.
7105         * doc/posix-functions/fputs.texi: Likewise.
7106         * doc/posix-functions/fwrite.texi: Likewise.
7107         * doc/posix-functions/printf.texi: Likewise.
7108         * doc/posix-functions/putc.texi: Likewise.
7109         * doc/posix-functions/putchar.texi: Likewise.
7110         * doc/posix-functions/puts.texi: Likewise.
7111         * doc/posix-functions/vfprintf.texi: Likewise.
7112         * doc/posix-functions/vprintf.texi: Likewise.
7113
7114         * modules/safe-write (Depends-on): Add write.
7115
7116         * modules/sigpipe-tests: New file.
7117         * tests/test-sigpipe.c: New file.
7118         * tests/test-sigpipe.sh: New file.
7119
7120         * modules/write: New file.
7121         * lib/unistd.in.h: Include <sys/types.h>.
7122         (write): New declaration.
7123         * lib/write.c: New file.
7124         * m4/write.m4: New file.
7125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7126         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
7127         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
7128         GNULIB_WRITE, REPLACE_WRITE.
7129         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
7130         and the SIGPIPE issue.
7131
7132         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
7133         (raise): New declaration.
7134         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
7135         (ext_signal): New function.
7136         (rpl_raise): New function.
7137         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7138         GNULIB_SIGNAL_H_SIGPIPE.
7139         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
7140         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
7141
7142         * modules/sigpipe: New file.
7143         * m4/sigpipe.m4: New file.
7144
7145 2008-09-25  Derek Price  <derek@ximbiot.com>
7146             Bruno Haible  <bruno@clisp.org>
7147
7148         * gnulib-tool (func_import): Report all license incompatibilities, not
7149         just the first one.
7150
7151 2008-09-25  Bruno Haible  <bruno@clisp.org>
7152
7153         * gnulib-tool (func_import): When computing the edits, consider not
7154         only the Makefile.ams that exist but also those that will be generated.
7155
7156 2008-09-25  Simon Josefsson  <simon@josefsson.org>
7157
7158         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
7159         fixes gnulib-tool --test warning about duplicate dependency.
7160
7161 2008-09-25  Bruno Haible  <bruno@clisp.org>
7162
7163         * gnulib-tool: Don't ask the user to perform edits in the generated
7164         Makefile.ams.
7165         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
7166         apply to the Makefile.am being generated.
7167         (func_emit_tests_Makefile_am): Execute edits that apply to the
7168         Makefile.am being generated.
7169         (func_import): Setup list of Makefile.am edits before emitting the
7170         Makefile.ams, not at the end.
7171         (func_create_testdir): Update.
7172         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
7173
7174 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7175
7176         * gnulib-tool (func_import): Store the --tests-base option in the
7177         comment in gnulib-cache.m4.
7178
7179 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
7180
7181         * NEWS: Document increased portability that sys_select now provides.
7182
7183         * lib/sys_select.in.h: Install select wrapper.
7184         * lib/sys_socket.in.h: Use more descriptive name when there is no
7185         select wrapper.
7186         * lib/winsock-select.c: New.
7187         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
7188         Require gl_HEADER_SYS_SOCKET.
7189         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
7190         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
7191         * tests/test-sys_select.c: Add functional tests.
7192
7193 2008-09-24  Eric Blake  <ebb9@byu.net>
7194
7195         open, fopen: close fd leak in last patch
7196         * lib/open.c (rpl_open): Close fd before returning error.
7197         * lib/fopen.c (rpl_fopen): Close fd before returning error.
7198         * doc/posix-functions/open.texi (open): Document that Irix also
7199         has the bug.
7200         * doc/posix-functions/fopen.texi (fopen): Likewise.
7201         Reported by Paolo Bonzini.
7202
7203 2008-09-24  Bruno Haible  <bruno@clisp.org>
7204
7205         Ensure that a filename ending in a slash cannot be used to access a
7206         non-directory.
7207         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
7208         to check whether it's really a directory.
7209         * lib/fopen.c: Include fcntl.h, unistd.h.
7210         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
7211         and fdopen().
7212         * modules/fopen (Depends-on): Add unistd.
7213         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
7214         * tests/test-fopen.c (main): Likewise.
7215         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
7216         * doc/posix-functions/fopen.texi: Likewise.
7217         Reported by Eric Blake.
7218
7219 2008-09-23  Eric Blake  <ebb9@byu.net>
7220
7221         c-stack: avoid compiler optimizations when provoking overflow
7222         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
7223         recursion harder to optimize, to ensure a stack overflow occurs.
7224         * tests/test-c-stack.c (recurse): Likewise.
7225         Borrowed from libsigsegv.
7226
7227         c-stack: work around Irix sigaltstack bug
7228         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
7229         whether sigaltstack uses wrong end of stack_t (copied in part from
7230         libsigsegv).
7231         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
7232         Irix bug, without requiring an over-allocation.
7233         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
7234         bug.
7235
7236         fopen: document mingw bug on directories
7237         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
7238         not allowing a stream visiting a directory, even though reading
7239         from such a stream is not portable.
7240
7241 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
7242
7243         * lib/poll.c: Rewrite.
7244         * modules/poll: Depend on alloca.
7245
7246 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
7247
7248         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
7249         instead define prototypes for a full set of wrappers.  Ensure
7250         that Cygwin does not use the compatibility code, which is only
7251         for MinGW.
7252         * lib/winsock.c: New.
7253         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
7254         * modules/sys_socket: Add lib/winsock.c.
7255
7256         * modules/poll-tests: Add errno and perror.
7257         * tests/test-poll.c: Use ioctl, not ioctlsocket.
7258
7259 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
7260
7261         * tests/test-poll.c: Downgrade minimum needed Winsock version.
7262
7263 2008-09-23  Bruno Haible  <bruno@clisp.org>
7264
7265         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
7266         * doc/glibc-functions/*: Likewise.
7267
7268 2008-09-23  Simon Josefsson  <simon@josefsson.org>
7269
7270         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
7271         success.
7272
7273 2008-09-22  Eric Blake  <ebb9@byu.net>
7274             Bruno Haible  <bruno@clisp.org>
7275
7276         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
7277         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
7278         supply %A but mishandle pseudo-NaN.
7279         Reported by Simon Josefsson.
7280
7281 2008-09-21  Bruno Haible  <bruno@clisp.org>
7282
7283         * tests/test-lock.c (main): Tweak skip message.
7284         * tests/test-tls.c (main): Likewise.
7285
7286 2008-09-21  Bruno Haible  <bruno@clisp.org>
7287
7288         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
7289         whether 'struct sigaction' has sa_sigaction here...
7290         (gl_PREREQ_SIG_HANDLER_H): ... not here.
7291         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
7292
7293 2008-09-21  Bruno Haible  <bruno@clisp.org>
7294
7295         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
7296         section.
7297         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
7298         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
7299         the new section.
7300         (Support for obsolete systems lacking POSIX:2001): New section.
7301         (String handling <string.h>): Move strdup to the new section.
7302         Suggested by Simon Josefsson and Paolo Bonzini.
7303
7304 2008-09-21  Bruno Haible  <bruno@clisp.org>
7305
7306         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
7307         exponents in %e and %g results on 'long double'. Needed for mingw's
7308         improved *printf functions.
7309         * tests/test-vasprintf-posix.c (test_function): Likewise.
7310         * tests/test-snprintf-posix.h (test_function): Likewise.
7311         * tests/test-sprintf-posix.h (test_function): Likewise.
7312         Reported by Eric Blake.
7313
7314 2008-09-21  Bruno Haible  <bruno@clisp.org>
7315
7316         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
7317         * tests/test-sprintf-posix.h (test_function): Likewise.
7318
7319 2008-09-21  Bruno Haible  <bruno@clisp.org>
7320
7321         * modules/getpass (Depends-on): Add strdup-posix.
7322
7323         New module 'strdup-posix'.
7324         * modules/strdup-posix: New file.
7325         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
7326         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
7327         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7328         REPLACE_STRDUP.
7329         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
7330         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
7331         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
7332         strdup-posix.
7333
7334         * modules/strdup (Depends-on): Remove malloc-posix.
7335
7336 2008-09-20  Bruno Haible  <bruno@clisp.org>
7337
7338         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
7339         Wildenhues.
7340
7341 2008-09-20  Bruno Haible  <bruno@clisp.org>
7342
7343         Ensure that wint_t gets defined on IRIX 5.3.
7344         * lib/wchar.in.h (wint_t): Define if not defined by the system.
7345         * lib/wctype.in.h (wint_t): Likewise.
7346         (__wctype_wint_t): Remove type.
7347         (isw*): Use wint_t instead of __wctype_wint_t.
7348         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
7349         * modules/wchar (Files): Add m4/wint_t.m4.
7350         (Makefile.am): Substitute HAVE_WINT_T.
7351         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
7352         * tests/test-wctype.c: Check that wint_t is defined.
7353         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
7354         * doc/posix-headers/wctype.texi: Likewise.
7355         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7356
7357 2008-09-18  Bruno Haible  <bruno@clisp.org>
7358
7359         * gnulib-tool (func_exit): Update comment.
7360
7361 2008-09-18  Simon Josefsson  <simon@josefsson.org>
7362
7363         * modules/getaddrinfo (Depends-on): Remove strdup, this module
7364         assumes strdup exists and does not depend on strdup to return
7365         ENOMEM on out of memory conditions.
7366
7367 2008-09-18  Bruno Haible  <bruno@clisp.org>
7368
7369         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
7370         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
7371         digits for the exponent.
7372
7373 2008-09-18  Jim Meyering  <meyering@redhat.com>
7374             Bruno Haible  <bruno@clisp.org>
7375
7376         * lib/vasnprintf.c (decimal_point_char): Define also if
7377         NEED_PRINTF_INFINITE_LONG_DOUBLE.
7378
7379 2008-09-16  Bruno Haible  <bruno@clisp.org>
7380         and Eric Blake  <ebb9@byu.net>
7381
7382         vasnprintf: support Irix 5.3
7383         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
7384         that mishandle long double infinity.
7385         Reported by Tom G. Christensen.
7386
7387 2008-09-16  Bruno Haible  <bruno@clisp.org>
7388
7389         * doc/glibc-functions/scandir.texi: Mention the function is missing on
7390         Solaris 9.
7391         * doc/glibc-functions/alphasort.texi: Likewise.
7392         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
7393
7394 2008-09-16  Jim Meyering  <meyering@redhat.com>
7395
7396         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
7397         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
7398         a umask modification leak out of a subshell.  Otherwise, the
7399         opensolaris /bin/sh would be accepted and thus cause unwarranted
7400         failures in the coreutils test suite.
7401
7402 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
7403
7404         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
7405         to succeed.
7406
7407 2008-09-16  Jim Meyering  <meyering@redhat.com>
7408
7409         avoid spurious test failure when library is built without ACL support
7410         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
7411         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
7412         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
7413         * tests/test-copy-acl.sh: Likewise.
7414
7415 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7416
7417         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
7418         based on character occurrence counts.
7419
7420 2008-09-15  Eric Blake  <ebb9@byu.net>
7421
7422         tests: avoid some compiler warnings
7423         * tests/test-memchr.c (main): Pass NULL indirectly.
7424         * tests/test-closein.c (main): Avoid unused variable.
7425
7426 2008-09-15  Bruno Haible  <bruno@clisp.org>
7427
7428         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
7429         are missing on OpenBSD 4.0 individually.
7430         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
7431
7432 2008-09-15  Bruno Haible  <bruno@clisp.org>
7433
7434         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
7435         * doc/posix-functions/strerror.texi: Mention also Cygwin.
7436         * doc/posix-functions/perror.texi: Likewise.
7437         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
7438         is missing.
7439         Reported by Eric Blake.
7440
7441         * lib/errno.in.h: Use replacement values >= 2000.
7442         Reported by Eric Blake.
7443
7444 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7445
7446         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
7447         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
7448         limit.
7449         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
7450         compareseq was aborted.
7451
7452 2008-09-14  Bruno Haible  <bruno@clisp.org>
7453
7454         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
7455         yvec_edit_count.
7456         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
7457         (fstrcmp_bounded): Simplify result computation accordingly.
7458
7459 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7460
7461         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
7462         (fstrcmp): Define in terms of fstrcmp_bounded.
7463         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
7464         lower_bound argument.
7465         Return quickly if the result is certainly < lower_bound.
7466         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
7467
7468 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7469
7470         * lib/diffseq.h (EARLY_ABORT): New macro.
7471         (compareseq): Change return type to bool. Return true when EARLY_ABORT
7472         evaluates to true.
7473
7474 2008-09-14  Bruno Haible  <bruno@clisp.org>
7475
7476         * modules/perror-tests: New file.
7477         * tests/test-perror.sh: New file.
7478         * tests/test-perror.c: New file.
7479
7480         New module 'perror'.
7481         * lib/stdio.in.h (perror): New declaration.
7482         * lib/perror.c: New file.
7483         * m4/perror.m4: New file.
7484         * modules/perror: New file.
7485         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
7486         * doc/posix-functions/perror.texi: Mention the perror module.
7487         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
7488         REPLACE_PERROR.
7489         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
7490         REPLACE_PERROR.
7491
7492 2008-09-14  Bruno Haible  <bruno@clisp.org>
7493
7494         * modules/stdio (Makefile.am): Reorder to match the order in
7495         lib/stdio.in.h.
7496         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
7497
7498 2008-09-13  Bruno Haible  <bruno@clisp.org>
7499
7500         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
7501
7502 2008-09-13  Bruno Haible  <bruno@clisp.org>
7503
7504         Extend strerror to cover the added errno values.
7505         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
7506         (rpl_strerror): Provide error messages for the added errno values and
7507         for the WSA* values.
7508         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
7509         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
7510         strerror.
7511         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
7512         * modules/strerror (Depends-on): Add errno.
7513         * doc/posix-functions/strerror.texi: Document the change.
7514         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
7515         and EOVERFLOW.
7516
7517 2008-09-13  Bruno Haible  <bruno@clisp.org>
7518
7519         * modules/EOVERFLOW: Remove file.
7520         * m4/eoverflow.m4: Remove file.
7521         * modules/EOVERFLOW-tests: Remove file.
7522         * tests/test-EOVERFLOW.c: Remove file.
7523         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
7524         * modules/ftell (Depends-on): Likewise.
7525         * modules/getdelim (Depends-on): Likewise.
7526         * modules/getugroups (Depends-on): Likewise.
7527         * modules/poll (Depends-on): Likewise.
7528         * modules/snprintf (Depends-on): Likewise.
7529         * modules/sprintf-posix (Depends-on): Likewise.
7530         * modules/vasnprintf (Depends-on): Likewise.
7531         * modules/vasprintf (Depends-on): Likewise.
7532         * modules/vfprintf-posix (Depends-on): Likewise.
7533         * modules/vsnprintf (Depends-on): Likewise.
7534         * modules/vsprintf-posix (Depends-on): Likewise.
7535         * modules/xvasprintf (Depends-on): Likewise.
7536         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7537         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
7538         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
7539         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
7540         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7541         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
7542         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
7543         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
7544         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7545         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
7546         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
7547         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
7548         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7549         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
7550         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
7551         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
7552         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7553         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
7554         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
7555         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
7556         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7557         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
7558         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
7559         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
7560         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
7561         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7562         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
7563         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
7564         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
7565         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
7566         * MODULES.html.sh: Remove EOVERFLOW.
7567         * NEWS: Mention the change.
7568
7569 2008-09-13  Bruno Haible  <bruno@clisp.org>
7570
7571         * modules/errno-tests: New file.
7572         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
7573
7574         * lib/errno.in.h: New file.
7575         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
7576         * modules/errno: New file.
7577         * doc/posix-headers/errno.texi: Update documentation.
7578         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
7579
7580 2008-09-13  Bruno Haible  <bruno@clisp.org>
7581
7582         * tests/test-poll.c: Use #if for native Windows, rather than testing
7583         __MSVCRT__.
7584
7585 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7586             Bruno Haible  <bruno@clisp.org>
7587
7588         * lib/glob.c: Don't include <pwd.h> on native Windows.
7589         (WINDOWS32): New macro.
7590         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
7591
7592 2008-09-13  Bruno Haible  <bruno@clisp.org>
7593
7594         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
7595         (ETIMEDOUT): Remove macro.
7596         (glthread_cond_timedwait_multithreaded): New declaration.
7597         (glthread_cond_timedwait): Use it.
7598         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
7599         (glthread_cond_timedwait_multithreaded): New function.
7600
7601 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
7602
7603         * modules/poll-tests: Do not check for io.h.
7604         * tests/test-poll.c: Check for __MSVCRT__ instead.
7605
7606 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
7607
7608         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
7609         * modules/poll-tests: Add inet_pton, stdbool, sockets.
7610         * tests/test-poll.c: Use them.  Use _pipe on Windows.
7611
7612 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
7613
7614         * modules/poll-tests: New.
7615         * tests/test-poll.c: New.
7616
7617 2008-09-12  Eric Blake  <ebb9@byu.net>
7618
7619         frexp: test for NetBSD failure on -0.0
7620         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
7621         not all, bugs from NetBSD 3.0 have been fixed.
7622         * doc/posix-functions/frexp.texi (frexp): Document bug.
7623         Reported by Thomas Klausner.
7624
7625         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
7626         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
7627         literal -0.0.
7628         Reported by Jonathan C. Patschke <jp@centtech.com>.
7629
7630 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7631
7632         * lib/glthread/cond.h: Use dummy implementation also if
7633         USE_WIN32_THREADS.
7634
7635 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7636
7637         * modules/fnmatch-posix (License): Change to LGPLv2+.
7638         * modules/fnmatch-gnu (License): Likewise.
7639
7640 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7641
7642         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
7643
7644 2008-09-11  Jim Meyering  <meyering@redhat.com>
7645
7646         * users.txt: Add gtk-vnc.
7647
7648 2008-09-08  Simon Josefsson  <simon@josefsson.org>
7649
7650         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
7651         rotate amounts.
7652
7653         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
7654         required for 16-bit and 8-bit rotates.
7655         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
7656         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
7657         UINT8_MAX instead of hard-coded constants.
7658         Suggested by Paul Eggert.
7659
7660 2008-09-07  Bruno Haible  <bruno@clisp.org>
7661
7662         * tests/test-striconveh.c (main): Check behaviour when converting from
7663         UTF-7.
7664
7665         Make striconveh work better with stateful encodings.
7666         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
7667         that iconv does not increment the inptr when returning -1/EINVAL.
7668
7669 2008-09-07  Bruno Haible  <bruno@clisp.org>
7670
7671         * build-aux/config.rpath: Update according to libtool-2.2.6.
7672         * build-aux/config.libpath: Likewise.
7673
7674 2008-09-06  Bruno Haible  <bruno@clisp.org>
7675
7676         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
7677         * lib/freadptr.c (freadptr): Likewise.
7678         * lib/freadseek.c (freadptrinc): Likewise.
7679         Reported by Simon Josefsson.
7680
7681 2008-09-06  Bruno Haible  <bruno@clisp.org>
7682
7683         * modules/freadptr (License): Change to LGPLv2+.
7684         * modules/freadseek (License): Likewise.
7685         Suggested by Eric Blake.
7686
7687         * modules/memchr2 (License): Change to LGPLv2+.
7688         Approved by Eric Blake.
7689
7690 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7691             Bruno Haible  <bruno@clisp.org>
7692
7693         Make gnulib-tool work with native 'sed' on AIX.
7694         * gnulib-tool (sed_noop): New variable.
7695         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
7696         func_add_or_update, func_create_testdir): Use it to initialize sed
7697         script variables.
7698         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7699
7700 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
7701             Bruno Haible  <bruno@clisp.org>
7702
7703         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
7704         also works after #include directives.
7705
7706 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
7707
7708         getdate.y: reject an out-of-range timezone value
7709         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
7710         the range [-24...+24].  When specified with only one or two digits,
7711         * tests/test-getdate.c: Tests for the fix.
7712         * doc/getdate.texi: Document this change.
7713
7714 2008-09-03  Bruno Haible  <bruno@clisp.org>
7715
7716         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
7717
7718 2008-09-02  Simon Josefsson  <simon@josefsson.org>
7719
7720         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
7721         <bruce.korb@gmail.com> with ideas from Ben Pfaff
7722         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
7723         Blake <ebb9@byu.net>.
7724
7725         * tests/test-bitrotate.c: Add more test vectors.
7726
7727 2008-09-02  Eric Blake  <ebb9@byu.net>
7728
7729         vasnprintf-posix: handle large precision via %.*d
7730         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
7731         when handling it ourselves.
7732         * tests/test-vasnprintf-posix.c (test_function): Add test.
7733         * tests/test-snprintf-posix.h (test_function): Likewise.
7734         * tests/test-sprintf-posix.h (test_function): Likewise.
7735         * tests/test-vasprintf-posix.c (test_function): Likewise.
7736         Reported by Alain Guibert.
7737
7738 2008-09-01  Eric Blake  <ebb9@byu.net>
7739
7740         c-stack: make configure-time check more robust
7741         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
7742         successful sigaction call.
7743         Reported by Tom G. Christensen.
7744
7745 2008-09-01  Bruno Haible  <bruno@clisp.org>
7746
7747         New module 'findprog-lgpl'.
7748         * modules/findprog-lgpl: New file.
7749         * lib/findprog-lgpl.c: New file.
7750         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
7751         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
7752         to decide whether to use strdup or xstrdup, concatenated_filename or
7753         xconcatenated_filename.
7754
7755 2008-09-01  Bruno Haible  <bruno@clisp.org>
7756
7757         Split module 'concat-filename' into 'concat-filename' (LGPL) and
7758         'xconcat-filename' (GPL).
7759         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
7760         (License): Change to LGPLv2+.
7761         * modules/xconcat-filename: New file.
7762         * lib/concat-filename.h (concatenated_filename): Change specification.
7763         (xconcatenated_filename): New declaration.
7764         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
7765         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
7766         memory situations.
7767         * lib/xconcat-filename.c: New file.
7768         * NEWS: Mention the change.
7769         * lib/findprog.c: Include concat-filename.h, not filename.h.
7770         (find_in_path): Use xconcatenated_filename instead of
7771         concatenated_filename.
7772         * lib/javacomp.c: Include concat-filename.h, not filename.h.
7773         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
7774         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
7775         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
7776         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
7777         instead of concatenated_filename.
7778         * lib/javaexec.c: Include concat-filename.h, not filename.h.
7779         (execute_java_class): Use xconcatenated_filename instead of
7780         concatenated_filename.
7781         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
7782         * modules/javacomp (Depends-on): Likewise.
7783         * modules/javaexec (Depends-on): Likewise.
7784
7785 2008-09-01  Bruno Haible  <bruno@clisp.org>
7786
7787         Split module 'filename' into 'filename' and 'concat-filename'.
7788         * modules/filename: Keep only lib/filename.h.
7789         (License): Change to LGPLv2+.
7790         * modules/concat-filename: New file, extracted from modules/filename.
7791         * lib/filename.h (concatenated_filename): Remove declaration.
7792         * lib/concat-filename.h: New file, extracted from lib/filename.h.
7793         * lib/concat-filename.c: Include concat-filename.h.
7794         * NEWS: Mention the change.
7795
7796 2008-09-01  Simon Josefsson  <simon@josefsson.org>
7797
7798         * lib/bitrotate.h (rotl8, rotr8): Add.
7799
7800         * modules/bitrotate (configure.ac): Need
7801         AC_REQUIRE([AC_C_INLINE]).
7802         (Description): Mention stdint.h.  Reported by Bruno Haible
7803         <bruno@clisp.org>.
7804
7805         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
7806         Paolo Bonzini <bonzini@gnu.org>.
7807
7808 2008-08-31  Bruno Haible  <bruno@clisp.org>
7809
7810         Assume Solaris specific bi-arch conventions on Solaris systems.
7811         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
7812         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
7813         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
7814         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
7815         like acl_libdirstem.
7816         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
7817         acl_libdirstem.
7818         * NEWS: Mention the change.
7819         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
7820
7821 2008-08-31  Jim Meyering  <meyering@redhat.com>
7822
7823         * lib/strftime.h: Add comments describing the two added arguments.
7824
7825         remove duplicate #include directives
7826         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
7827         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
7828
7829 2008-08-31  Bruno Haible  <bruno@clisp.org>
7830
7831         New module 'sigpipe-die'.
7832         * modules/sigpipe-die: New file.
7833         * lib/sigpipe-die.h: New file.
7834         * lib/sigpipe-die.c: New file.
7835         * MODULES.html.sh (Signal handling): Add sigpipe-die.
7836
7837 2008-08-31  Bruno Haible  <bruno@clisp.org>
7838
7839         Don't override previously installed signal handlers.
7840         * lib/fatal-signal.c (saved_sigactions): New variable.
7841         (uninstall_handlers): Reset the signal to the saved handler, not
7842         to SIG_DFL (except when ignored).
7843         (install_handlers): Save the previous handlers.
7844
7845 2008-08-30  Bruno Haible  <bruno@clisp.org>
7846
7847         * gnulib-tool (func_reset_sigpipe): New function.
7848         (func_get_automake_snippet, func_modules_transitive_closure,
7849         func_import): Invoke it before a join command that reads from stdin,
7850         to avoid "echo: write error: Broken pipe" error messages on stderr.
7851         Reported by Sam Steingold <sds@gnu.org>.
7852
7853 2008-08-30  Bruno Haible  <bruno@clisp.org>
7854
7855         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
7856         Code copied from m4/open.m4.
7857         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
7858         access and the filename ends in a slash. Code copied from lib/open.c.
7859         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
7860         * tests/test-fopen.c (main): Check against bug with trailing slash.
7861
7862 2008-08-29  Bruno Haible  <bruno@clisp.org>
7863
7864         Avoid some "gcc -pedantic" warnings.
7865         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
7866         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
7867         * lib/dirent.in.h: Likewise.
7868         * lib/fcntl.in.h: Likewise.
7869         * lib/float.in.h: Likewise.
7870         * lib/iconv.in.h: Likewise.
7871         * lib/inttypes.in.h: Likewise.
7872         * lib/locale.in.h: Likewise.
7873         * lib/math.in.h: Likewise.
7874         * lib/netinet_in.in.h: Likewise.
7875         * lib/search.in.h: Likewise.
7876         * lib/signal.in.h: Likewise.
7877         * lib/stdarg.in.h: Likewise.
7878         * lib/stdint.in.h: Likewise.
7879         * lib/stdio.in.h: Likewise.
7880         * lib/stdlib.in.h: Likewise.
7881         * lib/string.in.h: Likewise.
7882         * lib/strings.in.h: Likewise.
7883         * lib/sys_select.in.h: Likewise.
7884         * lib/sys_socket.in.h: Likewise.
7885         * lib/sys_stat.in.h: Likewise.
7886         * lib/sys_time.in.h: Likewise.
7887         * lib/sysexits.in.h: Likewise.
7888         * lib/time.in.h: Likewise.
7889         * lib/unistd.in.h: Likewise.
7890         * lib/wchar.in.h: Likewise.
7891         * lib/wctype.in.h: Likewise.
7892         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
7893         * modules/fchdir (Makefile.am): Likewise.
7894         * modules/fcntl (Makefile.am): Likewise.
7895         * modules/float (Makefile.am): Likewise.
7896         * modules/iconv_open (Makefile.am): Likewise.
7897         * modules/inttypes (Makefile.am): Likewise.
7898         * modules/locale (Makefile.am): Likewise.
7899         * modules/math (Makefile.am): Likewise.
7900         * modules/netinet_in (Makefile.am): Likewise.
7901         * modules/search (Makefile.am): Likewise.
7902         * modules/signal (Makefile.am): Likewise.
7903         * modules/stdarg (Makefile.am): Likewise.
7904         * modules/stdint (Makefile.am): Likewise.
7905         * modules/stdio (Makefile.am): Likewise.
7906         * modules/stdlib (Makefile.am): Likewise.
7907         * modules/string (Makefile.am): Likewise.
7908         * modules/strings (Makefile.am): Likewise.
7909         * modules/sys_select (Makefile.am): Likewise.
7910         * modules/sys_socket (Makefile.am): Likewise.
7911         * modules/sys_stat (Makefile.am): Likewise.
7912         * modules/sys_time (Makefile.am): Likewise.
7913         * modules/sysexits (Makefile.am): Likewise.
7914         * modules/time (Makefile.am): Likewise.
7915         * modules/unistd (Makefile.am): Likewise.
7916         * modules/wchar (Makefile.am): Likewise.
7917         * modules/wctype (Makefile.am): Likewise.
7918         Reported by Reuben Thomas <rrt@sc3d.org>.
7919
7920 2008-08-29  Bruno Haible  <bruno@clisp.org>
7921
7922         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
7923         any more.
7924
7925 2008-08-29  Simon Josefsson  <simon@josefsson.org>
7926
7927         * MODULES.html.sh (Misc): Add bitrotate.
7928
7929         * modules/bitrotate: New file.
7930
7931         * lib/bitrotate.h: New file.
7932
7933         * modules/bitrotate-tests: New file.
7934
7935         * tests/test-bitrotate.c: New file.
7936
7937         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
7938         on the bitrotate module.
7939
7940         * lib/arctwo.c: Use new bitrotate module.
7941
7942 2008-08-29  Jim Meyering  <meyering@redhat.com>
7943
7944         bootstrap: merge changes from coreutils
7945         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
7946         of copied files.  Remove a kludge, now that this is fixed.
7947         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
7948         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
7949         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
7950
7951 2008-08-29  Bruno Haible  <bruno@clisp.org>
7952
7953         * MODULES.html.sh: Remove --cvs-urls option.
7954
7955 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
7956
7957         maint.mk: adjust to file name change
7958         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
7959
7960 2008-08-28  Jim Meyering  <meyering@redhat.com>
7961
7962         * modules/getndelim2 (License): Relicense to LGPLv2+.
7963         Approved by Richard Stallman for the version of 1995, and by
7964         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
7965
7966 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
7967
7968         * lib/getdelim.c (flockfile, funlockfile): Make all of them
7969         dummy if one is not available.  Do not touch them if
7970         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
7971         (getc_maybe_unlocked): New.
7972         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
7973
7974 2008-08-26  Eric Blake  <ebb9@byu.net>
7975
7976         doc/INSTALL: resync from autoconf
7977         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
7978         (INSTALL_PRELUDE): Delete; this is done more efficiently by
7979         moving...
7980         * install.texi [!autoconf]: ...here.  Resync from autoconf.
7981         * INSTALL: Regenerate.
7982         * INSTALL.ISO: New file.
7983         * INSTALL.UTF-8: Likewise.
7984
7985 2008-08-26  Jim Meyering  <meyering@redhat.com>
7986
7987         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
7988         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
7989         these definitions conditional, so that they may be overridden, too.
7990
7991 2008-08-26  Bruno Haible  <bruno@clisp.org>
7992
7993         Generate INSTALL file variants with prettier quotes.
7994         * doc/Makefile (INSTALL_PRELUDE): New macro.
7995         (INSTALL): Use it.
7996         (INSTALL.ISO, INSTALL.UTF-8): New rules.
7997
7998 2008-08-26  Bruno Haible  <bruno@clisp.org>
7999
8000         Run makeinfo in an English locale.
8001         * doc/Makefile (MAKEINFO): New variable.
8002
8003 2008-08-26  Bruno Haible  <bruno@clisp.org>
8004
8005         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
8006         Suggested by Eric Blake.
8007
8008 2008-08-25  Bruno Haible  <bruno@clisp.org>
8009
8010         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
8011
8012 2008-08-25  Eric Blake  <ebb9@byu.net>
8013
8014         c-stack: test that stack overflow can be caught
8015         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
8016         that platform allows handling stack overflow; at least OS/2 EMX
8017         has sigaltstack, but crashes before transferring control to
8018         handler on stack overflow.
8019         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
8020         check for HAVE_STACK_OVERFLOW_HANDLING.
8021         Reported by Elbert Pol.
8022
8023 2008-08-25  Bruno Haible  <bruno@clisp.org>
8024
8025         * doc/posix-functions/strftime.texi: Fix description of strftime
8026         module.
8027
8028 2008-08-24  Bruno Haible  <bruno@clisp.org>
8029
8030         * tests/uniwidth/test-uc_width2.c: New file.
8031         * tests/uniwidth/test-uc_width2.sh: New file.
8032         * modules/uniwidth/width-tests (Files): Add the new files.
8033         (TESTS): Add uniwidth/test-uc_width2.sh.
8034         (TESTS_ENVIRONMENT): New variable.
8035         (check_PROGRAMS): Add test-uc_width2.
8036         (test_uc_width2_SOURCES): New variable.
8037
8038         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
8039         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
8040         not 0x00AB.
8041         Reported by Alexander V. Lukyanov <lav@netis.ru>.
8042
8043 2008-08-22  Eric Blake  <ebb9@byu.net>
8044
8045         test-lock, test-tls: mention why a test is skipped
8046         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
8047         skipped.
8048         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
8049
8050         count-one-bits: relax license
8051         * modules/count-one-bits (License): Relicense to LGPLv2+.
8052         Suggested by Ludovic Courtès, approved by Ben Pfaff.
8053
8054 2008-08-22  Andreas Schwab  <schwab@suse.de>
8055
8056         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
8057         Remove spurious space in assignment.
8058
8059 2008-08-21  Simon Josefsson  <simon@josefsson.org>
8060
8061         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
8062         Paul Eggert <eggert@CS.UCLA.EDU>.
8063
8064 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
8065
8066         * modules/gettext: Add m4/threadlib.m4.
8067
8068 2008-08-19  Eric Blake  <ebb9@byu.net>
8069
8070         test-c-stack: fix compilation failure on FreeBSD 5.0
8071         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
8072         headers before <sys/resource.h>.
8073         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
8074         the bug.
8075         Reported by Nelson H. F. Beebe.
8076
8077         strverscmp: migrate from "strverscmp.h" to <string.h>
8078         * modules/string (Makefile.am): Add new hooks.
8079         * modules/strverscmp (Files): Remove strverscmp.h.
8080         (Depends-on): Add string.
8081         (configure.ac): Add indicator.
8082         (Include): Mention new header.
8083         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
8084         defaults.
8085         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
8086         results.
8087         * lib/strverscmp.h: Delete.
8088         * lib/string.in.h (strverscmp): Provide declaration, when needed.
8089         * tests/test-strverscmp.c (includes): Adjust client.
8090         * lib/check-version.c (includes): Likewise.
8091         * NEWS: Document the change.
8092
8093         strverscmp: add unit test
8094         * modules/strverscmp-tests: New file.
8095         * tests/test-strverscmp.c: Likewise.
8096
8097 2008-08-19  Simon Josefsson  <simon@josefsson.org>
8098
8099         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
8100         regarding Windows crypto stuff, from Mono.
8101
8102 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
8103
8104         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
8105         if present, for intel RND.  Return error on failures.
8106
8107 2008-08-18  Ben Pfaff  <blp@gnu.org>
8108
8109         gitlog-to-changelog: give better diagnostic for failed pipe-open
8110         * build-aux/gitlog-to-changelog: Improve error message: suggest
8111         that the version of Git may be too old.
8112
8113 2008-08-18  Simon Josefsson  <simon@josefsson.org>
8114
8115         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
8116         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
8117
8118 2008-08-18  Bruno Haible  <bruno@clisp.org>
8119
8120         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
8121         pthread_in_use().
8122
8123 2008-08-18  Bruno Haible  <bruno@clisp.org>
8124
8125         * lib/glthread/threadlib.c: Include <pthread.h>.
8126
8127 2008-08-18  Bruno Haible  <bruno@clisp.org>
8128
8129         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
8130         glthread_recursive_lock_* macros.
8131         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
8132         Fix syntax error.
8133
8134 2008-08-18  Bruno Haible  <bruno@clisp.org>
8135
8136         * lib/glthread/thread.c: Avoid forcing a context switch right after
8137         thread creation.
8138
8139 2008-08-17  Bruno Haible  <bruno@clisp.org>
8140
8141         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
8142         * lib/glthread/thread.h: Provide Win32 specific implementation.
8143         * modules/thread (Files): Add lib/glthread/thread.c.
8144         (Depends-on): Add lock.
8145         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
8146
8147 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8148
8149         New module 'yield'.
8150         * modules/yield: New file.
8151         * lib/glthread/yield.h: New file.
8152         * m4/yield.m4: New file.
8153         * MODULES.html.sh (Multithreading): Add yield.
8154
8155 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8156
8157         New module 'thread'.
8158         * modules/thread: New file.
8159         * lib/glthread/thread.h: New file.
8160         * m4/thread.m4: New file.
8161         * MODULES.html.sh (Multithreading): Add thread.
8162
8163 2008-08-17  Bruno Haible  <bruno@clisp.org>
8164
8165         * lib/glthread/lock.h: Include <stdlib.h> always.
8166         * lib/glthread/tls.h: Likewise.
8167         * lib/glthread/cond.h: Likewise.
8168
8169 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8170
8171         New module 'cond'.
8172         * modules/cond: New file.
8173         * lib/glthread/cond.h: New file.
8174         * lib/glthread/cond.c: New file.
8175         * m4/cond.m4: New file.
8176         * MODULES.html.sh (Multithreading): Add cond.
8177
8178 2008-08-16  Eric Blake  <ebb9@byu.net>
8179
8180         c-stack: fix regression on Irix 5.3 from 2008-06-21
8181         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
8182         sa_sigaction...
8183         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
8184         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
8185         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
8186         * modules/signal (Makefile.am): Use the value.
8187         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
8188         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
8189         * doc/posix-headers/signal.texi (signal.h): Document this
8190         portability issue.
8191         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
8192         Reported by Tom G. Christensen.
8193
8194 2008-08-17  Bruno Haible  <bruno@clisp.org>
8195
8196         New module 'threadlib'.
8197         * modules/threadlib: New file.
8198         * lib/glthread/threadlib.c: New file, extracted from
8199         lib/glthread/lock.c.
8200         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
8201         functions.
8202         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
8203         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
8204         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
8205         macros.
8206         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
8207         (gl_DISABLE_THREADS): Remove macro.
8208         * modules/lock (Files): Remove build-aux/config.rpath.
8209         (Depends-on): Remove havelib. Add threadlib.
8210         (configure.ac-early): Remove section.
8211         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
8212         * modules/tls (Depends-on): Remove lock. Add threadlib.
8213         (Link): New section, copied from threadlib.
8214         * MODULES.html.sh (Multithreading): Add threadlib.
8215
8216 2008-08-14  Bruno Haible  <bruno@clisp.org>
8217
8218         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
8219         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
8220         glthread_rwlock_unlock, glthread_rwlock_destroy,
8221         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
8222         glthread_recursive_lock_destroy): Define as macros always.
8223         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
8224         glthread_lock_lock.
8225         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
8226         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
8227         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
8228         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
8229         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
8230         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
8231         (glthread_recursive_lock_lock_func): Renamed from
8232         glthread_recursive_lock_lock.
8233         (glthread_recursive_lock_unlock_func): Renamed from
8234         glthread_recursive_lock_unlock.
8235         (glthread_recursive_lock_destroy_func): Renamed from
8236         glthread_recursive_lock_destroy.
8237
8238 2008-08-14  Bruno Haible  <bruno@clisp.org>
8239
8240         * lib/glthread/lock.h: Renamed from lib/lock.h.
8241         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
8242         * lib/glthread/tls.h: Renamed from lib/tls.h.
8243         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
8244         * lib/fstrcmp.c: Update includes.
8245         * lib/strsignal.c: Update includes.
8246         * modules/lock (Files, Makefile.am): Update.
8247         (Include): Change to "glthread/lock.h".
8248         * modules/tls (Files, Makefile.am): Update.
8249         (Include): Change to "glthread/tls.h".
8250         * tests/test-lock.c: Update includes.
8251         * tests/test-tls.c: Update includes.
8252         * NEWS: Mention the renamed header files.
8253
8254 2008-08-11  Jim Meyering  <meyering@redhat.com>
8255
8256         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
8257
8258 2008-08-11  Eric Blake  <ebb9@byu.net>
8259
8260         test-c-stack: avoid C99-ism
8261         * tests/test-c-stack.c (main): Fix whitespace, move declaration
8262         before statement.
8263         Reported by Alain Guibert.
8264
8265 2008-08-10  Jim Meyering  <meyering@redhat.com>
8266
8267         ensure that return value of uinttostr et al are not ignored
8268         * lib/inttostr.h (__GNUC_PREREQ): Define.
8269         (__attribute_warn_unused_result__): Define.
8270         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
8271
8272 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
8273
8274         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
8275         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
8276
8277 2008-08-07  Jim Meyering  <meyering@redhat.com>
8278
8279         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
8280
8281         * modules/mkstemp (License): Relicense under LGPLv2+.
8282         * modules/tempname (License): Likewise.
8283
8284 2008-08-06  Bruno Haible  <bruno@clisp.org>
8285
8286         * lib/poll.c (poll): Further micro-optimization.
8287
8288 2008-08-06  Jim Meyering  <meyering@redhat.com>
8289
8290         inet_pton.c: use locale-independent tolower
8291         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
8292         (inet_pton6): Use c_tolower rather than tolower.
8293         * modules/inet_pton (Depends-on): Add c-ctype.
8294
8295 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
8296
8297         * lib/poll.c (poll): Avoid division when timeout is 0, cache
8298         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
8299
8300 2008-08-06  Jim Meyering  <meyering@redhat.com>
8301
8302         * modules/inet_pton (License): Relicense under LGPLv2+.
8303
8304 2008-08-03  Bruno Haible  <bruno@clisp.org>
8305
8306         Additional non-aborting API for lock and tls.
8307         * lib/lock.h: Include <errno.h>.
8308         (glthread_lock_init): New macro/function.
8309         (gl_lock_init): Define as wrapper around glthread_lock_init.
8310         (glthread_lock_lock): New macro/function.
8311         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
8312         (glthread_lock_unlock): New macro/function.
8313         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
8314         (glthread_lock_destroy): New macro/function.
8315         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
8316         (glthread_rwlock_init): New macro/function.
8317         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
8318         (glthread_rwlock_rdlock): New macro/function.
8319         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
8320         (glthread_rwlock_wrlock): New macro/function.
8321         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
8322         (glthread_rwlock_unlock): New macro/function.
8323         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
8324         (glthread_rwlock_destroy): New macro/function.
8325         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
8326         (glthread_recursive_lock_init): New macro/function.
8327         (gl_recursive_lock_init): Define as wrapper around
8328         glthread_recursive_lock_init.
8329         (glthread_recursive_lock_lock): New macro/function.
8330         (gl_recursive_lock_lock): Define as wrapper around
8331         glthread_recursive_lock_lock.
8332         (glthread_recursive_lock_unlock): New macro/function.
8333         (gl_recursive_lock_unlock): Define as wrapper around
8334         glthread_recursive_lock_unlock.
8335         (glthread_recursive_lock_destroy): New macro/function.
8336         (gl_recursive_lock_destroy): Define as wrapper around
8337         glthread_recursive_lock_destroy.
8338         (glthread_once): New macro/function.
8339         (gl_once): Define as wrapper around glthread_once.
8340         Update function declarations.
8341         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
8342         glthread_rwlock_init. Return error code.
8343         (glthread_rwlock_rdlock_multithreaded): Renamed from
8344         glthread_rwlock_rdlock. Return error code.
8345         (glthread_rwlock_wrlock_multithreaded): Renamed from
8346         glthread_rwlock_wrlock. Return error code.
8347         (glthread_rwlock_unlock_multithreaded): Renamed from
8348         glthread_rwlock_unlock. Return error code.
8349         (glthread_rwlock_destroy_multithreaded): Renamed from
8350         glthread_rwlock_destroy. Return error code.
8351         (glthread_recursive_lock_init_multithreaded): Renamed from
8352         glthread_recursive_lock_init. Return error code.
8353         (glthread_recursive_lock_lock_multithreaded): Renamed from
8354         glthread_recursive_lock_lock. Return error code.
8355         (glthread_recursive_lock_unlock_multithreaded): Renamed from
8356         glthread_recursive_lock_unlock. Return error code.
8357         (glthread_recursive_lock_destroy_multithreaded): Renamed from
8358         glthread_recursive_lock_destroy. Return error code.
8359         (glthread_once_call): Make static.
8360         (glthread_once_multithreaded): Renamed from glthread_once.
8361         * lib/tls.h: Include <errno.h>.
8362         (glthread_tls_key_init): New macro/function.
8363         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
8364         (glthread_tls_set): New macro/function.
8365         (gl_tls_set): Define as wrapper around glthread_tls_set.
8366         (glthread_tls_key_destroy): New macro/function.
8367         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
8368         Update function declarations.
8369         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
8370         glthread_tls_get.
8371         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
8372
8373 2008-08-04  Eric Blake  <ebb9@byu.net>
8374
8375         gnumakefile: use space, not TAB, outside of targets
8376         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
8377
8378 2008-08-02  Jim Meyering  <meyering@redhat.com>
8379
8380         getdate.y: avoid locale-dependent date parsing failure
8381         In Turkish locales, getdate would fail to recognize keywords
8382         containing a lowercase "i".  The solution is not to rely on
8383         locale-sensitive case-conversion.
8384         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
8385         (lookup_word): Use c_toupper in place of toupper.
8386         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
8387         Reported by Vefa Bicakci <bicave@superonline.com> in
8388         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
8389         * modules/getdate (Depends-on): Add c-ctype.
8390
8391 2008-08-02  Bruno Haible  <bruno@clisp.org>
8392
8393         * gnulib-tool (func_import): When updating or creating a .gitignore
8394         file, prepend each added line with a slash, and ignore leading slashes
8395         from the existing lines.
8396         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
8397
8398 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8399
8400         Portability fix for GNU make 3.79.1.
8401         * top/GNUmakefile: Avoid 'else COND', which older GNU make
8402         versions do not understand.
8403
8404 2008-08-01  Bruno Haible  <bruno@clisp.org>
8405
8406         Work around bug of HP-UX 10.20 cc with -0.0 literal.
8407         * tests/test-isnanf.h (zero): New variable.
8408         (main): Avoid literal -0.0f.
8409         * tests/test-isnand.h (zero): New variable.
8410         (main): Avoid literal -0.0.
8411         * tests/test-isnanl.h (zero): New variable.
8412         (main): Avoid literal -0.0L.
8413         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
8414         (test_float, test_double, test_long_double): Avoid literals -0.0f,
8415         -0.0, -0.0L.
8416         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
8417         (test_signbitd): Avoid literal -0.0.
8418         (test_signbitl): Avoid literal -0.0L.
8419         * tests/test-ceilf1.c (zero): New variable.
8420         (main): Avoid literal -0.0f.
8421         * tests/test-ceill.c (zero): New variable.
8422         (main): Avoid literal -0.0L.
8423         * tests/test-floorf1.c (zero): New variable.
8424         (main): Avoid literal -0.0f.
8425         * tests/test-floorl.c (zero): New variable.
8426         (main): Avoid literal -0.0L.
8427         * tests/test-roundf1.c (zero): New variable.
8428         (main): Avoid literal -0.0f.
8429         * tests/test-round1.c (zero): New variable.
8430         (main): Avoid literal -0.0.
8431         * tests/test-roundl.c (zero): New variable.
8432         (main): Avoid literal -0.0L.
8433         * tests/test-truncf1.c (zero): New variable.
8434         (main): Avoid literal -0.0f.
8435         * tests/test-trunc1.c (zero): New variable.
8436         (main): Avoid literal -0.0.
8437         * tests/test-truncl.c (zero): New variable.
8438         (main): Avoid literal -0.0L.
8439         * tests/test-frexp.c (zero): New variable.
8440         (main): Avoid literal -0.0.
8441         * tests/test-frexpl.c (zero): New variable.
8442         (main): Avoid literal -0.0L.
8443         * tests/test-ldexpl.c (zero): New variable.
8444         (main): Avoid literal -0.0L.
8445         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
8446         (zerod, zerol): New variables.
8447         (test_function): Avoid literals -0.0, -0.0L.
8448         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
8449         (zerod, zerol): New variables.
8450         (test_function): Avoid literals -0.0, -0.0L.
8451         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
8452         (zerod, zerol): New variables.
8453         (test_function): Avoid literals -0.0, -0.0L.
8454         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
8455         (zerod, zerol): New variables.
8456         (test_function): Avoid literals -0.0, -0.0L.
8457         * tests/test-strtod.c (zero): New variable.
8458         (main): Avoid literal -0.0.
8459         Reported by Jonathan C. Patschke <jp@centtech.com>.
8460
8461 2008-07-31  Jim Meyering  <meyering@redhat.com>
8462
8463         sha256.h: correct definition of SHA224_DIGEST_SIZE
8464         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
8465         Reported by Paulie Pena IV <paulie4@gmail.com>.
8466         Define as 224 / 8, rather than as a literal.
8467         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
8468         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
8469         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
8470
8471 2008-07-31  Bruno Haible  <bruno@clisp.org>
8472
8473         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
8474         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
8475         Reported by Jonathan Patschke <jp@centtech.com>.
8476
8477 2008-07-31  Bruno Haible  <bruno@clisp.org>
8478
8479         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
8480         Reported by Paolo Bonzini <bonzini@gnu.org>.
8481
8482 2008-07-30  Eric Blake  <ebb9@byu.net>
8483
8484         test-strtod: allow compilation without -lm
8485         * tests/test-strtod.c (main): Avoid link dependence on fabs.
8486         Reported by Dennis Clarke <blastwave@gmail.com>.
8487
8488 2008-07-28  Jim Meyering  <meyering@redhat.com>
8489
8490         bootstrap: work also when there are no .po files in po/
8491         * build-aux/bootstrap (update_po_files): Complete the change
8492         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
8493
8494 2008-07-27  Jim Meyering  <meyering@redhat.com>
8495
8496         * users.txt: Add zile.
8497
8498 2008-07-26  Ben Pfaff  <blp@gnu.org>
8499
8500         Add missing dependencies on new m4/exponent[fdl].m4 files.
8501         * modules/isnanf-nolibm: Add m4/exponentf.m4.
8502         * modules/isnand-nolibm: Add m4/exponentd.m4.
8503         * modules/isnanl-nolibm: Add m4/exponentl.m4.
8504         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
8505         m4/isnan[fdl].m4, because the macros actually used moved.
8506         Reported by Jim Meyering.
8507
8508 2008-07-14  Ben Pfaff  <blp@gnu.org>
8509
8510         Add isinf module.
8511         * lib/isinf.c: New file.
8512         * lib/math.in.h: Define isinf macro if we have decided to replace
8513         it.
8514         * m4/isinf.m4: New file.
8515         * m4/math_h.m4: Initialize and substitute variables for isinf
8516         module.
8517         * modules/isinf: New file.
8518         * modules/isinf-tests: New file.
8519         * modules/math: Add substitutions for new module.
8520         * tests/test-isinf.c: New file.
8521         * doc/posix-functions/isinf.texi: Mention new module.
8522         * MODULES.html.sh: Mention new module.
8523
8524 2008-07-14  Ben Pfaff  <blp@gnu.org>
8525
8526         Factor out some macros for use by additional modules.
8527         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
8528         exponentf.m4.
8529         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
8530         exponentd.m4.
8531         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
8532         file exponentl.m4.
8533         * m4/exponentf.m4: New file.
8534         * m4/exponentd.m4: New file.
8535         * m4/exponentl.m4: New file.
8536         * modules/isnanf: Use new file m4/exponentf.m4.
8537         * modules/isnand: Use new file m4/exponentd.m4.
8538         * modules/isnanl: Use new file m4/exponentl.m4.
8539
8540 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
8541
8542         mktime.c: normalize tp->tm_isdst value to -1/0/1.
8543         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
8544         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
8545         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
8546
8547         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
8548         readlink on platforms without PATH_MAX.
8549
8550 2008-07-21  Eric Blake  <ebb9@byu.net>
8551
8552         Warn, not fail, on stale version.
8553         * top/GNUmakefile (_curr-ver): Tone down previous patch.
8554
8555         Don't allow installation with stale devel version number.
8556         * top/GNUmakefile (_is-install-target): New macro.
8557         (_curr-ver): Forbid installation with stale version number.
8558
8559 2008-07-20  Bruno Haible  <bruno@clisp.org>
8560
8561         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
8562         TESTS_ENVIRONMENT.
8563         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
8564
8565 2008-07-20  Bruno Haible  <bruno@clisp.org>
8566
8567         * lib/c-stack.h (c_stack_action): Add documentation.
8568         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
8569
8570 2008-07-20  Bruno Haible  <bruno@clisp.org>
8571
8572         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
8573         * modules/readlink (License): Likewise.
8574
8575 2008-07-17  Eric Blake  <ebb9@byu.net>
8576
8577         * modules/c-stack (Link): Fix typo.
8578
8579         Make c-stack use libsigsegv, when available.
8580         * modules/c-stack (Depends-on): Add libsigsegv.
8581         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
8582         needed.
8583         * lib/c-stack.c (SIGSTKSZ): Define fallback.
8584         (segv_handler, overflow_handler, c_stack_action)
8585         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
8586         implementation when libsigsegv is available, but only when using
8587         the library is necessary.
8588         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
8589         comment, explaining why XSI check fails on Linux.
8590         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
8591         * tests/test-c-stack2.sh: Tweak skip message.
8592         * NEWS: Document new link-time requirements.
8593
8594 2008-07-16  Eric Blake  <ebb9@byu.net>
8595
8596         c-stack: Expose false positives when not using libsigsegv.
8597         * modules/c-stack-tests (Files): Expand test.
8598         * tests/test-c-stack.c (main): Add means to conditionally trigger
8599         non-overflow SIGSEGV.
8600         * tests/test-c-stack2.sh: New file.
8601
8602 2008-07-14  Bruno Haible  <bruno@clisp.org>
8603
8604         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
8605         Reported by Eric Blake.
8606
8607 2008-07-14  Sam Steingold  <sds@gnu.org>
8608             Bruno Haible  <bruno@clisp.org>
8609
8610         New module libsigsegv.
8611         * modules/libsigsegv: New file.
8612         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
8613         modifications.
8614         * MODULES.html.sh (Signal handling): New section.
8615
8616 2008-07-14  Bruno Haible  <bruno@clisp.org>
8617
8618         * modules/unictype/ctype-* (Description): Add the word "function".
8619         Improves the resulting doc in MODULES.html.
8620
8621 2008-07-12  Ben Pfaff  <blp@gnu.org>
8622
8623         Add longlong module.
8624         * modules/longlong: New file.
8625
8626 2008-07-12  Bruno Haible  <bruno@clisp.org>
8627
8628         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
8629         to empty.
8630
8631 2008-07-10  Ben Pfaff  <blp@gnu.org>
8632
8633         Add isnan module.
8634         * doc/posix-functions/isnan.texi: Mention new module.
8635         * lib/math.in.h: Define isnan macro if we have decided to replace
8636         it.
8637         * m4/isnan.m4: New file.
8638         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
8639         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
8640         also.
8641         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
8642         redundancy.
8643         * m4/math_h.m4: Initialize and substitute variables for isnan
8644         module.
8645         * modules/isnan: New file.
8646         * modules/isnan-tests: New file.
8647         * modules/math: Add substitutions for new module.
8648         * tests/test-isnan.c: New file.
8649         * MODULES.html.sh: Mention new module.
8650
8651 2008-07-10  Ben Pfaff  <blp@gnu.org>
8652
8653         Add isnanf module.
8654         * lib/isnanf.m4: New file.
8655         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
8656         (gl_HAVE_ISNANF_IN_LIBM): New macro.
8657         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
8658         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
8659         * modules/isnanf: New file.
8660         * modules/isnanf-tests: New file.
8661         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
8662         files.
8663         * tests/test-isnanf-nolibm.c: factored most of its contents into
8664         new file tests/test-isnanf.h.
8665         * tests/test-isnanf.h: New file.
8666         * tests/test-isnanf.c: New file.
8667         * MODULES.html.sh: Mention new module.
8668         * doc/glibc-functions/isnanf.texi: Mention new module.
8669
8670 2008-07-10  Ben Pfaff  <blp@gnu.org>
8671
8672         Add isnand module.
8673         * lib/isnand.h: New file.
8674         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
8675         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
8676         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
8677         functionality also.
8678         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
8679         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
8680         (gl_HAVE_ISNAND_IN_LIBM): New macro.
8681         * modules/isnand: New file.
8682         * modules/isnand-tests: New file.
8683         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
8684         files.
8685         * tests/test-isnand-nolibm.c: factored most of its contents into
8686         new file tests/test-isnand.h.
8687         * tests/test-isnand.h: New file.
8688         * tests/test-isnand.c: New file.
8689         * MODULES.html.sh: Mention new module.
8690
8691 2008-07-10  Ben Pfaff  <blp@gnu.org>
8692
8693         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
8694         * lib/isnand.h: Rename lib/isnand-nolibm.h.
8695         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
8696         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
8697         * modules/isnanf-nolibm: Update references to renamed files.
8698         * modules/isnand-nolibm: Likewise.
8699         * modules/isnanf-nolibm-tests: Likewise.
8700         * modules/isnand-nolibm-tests: Likewise.
8701         * lib/frexp.c: Likewise.
8702         * lib/isfinite.c: Likewise.
8703         * lib/signbitd.c: Likewise.
8704         * lib/signbitf.c: Likewise.
8705         * lib/vasnprintf.c: Likewise.
8706         * tests/test-ceilf1.c: Likewise.
8707         * tests/test-ceilf2.c: Likewise.
8708         * tests/test-floorf1.c: Likewise.
8709         * tests/test-floorf2.c: Likewise.
8710         * tests/test-frexp.c: Likewise.
8711         * tests/test-round1.c: Likewise.
8712         * tests/test-round2.c: Likewise.
8713         * tests/test-roundf1.c: Likewise.
8714         * tests/test-strtod.c: Likewise.
8715         * tests/test-trunc1.c: Likewise.
8716         * tests/test-trunc2.c: Likewise.
8717         * tests/test-truncf1.c: Likewise.
8718         * tests/test-truncf2.c: Likewise.
8719         * NEWS: Mention the renamed header files.
8720
8721 2008-07-11  Jim Meyering  <meyering@redhat.com>
8722
8723         vc-list-files: make the last-resort awk code more portable
8724         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
8725         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
8726         does not support it.
8727
8728 2008-07-10  Eric Blake  <ebb9@byu.net>
8729
8730         Work with tar's bootstrap.
8731         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
8732         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
8733         an m4 comment.
8734
8735 2008-07-09  Jim Meyering  <meyering@redhat.com>
8736
8737         posix-shell.m4: fix typo that made this test malfunction
8738         * m4/posix-shell.m4: Remove capitalization in variable name.
8739
8740 2008-07-08  Bruno Haible  <bruno@clisp.org>
8741
8742         * m4/onceonly.m4: Update comments.
8743         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8744
8745 2008-07-04  Jim Meyering  <meyering@redhat.com>
8746
8747         * users.txt: Add vc-dwim.
8748         (bison, coreutils): Use the gitweb URL.
8749
8750 2008-07-03  Jim Meyering  <meyering@redhat.com>
8751
8752         * users.txt: Add libffcall.  From Sam Steingold.
8753
8754 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
8755
8756         getdate.y: do not ignore TZ with relative day, month or year offset
8757         * lib/getdate.y (get_date): Move the tz-handling block to follow the
8758         relative-date-handling, since otherwise, the latter would clobber the
8759         sole output (an updated Start value) of the tz-handling block.
8760         * tests/test-getdate.c: Tests for the fix
8761
8762 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8763
8764         Recognize 'foo_LIBRARIES += libgnu.a'.
8765         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
8766         makefile snippet has already specified an installation location,
8767         also using '+='.
8768
8769 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
8770
8771         getdate.y: factor out common actions
8772         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
8773         Use them in place of open-coded actions.
8774
8775 2008-07-01  Simon Josefsson  <simon@josefsson.org>
8776
8777         Add self-test for getdate module.
8778         * modules/getdate-tests: New file.
8779         * tests/test-getdate.c: New file.
8780
8781 2008-06-29  Bruno Haible  <bruno@clisp.org>
8782
8783         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
8784         .gitignore.
8785         Reported by Sylvain Beucler <beuc@beuc.net>.
8786
8787 2008-06-29  Bruno Haible  <bruno@clisp.org>
8788
8789         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
8790         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
8791
8792 2008-06-29  Bruno Haible  <bruno@clisp.org>
8793
8794         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
8795         EXTRA_DIST.
8796         Reported by Sylvain Beucler <beuc@beuc.net>.
8797
8798 2008-06-26  Jim Meyering  <meyering@redhat.com>
8799
8800         make several modules depend on the "open" module
8801         This provides slightly increased consistency when opening-for-write
8802         the name of a non-directory spelled with a trailing slash.
8803         * modules/chdir-safer: Likewise.
8804         * modules/chown: Likewise.
8805         * modules/clean-temp: Likewise.
8806         * modules/copy-file: Likewise.
8807         * modules/fchdir: Likewise.
8808         * modules/fcntl-safer: Likewise.
8809         * modules/pipe: Likewise.
8810         * modules/utime: Likewise.
8811         Prompted by Eric Blake and Bruno Haible.
8812
8813 2008-06-24  Andreas Schwab  <schwab@suse.de>
8814
8815         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
8816         literals can be used as initializers for global variables.
8817
8818 2008-06-23  Eric Blake  <ebb9@byu.net>
8819
8820         Make gnulib-cache.m4 easier to diff.
8821         * gnulib-tool (func_import): Allow newlines when reading cached
8822         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
8823
8824 2008-06-23  Bruno Haible  <bruno@clisp.org>
8825
8826         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
8827         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
8828         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
8829         m4/signalblocking.m4.
8830         (gl_PREREQ_SIGACTION): Don't invoke it.
8831         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
8832         gl_PREREQ_SIG_HANDLER_H.
8833         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
8834         Don't check for sigaction here.
8835
8836 2008-06-23  Bruno Haible  <bruno@clisp.org>
8837
8838         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
8839         (install_handlers): Don't set the SA_RESETHAND flag.
8840
8841 2008-06-23  Bruno Haible  <bruno@clisp.org>
8842
8843         * m4/sigaction.m4: Comment fixes.
8844         * lib/signal.in.h: Likewise.
8845
8846 2008-06-23  Eric Blake  <ebb9@byu.net>
8847
8848         Fix typo.
8849         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
8850
8851         Avoid SA_ namespace.
8852         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
8853         Reported by Ralf Wildenhues.
8854
8855         Avoid test failure due to SA_RESTORER.
8856         * tests/test-sigaction.c (SA_MASK): New macro.
8857         (main): Avoid failing due to extension flags being set.
8858         Reported by Jim Meyering.
8859
8860         Revert use of sig-handler.h in sigprocmask.c.
8861         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
8862         it requires the existence of struct sigaction.
8863         * lib/sigprocmask.c (handler_t): Restore typedef.
8864         (rpl_signal, old_handlers): Use local type.
8865
8866 2008-06-22  Bruno Haible  <bruno@clisp.org>
8867
8868         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
8869         conditionally.
8870         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8871
8872 2008-06-22  Bruno Haible  <bruno@clisp.org>
8873
8874         * doc/posix-functions/siginterrupt.texi: Move note.
8875
8876         * lib/signal.in.h (SA_RESTART): New macro.
8877         * lib/sigaction.c: Update comment.
8878
8879         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
8880
8881         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
8882         (gl_PREREQ_SIGPROCMASK): Invoke it.
8883         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
8884
8885         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
8886
8887         * lib/sigprocmask.c: Update a comment.
8888
8889 2008-06-21  Eric Blake  <ebb9@byu.net>
8890
8891         Use sigaction module rather than signal().
8892         * modules/c-stack (Depends-on): Add sigaction.
8893         * modules/fatal-signal (Depends-on): Likewise.
8894         * modules/nanosleep (Depends-on): Likewise.
8895         * modules/sigprocmask (Files): Add sig-handler.h.
8896         * modules/sigaction (Files): Likewise.
8897         * lib/sig-handler.h (get_handler): New file, suggested by Paul
8898         Eggert.
8899         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
8900         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
8901         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
8902         (init_fatal_signals): Likewise.
8903         * lib/nanosleep.c (rpl_nanosleep): Likewise.
8904         (siginterrupt): Delete fallback.
8905         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
8906         instead.
8907         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
8908         siginterrupt.
8909
8910         New module sigaction, for mingw.
8911         * modules/sigaction: New module...
8912         * modules/sigaction-tests: ...and its test.
8913         * m4/sigaction.m4: New file.
8914         * lib/sigaction.c: Likewise.
8915         * tests/test-sigaction.c: Likewise.
8916         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
8917         * modules/signal (Makefile.am): Likewise.
8918         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
8919         needed.
8920         * doc/posix-headers/signal.texi (signal.h): Mention provided
8921         types.
8922         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
8923         that sigaction is preferable.
8924         * doc/posix-functions/sigaction.texi (sigaction): Mention new
8925         module.
8926         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
8927         sigaction.
8928
8929         Improve robustness of sigprocmask by overriding signal.
8930         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
8931         is in use.
8932         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
8933         (SIGKILL, SIGSTOP): Provide fallbacks.
8934         (rpl_signal): Implement.
8935         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
8936         signal can be called inside handlers.
8937
8938         Fix nanosleep module on mingw.
8939         * modules/nanosleep (Depends-on): Add sys_select.
8940         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
8941
8942         Fix licensing of sigprocmask.
8943         * modules/raise (License): Relicense as LGPL.
8944
8945 2008-06-21  Bruno Haible  <bruno@clisp.org>
8946
8947         * lib/propername.c (proper_name_utf8): Don't use the transliterated
8948         result if it contains question marks.
8949         Reported by Michael Geng <linux@michaelgeng.de>.
8950
8951 2008-06-19  Bruno Haible  <bruno@clisp.org>
8952
8953         Fix CVS-ism.
8954         * doc/gnulib.texi: Include updated-stamp.texi.
8955         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
8956         (updated-stamp.texi): New rule.
8957         (gnulib.info): Depend on it.
8958         * doc/.gitignore: Add updated-stamp.texi.
8959         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
8960
8961 2008-06-19  Bruno Haible  <bruno@clisp.org>
8962
8963         * doc/Makefile (gnulib.info): Update and simplify dependencies.
8964         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
8965
8966 2008-06-19  Eric Blake  <ebb9@byu.net>
8967
8968         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
8969         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
8970         Reported by Stepan Kasal.
8971
8972 2008-06-18  Bruno Haible  <bruno@clisp.org>
8973
8974         * lib/fatal-signal.c (init_fatal_signals): Add comment.
8975         Reported by Eric Blake.
8976
8977 2008-06-18  Eric Blake  <ebb9@byu.net>
8978
8979         Work around cygwin 1.5.25 strsignal bug.
8980         * tests/test-strsignal.c: Allow for const char *.
8981         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
8982
8983 2008-06-18  Simon Josefsson  <simon@josefsson.org>
8984
8985         * users.txt: Update URL to article and add author/date
8986         information.
8987
8988 2008-06-17  Bruno Haible  <bruno@clisp.org>
8989
8990         New macro gl_DISABLE_THREADS.
8991         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
8992         if the user did not pass --enable-threads or --disable-threads option.
8993         (gl_DISABLE_THREADS): New macro.
8994         Reported by Eric Blake <ebb9@byu.net>.
8995
8996 2008-06-17  Bruno Haible  <bruno@clisp.org>
8997
8998         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
8999         when the macro ignores it.
9000         Based on a patch by Eric Blake <ebb9@byu.net>.
9001
9002 2008-06-17  Bruno Haible  <bruno@clisp.org>
9003
9004         * modules/tls (License): Change to LGPLv2+.
9005         Reported by Eric Blake.
9006
9007 2008-06-17  Eric Blake  <ebb9@byu.net>
9008
9009         Simplify c-stack prerequisites.
9010         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
9011         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
9012         no longer requires <ucontext.h> to exist.  Optimize setrlimit
9013         check.
9014         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
9015         <sys/resource.h>.
9016
9017         Move c-stack test into testsuite.
9018         * modules/c-stack-tests: New file.
9019         * lib/c-stack.c [DEBUG]: Move test program...
9020         * tests/test-c-stack.c: ...into this new file.  Skip rather than
9021         fail test if sigaltstack is lacking.
9022         * tests/test-c-stack.sh: New driver file.
9023
9024 2008-06-16  Eric Blake  <ebb9@byu.net>
9025
9026         Use raise module consistently.
9027         * modules/fatal-signal (Depends-on): Add raise.
9028         * modules/sigprocmask (Depends-on): Likewise.
9029         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
9030         * lib/sigprocmask.c (sigprocmask): Likewise.
9031         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
9032         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
9033
9034         Fix compliance bug in sigpending.
9035         * lib/sigprocmask.c (sigpending): Return pending array via
9036         parameter, not return value.
9037
9038 2008-06-14  Eric Blake  <ebb9@byu.net>
9039
9040         Improve obstack-printf test code.
9041         * tests/test-obstack-printf.c (test_function): Fix comment, and
9042         simplify usage of obstack_* in macros.  Add a test for coverage.
9043         Reported by Bruno Haible.
9044
9045 2008-06-14  Bruno Haible  <bruno@clisp.org>
9046
9047         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
9048         array size as a constant, not as a const variable.
9049         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
9050         AC_USE_SYSTEM_EXTENSIONS.
9051         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
9052         Test whether the obstack_printf function actually exists.
9053         * modules/obstack-printf (Depends-on): Add extensions.
9054         (Include): Remove obstack.h.
9055         * modules/obstack-printf-posix (Depends-on): Add extensions.
9056         (Include): Remove obstack.h.
9057
9058 2008-06-13  Eric Blake  <ebb9@byu.net>
9059
9060         Add obstack-printf and obstack-printf-posix modules.
9061         * modules/obstack-printf: New file.
9062         * modules/obstack-printf-posix: Likewise.
9063         * MODULES.html.sh (Misc): Mention them.
9064         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
9065         Likewise.
9066         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
9067         Likewise.
9068         * modules/stdio (Makefile.am): Accomodate new modules.
9069         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9070         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
9071         Declare.
9072         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
9073         functions.
9074         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
9075         (gl_REPLACE_OBSTACK_PRINTF): New macros
9076         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
9077         * tests/test-obstack-printf.c: New file.
9078         * modules/obstack-printf-tests: Likewise.
9079         * modules/obstack-printf-posix-tests: Likewise.
9080
9081 2008-06-11  Bruno Haible  <bruno@clisp.org>
9082
9083         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
9084         * lib/open.c: Include errno.h.
9085         (open): Fail when attempting to write to a file that has a trailing
9086         slash.
9087         * tests/test-open.c (main): Test against trailing slash bug.
9088         * doc/posix-functions/open.texi: Mention the trailing slash bug.
9089
9090 2008-06-10  Bruno Haible  <bruno@clisp.org>
9091
9092         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
9093         for $? to work inside the trap command, with various /bin/sh-s.
9094         * tests/test-vc-list-files-cvs.sh: Likewise.
9095
9096 2008-06-10  Bruno Haible  <bruno@clisp.org>
9097
9098         * lib/acl-internal.h: Don't include gettext.h here.
9099         * lib/set-mode-acl.c: Include gettext.h here.
9100         * lib/copy-acl.c: Likewise.
9101
9102 2008-06-10  Bruno Haible  <bruno@clisp.org>
9103
9104         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
9105         * lib/wait-process.c (wait_subprocess): Likewise.
9106         * lib/execute.h (execute): Add termsigp argument.
9107         * lib/execute.c (execute): Likewise.
9108         * lib/csharpcomp.c (compile_csharp_using_pnet,
9109         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
9110         * lib/csharpexec.c (execute_csharp_using_pnet,
9111         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
9112         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
9113         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
9114         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
9115         is_jikes_present): Update.
9116         * lib/javaexec.c (execute_java_class): Update.
9117         * lib/javaversion.c (execute_and_read_line): Update.
9118         * NEWS: Document the changes.
9119         Reported by Eric Blake.
9120
9121 2008-06-10  Eric Blake  <ebb9@byu.net>
9122
9123         Add missing include.
9124         * tests/test-strstr.c (includes): Add <signal.h>.
9125         * tests/test-strcasestr.c (includes): Likewise.
9126         * tests/test-memmem.c (includes): Likewise.
9127
9128 2008-06-10  Bruno Haible  <bruno@clisp.org>
9129
9130         * lib/wait-process.c (wait_subprocess): Add an assertion.
9131
9132 2008-06-10  Bruno Haible  <bruno@clisp.org>
9133
9134         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
9135
9136 2008-06-10  Bruno Haible  <bruno@clisp.org>
9137
9138         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
9139         using alarm().
9140         * tests/test-strcasestr.c (main): Likewise.
9141         * tests/test-strstr.c (main): Likewise.
9142
9143 2008-06-09  Bruno Haible  <bruno@clisp.org>
9144
9145         Work around the Solaris 10 ACE ACLs ABI change.
9146         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
9147         declare if ACL_NO_TRIVIAL is present.
9148         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
9149         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
9150         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
9151         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
9152         define if ACL_NO_TRIVIAL is present.
9153         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
9154         and use the current ABI.
9155         (file_has_acl): Use same #if condition as elsewhere.
9156         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
9157         in use, and use the current ABI.
9158         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
9159         Reported by Jim Meyering.
9160
9161 2008-06-09  Eric Blake  <ebb9@byu.net>
9162
9163         Work around environments that (stupidly) ignore SIGALRM.
9164         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
9165         before using alarm().
9166         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9167         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9168         Reported by Ian Beckwith <ianb@erislabs.net>.
9169
9170         Produce autobuild blurb earlier in log.
9171         * modules/autobuild (configure.ac-early): Move AB_INIT here.
9172
9173 2008-06-09  Jim Meyering  <meyering@redhat.com>
9174         and OndÅ™ej Vašík  <ovasik@redhat.com>
9175
9176         utimens.c: correct kernel bug work-around
9177         OndÅ™ej Vašík found that the invalid return value of 280 indicates
9178         failure, not success, and the kernel bug we're trying to work
9179         around affects not just the utimensat call, but also the fallback
9180         futimens call.
9181         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
9182         not success.
9183         [HAVE_FUTIMENS]: Use the same work-around, here.
9184
9185 2008-06-09  Jim Meyering  <meyering@redhat.com>
9186
9187         add more guards around definition of ACE_-related code
9188         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
9189         ALLOW and ACE_OWNER are also defined.
9190
9191 2008-06-08  Bruno Haible  <bruno@clisp.org>
9192
9193         * lib/acl-internal.h: Add me as co-author.
9194         * lib/file-has-acl.c: Likewise.
9195         * lib/set-mode-acl.c: Likewise.
9196         * lib/copy-acl.c: Likewise.
9197
9198 2008-06-08  Bruno Haible  <bruno@clisp.org>
9199
9200         Add support for AIX ACLs.
9201         * lib/acl-internal.h (acl_nontrivial): New declaration.
9202         * lib/file-has-acl.c (acl_nontrivial): New function.
9203         (file_has_acl): Add implementation using AIX 4 ACL API.
9204         * lib/set-mode-acl.c (qset_acl): Likewise.
9205         * lib/copy-acl.c (qcopy_acl): Likewise.
9206
9207 2008-06-08  Bruno Haible  <bruno@clisp.org>
9208
9209         Add support for HP-UX ACLs.
9210         * lib/acl-internal.h (acl_nontrivial): New declaration.
9211         * lib/file-has-acl.c (acl_nontrivial): New function.
9212         (file_has_acl): Add implementation using HP-UX 11 ACL API.
9213         * lib/set-mode-acl.c (qset_acl): Likewise.
9214         * lib/copy-acl.c (qcopy_acl): Likewise.
9215
9216 2008-06-08  Bruno Haible  <bruno@clisp.org>
9217
9218         Add support for Cygwin ACLs.
9219         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
9220         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
9221         the chmod_or_fchmod call.
9222         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
9223
9224 2008-06-08  Bruno Haible  <bruno@clisp.org>
9225
9226         Fix bug with setuid modes in Solaris 10+ code.
9227         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
9228         succeeded, when the mode contains some special bits.
9229
9230 2008-06-08  Bruno Haible  <bruno@clisp.org>
9231
9232         Add support for Solaris 7..10 ACLs.
9233         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
9234         declarations.
9235         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
9236         functions.
9237         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
9238         * lib/set-mode-acl.c (qset_acl): Likewise.
9239         * lib/copy-acl.c (qcopy_acl): Likewise.
9240
9241 2008-06-08  Bruno Haible  <bruno@clisp.org>
9242
9243         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
9244         declaration.
9245         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
9246         (acl_access_nontrivial): Remove MacOS X case.
9247         (file_has_acl): Use acl_extended_nontrivial.
9248         * lib/copy-acl.c (qcopy_acl): Likewise.
9249
9250 2008-06-08  Bruno Haible  <bruno@clisp.org>
9251
9252         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
9253
9254 2008-06-08  Jim Meyering  <meyering@redhat.com>
9255
9256         * modules/acl (Maintainer): Add Bruno Haible.
9257
9258 2008-06-07  Bruno Haible  <bruno@clisp.org>
9259
9260         Improve support for Tru64 ACLs.
9261         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
9262         ACL on OSF/1.
9263
9264 2008-06-07  Bruno Haible  <bruno@clisp.org>
9265
9266         Add support for MacOS X ACLs.
9267         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
9268         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
9269         * lib/set-mode-acl.c (qset_acl): Likewise.
9270         * lib/copy-acl.c (qcopy_acl): Likewise.
9271
9272 2008-06-07  Bruno Haible  <bruno@clisp.org>
9273
9274         Fix memory leak introduced on 2008-05-22.
9275         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
9276         use.
9277
9278 2008-06-07  Bruno Haible  <bruno@clisp.org>
9279
9280         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
9281         to construct an empty ACL.
9282
9283 2008-06-07  Bruno Haible  <bruno@clisp.org>
9284
9285         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
9286         precisely.
9287         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
9288
9289 2008-06-07  Bruno Haible  <bruno@clisp.org>
9290
9291         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
9292         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
9293
9294 2008-06-07  Bruno Haible  <bruno@clisp.org>
9295
9296         * doc/posix-functions/_setjmp.texi: Explain the use of this function
9297         regardless of POSIX.
9298         * doc/posix-functions/_longjmp.texi: Likewise.
9299         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
9300         SystemV platform in this case.
9301
9302 2008-06-06  Eric Blake  <ebb9@byu.net>
9303
9304         Document abort() bugs.
9305         * doc/posix-functions/abort.texi (abort): Mention anomalies.
9306
9307         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
9308         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
9309         sigsetjmp.
9310         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
9311         siglongjmp, but only as a macro.
9312         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
9313         is obsolete.
9314         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
9315
9316         Tweak documentation to cover cygwin argz bugs.
9317         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
9318         argz bug fix; no code change needed since no cygwin releases
9319         occurred between the last fix and the bug being tested.
9320         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
9321         module and recently fixed cygwin bugs.
9322         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
9323         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
9324         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
9325         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
9326         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
9327         Likewise.
9328         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
9329         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
9330         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
9331         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
9332         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
9333         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
9334         Likewise.
9335
9336         Avoid gcc warning on cygwin.
9337         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
9338         !ACL_NO_TRIVIAL]: Avoid unused variable.
9339
9340 2008-06-05  Eric Blake  <ebb9@byu.net>
9341
9342         Be tolerant of UNKNOWN version in gnulib-tool test dir.
9343         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
9344         git-version-gen fails to come up with a version.
9345         Reported by Simon Josefsson.
9346
9347 2008-06-05  Jim Meyering  <meyering@redhat.com>
9348             Paul Eggert  <eggert@cs.ucla.edu>
9349
9350         utimens.c: work around a probable Linux kernel bug
9351         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
9352         appears to be a kernel bug that causes utimensat to return 280
9353         instead of 0, indicating success.
9354
9355 2008-06-04  Bruno Haible  <bruno@clisp.org>
9356
9357         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
9358         2008-06-01 commit.
9359
9360 2008-06-04  Bruno Haible  <bruno@clisp.org>
9361
9362         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
9363         * lib/file-has-acl.c (acl_access_nontrivial): New function.
9364         (file_has_acl): Use it. Save errno afterwards.
9365         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
9366
9367 2008-06-03  Bruno Haible  <bruno@clisp.org>
9368
9369         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
9370         draft code. Simplify #ifs.
9371         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
9372         Put Solaris code after POSIX-draft code. Fix comments regarding
9373         Solaris 10, HP-UX. Mention Cygwin.
9374         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
9375
9376 2008-06-03  Eric Blake  <ebb9@byu.net>
9377
9378         Provide fallback for older kernels.
9379         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
9380         Provide runtime fallback if kernel lacks support.
9381         Reported by Mike Frysinger.
9382
9383 2008-06-02  Bruno Haible  <bruno@clisp.org>
9384
9385         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
9386         it exists.
9387
9388 2008-06-02  Bruno Haible  <bruno@clisp.org>
9389
9390         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
9391         * lib/copy-acl.c (qcopy_acl): Update comment.
9392
9393 2008-06-02  Bruno Haible  <bruno@clisp.org>
9394
9395         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
9396         like ACL APIs.
9397
9398 2008-06-02  Bruno Haible  <bruno@clisp.org>
9399
9400         * tests/test-file-has-acl.sh: Use different code for Cygwin.
9401         * tests/test-set-mode-acl.sh: Likewise.
9402         * tests/test-copy-acl.sh: Likewise.
9403         * tests/test-copy-file.sh: Likewise.
9404
9405 2008-06-02  Bruno Haible  <bruno@clisp.org>
9406
9407         * tests/test-file-has-acl.sh: Remove unused code.
9408
9409 2008-06-01  Bruno Haible  <bruno@clisp.org>
9410
9411         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
9412         (copy_acl): Just a wrapper around qcopy_acl that emits the error
9413         messages.
9414         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
9415
9416 2008-06-01  Bruno Haible  <bruno@clisp.org>
9417
9418         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
9419         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
9420         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
9421         APIs.
9422         * modules/acl-tests (configure.ac): Remove tests now contained in
9423         m4/acl.m4.
9424
9425 2008-06-02  Jim Meyering  <meyering@redhat.com>
9426
9427         announce-gen: use a better key-server host name
9428         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
9429         it may be more consistently reliable.  Suggested by Werner Koch
9430         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
9431
9432 2008-06-01  Bruno Haible  <bruno@clisp.org>
9433
9434         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
9435         Reported by Voroskoi Andras <voroskoi@gmail.com>.
9436
9437 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
9438
9439         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
9440
9441 2008-06-01  Bruno Haible  <bruno@clisp.org>
9442
9443         New ACL tests.
9444         * tests/test-file-has-acl.sh: New file.
9445         * tests/test-file-has-acl.c: New file.
9446         * tests/test-set-mode-acl.sh: New file.
9447         * tests/test-set-mode-acl.c: New file.
9448         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
9449         * tests/test-copy-acl.c: New file.
9450         * modules/acl-tests: New file, based on modules/copy-file-tests.
9451         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
9452         (Depends-on): Add acl-tests.
9453         (configure.ac): Remove checks.
9454         (Makefile.am): Don't create test-sameacls program here any more.
9455
9456 2008-06-01  Bruno Haible  <bruno@clisp.org>
9457
9458         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
9459         * tests/test-sameacls.c: Include progname.h.
9460         (main): Invoke set_program_name. Portability fixes for MacOS X,
9461         Solaris, HP-UX.
9462
9463 2008-06-01  Bruno Haible  <bruno@clisp.org>
9464
9465         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
9466         function.
9467         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
9468
9469 2008-06-01  Bruno Haible  <bruno@clisp.org>
9470
9471         * modules/rpmatch (Depends-on): Add strdup.
9472
9473 2008-06-01  Bruno Haible  <bruno@clisp.org>
9474
9475         * lib/pipe.c: Include unistd-safer.h.
9476         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
9477         * modules/pipe (Depends-on): Add unistd-safer.
9478
9479 2008-05-30  Simon Josefsson  <simon@josefsson.org>
9480
9481         * modules/autobuild (configure.ac): Call AB_INIT.
9482
9483 2008-05-30  Simon Josefsson  <simon@josefsson.org>
9484
9485         * tests/test-getaddrinfo.c: Don't print debug messages by default.
9486         Suggested by Bruno Haible <bruno@clisp.org>.
9487
9488 2008-05-30  Simon Josefsson  <simon@josefsson.org>
9489
9490         * tests/test-base64.c: Cast size_t to unsigned long when invoking
9491         printf.  Use %lu instead of %d.  Reported by Bruno Haible
9492         <bruno@clisp.org>.
9493
9494 2008-05-29  Eric Blake  <ebb9@byu.net>
9495
9496         Prefer new POSIX 200x interfaces over futimesat.
9497         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
9498         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
9499         when available.
9500         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
9501
9502 2008-05-28  Bruno Haible  <bruno@clisp.org>
9503
9504         * modules/stpcpy (License): Change to LGPLv2+.
9505         Requested by David Lutterkort <dlutter@redhat.com>.
9506
9507 2008-05-27  Bruno Haible  <bruno@clisp.org>
9508
9509         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
9510         current mingw.
9511         Reported by Jose E. Marchesi <jemarch@gnu.org>.
9512
9513 2008-05-27  Bruno Haible  <bruno@clisp.org>
9514
9515         * modules/iconv_open (Link): New section, from module 'iconv'.
9516         * modules/striconv (Link): Likewise.
9517         * modules/striconveh (Link): Likewise.
9518         * modules/xstriconv (Link): Likewise.
9519         * modules/unicodeio (Link): Likewise.
9520         * modules/propername (Link): Likewise.
9521         Reported by Jim Meyering.
9522
9523 2008-05-26  Jim Meyering  <meyering@redhat.com>
9524
9525         sha256: do not artificially restrict buffer length to be < 2^32
9526         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
9527         uint32_t to size_t.
9528         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
9529         to match.
9530
9531         avoid unaligned access errors, e.g., on sparc
9532         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
9533         direct access through a possibly-unaligned uint64* pointer.
9534         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
9535         direct access through a possibly-unaligned uint32* pointer.
9536         Prompted by this patch from Tom "spot" Callaway:
9537         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
9538
9539         sha512.c: fix typo in comment
9540         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
9541
9542 2008-05-25  Bruno Haible  <bruno@clisp.org>
9543
9544         * lib/set-mode-acl.c: Renamed from lib/acl.c.
9545         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
9546         (Makefile.am): Update lib_SOURCES.
9547
9548 2008-05-25  Bruno Haible  <bruno@clisp.org>
9549
9550         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
9551
9552 2008-05-25  Jim Meyering  <meyering@redhat.com>
9553
9554         useless-if-before-free: freed expr may have white-space differences
9555         * build-aux/useless-if-before-free: Recognize cases in which the
9556         freed expression differs from the tested one in embedded white
9557         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
9558         $1 was used, so we can't make any regexp shy.  Improved tests now
9559         detect this.
9560
9561         useless-if-before-free: accept white space in the expression.
9562         * build-aux/useless-if-before-free: For now, any white space
9563         in the expression must be identical in the free argument.
9564
9565         useless-if-before-free: efficiency tweak
9566         * build-aux/useless-if-before-free: Make the expression-matching
9567         regexp "shy".
9568         Make the *outer* regexp shy, not the expr-matching one.
9569
9570         update code-in-comment to accept cast of free arg
9571         * build-aux/useless-if-before-free: Update regexp.
9572
9573 2008-05-25  Bruno Haible  <bruno@clisp.org>
9574
9575         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
9576         * modules/copy-file-tests (Files, Makefile.am): Update.
9577         * tests/test-copy-file.c (func_test_copy): Update.
9578
9579 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
9580
9581         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
9582
9583 2008-05-23  Bruno Haible  <bruno@clisp.org>
9584
9585         Improve support for ACLs on OSF/1.
9586         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
9587         Remove fallback for unknown flavors of ACLs.
9588
9589 2008-05-22  Bruno Haible  <bruno@clisp.org>
9590
9591         Add support for ACLs on OSF/1.
9592         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
9593         replacements.
9594         (acl_free_text): New macro fallback.
9595         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
9596         acl_free.
9597         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
9598         acl_free_text function. Require AC_C_INLINE.
9599
9600 2008-05-22  Bruno Haible  <bruno@clisp.org>
9601
9602         Make copy_acl work on MacOS X 10.5.
9603         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
9604         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
9605         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
9606         If MODE_INSIDE_ACL, don't assume that every system has the same text
9607         representation for ACLs as FreeBSD.
9608         * lib/copy-acl.c (copy_acl): Add support for platforms with
9609         !MODE_INSIDE_ACL.
9610         * lib/file-has-acl.c (file_has_acl): Likewise.
9611         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
9612         FreeBSD, MacOS X, or IRIX, respectively.
9613
9614 2008-05-22  Bruno Haible  <bruno@clisp.org>
9615
9616         * lib/acl.h: Don't include <sys/acl.h>.
9617         (GETACLCNT): Move fallback to lib/acl-internal.h.
9618         * lib/acl-internal.h: Include <sys/acl.h> here.
9619         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
9620
9621 2008-05-22  Bruno Haible  <bruno@clisp.org>
9622
9623         Split off copy_acl function to separate file.
9624         * lib/copy-acl.c: New file, extracted from lib/acl.c.
9625         * lib/acl.c (copy_acl): Moved function to separate file.
9626         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
9627         * modules/acl (Files): Add lib/copy-acl.c.
9628         (Makefiles.am): Augment lib_SOURCES.
9629
9630 2008-05-22  Bruno Haible  <bruno@clisp.org>
9631
9632         * modules/copy-file-tests: New file.
9633         * tests/test-copy-file.sh: New file.
9634         * tests/test-copy-file.c: New file.
9635         * tests/test-copy-file-sameacls.c: New file.
9636
9637 2008-05-22  Eric Blake  <ebb9@byu.net>
9638
9639         Avoid gcc warning.
9640         * tests/test-memcmp.c (main): Pass NULL indirectly.
9641
9642 2008-05-21  Bruno Haible  <bruno@clisp.org>
9643
9644         Add reference doc about ACLs.
9645         * doc/acl-resources.txt: New file.
9646         * doc/acl-cygwin.txt: New file.
9647
9648 2008-05-21  Bruno Haible  <bruno@clisp.org>
9649
9650         Avoid one more warning from gcc.
9651         * lib/vasnprintf.c (IF_LINT): Update comments.
9652         (VASNPRINTF): Use it also for the 'prefix' array initializer.
9653
9654 2008-05-21  Jim Meyering  <meyering@redhat.com>
9655
9656         avoid a warning from gcc
9657         * lib/vasnprintf.c (IF_LINT): Define.
9658         (scale10_round_decimal_long_double):
9659         Use it to avoid a "may be used uninitialized" warning.
9660         (scale10_round_decimal_double): Likewise.
9661
9662 2008-05-21  Simon Josefsson  <simon@josefsson.org>
9663
9664         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
9665         declared.
9666
9667 2008-05-20  Bruno Haible  <bruno@clisp.org>
9668
9669         * tests/test-memcmp.c (main): Test also the sign of the result. Test
9670         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
9671
9672 2008-05-20  Simon Josefsson  <simon@josefsson.org>
9673
9674         * modules/memcmp-tests: New file.
9675         * tests/test-memcmp.c: New file.
9676
9677 2008-05-19  Bruno Haible  <bruno@clisp.org>
9678
9679         * modules/propername (Notice, configure.ac): Put quoted "..." into
9680         --keyword option.
9681         * lib/propername.h: Update comments accordingly.
9682         Reported by Eric Blake.
9683
9684 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
9685
9686         * modules/getpass-gnu (Depends-on): Add fseeko.
9687
9688 2008-05-19  Simon Josefsson  <simon@josefsson.org>
9689
9690         * modules/base64-tests: New file.
9691
9692 2008-05-19  Bo Borgerson <gigabo@gmail.com>
9693
9694         * lib/base64.c (base64_decode_ctx): If a decode context structure
9695         was passed in use it to ignore newlines.  If a context structure
9696         was _not_ passed in, continue to treat newlines as garbage (this
9697         is the historical behavior).  Formerly base64_decode.
9698         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
9699         takes a decode context structure.
9700         * lib/base64.h (base64_decode): Macro for four-argument calls.
9701         (base64_decode_alloc): Likewise.
9702         * lib/base64.c (base64_decode_ctx): If a decode context structure
9703         was passed in use it to ignore newlines.  If a context structure
9704         was _not_ passed in, continue to treat newlines as garbage (this
9705         is the historical behavior).  Formerly base64_decode.
9706         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
9707         takes a decode context structure.
9708         * lib/base64.h (base64_decode): Macro for four-argument calls.
9709         (base64_decode_alloc): Likewise.
9710
9711 2008-05-19  Jim Meyering  <meyering@redhat.com>
9712
9713         avoid a warning from gcc
9714         * lib/trim.c (IF_LINT): Define.
9715         (trim2): Use it to avoid a "may be used uninitialized" warning.
9716
9717         Fix doc typo.
9718         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
9719
9720 2008-05-19  Bruno Haible  <bruno@clisp.org>
9721
9722         * doc/glibc-functions/getpass.texi: Document limits of other
9723         implementations.
9724
9725 2008-05-19  Simon Josefsson  <simon@josefsson.org>
9726             Bruno Haible <bruno@clisp.org>
9727
9728         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
9729
9730 2008-05-18  Bruno Haible  <bruno@clisp.org>
9731
9732         * modules/propername: New file, from GNU gettext.
9733         * lib/propername.h: New file, from GNU gettext.
9734         * lib/propername.c: New file, from GNU gettext.
9735         * MODULES.html.sh (Internationalization functions): Add propername.
9736
9737 2008-05-16  Jim Meyering  <meyering@redhat.com>
9738             Bruno Haible  <bruno@clisp.org>
9739
9740         Avoid some warnings from "gcc -Wshadow".
9741         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
9742
9743 2008-05-15  Eric Blake  <ebb9@byu.net>
9744
9745         Extend previous patch to cygwin 1.7.0.
9746         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
9747         fast implementation in cygwin >= 1.7.0.
9748         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
9749         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9750
9751 2008-05-15  Bruno Haible  <bruno@clisp.org>
9752
9753         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
9754         implementation in glibc >= 2.9.
9755         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
9756         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9757
9758 2008-05-15  Bruno Haible  <bruno@clisp.org>
9759
9760         * MODULES.html.sh (Internationalization functions): Remove linebreak.
9761         (Unicode string functions): Add unilbrk/*.
9762         Reported by Karl Berry.
9763
9764 2008-05-15  Eric Blake  <ebb9@byu.net>
9765
9766         Fix violation of <stdbool.h> replacement in regex.
9767         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
9768         * lib/regexec.c (re_search_internal): Likewise.
9769         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
9770
9771 2008-05-15  Jim Meyering  <meyering@redhat.com>
9772
9773         avoid distracting test output when git or cvs is not found
9774         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
9775         * tests/test-vc-list-files-git.sh: Likewise.
9776
9777 2008-05-15  Eric Blake  <ebb9@byu.net>
9778
9779         Glibc finally accepted the memmem speedup code, bugzilla #5514.
9780         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
9781         glibc version.
9782         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
9783         * doc/posix-functions/strstr.texi (strstr): Likewise.
9784         * lib/str-two-way.h (MAX): Sychronize with glibc.
9785
9786 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
9787
9788         * lib/regcomp.c (optimize_utf8): Add a note on why we test
9789         opr.ctx_type.
9790         (calc_first): Initialize constraint field.
9791         (duplicate_node_closure): Use it instead of special casing ANCHORS.
9792         Fix grammar.
9793         (duplicate_node): Merge constraint field for all node types.
9794         (calc_eclosure_iter): Look at constraint field for all node types.
9795         * lib/regex_internal.c (create_cd_newstate): Don't look at
9796         opr.ctx_type.
9797
9798 2008-05-14  Bruno Haible  <bruno@clisp.org>
9799
9800         Help GCC to do better code generation.
9801         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
9802         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
9803         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
9804         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
9805         Declare with attribute 'malloc' if supported.
9806
9807 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
9808
9809         use "echo STR|wc -c" rather than unportable "expr length STR"
9810         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
9811         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
9812
9813 2008-05-14  Jim Meyering  <meyering@redhat.com>
9814
9815         use dd ibs=$n count=1 ... rather than less-portable head -c$n
9816         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
9817         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
9818         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
9819         via Collin Lasse.
9820
9821 2008-05-14  Eric Blake  <ebb9@byu.net>
9822
9823         Avoid quadratic growth in gl_LIBSOURCES.
9824         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
9825         Suggested by Bruno Haible.
9826
9827         Test xmemdup0.
9828         * modules/xmemdup0-tests: New file.
9829         * tests/test-xmemdup0.c: Likewise.
9830
9831 2008-05-13  Eric Blake  <ebb9@byu.net>
9832
9833         Split xmemdup0 into its own module.
9834         * modules/xmemdup0: New file.
9835         * lib/xmemdup0.h: Likewise.
9836         * lib/xmemdup0.c: Likewise.
9837         * MODULES.html.sh (Memory management functions): Add xmemdup0.
9838         * lib/xalloc.h (xmemdup0): Remove.
9839         * lib/xmalloc.c (xmemdup0): Likewise.
9840
9841 2008-05-13  Eric Blake  <ebb9@byu.net>
9842             Bruno Haible  <bruno@clisp.org>
9843
9844         Reduce number of forks required during autoconf.
9845         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
9846         and gl_LIBSOURCES_DIR.
9847         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
9848         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
9849         m4_syscmd per file.
9850         <m4_foreach_w>: Move...
9851         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
9852
9853 2008-05-13  Eric Blake  <ebb9@byu.net>
9854
9855         * gnulib-tool: Fix various comment typos.
9856
9857 2008-05-12  Bruno Haible  <bruno@clisp.org>
9858
9859         Tailor the linebreaking algorithm.
9860         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
9861
9862 2008-05-12  Bruno Haible  <bruno@clisp.org>
9863
9864         Update to Unicode 5.0.0.
9865         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
9866         LBP_JV, LBP_JT. Redistribute values.
9867         (unilbrk_table): Change size.
9868         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
9869         Unicode TR#14 rev. 22.
9870         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
9871         LBP_JV, LBP_JT. Redistribute values.
9872         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
9873         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
9874         Update.
9875         * lib/unilbrk/lbrkprop1.h: Regenerated.
9876         * lib/unilbrk/lbrkprop2.h: Regenerated.
9877         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
9878         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
9879         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
9880         Likewise.
9881         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
9882         Likewise.
9883         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
9884         result.
9885         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
9886         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
9887         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
9888         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
9889         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
9890         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
9891
9892 2008-05-11  Bruno Haible  <bruno@clisp.org>
9893
9894         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
9895
9896 2008-05-11  Bruno Haible  <bruno@clisp.org>
9897
9898         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
9899         * modules/unilbrk/gen-lbrk: New file.
9900
9901 2008-05-11  Bruno Haible  <bruno@clisp.org>
9902
9903         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
9904         * m4/sha512.m4 (gl_SHA512): Likewise.
9905
9906 2008-05-11  Jim Meyering  <meyering@redhat.com>
9907
9908         New modules: crypto/sha256, crypto/sha512 (from coreutils)
9909         * modules/crypto/sha256: New file.
9910         * modules/crypto/sha512: Likewise.
9911         * lib/sha256.c: Likewise.
9912         * lib/sha256.h: Likewise.
9913         * lib/sha512.c: Likewise.
9914         * lib/sha512.h: Likewise.
9915         * lib/u64.h: Likewise.
9916         * m4/sha256.m4: Likewise.
9917         * m4/sha512.m4: Likewise.
9918         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
9919
9920 2008-05-10  Bruno Haible  <bruno@clisp.org>
9921
9922         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
9923         (Input/Output <stdio.h>): Add xprintf.
9924         (Signal handling <signal.h>): Add strsignal.
9925         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
9926         (Core language properties): Add func.
9927         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
9928         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
9929         strings.
9930         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
9931         (Input/output): New section.
9932         (File system functions): Add openat-die, stat-macros.
9933         (Networking functions): Add sockets.
9934         (Unicode string functions): Add unictype/*.
9935         (Support for building libraries and executables): Add gperf.
9936         (Support for building documentation): Add agpl-3.0.
9937         (Misc): Add nocrash.
9938
9939 2008-05-10  Bruno Haible  <bruno@clisp.org>
9940
9941         * modules/unictype/gen-ctype: New file.
9942
9943 2008-05-10  Jim Meyering  <meyering@redhat.com>
9944
9945         Make chdir-safer.c more efficient on a system with no symlinks.
9946         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
9947         also if ELOOP is zero.  Suggested by Bruno Haible.
9948
9949         Make chdir-safer.c slightly safer.
9950         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
9951         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
9952
9953         Avoid compile failure on systems without ELOOP (like mingw).
9954         * lib/chdir-safer.c (ELOOP): Define if not already defined.
9955         Reported by Bruno Haible.
9956
9957 2008-05-10  Bruno Haible  <bruno@clisp.org>
9958
9959         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
9960         (is_utf8_encoding): Use a case-insensitive comparison.
9961         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
9962         streq.
9963
9964 2008-05-10  Bruno Haible  <bruno@clisp.org>
9965
9966         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
9967         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
9968         * lib/unilbrk/ulc-common.h (iconv_string_length,
9969         iconv_string_keeping_offsets): Remove declarations.
9970         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
9971         Don't include <iconv.h>, streq.h, xsize.h.
9972         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
9973         conversion.
9974         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
9975         <iconv.h>, streq.h, xsize.h.
9976         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
9977         conversion.
9978         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
9979         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
9980         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
9981         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
9982
9983 2008-05-10  Bruno Haible  <bruno@clisp.org>
9984
9985         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
9986         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
9987
9988         * modules/unilbrk/u32-width-linebreaks-tests: New file.
9989         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
9990
9991         * modules/unilbrk/u16-width-linebreaks-tests: New file.
9992         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
9993
9994         * modules/unilbrk/u8-width-linebreaks-tests: New file.
9995         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
9996
9997         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
9998         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
9999
10000         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
10001         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
10002
10003         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
10004         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
10005
10006         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
10007         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
10008
10009 2008-05-10  Bruno Haible  <bruno@clisp.org>
10010
10011         Split up 'linebreak' module.
10012         * lib/unilbrk.h: New file, based on lib/linebreak.h.
10013         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
10014         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
10015         modifications.
10016         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
10017         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
10018         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
10019         lib/linebreak.c.
10020         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
10021         lib/linebreak.c.
10022         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
10023         lib/linebreak.c.
10024         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
10025         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
10026         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
10027         lib/linebreak.c.
10028         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
10029         lib/linebreak.c.
10030         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
10031         lib/linebreak.c.
10032         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
10033         lib/linebreak.c.
10034         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
10035         lib/linebreak.c.
10036         * modules/unilbrk/base: New file.
10037         * modules/unilbrk/tables: New file.
10038         * modules/unilbrk/u8-possible-linebreaks: New file.
10039         * modules/unilbrk/u16-possible-linebreaks: New file.
10040         * modules/unilbrk/u32-possible-linebreaks: New file.
10041         * modules/unilbrk/ulc-common: New file.
10042         * modules/unilbrk/ulc-possible-linebreaks: New file.
10043         * modules/unilbrk/u8-width-linebreaks: New file.
10044         * modules/unilbrk/u16-width-linebreaks: New file.
10045         * modules/unilbrk/u32-width-linebreaks: New file.
10046         * modules/unilbrk/ulc-width-linebreaks: New file.
10047         * lib/linebreak.h: Remove file.
10048         * lib/linebreak.c: Remove file.
10049         * m4/linebreak.m4: Remove file.
10050         * modules/linebreak: Remove file.
10051         * NEWS: Mention the changes.
10052
10053 2008-05-09  Eric Blake  <ebb9@byu.net>
10054
10055         Add xmemdup0.
10056         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
10057         implementation.
10058         * lib/xmalloc.c (xmemdup0): New C implementation.
10059
10060 2008-05-08  Bruno Haible  <bruno@clisp.org>
10061
10062         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
10063
10064 2008-05-07  Eric Blake  <ebb9@byu.net>
10065
10066         Support cross-compilation of <wctype.h>.
10067         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
10068         AC_CACHE_CHECK.
10069
10070 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
10071
10072         * build-aux/vc-list-files: Add support for bzr.
10073
10074 2008-05-03  Jim Meyering  <meyering@redhat.com>
10075
10076         avoid failed assertion with tight malloc
10077         * tests/test-getndelim2.c: Correct an off-by-one assertion.
10078
10079 2008-05-03  Simon Josefsson  <simon@josefsson.org>
10080
10081         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
10082         are needed from arpa/inet.h.
10083         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
10084         Reported by Bruno Haible.
10085
10086 2008-05-02  Jim Meyering  <meyering@redhat.com>
10087
10088         avoid compilation error on FreeBSD 6
10089         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
10090
10091 2008-05-01  Jim Meyering  <meyering@redhat.com>
10092
10093         useless-if-before-free: correct --help's exit status description
10094         * build-aux/useless-if-before-free (usage): Like grep, exit 0
10095         for one or more matches, etc.  Reported by Bruno Haible.
10096
10097         vc-list-files: make the stand-alone gnulib test work
10098         * modules/vc-list-files-tests (configure.ac):
10099         Define and AC_SUBST abs_aux_dir.
10100         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
10101         $(abs_top_srcdir) to each script and having each of them
10102         duplicate the work of setting PATH, set PATH here, using
10103         the new variable, abs_aux_dir instead.
10104         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
10105         * tests/test-vc-list-files-git.sh: Likewise.
10106         Reported by Bruno Haible.
10107
10108 2008-05-01  Bruno Haible  <bruno@clisp.org>
10109
10110         * lib/getndelim2.c (getndelim2): Fix newsize computation during
10111         reallocation. Rename 'done' to 'found_delimiter'.
10112
10113 2008-05-01  Jim Meyering  <meyering@redhat.com>
10114
10115         vc-list-files: accommodate /bin/sh like the one from Solaris 10
10116         * build-aux/vc-list-files: Use `...`, not $(...).
10117
10118 2008-04-30  Jim Meyering  <meyering@redhat.com>
10119
10120         add tests for vc-list-files
10121         * modules/vc-list-files-tests: New module.
10122         * tests/test-vc-list-files-cvs.sh: New file.
10123         * tests/test-vc-list-files-git.sh: New file.
10124
10125         avoid a warning from gcc
10126         * lib/getndelim2.c (IF_LINT): Define.
10127         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
10128
10129         vc-list-files: work properly with build-aux/cvsu, too
10130         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
10131         to all cvs-based clauses.
10132
10133         vc-list-files: work properly in the CVS+awk case, too
10134         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
10135
10136         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
10137         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
10138         take more than one file argument, so .  Add quotes, just in case $dir
10139         ever contains a shell meta-character.  Prompted by Soren Hansen in
10140         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
10141
10142 2008-04-29  Eric Blake  <ebb9@byu.net>
10143
10144         Optimize getndelim2 to use block operations when possible.
10145         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
10146         freadseek, and memchr2.
10147         * lib/getndelim2.c (getndelim2): Use them for block reads.
10148
10149 2008-04-29  Bruno Haible  <bruno@clisp.org>
10150
10151         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
10152         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
10153         * modules/inet_ntop (Depends-on): Add extensions.
10154         * modules/inet_pton (Depends-on): Likewise.
10155         Reported by Simon Josefsson.
10156
10157 2008-04-29  Jim Meyering  <meyering@redhat.com>
10158
10159         When the is more than one match in a block, match all of them.
10160         * build-aux/useless-if-before-free: Iterate through each block
10161         until there are no more matches.
10162
10163         Fix broken useless-if-before-free script.
10164         * build-aux/useless-if-before-free: Fix typo: missing "?" after
10165         the expression to match cast of argument to free-like function.
10166
10167 2008-04-29  Eric Blake  <ebb9@byu.net>
10168
10169         Use new header.
10170         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
10171
10172 2008-04-29  Jim Meyering  <meyering@redhat.com>
10173
10174         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
10175         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
10176         by gnulib to exist and to declare e.g., inet_ntop.
10177         Don't include "inet_ntop.h", now removed.
10178
10179         * m4/arpa_inet_h.m4: Remove trailing blanks.
10180
10181 2008-04-29  Eric Blake  <ebb9@byu.net>
10182
10183         Silence valgrind on safe reads beyond potential array bounds.
10184         * lib/rawmemchr.valgrind: New file.
10185         * lib/strchrnul.valgrind: Likewise.
10186         * modules/rawmemchr (Files): Distribute new file.
10187         * modules/strchrnul (Files): Likewise.
10188         Suggested by Bruno Haible.
10189
10190 2008-04-29  Bruno Haible  <bruno@clisp.org>
10191
10192         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
10193         (inet_ntop, inet_pton): Change portability warning's wording.
10194         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
10195         Invoke gl_CHECK_NEXT_HEADERS.
10196         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
10197         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
10198         set ARPA_INET_H.
10199         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
10200         * modules/arpa_inet (Description): No longer only for systems that
10201         lack it.
10202         (Depends-on): Add include_next.
10203         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
10204         HAVE_ARPA_INET_H.
10205
10206 2008-04-29  Jim Meyering  <meyering@redhat.com>
10207
10208         * modules/mkdir (License): Re-license as LGPLv2+.
10209
10210 2008-04-29  Bruno Haible  <bruno@clisp.org>
10211
10212         * modules/rawmemchr (Maintainer): Set to Eric.
10213         * modules/strchrnul (Maintainer): Likewise.
10214
10215 2008-04-29  Simon Josefsson  <simon@josefsson.org>
10216
10217         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
10218         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
10219
10220         * modules/arpa_inet (arpa/inet.h): Use them.
10221
10222 2008-04-28  Eric Blake  <ebb9@byu.net>
10223
10224         Test getndelim2.
10225         * modules/getndelim2-tests: New file.
10226         * tests/test-getndelim2.c: Likewise.
10227         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
10228         stream.
10229         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
10230
10231         * MODULES.html.sh: Document new module.
10232
10233 2008-04-20  Bruno Haible  <bruno@clisp.org>
10234
10235         * lib/c-stack.c (die): Use raise.
10236         * modules/c-stack (Depends-on): Add raise.
10237
10238 2008-04-28  Bruno Haible  <bruno@clisp.org>
10239
10240         Expect rpmatch to be declared.
10241         * lib/yesno.c (rpmatch): Remove declaration.
10242
10243         Declare rpmatch.
10244         * lib/stdlib.in.h (rpmatch): New declaration.
10245         * lib/rpmatch.c: Include <stdlib.h> first.
10246         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
10247         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
10248         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
10249         HAVE_RPMATCH.
10250         * modules/rpmatch (Depends-on): Add stdlib, extensions.
10251         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
10252         (Include): Set to <stdlib.h>.
10253         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
10254         HAVE_RPMATCH.
10255         * NEWS: Document the change.
10256
10257 2008-04-28  Bruno Haible  <bruno@clisp.org>
10258
10259         Change rpmatch to use nl_langinfo when appropriate.
10260         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
10261         (N_): New macro.
10262         (localized_pattern): New function/macro.
10263         (try): Remove match, nomatch arguments. Copy the pattern into safe
10264         memory before caching it.
10265         (rpmatch): Use localized_pattern. Add translator comments.
10266         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
10267         Suggested by Eric Blake.
10268         * modules/rpmatch (Depends-on): Add stdbool.
10269
10270 2008-04-28  Eric Blake  <ebb9@byu.net>
10271
10272         Add rawmemchr module, matching glibc.
10273         * modules/string (Makefile.am): New indicator.
10274         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
10275         * lib/string.in.h (rawmemchr): Declare when appropriate.
10276         * modules/rawmemchr: New file.
10277         * m4/rawmemchr.m4: Likewise.
10278         * lib/rawmemchr.c: Likewise.
10279         * modules/rawmemchr-tests: Likewise.
10280         * tests/test-rawmemchr.c: Likewise.
10281         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
10282         module.
10283         * modules/strchrnul (Depends-on): Add rawmemchr.
10284         * lib/strchrnul.c (strchrnul): Optimize a corner case.
10285
10286         Whitespace cleanup.
10287         * tests/test-strchrnul.c: Reindent.
10288         * lib/strchrnul.c: Likewise.
10289
10290         Optimize and test strchrnul.
10291         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
10292         * modules/strchrnul-tests: New file.
10293         * tests/test-strchrnul.c: Likewise.
10294
10295         Remove intprops dependency.
10296         * modules/memchr (Depends-on): Remove intprops.
10297         * modules/memrchr (Depends-on): Likewise.
10298         * modules/memchr2 (Depends-on): Likewise.
10299         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
10300         * lib/memrchr.c (__memrchr): Likewise.
10301         * lib/memrchr2.c (memchr2): Likewise.
10302         Reported by Simon Josefsson.
10303
10304 2008-04-28  Simon Josefsson  <simon@josefsson.org>
10305
10306         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
10307         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10308
10309 2008-04-28  Simon Josefsson  <simon@josefsson.org>
10310
10311         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
10312
10313         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
10314
10315         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
10316
10317         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
10318         declarations.
10319         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
10320
10321         * m4/inet_pton.m4: Don't check for header files.
10322
10323         * m4/inet_ntop.m4: Don't check for header files.
10324
10325 2008-04-28  Simon Josefsson  <simon@josefsson.org>
10326
10327         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
10328         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
10329         trigger for cygwin).
10330         Reported by Bruno Haible  <bruno@clisp.org>.
10331
10332 2008-04-28  Bruno Haible  <bruno@clisp.org>
10333
10334         * doc/posix-functions/strdup.texi: Mention mingw problem.
10335
10336 2008-04-27  Bruno Haible  <bruno@clisp.org>
10337
10338         * modules/stat-time-tests (Depends-on): Add sleep.
10339         * tests/test-stat-time.c (force_unlink): New function.
10340         (cleanup): Use it.
10341         (test_mtime): Remove the ctime related tests.
10342         (test_ctime): New function, containing the ctime related tests.
10343         (main): Call test_ctime, except on native Windows platforms.
10344
10345 2008-04-27  Bruno Haible  <bruno@clisp.org>
10346
10347         * lib/rpmatch.c (rpmatch): Add some comments.
10348         Reported by James Youngman <jay@gnu.org>.
10349
10350 2008-04-27  Bruno Haible  <bruno@clisp.org>
10351
10352         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
10353         quiet NaNs.
10354
10355 2008-04-27  Bruno Haible  <bruno@clisp.org>
10356
10357         Make test-yesno.sh work on mingw.
10358         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
10359         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
10360         (main): Set stdin to binary mode.
10361         * modules/yesno-tests (Depends-on): Add binary-io.
10362
10363 2008-04-27  Bruno Haible  <bruno@clisp.org>
10364
10365         Fix 'isfinite' on x86, x86_64, ia64 platforms.
10366         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
10367         argument that lie outside the IEEE 854 domain.
10368         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
10369         (gl_ISFINITE): Use it.
10370         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
10371
10372 2008-04-27  Bruno Haible  <bruno@clisp.org>
10373
10374         Allow local renaming in config.h.
10375         * lib/memrchr.c (memrchr): Don't undefine outside libc.
10376
10377 2008-04-27  Bruno Haible  <bruno@clisp.org>
10378
10379         * lib/memchr.c (__memchr): Change type of 'i'.
10380         * lib/memchr2.c (memchr2): Likewise.
10381
10382 2008-04-26  Eric Blake  <ebb9@byu.net>
10383         and Bruno Haible  <bruno@clisp.org>
10384
10385         Optimize and test memrchr.
10386         * modules/memrchr (Depends-on): Add intprops.
10387         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
10388         * modules/memrchr-tests: New file.
10389         * tests/test-memrchr.c: New file.
10390
10391 2008-04-26  Bruno Haible  <bruno@clisp.org>
10392
10393         Add tentative support for DragonFly BSD.
10394         * lib/stdio-impl.h: Add macros for DragonFly BSD.
10395         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
10396         fp.
10397         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
10398         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
10399         * lib/fpurge.c (fpurge): Likewise.
10400         * lib/freadable.c (freaadable): Likewise.
10401         * lib/freadahead.c (freadahead): Likewise.
10402         * lib/freading.c (freading): Likewise.
10403         * lib/freadptr.c (freadptr): Likewise.
10404         * lib/freadseek.c (freadptrinc): Likewise.
10405         * lib/fseeko.c (fseeko): Likewise.
10406         * lib/fseterr.c (fseterr): Likewise.
10407         * lib/fwritable.c (fwritable): Likewise.
10408         * lib/fwriting.c (fwriting): Likewise.
10409
10410 2008-04-26  Bruno Haible  <bruno@clisp.org>
10411
10412         * lib/stdio-impl.h: New file.
10413         * lib/fbufmode.c: Include stdio-impl.h.
10414         (fbufmode): Use fp_, remove redundant #defines.
10415         * lib/fflush.c: Include stdio-impl.h.
10416         (clear_ungetc_buffer): Remove redundant #defines.
10417         * lib/fpurge.c: Include stdio-impl.h.
10418         (fpurge): Remove redundant #defines.
10419         * lib/freadable.c: Include stdio-impl.h.
10420         (freadable): Remove redundant #defines.
10421         * lib/freadahead.c: Include stdio-impl.h.
10422         (freadahead): Remove redundant #defines.
10423         * lib/freading.c: Include stdio-impl.h.
10424         (freading): Remove redundant #defines.
10425         * lib/freadptr.c: Include stdio-impl.h.
10426         (freadptr): Remove redundant #defines.
10427         * lib/freadseek.c: Include stdio-impl.h.
10428         (freadptrinc): Remove redundant #defines.
10429         * lib/fseeko.c: Include stdio-impl.h.
10430         (rpl_fseeko): Remove redundant #defines.
10431         * lib/fseterr.c: Include stdio-impl.h.
10432         (fseterr): Remove redundant #defines.
10433         * lib/fwritable.c: Include stdio-impl.h.
10434         (fwritable: Remove redundant #defines.
10435         * lib/fwriting.c: Include stdio-impl.h.
10436         (fwriting): Remove redundant #defines.
10437         * modules/fbufmode (Files): Add lib/stdio-impl.h.
10438         * modules/fflush (Files): Likewise.
10439         * modules/fpurge (Files): Likewise.
10440         * modules/freadable (Files): Likewise.
10441         * modules/freadahead (Files): Likewise.
10442         * modules/freading (Files): Likewise.
10443         * modules/freadptr (Files): Likewise.
10444         * modules/freadseek (Files): Likewise.
10445         * modules/fseeko (Files): Likewise.
10446         * modules/fseterr (Files): Likewise.
10447         * modules/fwritable (Files): Likewise.
10448         * modules/fwriting (Files): Likewise.
10449
10450 2008-04-26  Bruno Haible  <bruno@clisp.org>
10451
10452         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
10453         restore_seek_optimization, update_fpos_cache): New functions, extracted
10454         from rpl_fflush.
10455         (rpl_fflush): Use them.
10456         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
10457         (gl_REPLACE_FFLUSH): Use it.
10458
10459 2008-04-26  Bruno Haible  <bruno@clisp.org>
10460
10461         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
10462         on Solaris.
10463         * tests/test-xstrtoimax.sh: Likewise.
10464         * tests/test-xstrtoumax.sh: Likewise.
10465         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10466
10467 2008-04-26  Bruno Haible  <bruno@clisp.org>
10468
10469         * modules/memchr-tests: New file.
10470         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
10471
10472 2008-04-26  Eric Blake  <ebb9@byu.net>
10473             Bruno Haible  <bruno@clisp.org>
10474
10475         * lib/memchr.c: Include intprops.h.
10476         (__memchr): Optimize parallel detection of matching bytes. Rename local
10477         variables. Add explanatory comments.
10478
10479 2008-04-26  Bruno Haible  <bruno@clisp.org>
10480
10481         Fix module 'memchr', broken since 2000-10-28.
10482         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
10483
10484 2008-04-26  Bruno Haible  <bruno@clisp.org>
10485
10486         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
10487         comments.
10488
10489 2008-04-25  Eric Blake  <ebb9@byu.net>
10490
10491         Use native fstatat on cygwin 1.7.0.
10492         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
10493         first.
10494
10495 2008-04-23  Eric Blake  <ebb9@byu.net>
10496
10497         Improve memchr2 performance.
10498         * lib/memchr2.c (memchr2): Further optimize parallel detection of
10499         NUL bytes.
10500         * modules/memchr2 (Depends-on): Use intprops.h.
10501
10502 2008-04-23  Simon Josefsson  <simon@josefsson.org>
10503
10504         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
10505         an inline function instead of a CPP macro.  Patch by Ben Pfaff
10506         <blp@cs.stanford.edu>.
10507
10508 2008-04-23  Simon Josefsson  <simon@josefsson.org>
10509
10510         * lib/arpa_inet.in.h: New file.
10511
10512         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
10513         (Makefile.am): Sed in substitute header file.
10514
10515         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
10516         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
10517
10518         * modules/inet_ntop (configure.ac): Use
10519         gl_ARPA_INET_MODULE_INDICATOR.
10520
10521         * modules/inet_pton (configure.ac): Use
10522         gl_ARPA_INET_MODULE_INDICATOR.
10523
10524 2008-04-22  Jim Meyering  <meyering@redhat.com>
10525
10526         * modules/verify (License): Re-license as LGPLv2+.
10527
10528 2008-04-22  Simon Josefsson  <simon@josefsson.org>
10529
10530         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
10531         parameter to void* as per POSIX standard (MinGW uses char*).
10532
10533 2008-04-21  Bruno Haible  <bruno@clisp.org>
10534
10535         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
10536         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
10537         Define to replacements if REPLACE_ISWCNTRL is 1.
10538         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
10539         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
10540         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
10541         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
10542         what it fixes.
10543         * doc/posix-functions/iswalpha.texi: Likewise.
10544         * doc/posix-functions/iswblank.texi: Likewise.
10545         * doc/posix-functions/iswcntrl.texi: Likewise.
10546         * doc/posix-functions/iswdigit.texi: Likewise.
10547         * doc/posix-functions/iswgraph.texi: Likewise.
10548         * doc/posix-functions/iswlower.texi: Likewise.
10549         * doc/posix-functions/iswprint.texi: Likewise.
10550         * doc/posix-functions/iswpunct.texi: Likewise.
10551         * doc/posix-functions/iswspace.texi: Likewise.
10552         * doc/posix-functions/iswupper.texi: Likewise.
10553         * doc/posix-functions/iswxdigit.texi: Likewise.
10554         Reported by Alain Guibert.
10555
10556 2008-04-21  Bruno Haible  <bruno@clisp.org>
10557
10558         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
10559         Patch by Alain Guibert.
10560
10561 2008-04-21  Bruno Haible  <bruno@clisp.org>
10562
10563         Fix test failures on mingw.
10564         * tests/test-xstrtol.c (print_no_progname): New function.
10565         (main): Install it in error_print_progname hook.
10566         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
10567         * tests/test-xstrtoimax.sh: Likewise.
10568         * tests/test-xstrtoumax.sh: Likewise.
10569
10570 2008-04-21  Bruno Haible  <bruno@clisp.org>
10571
10572         Fix test failure on mingw.
10573         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
10574
10575 2008-04-21  Bruno Haible  <bruno@clisp.org>
10576
10577         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
10578         Actually assign a value.
10579
10580 2008-04-20  Bruno Haible  <bruno@clisp.org>
10581
10582         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
10583         take 2.
10584         * lib/canonicalize.c (canonicalize_file_name): Elide if the
10585         'canonicalize-lgpl' module is also used.
10586         * lib/canonicalize-lgpl.c: Undo last change.
10587         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
10588
10589 2008-04-20  Bruno Haible  <bruno@clisp.org>
10590
10591         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
10592         config.h. Provide _mkdir based fallback for mingw.
10593         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
10594         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
10595         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
10596         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
10597         rather than defining mkdir in config.h.
10598         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
10599         (gl_SYS_STAT_H_DEFAULTS): New macro.
10600         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
10601         HAVE_IO_H any more.
10602         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
10603         HAVE_DECL_MKDIR and HAVE_IO_H.
10604
10605 2008-04-20  Bruno Haible  <bruno@clisp.org>
10606
10607         * lib/isapipe.c: Port to native Windows platforms.
10608
10609 2008-04-20  Bruno Haible  <bruno@clisp.org>
10610
10611         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
10612
10613 2008-04-21  Eric Blake  <ebb9@byu.net>
10614
10615         Work around preprocessors that don't handle UINTMAX_MAX.
10616         * lib/memchr2.c (memchr2): Avoid embedded #if.
10617         Reported by Alain Guibert, fix suggested by Bruno Haible.
10618
10619 2008-04-21  Simon Josefsson  <simon@josefsson.org>
10620
10621         * doc/posix-functions/strftime.texi (strftime): Explain better
10622         Windows incompatibility.  Suggested by Micah Cowan
10623         <micah@cowan.name>.
10624
10625 2008-04-20  Bruno Haible  <bruno@clisp.org>
10626
10627         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
10628         unistr/u8-mblen.
10629
10630 2008-04-20  Bruno Haible  <bruno@clisp.org>
10631
10632         Fix test failure on platforms with non-GNU iconv.
10633         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
10634         (U_TO_U8): Use it, rather than u16_to_u8.
10635         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
10636         units at the end of the input string.
10637         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
10638
10639 2008-04-20  Bruno Haible  <bruno@clisp.org>
10640
10641         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
10642         when the resulting length is 0.
10643         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
10644
10645 2008-04-20  Bruno Haible  <bruno@clisp.org>
10646
10647         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
10648         works.
10649         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
10650
10651 2008-04-20  Bruno Haible  <bruno@clisp.org>
10652
10653         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
10654         * modules/tsearch-tests (configure.ac): Test for initstate function.
10655
10656 2008-04-20  Bruno Haible  <bruno@clisp.org>
10657
10658         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
10659         for nlink_t if missing.
10660         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
10661
10662 2008-04-19  Bruno Haible  <bruno@clisp.org>
10663
10664         Work around snprintf bug on Linux libc5.
10665         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
10666         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
10667         gl_SNPRINTF_SIZE1.
10668         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10669         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
10670         that test failed.
10671         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
10672         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
10673         * modules/snprintf (Files): Add m4/printf.m4.
10674         * modules/vsnprintf (Files): Likewise.
10675         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
10676         * doc/posix-functions/vsnprintf.texi: Likewise.
10677
10678 2008-04-19  Bruno Haible  <bruno@clisp.org>
10679
10680         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
10681         from 0.0058 to less than 10^-7.
10682
10683 2008-04-19  Bruno Haible  <bruno@clisp.org>
10684
10685         Fix rounding when a precision is given.
10686         * lib/vasnprintf.c (is_borderline): New function.
10687         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
10688         9...9x.
10689         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
10690         %e, %g.
10691         * tests/test-vasprintf-posix.c (test_function): Likewise.
10692         * tests/test-snprintf-posix.h (test_function): Likewise.
10693         * tests/test-sprintf-posix.h (test_function): Likewise.
10694         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
10695         * tests/test-printf-posix.h (test_function): Likewise.
10696         * tests/test-printf-posix.output: Update.
10697         Reported by John Darrington <john@darrington.wattle.id.au> via
10698         Ben Pfaff <blp@cs.stanford.edu>.
10699
10700 2008-04-18  Simon Josefsson  <simon@josefsson.org>
10701
10702         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
10703         Suggested by Bruno Haible <bruno@clisp.org>.
10704
10705 2008-04-17  Bruno Haible  <bruno@clisp.org>
10706
10707         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
10708         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
10709         implementation.
10710         Patch by Bruce Merry <bmerry@gmail.com>.
10711
10712 2008-04-17  Simon Josefsson  <simon@josefsson.org>
10713
10714         * doc/posix-functions/strftime.texi (strftime): Mention that %e
10715         doesn't work under Windows.
10716
10717 2008-04-16  Bruno Haible  <bruno@clisp.org>
10718
10719         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
10720         New macros.
10721         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
10722         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
10723         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
10724         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
10725         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
10726         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
10727         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
10728         macros.
10729         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
10730         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
10731         Northern Sotho, Uighur.
10732
10733 2008-04-16  Bruno Haible  <bruno@clisp.org>
10734
10735         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
10736         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
10737         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
10738         Reported by Daniel Bergström <daniel@octocode.com>.
10739
10740 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
10741             Bruno Haible  <bruno@clisp.org>
10742
10743         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
10744         function.
10745         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
10746         New functions, mostly extracted from gl_locale_name_default.
10747         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
10748
10749 2008-04-16  Eric Blake  <ebb9@byu.net>
10750
10751         Adjust strtod detection to catch glibc 2.7 bug.
10752         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
10753         Reported by John Gatewood Ham.
10754
10755 2008-04-16  Bruno Haible  <bruno@clisp.org>
10756
10757         Add tentative support for Linux libc5.
10758         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
10759         * lib/fpurge.c (fpurge): Likewise.
10760         * lib/freadable.c (freadable): Likewise.
10761         * lib/freadahead.c (freadahead): Likewise.
10762         * lib/freading.c (freading): Likewise.
10763         * lib/freadptr.c (freadptr): Likewise.
10764         * lib/freadseek.c (freadptrinc): Likewise.
10765         * lib/fseeko.c (rpl_fseeko): Likewise.
10766         * lib/fseterr.c (fseterr): Likewise.
10767         * lib/fwritable.c (fwritable): Likewise.
10768         * lib/fwriting.c (fwriting): Likewise.
10769         Reported by Alain Guibert <alguibert+bts@free.fr>.
10770
10771 2008-04-15  Bruno Haible  <bruno@clisp.org>
10772
10773         * modules/mathl (configure.ac): Define module indicator.
10774
10775 2008-04-15  Bruno Haible  <bruno@clisp.org>
10776
10777         * lib/logl.c (logl): Remove unused variables.
10778
10779 2008-04-15  Bruno Haible  <bruno@clisp.org>
10780
10781         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
10782         fails.
10783
10784 2008-04-15  Bruno Haible  <bruno@clisp.org>
10785
10786         * lib/trim.c (trim2): Fix argument of isspace() macro.
10787
10788 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
10789
10790         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
10791         to 0.
10792         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
10793
10794 2008-04-14  Bruno Haible  <bruno@clisp.org>
10795
10796         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
10797         AC_LANG_PROGRAM argument.
10798         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
10799         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
10800         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10801         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
10802         * m4/math_h.m4 (gl_MATH_H): Likewise.
10803         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
10804         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10805         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
10806         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
10807         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
10808         * m4/regex.m4 (gl_REGEX): Likewise.
10809         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
10810         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
10811         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10812         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
10813         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
10814         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
10815         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10816         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
10817
10818 2008-04-14  Jim Meyering  <meyering@redhat.com>
10819
10820         test-strtod: fix typos: s/abs/fabs/
10821         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
10822
10823 2008-04-13  Bruno Haible  <bruno@clisp.org>
10824
10825         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
10826         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
10827         module is also used and while not building the reloc-wrapper.
10828
10829 2008-04-13  Bruno Haible  <bruno@clisp.org>
10830
10831         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
10832
10833 2008-04-13  Bruno Haible  <bruno@clisp.org>
10834
10835         Fix AIX compilation failure introduced on 2008-04-02.
10836         * tests/test-frexp.c (exp): Undefine before redefining.
10837         * tests/test-frexpl.c (exp): Likewise.
10838
10839 2008-04-13  Bruno Haible  <bruno@clisp.org>
10840
10841         Work around a HP-UX stdio bug.
10842         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
10843         * tests/test-ftello.c (main): Likewise.
10844         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
10845         * doc/posix-functions/ftello.texi: Likewise.
10846
10847 2008-04-13  Bruno Haible  <bruno@clisp.org>
10848
10849         Make test-signbit pass on HP-UX/hppa.
10850         * tests/test-signbit.c (minus_zerol): New variable.
10851         (test_signbitl): Use it.
10852
10853 2008-04-13  Bruno Haible  <bruno@clisp.org>
10854
10855         Make truncl work on OSF/1 4.0.
10856         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
10857         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
10858         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
10859         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
10860         HAVE_DECL_TRUNCL.
10861         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
10862         HAVE_DECL_TRUNCL.
10863         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
10864
10865 2008-04-13  Bruno Haible  <bruno@clisp.org>
10866
10867         * lib/unictype.h: Remove trailing comma from enumeration definitions.
10868
10869 2008-04-13  Bruno Haible  <bruno@clisp.org>
10870
10871         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
10872         expression, so as to avoid HP-UX 11 cc compiler bug.
10873
10874 2008-04-13  Bruno Haible  <bruno@clisp.org>
10875
10876         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
10877
10878 2008-04-13  Bruno Haible  <bruno@clisp.org>
10879
10880         * lib/git-merge-changelog.c: Remove empty declaration outside of
10881         functions.
10882
10883 2008-04-13  Bruno Haible  <bruno@clisp.org>
10884
10885         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
10886
10887 2008-04-13  Bruno Haible  <bruno@clisp.org>
10888
10889         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
10890         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
10891         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
10892         also if it exists but lacks definitions of the SHUT_* macros.
10893         * modules/sys_socket (Description): Update.
10894         Reported by Elbert Pol <e.pol@chello.nl>.
10895
10896 2008-04-13  Bruno Haible  <bruno@clisp.org>
10897
10898         * lib/localcharset.c (OS2): Don't redefine if already defined.
10899         Reported by Elbert Pol <e.pol@chello.nl>.
10900
10901 2008-04-13  Bruno Haible  <bruno@clisp.org>
10902
10903         * lib/binary-io.h [__EMX__]: Include <io.h>.
10904         Reported by Elbert Pol <e.pol@chello.nl>.
10905
10906 2008-04-12  Bruno Haible  <bruno@clisp.org>
10907
10908         * lib/fpucw.h: Enable the definitions also for x86_64.
10909         Needed for NetBSD/x86_64.
10910         Reported by Thomas Klausner <tk@giga.or.at>.
10911
10912 2008-04-12  Bruno Haible  <bruno@clisp.org>
10913
10914         * tests/test-strtod.c: Include isnand.h.
10915         (main): Use isnand instead of isnan.
10916         Reported by Jim Meyering.
10917
10918 2008-04-12  Bruno Haible  <bruno@clisp.org>
10919
10920         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
10921         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
10922
10923 2008-04-12  Jim Meyering  <meyering@redhat.com>
10924
10925         * m4/math_h.m4 (gl_MATH_H): Fix typos.
10926
10927 2008-04-12  Bruno Haible  <bruno@clisp.org>
10928
10929         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
10930         Reported by Elbert Pol <e.pol@chello.nl>.
10931
10932 2008-04-12  Eric Blake  <ebb9@byu.net>
10933
10934         Work around Solaris 10 math.h bug.
10935         * m4/math_h.m4 (gl_MATH_H): Check for bug.
10936         (gl_MATH_H_DEFAULTS): Set up default.
10937         * modules/math (Makefile.am): Replace new indicators.
10938         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
10939         * tests/test-math.c (main): Test this.
10940         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
10941         * doc/posix-headers/math.texi (math.h): Mention bug.
10942         Reported by Nelson H. F. Beebe and Jim Meyering.
10943
10944 2008-04-11  Bruno Haible  <bruno@clisp.org>
10945
10946         Adapt to future versions of Apple GCC.
10947         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
10948         Reported by Peter O'Gorman <peter@pogma.com>.
10949
10950 2008-04-11  Bruno Haible  <bruno@clisp.org>
10951
10952         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
10953
10954 2008-04-11  Bruno Haible  <bruno@clisp.org>
10955
10956         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
10957
10958         * modules/getaddrinfo-tests (Makefile.am): Define
10959         test_getaddrinfo_LDADD.
10960
10961 2008-04-11  Bruno Haible  <bruno@clisp.org>
10962
10963         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
10964         (init): Fix syntax error.
10965         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
10966         is declared.
10967
10968 2008-04-11  Bruno Haible  <bruno@clisp.org>
10969
10970         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
10971         * modules/glob (Depends-on): Add stdbool.
10972
10973 2008-04-11  Bruno Haible  <bruno@clisp.org>
10974
10975         * lib/trim.c: Include <string.h>.
10976
10977 2008-04-11  Eric Blake  <ebb9@byu.net>
10978
10979         Avoid compile failure on OS/2.
10980         * lib/regex_internal.h (internal_function): Disable optimization
10981         on OS/2 (__EMX__), where it caused compiler error.
10982         Reported by Elbert Pol.
10983
10984 2008-04-11  Bruno Haible  <bruno@clisp.org>
10985
10986         Flush the standard error stream before aborting. Needed on mingw.
10987         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
10988         * tests/test-array_list.c (ASSERT): Likewise.
10989         * tests/test-array_oset.c (ASSERT): Likewise.
10990         * tests/test-avltree_list.c (ASSERT): Likewise.
10991         * tests/test-avltree_oset.c (ASSERT): Likewise.
10992         * tests/test-avltreehash_list.c (ASSERT): Likewise.
10993         * tests/test-binary-io.c (ASSERT): Likewise.
10994         * tests/test-byteswap.c (ASSERT): Likewise.
10995         * tests/test-c-ctype.c (ASSERT): Likewise.
10996         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
10997         * tests/test-c-strcasestr.c (ASSERT): Likewise.
10998         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
10999         * tests/test-c-strstr.c (ASSERT): Likewise.
11000         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
11001         * tests/test-canonicalize.c (ASSERT): Likewise.
11002         * tests/test-carray_list.c (ASSERT): Likewise.
11003         * tests/test-ceilf1.c (ASSERT): Likewise.
11004         * tests/test-ceilf2.c (ASSERT): Likewise.
11005         * tests/test-ceill.c (ASSERT): Likewise.
11006         * tests/test-count-one-bits.c (ASSERT): Likewise.
11007         * tests/test-fbufmode.c (ASSERT): Likewise.
11008         * tests/test-fflush2.c (ASSERT): Likewise.
11009         * tests/test-floorf1.c (ASSERT): Likewise.
11010         * tests/test-floorf2.c (ASSERT): Likewise.
11011         * tests/test-floorl.c (ASSERT): Likewise.
11012         * tests/test-fopen.c (ASSERT): Likewise.
11013         * tests/test-fpending.c (ASSERT): Likewise.
11014         * tests/test-fprintf-posix.c (ASSERT): Likewise.
11015         * tests/test-fpurge.c (ASSERT): Likewise.
11016         * tests/test-freadable.c (ASSERT): Likewise.
11017         * tests/test-freadahead.c (ASSERT): Likewise.
11018         * tests/test-freading.c (ASSERT): Likewise.
11019         * tests/test-freadptr.c (ASSERT): Likewise.
11020         * tests/test-freadptr2.c (ASSERT): Likewise.
11021         * tests/test-freadseek.c (ASSERT): Likewise.
11022         * tests/test-freopen.c (ASSERT): Likewise.
11023         * tests/test-frexp.c (ASSERT): Likewise.
11024         * tests/test-frexpl.c (ASSERT): Likewise.
11025         * tests/test-fseek.c (ASSERT): Likewise.
11026         * tests/test-fseeko.c (ASSERT): Likewise.
11027         * tests/test-fstrcmp.c (ASSERT): Likewise.
11028         * tests/test-ftell.c (ASSERT): Likewise.
11029         * tests/test-ftello.c (ASSERT): Likewise.
11030         * tests/test-func.c (ASSERT): Likewise.
11031         * tests/test-fwritable.c (ASSERT): Likewise.
11032         * tests/test-fwriting.c (ASSERT): Likewise.
11033         * tests/test-getdelim.c (ASSERT): Likewise.
11034         * tests/test-getline.c (ASSERT): Likewise.
11035         * tests/test-i-ring.c (ASSERT): Likewise.
11036         * tests/test-iconv-utf.c (ASSERT): Likewise.
11037         * tests/test-iconv.c (ASSERT): Likewise.
11038         * tests/test-isfinite.c (ASSERT): Likewise.
11039         * tests/test-isnand.c (ASSERT): Likewise.
11040         * tests/test-isnanf.c (ASSERT): Likewise.
11041         * tests/test-isnanl.h (ASSERT): Likewise.
11042         * tests/test-ldexpl.c (ASSERT): Likewise.
11043         * tests/test-linked_list.c (ASSERT): Likewise.
11044         * tests/test-linkedhash_list.c (ASSERT): Likewise.
11045         * tests/test-localename.c (ASSERT): Likewise.
11046         * tests/test-lseek.c (ASSERT): Likewise.
11047         * tests/test-mbscasecmp.c (ASSERT): Likewise.
11048         * tests/test-mbscasestr1.c (ASSERT): Likewise.
11049         * tests/test-mbscasestr2.c (ASSERT): Likewise.
11050         * tests/test-mbscasestr3.c (ASSERT): Likewise.
11051         * tests/test-mbscasestr4.c (ASSERT): Likewise.
11052         * tests/test-mbschr.c (ASSERT): Likewise.
11053         * tests/test-mbscspn.c (ASSERT): Likewise.
11054         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
11055         * tests/test-mbspbrk.c (ASSERT): Likewise.
11056         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
11057         * tests/test-mbsrchr.c (ASSERT): Likewise.
11058         * tests/test-mbsspn.c (ASSERT): Likewise.
11059         * tests/test-mbsstr1.c (ASSERT): Likewise.
11060         * tests/test-mbsstr2.c (ASSERT): Likewise.
11061         * tests/test-mbsstr3.c (ASSERT): Likewise.
11062         * tests/test-memchr2.c (ASSERT): Likewise.
11063         * tests/test-memmem.c (ASSERT): Likewise.
11064         * tests/test-open.c (ASSERT): Likewise.
11065         * tests/test-printf-frexp.c (ASSERT): Likewise.
11066         * tests/test-printf-frexpl.c (ASSERT): Likewise.
11067         * tests/test-printf-posix.c (ASSERT): Likewise.
11068         * tests/test-quotearg.c (ASSERT): Likewise.
11069         * tests/test-rbtree_list.c (ASSERT): Likewise.
11070         * tests/test-rbtree_oset.c (ASSERT): Likewise.
11071         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
11072         * tests/test-round1.c (ASSERT): Likewise.
11073         * tests/test-roundf1.c (ASSERT): Likewise.
11074         * tests/test-roundl.c (ASSERT): Likewise.
11075         * tests/test-signbit.c (ASSERT): Likewise.
11076         * tests/test-sleep.c (ASSERT): Likewise.
11077         * tests/test-snprintf-posix.c (ASSERT): Likewise.
11078         * tests/test-snprintf.c (ASSERT): Likewise.
11079         * tests/test-sprintf-posix.c (ASSERT): Likewise.
11080         * tests/test-stat-time.c (ASSERT): Likewise.
11081         * tests/test-strcasestr.c (ASSERT): Likewise.
11082         * tests/test-strerror.c (ASSERT): Likewise.
11083         * tests/test-striconv.c (ASSERT): Likewise.
11084         * tests/test-striconveh.c (ASSERT): Likewise.
11085         * tests/test-striconveha.c (ASSERT): Likewise.
11086         * tests/test-strsignal.c (ASSERT): Likewise.
11087         * tests/test-strstr.c (ASSERT): Likewise.
11088         * tests/test-strtod.c (ASSERT): Likewise.
11089         * tests/test-trunc1.c (ASSERT): Likewise.
11090         * tests/test-trunc2.c (ASSERT): Likewise.
11091         * tests/test-truncf1.c (ASSERT): Likewise.
11092         * tests/test-truncf2.c (ASSERT): Likewise.
11093         * tests/test-truncl.c (ASSERT): Likewise.
11094         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
11095         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
11096         * tests/test-vasnprintf.c (ASSERT): Likewise.
11097         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
11098         * tests/test-vasprintf.c (ASSERT): Likewise.
11099         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
11100         * tests/test-vprintf-posix.c (ASSERT): Likewise.
11101         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
11102         * tests/test-vsnprintf.c (ASSERT): Likewise.
11103         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
11104         * tests/test-wcwidth.c (ASSERT): Likewise.
11105         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
11106         * tests/test-xprintf-posix.c (ASSERT): Likewise.
11107         * tests/test-xvasprintf.c (ASSERT): Likewise.
11108         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
11109         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
11110         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
11111         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
11112         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
11113         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
11114         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
11115         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
11116         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
11117         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
11118         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
11119         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
11120         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
11121         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
11122         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
11123         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
11124         * tests/unictype/test-block_list.c (ASSERT): Likewise.
11125         * tests/unictype/test-block_of.c (ASSERT): Likewise.
11126         * tests/unictype/test-block_test.c (ASSERT): Likewise.
11127         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
11128         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
11129         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
11130         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
11131         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
11132         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
11133         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
11134         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
11135         * tests/unictype/test-combining.c (ASSERT): Likewise.
11136         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
11137         * tests/unictype/test-digit.c (ASSERT): Likewise.
11138         * tests/unictype/test-mirror.c (ASSERT): Likewise.
11139         * tests/unictype/test-numeric.c (ASSERT): Likewise.
11140         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
11141         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
11142         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
11143         * tests/unictype/test-scripts.c (ASSERT): Likewise.
11144         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
11145         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
11146         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
11147         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
11148         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
11149         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
11150         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
11151         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
11152         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
11153         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
11154         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
11155         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
11156         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
11157         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
11158         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
11159         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
11160         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
11161         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
11162         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
11163         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
11164         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
11165         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
11166         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
11167         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
11168         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
11169         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
11170         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
11171         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
11172         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
11173         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
11174         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
11175         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
11176         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
11177         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
11178         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
11179         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
11180         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
11181         Reported by Eric Blake.
11182
11183 2008-04-11  Bruno Haible  <bruno@clisp.org>
11184
11185         * lib/wchar.in.h: Tweak comment.
11186
11187 2008-04-11  Bruno Haible  <bruno@clisp.org>
11188
11189         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
11190         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
11191         gl_COMMON.
11192         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
11193
11194 2008-04-11  Bruno Haible  <bruno@clisp.org>
11195
11196         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
11197
11198 2008-04-11  Simon Josefsson  <simon@josefsson.org>
11199
11200         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
11201         of attempting to use non-existing /dev/*random.  Based on patch
11202         from Adam Strzelecki <ono@java.pl> in
11203         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
11204
11205 2008-04-08  Bruno Haible  <bruno@clisp.org>
11206
11207         Add tentative support for emx+gcc.
11208         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
11209         * lib/fpurge.c (fpurge): Likewise.
11210         * lib/freadable.c (freadable): Likewise.
11211         * lib/freadahead.c (freadahead): Likewise.
11212         * lib/freading.c (freading): Likewise.
11213         * lib/freadptr.c (freadptr): Likewise.
11214         * lib/freadseek.c (freadptrinc): Likewise.
11215         * lib/fseeko.c (rpl_fseeko): Likewise.
11216         * lib/fseterr.c (fseterr): Likewise.
11217         * lib/fwritable.c (fwritable): Likewise.
11218         * lib/fwriting.c (fwriting): Likewise.
11219         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
11220
11221 2008-04-09  Eric Blake  <ebb9@byu.net>
11222
11223         Avoid some autoconf warnings.
11224         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
11225         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
11226         * m4/afs.m4 (gl_AFS): Likewise.
11227         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
11228         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
11229         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
11230         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
11231         (gl_INTEGER_TYPE_SUFFIX): Likewise.
11232         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
11233         (AC_CHECK_DECLS_ONCE): Likewise.
11234         Rename file...
11235         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
11236         gnulib-tool requires autoconf 2.59 or better.
11237         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
11238
11239 2008-04-08  Eric Blake  <ebb9@byu.net>
11240
11241         Use 'git describe --match' if present (added in git 1.5.5).
11242         * build-aux/git-version-gen: Limit result to tags that match 'v*'
11243         if possible.
11244
11245 2008-04-08  Bruno Haible  <bruno@clisp.org>
11246
11247         Add tentative support for OpenServer.
11248         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
11249         _ptr, _cnt.
11250         * lib/fpurge.c (fpurge): Likewise.
11251         * lib/freadable.c (freadable): Likewise.
11252         * lib/freadahead.c (freadahead): Likewise.
11253         * lib/freading.c (freading): Likewise.
11254         * lib/freadptr.c (freadptr): Likewise.
11255         * lib/freadseek.c (freadptrinc): Likewise.
11256         * lib/fseeko.c (rpl_fseeko): Likewise.
11257         * lib/fseterr.c (fseterr): Likewise.
11258         * lib/fwritable.c (fwritable): Likewise.
11259         * lib/fwriting.c (fwriting): Likewise.
11260         Reported by Roger Cornelius <rac@tenzing.org> and
11261         Brian K. White <brian@aljex.com>.
11262
11263 2008-04-06  Jim Meyering  <meyering@redhat.com>
11264
11265         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
11266
11267 2008-04-06  Bruno Haible  <bruno@clisp.org>
11268
11269         Avoid possible error with non-ASCII bytes in UTF-8 locales.
11270         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
11271         * tests/test-printf-posix.sh: Likewise.
11272         * tests/test-vfprintf-posix.sh: Likewise.
11273         * tests/test-vprintf-posix.sh: Likewise.
11274         * tests/test-xprintf-posix.sh: Likewise.
11275
11276 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11277
11278         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
11279         hide error from 'ls', needed on OS/2.
11280         Report by Elbert Pol <elbert.pol@gmail.com>.
11281
11282 2008-04-04  Eric Blake  <ebb9@byu.net>
11283
11284         Make test-fseeko.c failures meaningful.
11285         * tests/test-fseeko.c: Print line number on failure.
11286         * tests/test-fseek.c: Likewise.
11287         Reported by Nelson H. F. Beebe.
11288
11289         Improve strtod bug detection check.
11290         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
11291         required for Solaris 10.
11292         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
11293
11294 2008-04-04  Bruno Haible  <bruno@clisp.org>
11295
11296         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
11297         by m4/setenv.m4.
11298
11299 2008-04-03  Eric Blake  <ebb9@byu.net>
11300
11301         Ensure sane .version contents.
11302         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
11303         version string.
11304         * build-aux/git-version-gen: Improve documentation.
11305
11306         Make GNU make output nicer.
11307         * top/GNUmakefile [!_have-Makefile]: Add dependency on
11308         MAKECMDGOALS to enforce message for all command line targets.  Set
11309         srcdir for use in maint.mk.
11310
11311         Another maintainer tweak.
11312         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
11313         a target that regenerates version.
11314
11315 2008-04-03  Jim Meyering  <meyering@redhat.com>
11316
11317         vc-list-files: don't cause coreutils "make po-check" failure
11318         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
11319
11320 2008-04-03  Eric Blake  <ebb9@byu.net>
11321
11322         Allow VPATH usage of vc-list-files.
11323         * build-aux/vc-list-files (scriptversion): Add timestamp.
11324         (options): Add --help, --version, -C.
11325         (CVS): Support installed cvsu.
11326
11327 2008-04-02  Bruno Haible  <bruno@clisp.org>
11328
11329         Avoid some "statement with no effect" warnings from gcc.
11330         * tests/test-wctype.c (main): Explicitly ignore unused values.
11331         Reported by Jim Meyering.
11332
11333 2008-04-02  Jim Meyering  <meyering@redhat.com>
11334
11335         Avoid some warnings from "gcc -Wshadow".
11336         * tests/test-frexp.c (exp): Define to a different identifier.
11337         * tests/test-frexpl.c (exp): Likewise.
11338
11339 2008-04-03  Jim Meyering  <meyering@redhat.com>
11340
11341         bootstrap: remove dangling *.[ch] symlinks from lib
11342         * build-aux/bootstrap [dangling symlink removal]: Move find's
11343         -depth option to precede all others, to avoid a warning.
11344         Remove *.[ch] files too, and from "$source_base" (usually lib/).
11345
11346 2008-04-02  Bruno Haible  <bruno@clisp.org>
11347
11348         Avoid some warnings from "gcc -Wshadow".
11349         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
11350         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
11351         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
11352         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
11353         Reported by Jim Meyering.
11354
11355 2008-04-01  Bruno Haible  <bruno@clisp.org>
11356
11357         Fix test to work on IRIX 6.5 with cc.
11358         * tests/test-math.c (numeric_equal): New function.
11359         (main): Use it.
11360
11361 2008-04-01  Bruno Haible  <bruno@clisp.org>
11362
11363         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
11364
11365 2008-04-01  Bruno Haible  <bruno@clisp.org>
11366
11367         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
11368         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
11369         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
11370         (Depends-on): Remove math.
11371
11372         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
11373         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
11374         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
11375         (Depends-on): Remove math.
11376
11377         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
11378         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
11379         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
11380         (Depends-on): Remove math.
11381         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
11382         (Depends-on): Remove math.
11383
11384         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
11385         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
11386         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
11387         (Depends-on): Remove math.
11388         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
11389         (Depends-on): Remove math.
11390
11391         * tests/test-round1.c: Include nan.h.
11392         (main): Use NaNd instead of NAN.
11393         * modules/round-tests (Files): Add tests/nan.h.
11394
11395         * tests/test-trunc1.c: Include nan.h.
11396         (main): Use NaNd instead of NAN.
11397         * modules/trunc-tests (Files): Add tests/nan.h.
11398
11399         * tests/test-roundf1.c: Include nan.h.
11400         (main): Use NaNf instead of NAN.
11401         * modules/roundf-tests (Files): Add tests/nan.h.
11402
11403         * tests/test-truncf1.c: Include nan.h.
11404         (main): Use NaNf instead of NAN.
11405         * modules/truncf-tests (Files): Add tests/nan.h.
11406
11407         * tests/test-ceilf1.c: Include nan.h.
11408         (main): Use NaNf instead of NAN.
11409         * modules/ceilf-tests (Files): Add tests/nan.h.
11410
11411         * tests/test-floorf1.c: Include nan.h.
11412         (main): Use NaNf instead of NAN.
11413         * modules/floorf-tests (Files): Add tests/nan.h.
11414
11415         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
11416         (main): Use NaNf instead of NAN.
11417         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
11418
11419         * tests/test-isnand.c: Include nan.h instead of <math.h>.
11420         (main): Use NaNd instead of NAN.
11421         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
11422
11423         * tests/test-frexp.c: Include nan.h.
11424         (main): Use NaNd instead of NAN.
11425         * modules/frexp-tests (Files): Add tests/nan.h.
11426
11427         * lib/isnan.c: Don't include <math.h>.
11428         (FUNC): Don't use NAN macro.
11429         * modules/isnand-nolibm (Depends-on): Remove math.
11430         * modules/isnanf-nolibm (Depends-on): Remove math.
11431         * modules/isnanl (Depends-on): Remove math.
11432         * modules/isnanl-nolibm (Depends-on): Remove math.
11433
11434         * tests/nan.h: New file.
11435
11436 2008-04-01  Eric Blake  <ebb9@byu.net>
11437
11438         Fix typos.
11439         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
11440         values to be the right type.
11441
11442         For now, cater to gnulib strtod inaccuracies.
11443         * tests/test-strtod.c (main): Allow 1-ulp error on expected
11444         fractional results.  While not as nice from a QoI perspective, it
11445         is a quicker patch than correctly implementing decimal to binary
11446         rounding.
11447
11448 2008-03-31  Eric Blake  <ebb9@byu.net>
11449
11450         Guarantee a definition of NAN.
11451         * lib/math.in.h (NAN): Define if missing.
11452         * tests/test-math.c (main): Test it.
11453         * doc/posix-headers/math.texi (math.h): Document this.
11454         * lib/isnan.c (rpl_isnand): Use it.
11455         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
11456         * tests/test-floorf1.c (NaN): Likewise.
11457         * tests/test-frexp.c (NaN): Likewise.
11458         * tests/test-isnand.c (NaN): Likewise.
11459         * tests/test-isnanf.c (NaN): Likewise.
11460         * tests/test-round1.c (NaN): Likewise.
11461         * tests/test-roundf1.c (NaN): Likewise.
11462         * tests/test-snprintf-posix.h (NaN): Likewise.
11463         * tests/test-sprintf-posix.h (NaN): Likewise.
11464         * tests/test-trunc1.c (NaN): Likewise.
11465         * tests/test-truncf1.c (NaN): Likewise.
11466         * tests/test-vasnprintf-posix.c (NaN): Likewise.
11467         * tests/test-vasprintf-posix.c (NaN): Likewise.
11468         * modules/isnand-nolibm (Depends-on): Add math.
11469         * modules/isnanf-nolibm (Depends-on): Likewise.
11470         * modules/isnanl (Depends-on): Likewise.
11471         * modules/isnanl-nolibm (Depends-on): Likewise.
11472         * modules/snprintf-posix-tests (Depends-on): Likewise.
11473         * modules/sprintf-posix-tests (Depends-on): Likewise.
11474         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
11475         * modules/vsprintf-posix-tests (Depends-on): Likewise.
11476         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
11477         * modules/vasprintf-posix-tests (Depends-on): Likewise.
11478
11479 2008-03-31  Bruno Haible  <bruno@clisp.org>
11480
11481         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
11482         * doc/posix-functions/strtod.texi: Likewise.
11483
11484 2008-03-31  Bruno Haible  <bruno@clisp.org>
11485
11486         * tests/test-strtod.c (main): Don't use C99 syntax.
11487
11488 2008-03-31  Bruno Haible  <bruno@clisp.org>
11489
11490         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
11491         Reported by Eric Blake.
11492
11493 2008-03-31  Jim Meyering  <meyering@redhat.com>
11494
11495         Don't compare actual signbit return values.
11496         * tests/test-strtod.c (main): Rather, compare only their
11497         zero/non-zero nature.
11498
11499 2008-03-31  Eric Blake  <ebb9@byu.net>
11500
11501         More strtod documentation.
11502         * doc/posix-functions/strtod.texi (strtod): Interpret more test
11503         failures as distinct bugs.
11504
11505 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
11506
11507         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
11508         Problem reported by Erik Benada in
11509         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
11510
11511 2008-03-30  Bruno Haible  <bruno@clisp.org>
11512
11513         * tests/test-strtod.c: Add comments about which assertion fails on which
11514         platform.
11515         * doc/posix-functions/strtod.texi: Add info about many more platforms.
11516
11517 2008-03-30  Eric Blake  <ebb9@byu.net>
11518
11519         Test signbit behavior on zeros.
11520         * tests/test-signbit.c (test_signbitf): Add tests for zero.
11521         (test_signbitd, test_signbitl): Likewise.
11522
11523         More strtod touchups.
11524         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
11525         sign of negative underflow, for now.  Use .5, not .1.
11526         * doc/posix-functions/strtod.texi (strtod): Mention these
11527         limitations.
11528         Reported by Jim Meyering.
11529
11530 2008-03-30  Bruno Haible  <bruno@clisp.org>
11531
11532         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
11533         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
11534
11535 2008-03-30  Bruno Haible  <bruno@clisp.org>
11536
11537         Avoid failure when attempting to return empty iconv results on some
11538         platforms.
11539         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
11540         allocation, don't report ENOMEM when the resulting string is empty.
11541
11542 2008-03-30  Bruno Haible  <bruno@clisp.org>
11543
11544         Fix buffer overrun.
11545         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
11546         Don't consider the width for tmp_length. Check count against tmp_length
11547         before doing the padding. Ensure enough allocation during padding.
11548
11549 2008-03-30  Eric Blake  <ebb9@byu.net>
11550
11551         strtod touchups.
11552         * lib/strtod.c (strtod): Avoid compiler warnings.
11553         Reported by Jim Meyering.
11554
11555 2008-03-30  Bruno Haible  <bruno@clisp.org>
11556
11557         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
11558         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
11559         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
11560         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
11561         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
11562         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
11563         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
11564         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
11565
11566         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
11567         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
11568         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
11569         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
11570         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
11571         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
11572         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
11573         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
11574
11575         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
11576         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
11577         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
11578         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
11579         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
11580         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
11581         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
11582         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
11583
11584         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
11585         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
11586
11587         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
11588         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
11589
11590         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
11591         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
11592
11593         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
11594         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
11595         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
11596
11597         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
11598         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
11599         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
11600
11601         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
11602         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
11603         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
11604
11605         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
11606         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
11607         * modules/vasprintf (Depends-on): Add EOVERFLOW.
11608
11609         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
11610         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
11611         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
11612         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
11613         (Depends-on): Add EOVERFLOW.
11614         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
11615         (Depends-on): Add EOVERFLOW.
11616         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
11617         (Depends-on): Add EOVERFLOW.
11618         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
11619         (Depends-on): Add EOVERFLOW.
11620         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
11621         (Depends-on): Add EOVERFLOW.
11622         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
11623         (Depends-on): Add EOVERFLOW.
11624         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
11625         (Depends-on): Add EOVERFLOW.
11626         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
11627         (Depends-on): Add EOVERFLOW.
11628
11629         * lib/sprintf.c (EOVERFLOW): Remove fallback.
11630         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
11631         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
11632
11633         * lib/snprintf.c (EOVERFLOW): Remove fallback.
11634         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
11635         * modules/snprintf (Depends-on): Add EOVERFLOW.
11636
11637         * lib/poll.c (EOVERFLOW): Remove fallback.
11638         * modules/poll (Depends-on): Add EOVERFLOW.
11639
11640         * lib/getugroups.c (EOVERFLOW): Remove fallback.
11641         * modules/getugroups (Depends-on): Add EOVERFLOW.
11642
11643         * lib/getdelim.c (EOVERFLOW): Remove fallback.
11644         * modules/getdelim (Depends-on): Add EOVERFLOW.
11645
11646         * lib/ftell.c (EOVERFLOW): Remove fallback.
11647         * modules/ftell (Depends-on): Add EOVERFLOW.
11648
11649         * lib/fprintf.c (EOVERFLOW): Remove fallback.
11650         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
11651         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
11652
11653         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
11654
11655         * modules/EOVERFLOW-tests: New file.
11656         * tests/test-EOVERFLOW.c: New file.
11657
11658         * modules/EOVERFLOW: New file.
11659         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
11660
11661 2008-03-30  Bruno Haible  <bruno@clisp.org>
11662
11663         Fix bug introduced on 2007-06-10.
11664         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
11665         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
11666
11667 2008-03-30  Bruno Haible  <bruno@clisp.org>
11668
11669         Improve freadseek's efficiency after ungetc.
11670         * lib/freadseek.c: Include freadahead.h.
11671         (freadptrinc): New function, extracted from freadseek.
11672         (freadseek): Use it in a loop. Use freadahead to determine the number
11673         of loop iterations.
11674         * modules/freadseek (Depends-on): Add freadahead.
11675         (configure.ac): Require AC_C_INLINE.
11676
11677 2008-03-30  Bruno Haible  <bruno@clisp.org>
11678
11679         * lib/freadseek.c (freadseek): Don't ignore the return value of
11680         freadptr.
11681
11682 2008-03-29  Eric Blake  <ebb9@byu.net>
11683
11684         Add hex float support.
11685         * modules/strtod (Depends-on): Add c-ctype.
11686         (Link): Mention POW_LIB.
11687         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
11688         whitespace between 'e' and exponent.
11689         * tests/test-strtod.c (main): Enable hex float tests.
11690         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
11691         now provides.
11692
11693         Document various strtod bugs, with some fixes.
11694         * doc/posix-functions/strtod.texi (strtod): Document bugs with
11695         "-0x", "inf", "nan", and hex constants.
11696         * doc/posix-functions/atof.texi (atof): Likewise.
11697         * modules/stdlib (Makefile.am): Support strtod.
11698         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
11699         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
11700         detect additional strtod bugs.
11701         * lib/stdlib.in.h (rpl_strtod): Add declarations.
11702         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
11703         bool where appropriate.  Parse 'inf' and 'nan'.
11704         * tests/test-strtod.c: New file.
11705         * modules/strtod (Depends-on): Add stdbool, stdlib.
11706         (configure.ac): Turn on module indicator.
11707         * modules/strtod-tests: New module.
11708
11709 2008-03-29  Eric Blake  <ebb9@byu.net>
11710
11711         Fix ftell on mingw.
11712         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
11713         * modules/ftell-tests (Depends-on): Add binary-io.
11714         * modules/ftello-tests (Depends-on): Likewise.
11715         * tests/test-ftell.c (main): Enhance test to cover behavior after
11716         ungetc.  Enforce binary mode.
11717         * tests/test-ftello.c (main): Likewise.
11718
11719         Pass test-freadseek on cygwin.
11720         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
11721         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
11722         ungetc buffer.
11723
11724         * tests/test-fflush2.c (main): Fix typo.
11725
11726 2008-03-29  Bruno Haible  <bruno@clisp.org>
11727
11728         * tests/test-fflush2.c (main): Temporarily disable the contents of
11729         this test.
11730         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
11731         Reported by Eric Blake.
11732
11733 2008-03-28  Simon Josefsson  <simon@josefsson.org>
11734
11735         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
11736         (GC_SHA224_DIGEST_SIZE): Add.
11737
11738         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
11739         (gc_hash_digest_length): Likewise.
11740         (gc_hash_buffer): Likewise.
11741
11742 2008-03-25  Bruno Haible  <bruno@clisp.org>
11743
11744         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
11745         detail which gettext release to use.
11746         Reported by Simon Josefsson.
11747
11748 2008-03-26  Jim Meyering  <meyering@redhat.com>
11749
11750         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
11751         * modules/gnumakefile (clean-GNUmakefile): Also, use
11752         test ... && ... || : syntax rather than if-then ... fi.
11753
11754         gnumakefile: Don't double-quote-expand $(VPATH) value.
11755         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
11756
11757 2008-03-24  Eric Blake  <ebb9@byu.net>
11758
11759         Alter GNUmakefile to install into top directory.
11760         * modules/maintainer-makefile: Split, and add dependency...
11761         * modules/gnumakefile: to this new module.
11762         * build-aux/GNUmakefile: Move...
11763         * top/GNUmakefile: ...here.
11764         * build-aux/maint.mk: Move...
11765         * top/maint.mk: ...here.
11766         * MODULES.html.sh (Support for maintaining...): Document new
11767         module.
11768
11769 2008-03-23  Bruno Haible  <bruno@clisp.org>
11770
11771         * gnulib-tool: New options --vc-files, --no-vc-files.
11772         (func_usage): Document them.
11773         (vc_files): New variable.
11774         (func_import): Consider vc_files.
11775         (func_create_testdir): Set vc_files to empty.
11776         Suggested by Jim Meyering and Karl Berry.
11777
11778 2008-03-23  Bruno Haible  <bruno@clisp.org>
11779
11780         Fix regex compilation error on HP-UX 11.
11781         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
11782         * modules/regex (Files): Add m4/mbstate_t.m4.
11783         Reported by Ton Voon <ton.voon@altinity.com>.
11784
11785 2008-03-23  Bruno Haible  <bruno@clisp.org>
11786
11787         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
11788
11789 2008-03-23  Eric Blake  <ebb9@byu.net>
11790             Bruno Haible  <bruno@clisp.org>
11791
11792         Install files from top/ in the destination directory.
11793         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
11794         augmentation also for the files from top/.
11795         (func_import, func_create_testdir): Rewrite file names:
11796         top/filename -> filename.
11797
11798 2008-03-23  Bruno Haible  <bruno@clisp.org>
11799
11800         Tweak "gnulib --version" output.
11801         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
11802
11803 2008-03-23  Bruno Haible  <bruno@clisp.org>
11804
11805         Tweak "gnulib --version" output.
11806         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
11807         rather than contents of ChangeLog, when possible.
11808
11809 2008-03-21  Eric Blake  <ebb9@byu.net>
11810
11811         More --version tweaks.
11812         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
11813         date of last ChangeLog entry.
11814
11815 2008-03-21  Jim Meyering  <meyering@redhat.com>
11816
11817         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
11818
11819 2008-03-20  Eric Blake  <ebb9@byu.net>
11820
11821         VPATH fix.
11822         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
11823
11824 2008-03-20  Simon Josefsson  <simon@josefsson.org>
11825
11826         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
11827         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
11828
11829 2008-03-20  Eric Blake  <ebb9@byu.net>
11830
11831         Sync GNUmakefile with coreutils.
11832         * build-aux/GNUmakefile (have-Makefile): Rename...
11833         (_have-Makefile): ...to this, for namespace consideration.
11834         (GNUmakefile.cfg): Include, if present.
11835         (_autoreconf): Define a default.
11836         (_is-dist-target): New rule for rebuilds to pick up intra-release
11837         version.
11838         (maint-cfg.mk): Rename...
11839         (cfg.mk): ...to this.
11840
11841 2008-03-18  Jim Meyering  <meyering@redhat.com>
11842
11843         New script and module: mktempd
11844         * MODULES.html.sh (maint+release support): Add mktempd.
11845         * build-aux/mktempd: New file.
11846         * modules/mktempd: New file.
11847
11848 2008-03-15  Jim Meyering  <meyering@redhat.com>
11849
11850         Undo last change.
11851         * lib/sha1.c, lib/md5.c: 63 != ~63.
11852         Reported by Andreas Schwab.
11853
11854         sha1.c, md5.c: Hoist a redundant expression.
11855         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
11856         "ctx->buflen" only once, before calling *_process_block.
11857         * lib/md5.c (md5_process_bytes): Likewise.
11858
11859 2008-03-14  Eric Blake  <ebb9@byu.net>
11860
11861         Bump copyright year in files generated by gnulib-tool.
11862         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
11863         gnulib-tool, rather than hard-coding it.
11864
11865         Fix 'gnulib-tool --version' output to work with git.
11866         * gnulib-tool (func_gnulib_dir): New function, extracted from...
11867         (startup): ...here.
11868         (func_version): Use it to invoke git-version-gen, rather than
11869         relying on CVS keyword expansion.  Modernize wording.
11870         (cvsdatestamp, last_checkin_date, version): Kill unused
11871         variables.
11872
11873 2008-03-12  Jim Meyering  <meyering@redhat.com>
11874
11875         Recognize optional cast of the argument to free.
11876         * build-aux/useless-if-before-free: Update regexps.
11877
11878         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
11879
11880 2008-03-11  Bruno Haible  <bruno@clisp.org>
11881
11882         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
11883         by a single package.
11884         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
11885         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
11886         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
11887         Reported by Sam Steingold <sds@gnu.org>.
11888
11889 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
11890
11891         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
11892         repositories.
11893
11894 2008-03-11  Bruno Haible  <bruno@clisp.org>
11895
11896         Avoid conflicts between local macro definitions.
11897         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
11898         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
11899
11900 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
11901             Bruno Haible  <bruno@clisp.org>
11902
11903         Make va_copy work with some version of xlc on AIX 5.1.
11904         * lib/stdarg.in.h: New file.
11905         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
11906         On AIX, use a <stdarg.h> file substitute.
11907         * modules/stdarg (Files): Add lib/stdarg.in.h.
11908         (Depends-on): Add include_next.
11909         (Makefile.am): Build a stdarg.h substitute if requested.
11910         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
11911
11912 2008-03-10  Bruno Haible  <bruno@clisp.org>
11913
11914         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
11915         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
11916         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
11917
11918 2008-03-10  Bruno Haible  <bruno@clisp.org>
11919
11920         * modules/stdlib (Depends-on): Add include_next, remove
11921         absolute-header.
11922
11923 2008-03-09  Bruno Haible  <bruno@clisp.org>
11924
11925         * lib/freadahead.h (freadahead): Document more precisely.
11926         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
11927         the sum of both buffer sizes.
11928         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
11929         * NEWS: Document the change.
11930
11931 2008-03-09  Bruno Haible  <bruno@clisp.org>
11932
11933         Extend freadptr to return also the buffer size.
11934         * lib/freadptr.h (freadptr): Add sizep argument.
11935         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
11936         (freadptr): Add sizep argument. Determine buffer size like freadahead
11937         does.
11938         * tests/test-freadptr.c: Don't include freadahead.h.
11939         (main): Adapt for new calling convention of freadptr.
11940         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
11941         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
11942         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
11943         tests/test-freadptr2.sh.
11944         (Depends): Remove freadahead.
11945         (TESTS): Add test-freadptr2.sh.
11946         (check_PROGRAMS): Add test-freadptr2.
11947
11948 2008-03-09  Bruno Haible  <bruno@clisp.org>
11949
11950         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
11951         Report and solution by Simon Josefsson.
11952
11953 2008-03-06  Bruno Haible  <bruno@clisp.org>
11954
11955         Make fflush after ungetc work on BSD platforms.
11956         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
11957         * tests/test-fflush2.c: New file.
11958         * tests/test-fflush2.sh: New file.
11959         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
11960         tests/test-fflush2.c.
11961         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
11962         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
11963
11964 2008-03-06  Eric Blake  <ebb9@byu.net>
11965
11966         Likewise for ftello.
11967         * modules/ftello (Dependencies): Add extensions.
11968         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
11969
11970 2008-03-06  Bruno Haible  <bruno@clisp.org>
11971
11972         * modules/fseeko (Dependencies): Add extensions.
11973         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
11974         Needed on glibc systems.
11975
11976 2008-03-06  Bruno Haible  <bruno@clisp.org>
11977
11978         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
11979         email address.
11980         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
11981
11982 2008-03-06  Bruno Haible  <bruno@clisp.org>
11983
11984         * users.txt: Add libgnupdf.
11985
11986 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
11987
11988         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
11989         (Header File Substitutes, Function Substitutes,
11990         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
11991         (Build robot for gnulib): Fix typo.
11992
11993 2008-03-06  Bruno Haible  <bruno@clisp.org>
11994
11995         * doc/gnulib-tool.texi (VCS Issues): Small updates.
11996         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
11997
11998 2008-03-06  Bruno Haible  <bruno@clisp.org>
11999
12000         * doc/func.texi: New file, extracted from doc/gnulib.texi.
12001         * doc/gnulib.texi: Include it.
12002
12003 2008-03-06  Simon Josefsson  <simon@josefsson.org>
12004
12005         * modules/func (License): Change license to unlimited; there was
12006         no LGPL parts in the module anyway.
12007
12008 2008-03-06  Simon Josefsson  <simon@josefsson.org>
12009
12010         * modules/__func__: Renamed to modules/func.
12011         * modules/__func__-tests: Renamed to modules/func-tests.
12012         * tests/test-__func__.c: Renamed to tests/test-func.c.
12013         * m4/__func__.m4: Renamed to m4/func.m4.
12014         * doc/gnulib.texi (__func__): Section renamed to func.
12015         Suggested by Eric Blake <ebb9@byu.net>.
12016
12017 2008-03-06  Simon Josefsson  <simon@josefsson.org>
12018
12019         * doc/gnulib.texi (__func__): Use C99 terminology when talking
12020         about __func__.  Make example self-contained.  Suggested by Eric
12021         Blake <ebb9@byu.net>.
12022
12023         * tests/test-__func__.c (main): Avoid extraneous () around __func.
12024         Suggested by Eric Blake <ebb9@byu.net>.
12025
12026 2008-03-06  Simon Josefsson  <simon@josefsson.org>
12027
12028         * modules/__func__: New file.
12029         * modules/__func__-tests: New file.
12030         * tests/test-__func__.c: New file.
12031         * m4/__func__.m4: New file.
12032         * doc/gnulib.texi (__func__): Document __func__ module.
12033
12034 2008-03-05  Simon Josefsson  <simon@josefsson.org>
12035
12036         * modules/byteswap (License): Re-license as LGPLv2+.
12037
12038 2008-03-05  Simon Josefsson  <simon@josefsson.org>
12039
12040         * doc/Makefile: Add pdf target.
12041
12042 2008-03-05  Simon Josefsson  <simon@josefsson.org>
12043
12044         * modules/inline (License): Use 'unlimited', since there are only
12045         *.m4 files in this module.
12046
12047 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
12048             Bruno Haible  <bruno@clisp.org>
12049
12050         Add support for HP C 7.1 on OpenVMS 8.3.
12051         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
12052
12053 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
12054
12055         Update VMS specifics.
12056         * lib/getopt.c [VMS]: Remove include of unixlib.h.
12057
12058 2008-03-02  Jim Meyering  <meyering@redhat.com>
12059
12060         Remove the last dependency on the "free" module.
12061         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
12062         Reported by Bob Proulx.
12063
12064         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
12065
12066         Remove useless "if" tests before free.  Deprecate "free" module.
12067         * doc/posix-functions/free.texi: Mention that this
12068         module is no longer useful.
12069         * modules/free (Notice): Say this module is obsolete.
12070         * modules/readutmp (Depends-on): Remove free.
12071         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
12072         * lib/putenv.c (putenv): Likewise.
12073         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
12074         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
12075         * tests/test-c-strcasestr.c (main): Likewise.
12076         * tests/test-c-strstr.c (main): Likewise.
12077         * tests/test-mbscasestr1.c (main): Likewise.
12078         * tests/test-mbscasestr2.c (main): Likewise.
12079         * tests/test-mbsstr1.c (main): Likewise.
12080         * tests/test-mbsstr2.c (main): Likewise.
12081         * tests/test-memmem.c (main): Likewise.
12082         * tests/test-strcasestr.c (main): Likewise.
12083         * tests/test-striconv.c (main): Likewise.
12084         * tests/test-striconveh.c (main): Likewise.
12085         * tests/test-striconveha.c (main): Likewise.
12086         * tests/test-strstr.c (main): Likewise.
12087
12088         * build-aux/git-version-gen: Adjust a comment and the Usage string.
12089
12090         bootstrap: sync from coreutils again
12091         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
12092
12093 2008-03-01  Jim Meyering  <meyering@redhat.com>
12094
12095         bootstrap: sync from coreutils
12096         * build-aux/bootstrap (update_po_files): Copy a .po file into place
12097         also when the target doesn't exist.
12098
12099 2008-03-01  Eric Blake  <ebb9@byu.net>
12100
12101         Fix bugs in last patch.
12102         * lib/memchr2.c (memchr2): Fix typo.
12103         * tests/test-memchr2.c: Test previous bug, and don't use GNU
12104         extension.
12105         Reported by Bruce Korb.
12106
12107         New module 'memchr2'.
12108         * modules/memchr2: New file.
12109         * modules/memchr2-tests: Likewise.
12110         * lib/memchr2.h: Likewise.
12111         * lib/memchr2.c: Likewise, based on memchr.c.
12112         * tests/test-memchr2.c: New test.
12113         * MODULES.html.sh (String handling): Add memchr2.
12114
12115 2008-02-29  Bruno Haible  <bruno@clisp.org>
12116
12117         * modules/freadseek-tests: New file.
12118         * tests/test-freadseek.sh: New file.
12119         * tests/test-freadseek.c: New file.
12120
12121         New module 'freadseek'.
12122         * modules/freadseek: New file.
12123         * lib/freadseek.h: New file.
12124         * lib/freadseek.c: New file.
12125         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
12126
12127 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
12128
12129         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
12130         wydawca.
12131
12132         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
12133         program_invocation_name and program_invocation_short_name are
12134         present.
12135
12136 2008-02-28  Bruno Haible  <bruno@clisp.org>
12137
12138         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
12139         * tests/test-freadptr.sh: Also test non-seekable stdin.
12140
12141 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
12142
12143         * build-aux/bootstrap (source_base, m4_base)
12144         (doc_base, tests_base): New variables.
12145         (gnulib_tool_options): Do not hardcode base directories, use
12146         the above variables instead.
12147
12148 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
12149
12150         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
12151
12152 2008-02-28  Bruno Haible  <bruno@clisp.org>
12153
12154         * modules/freadptr-tests: New file.
12155         * tests/test-freadptr.sh: New file.
12156         * tests/test-freadptr.c: New file.
12157
12158         New module 'freadptr'.
12159         * modules/freadptr: New file.
12160         * lib/freadptr.h: New file.
12161         * lib/freadptr.c: New file.
12162         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
12163
12164 2008-02-26  Karl Berry  <karl@freefriends.org>
12165
12166         Sync from Libtool:
12167         * libltdl/argz.c (argz_add, argz_count): New functions.
12168         * libltdl/argz.in.h: Declare them.
12169         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
12170
12171 2008-02-22  Bruno Haible  <bruno@clisp.org>
12172
12173         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
12174         is a pointer type.  Needed for HP-UX 10.
12175         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
12176         * doc/posix-functions/gmtime_r.texi: Likewise.
12177         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
12178
12179 2008-02-24  Bruno Haible  <bruno@clisp.org>
12180
12181         * modules/environ-tests: New file.
12182         * tests/test-environ.c: New file.
12183
12184         New module 'environ'.
12185         * modules/environ: New file.
12186         * lib/unistd.in.h (environ): New declaration.
12187         * m4/environ.m4: New file.
12188         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
12189         after use.
12190         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
12191         HAVE_DECL_ENVIRON.
12192         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
12193         HAVE_DECL_ENVIRON.
12194         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
12195         wrong claim that 'environ' is missing on some systems.
12196         * modules/execute (Depends-on): Add environ.
12197         * lib/execute.c (environ): Remove fallback declaration.
12198         * modules/pipe (Depends-on): Add environ.
12199         * lib/pipe.c (environ): Remove fallback declaration.
12200         * modules/setenv (Depends-on): Add environ.
12201         * lib/setenv.c (environ): Remove fallback declaration.
12202         * modules/unsetenv (Depends-on): Add environ.
12203         * lib/unsetenv.c (environ): Remove fallback declaration.
12204         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
12205         m4/environ.m4.
12206         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
12207         (gl_PREREQ_UNSETENV): Likewise.
12208
12209 2008-02-24  Bruno Haible  <bruno@clisp.org>
12210
12211         * doc/posix-functions/environ.texi: Document the MacOS X problem.
12212
12213 2008-02-20  Bob Proulx  <bob@proulx.com>
12214
12215         Enable use of older two part flavor 'git describe'.
12216         * build-aux/git-version-gen: If using the older two part flavor of
12217         git version then recreate the third part now present in the
12218         newer three part flavor of git describe.
12219
12220 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
12221
12222         * lib/fts.c (fts_build): Typo correction to comment.
12223
12224 2008-02-17  Bruno Haible  <bruno@clisp.org>
12225
12226         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
12227         generating no-op conflicts.
12228
12229 2008-02-17  Bruno Haible  <bruno@clisp.org>
12230
12231         Speed up by 10%.
12232         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
12233         result_entries, rather than an index-based loop.
12234
12235 2008-02-17  Bruno Haible  <bruno@clisp.org>
12236
12237         Speed up by 25%.
12238         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
12239         'hashcode_cached'.
12240         (entry_create): New function.
12241         (entry_hashcode): Use the cached hashcode if possible.
12242         (read_changelog_file, try_split_merged_entry): Use entry_create.
12243
12244 2008-02-17  Bruno Haible  <bruno@clisp.org>
12245
12246         Speed up from O(n^2) to O(n) for long ChangeLog files.
12247         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
12248         (read_changelog_file): Change implementation of entries_reversed list
12249         to rbtreehash.
12250         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
12251
12252 2008-02-17  Bruno Haible  <bruno@clisp.org>
12253
12254         New option --split-merged-entry.
12255         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
12256         (find_paragraph_end, try_split_merged_entry): New functions.
12257         (long_options): Add option --split-merged-entry.
12258         (usage): Document option --split-merged-entry.
12259         (main): Implement option --split-merged-entry.
12260         Reported by Eric Blake.
12261
12262 2008-02-17  Bruno Haible  <bruno@clisp.org>
12263
12264         * lib/git-merge-changelog.c: Include c-strstr.h.
12265         (main): Support the "git pull --rebase" situation.
12266         * modules/git-merge-changelog (Depends-on): Add c-strstr.
12267         Reported by Eric Blake.
12268
12269 2008-02-16  Eric Blake  <ebb9@byu.net>
12270
12271         Avoid doubling \ in common case of "c-maybe" quoting style.
12272         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
12273         eliding outer quotes.
12274         * lib/quotearg.h: Document this.
12275         * tests/test-quotearg.c (result_strings, inputs, results_g)
12276         (flag_results, locale_results): Test it by adding a new string to
12277         each test group.
12278         (compare_strings): Test new string.
12279
12280 2008-02-13  Eric Blake  <ebb9@byu.net>
12281
12282         Avoid trigraph quoting in default output.
12283         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
12284         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
12285         unless explicitly requested.
12286         * tests/test-quotearg.c (flag_results, main): Add additional tests.
12287
12288 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
12289
12290         Don't rely on signed integer overflowing to negative value.
12291         * lib/getugroups.c (getugroups): Include <limits.h>.
12292         Instead, compare against INT_MAX, and increment only if the test passes.
12293
12294 2008-02-13  Jim Meyering  <meyering@redhat.com>
12295         and Eric Blake  <ebb9@byu.net>
12296
12297         Avoid shadowing warning and compile errors on Linux.
12298         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
12299         forwarding macros on Linux.
12300         (dcgettext): Define a stub, for Linux.
12301         (results_g, main): Avoid warnings.
12302
12303 2008-02-12  Eric Blake  <ebb9@byu.net>
12304
12305         Silence warning in last patch.
12306         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
12307
12308         Quotearg part 4: add tests, fix c-maybe colon quoting.
12309         * lib/quotearg.h: Improve documentation.
12310         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
12311         escapes when adding outer quotes.  When quoting trigraphs, use
12312         valid C notation.  When quoting NUL, omit extra characters if next
12313         character is not digit.  Alter prototype.
12314         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
12315         callers.
12316         * modules/quotearg-tests: New module.
12317         * tests/test-quotearg.c: New test.
12318
12319 2008-02-07  Eric Blake  <ebb9@byu.net>
12320
12321         Quotearg part 3: add flag to control outer quote elision.
12322         * lib/quotearg.h (c_maybe_quoting_style): New style.
12323         (enum quoting_flags): Better documentation of flags.
12324         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
12325         c-maybe style.
12326         (quotearg_buffer_restyled): Handle new flag to elide outer
12327         quotes.
12328
12329         Quotearg part 2: add flag that can control NUL elision.
12330         * lib/quotearg.h (set_quoting_flags): New prototype.
12331         * lib/quotearg.c (struct quoting_options): Add flag field.
12332         (set_quoting_flags): New function.
12333         (quotearg_buffer_restyled): Add flags parameter.
12334         (quotearg_alloc_mem): Set the flag if length cannot be returned.
12335         (quotearg_n_options): Set the flag, since length cannot be
12336         returned.
12337         (quoting_options_from_style): Default flags correctly.
12338
12339         Quotearg part 1: more wrappers, restore quotearg_char state.
12340         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
12341         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
12342         (quotearg_colon_mem): New wrappers.
12343         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
12344         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
12345         functions.
12346         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
12347         (quotearg_colon_mem): New functions.
12348
12349 2008-02-11  Bruno Haible  <bruno@clisp.org>
12350
12351         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
12352         library in the current directory: it does not work with parallel make.
12353         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12354
12355 2008-02-11  Bruno Haible  <bruno@clisp.org>
12356
12357         * .gitattributes: New file.
12358
12359 2008-02-11  Jim Meyering  <meyering@redhat.com>
12360
12361         useless-if-before-free: Fix reversed exit values.
12362         * build-aux/useless-if-before-free: Use correct values
12363         for EXIT_MATCH and EXIT_NO_MATCH.
12364
12365         * build-aux/useless-if-before-free: Close stdout carefully.
12366
12367 2008-02-10  Bruno Haible  <bruno@clisp.org>
12368
12369         New module 'git-merge-changelog'.
12370         * modules/git-merge-changelog: New file.
12371         * lib/git-merge-changelog.c: New file.
12372
12373 2008-02-10  Jim Meyering  <meyering@redhat.com>
12374
12375         useless-if-before-free: New option: --list (-l).
12376
12377         useless-if-before-free: Don't exit immediately upon open failure.
12378         * build-aux/useless-if-before-free: Exit 2 for errors.
12379         Upon failure to open a file, don't exit immediately.
12380         Rather, just warn and continue with any remaining files.
12381
12382 2008-02-10  Bruno Haible  <bruno@clisp.org>
12383
12384         New abstract list operation 'node_set_value'.
12385         * lib/gl_list.h (gl_list_node_set_value): New function.
12386         (struct gl_list_implementation): New field node_set_value.
12387         * lib/gl_list.c (gl_list_node_set_value): New function.
12388         * lib/gl_array_list.c (gl_array_node_set_value): New function.
12389         (gl_array_list_implementation): Update.
12390         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
12391         (gl_carray_list_implementation): Update.
12392         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
12393         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
12394         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
12395         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
12396         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
12397         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
12398         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
12399         Update.
12400         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
12401         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
12402         (gl_sublist_list_implementation): Update.
12403
12404 2008-02-10  Bruno Haible  <bruno@clisp.org>
12405
12406         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
12407         Needed when ELEMENT is #defined to 'some_type *'.
12408
12409 2008-02-10  Jim Meyering  <meyering@redhat.com>
12410
12411         New script and module: useless-if-before-free
12412         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
12413         * build-aux/useless-if-before-free: New file.
12414         * modules/useless-if-before-free: New file.
12415
12416         * build-aux/gitlog-to-changelog: Use committer date, not author date.
12417
12418         xstrtol_error: Fix typo.
12419         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
12420         s/exit_failure/exit_status/.
12421
12422 2008-02-09  Jim Meyering  <meyering@redhat.com>
12423
12424         New script and module: gitlog-to-changelog
12425         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
12426         * modules/gitlog-to-changelog: New file.
12427         * build-aux/gitlog-to-changelog: New file.
12428
12429 2008-02-08  Jim Meyering  <meyering@redhat.com>
12430
12431         Avoid two "parameter unused" warnings.
12432         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
12433         Mark "st" as used.
12434
12435         Use "git COMMAND", not "git-COMMAND".
12436         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
12437         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
12438         * build-aux/git-version-gen: Use "git status", not "git-status".
12439
12440 2008-02-07  Bruno Haible  <bruno@clisp.org>
12441
12442         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
12443         Avoids a crash on Windows Vista.
12444         Reported by Adam Strzelecki <ono@java.pl> via
12445         Simon Josefsson <simon@josefsson.org>.
12446
12447 2008-02-06  Bruno Haible  <bruno@clisp.org>
12448
12449         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
12450         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
12451         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
12452         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
12453         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
12454         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12455         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
12456         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
12457         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12458         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12459         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12460         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12461         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12462         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12463         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12464         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
12465         left-adjust flag.
12466         * tests/test-snprintf-posix.h (test_function): Likewise.
12467         * tests/test-sprintf-posix.h (test_function): Likewise.
12468         * tests/test-vasprintf-posix.c (test_function): Likewise.
12469         * doc/posix-functions/fprintf.texi: Update.
12470         * doc/posix-functions/printf.texi: Update.
12471         * doc/posix-functions/snprintf.texi: Update.
12472         * doc/posix-functions/sprintf.texi: Update.
12473         * doc/posix-functions/vfprintf.texi: Update.
12474         * doc/posix-functions/vprintf.texi: Update.
12475         * doc/posix-functions/vsnprintf.texi: Update.
12476         * doc/posix-functions/vsprintf.texi: Update.
12477         Reported by Peter Fales <psfales@alcatel-lucent.com>.
12478
12479 2008-02-06  Bruno Haible  <bruno@clisp.org>
12480
12481         Fix bug introduced on 2008-01-26.
12482         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
12483
12484 2008-02-06  Bruno Haible  <bruno@clisp.org>
12485
12486         Fix bug introduced on 2007-06-10.
12487         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
12488         !NEED_PRINTF_FLAG_ZERO.
12489
12490 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
12491
12492         getloadavg: use libperfstat on AIX5
12493         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
12494
12495 2008-02-03  Bruno Haible  <bruno@clisp.org>
12496
12497         * lib/diffseq.h: Add comments about required #includes.
12498         Reported by Michael Biggs <gnulib@doubleplum.net>.
12499
12500 2008-02-01  Bruno Haible  <bruno@clisp.org>
12501
12502         * users.txt: Add gnuit.
12503
12504 2008-01-31  Bruno Haible  <bruno@clisp.org>
12505
12506         * lib/md4.c (set_uint32): Mark as inline.
12507         * lib/md5.c (set_uint32): Likewise.
12508         * lib/sha1.c (set_uint32): Likewise.
12509         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
12510         * m4/md5.m4 (gl_MD5): Likewise.
12511         * m4/sha1.m4 (gl_SHA1): Likewise.
12512
12513 2008-01-31  Jim Meyering  <meyering@redhat.com>
12514
12515         Use "sizeof VAR", rather than a literal "4".
12516         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
12517         * lib/md4.c (md4_read_ctx): Likewise.
12518         * lib/sha1.c (sha1_read_ctx): Likewise.
12519
12520 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12521
12522         * tests/test-sha1.c: New file, based on test-md5.c.
12523
12524         * modules/crypto/sha1-tests: New file.
12525
12526 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12527
12528         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
12529
12530 2008-01-31  Jim Meyering  <meyering@redhat.com>
12531
12532         Prefer "sizeof v" over the equivalent "4".
12533         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
12534         * lib/md5.c (set_uint32): Likewise.
12535         * lib/sha1.c (set_uint32): Likewise.
12536
12537 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12538
12539         * lib/sha1.c (set_uint32): Mark function as static.
12540
12541 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12542
12543         md2: clarify comments to say that alignment is not required.
12544         * lib/md2.h: Remove warning about alignment in comment.
12545         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
12546         never been required.
12547
12548 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12549
12550         md4: adapt alignment constraint fix from sha1.
12551         * lib/md4.c (set_uint32): New function, from sha1.c
12552         (md4_read_ctx): Use it.
12553         (md4_finish_ctx): Doc fix.
12554         * lib/md4.h: Doc fix.
12555
12556 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12557
12558         md5: adapt alignment constraint fix from sha1.
12559         * lib/md5.c (set_uint32): New function, from sha1.c
12560         (md5_read_ctx): Use it.
12561         (md5_finish_ctx): Doc fix.
12562         * lib/md5.h: Doc fix.
12563
12564 2008-01-30  Peter Palfrader  <weasel@debian.org>
12565
12566         sha1: remove the result buffer alignment constraint
12567         * lib/sha1.c (set_uint32): New function.
12568         (sha1_read_ctx): Rewrite to remove the result buffer alignment
12569         constraint.
12570         (sha1_finish_ctx): Remove comment warning about alignment constraint.
12571         * lib/sha1.h: Likewise.
12572
12573 2008-01-30  Andreas Schwab  <schwab@suse.de>
12574             Bruno Haible  <bruno@clisp.org>
12575
12576         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
12577         correct definition of LDBL_MIN_EXP.
12578
12579 2008-01-30  Karl Berry  <karl@gnu.org>
12580
12581         * config/srclist-update: try to preserve x bit on updates.
12582         * config/srclistvars.sh: update for karl.
12583
12584 2008-01-29  Jim Meyering  <meyering@redhat.com>
12585
12586         vasnprintf.c: Avoid warning about unused label
12587         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
12588         "overflow" label definition and associated code with the
12589         same cpp condition that guards the sole use of that label.
12590
12591 2008-01-26  Bruno Haible  <bruno@clisp.org>
12592
12593         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
12594         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
12595         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
12596         * lib/isnanl-nolibm.h (isnanl): Likewise.
12597         Reported by Paul Eggert <eggert@cs.ucla.edu>.
12598
12599 2008-01-26  Bruno Haible  <bruno@clisp.org>
12600
12601         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
12602         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
12603
12604 2008-01-26  Bruno Haible  <bruno@clisp.org>
12605
12606         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
12607         GCC >= 4.0 built-in.
12608         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
12609
12610 2008-01-26  Bruno Haible  <bruno@clisp.org>
12611
12612         Rename isnan, applicable to 'double' only, to isnand.
12613         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
12614         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
12615         (configure.ac): Update.
12616         (Include): Replace "isnan.h" with "isnand.h".
12617         * m4/isnand.m4: Renamed from m4/isnan.m4.
12618         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
12619         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
12620         instead of isnan.c.
12621         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
12622         instead of HAVE_ISNAN_IN_LIBC.
12623         (isnand): Renamed from isnan.
12624         * lib/isnand.c: New file.
12625         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
12626         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
12627         (Makefile.am): Update.
12628         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
12629         Include isnand.h instead of isnan.h.
12630         (main): Test isnand instead of isnan.
12631         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
12632         isnan-nolibm.
12633         * modules/frexp (Depends-on): Likewise.
12634         * modules/frexp-tests (Depends-on): Likewise.
12635         * modules/frexp-nolibm (Depends-on): Likewise.
12636         * modules/frexp-nolibm-tests (Depends-on): Likewise.
12637         * modules/isfinite (Depends-on): Likewise.
12638         * modules/round-tests (Depends-on): Likewise.
12639         * modules/signbit (Depends-on): Likewise.
12640         * modules/signbit-tests (Depends-on): Likewise.
12641         * modules/snprintf-posix (Depends-on): Likewise.
12642         * modules/sprintf-posix (Depends-on): Likewise.
12643         * modules/trunc-tests (Depends-on): Likewise.
12644         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
12645         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12646         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12647         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12648         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12649         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12650         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12651         * modules/vasnprintf-posix (Depends-on): Likewise.
12652         * modules/vasprintf-posix (Depends-on): Likewise.
12653         * modules/vfprintf-posix (Depends-on): Likewise.
12654         * modules/vsnprintf-posix (Depends-on): Likewise.
12655         * modules/vsprintf-posix (Depends-on): Likewise.
12656         * lib/frexp.c: Include isnand.h instead of isnan.h.
12657         (ISNAN): Set to isnand instead of isnan.
12658         * lib/isfinite.c: Include isnand.h instead of isnan.h.
12659         (gl_isfinited): Use isnand instead of isnan.
12660         * lib/signbitd.c: Include isnand.h instead of isnan.h.
12661         (gl_signbitd): Use isnand instead of isnan.
12662         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
12663         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
12664         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
12665         (main): Use isnand instead of isnan.
12666         * tests/test-round1.c: Include isnand.h.
12667         (main): Use isnand instead of isnan.
12668         * tests/test-round2.c: Include isnand.h instead of isnan.h.
12669         (ISNAN): Set to isnand instead of isnan.
12670         * tests/test-trunc1.c: Include isnand.h.
12671         (main): Use isnand instead of isnan.
12672         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
12673         (equal): Use isnand instead of isnan.
12674         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
12675         isnand-nolibm.
12676         * NEWS: Mention the change.
12677
12678 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
12679             Bruno Haible  <bruno@clisp.org>
12680
12681         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
12682         the GCC builtins for signbits are present and set
12683         REPLACE_SIGNBIT_USING_GCC if so.
12684         * lib/math.in.h (signbit): Define using GCC builtins if
12685         REPLACE_SIGNBIT_USING_GCC is set.
12686         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
12687         REPLACE_SIGNBIT_USING_GCC.
12688         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
12689
12690 2008-01-25  Jim Meyering  <meyering@redhat.com>
12691
12692         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
12693         * lib/poll.c: Include <config.h>, not "config.h".
12694         * tests/test-getaddrinfo.c: Likewise.
12695
12696 2008-01-25  Simon Josefsson  <simon@josefsson.org>
12697
12698         * modules/sockets-tests: New file.
12699
12700 2008-01-24  Simon Josefsson  <simon@josefsson.org>
12701
12702         * modules/sockets: New module, can be used to call WSA_Startup and
12703         WSA_Cleanup when needed.
12704
12705         * lib/sockets.h, lib/sockets.c: New files.
12706
12707         * m4/sockets.m4: New file.
12708
12709         * tests/test-sockets.c: New file.
12710
12711 2008-01-19  Bruno Haible  <bruno@clisp.org>
12712
12713         * doc/posix-headers: Renamed from doc/headers.
12714         * doc/posix-functions: Renamed from doc/functions.
12715         * doc/gnulib.texi: Update.
12716
12717 2008-01-19  Bruno Haible  <bruno@clisp.org>
12718
12719         * doc/glibc-functions/strcasestr.texi: Include contents of
12720         doc/functions/strcasestr.texi, fixing the list of platforms.
12721         * doc/functions/strcasestr.texi: Remove file.
12722
12723 2008-01-19  Bruno Haible  <bruno@clisp.org>
12724
12725         * doc/glibc-functions/memmem.texi: Include contents of
12726         doc/functions/memmem.texi.
12727         * doc/functions/memmem.texi: Remove file.
12728
12729 2008-01-18  Bruno Haible  <bruno@clisp.org>
12730
12731         * doc/glibc-functions/*.texi: New files.
12732         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
12733         to use the new files.
12734
12735 2008-01-17  Bruno Haible  <bruno@clisp.org>
12736
12737         * tests/test-gethostname.c (main): Fix printf statement.
12738
12739 2008-01-17  Simon Josefsson  <simon@josefsson.org>
12740
12741         * modules/gethostname-tests: New file.
12742
12743         * tests/test-gethostname.c: New file.
12744
12745 2008-01-17  Simon Josefsson  <simon@josefsson.org>
12746
12747         * lib/gethostname.c: Include string.h unconditionally, strncpy is
12748         used by the UNAME case.  Reported by Bruno Haible
12749         <bruno@clisp.org>.
12750
12751 2008-01-17  Eric Blake  <ebb9@byu.net>
12752
12753         Convert c-strcasestr to be more efficient.
12754         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
12755         (Depends-on): Add c-strcase, remove malloca, strnlen.
12756         * tests/test-c-strcasestr.c (main): Enhance test.
12757         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
12758
12759 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
12760
12761         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
12762         Use it in creating po/Makevars.
12763
12764 2008-01-15  Simon Josefsson  <simon@josefsson.org>
12765
12766         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
12767         Applications that requires it should initialize libgcrypt
12768         manually.
12769
12770 2008-01-16  Simon Josefsson  <simon@josefsson.org>
12771
12772         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
12773
12774 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
12775
12776         Fix problem with getdate on mingw32 reported by Simon Josefsson
12777         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
12778         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
12779         tzname", when deciding whether to declare tzname.
12780         * lib/strftime.c (tzname): Likewise.
12781
12782 2008-01-15  Bruno Haible  <bruno@clisp.org>
12783
12784         Work around a MacOS X 10.5 bug in frexpl().
12785         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
12786         * doc/functions/frexpl.texi: Document the bug.
12787         Reported by Elias Pipping <pipping@gentoo.org>.
12788
12789 2008-01-14  Eric Blake  <ebb9@byu.net>
12790
12791         Touch up previous patch.
12792         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
12793         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
12794
12795         Convert strcasestr module to use Two-Way algorithm.
12796         * modules/strcasestr-simple: New module, based on the old
12797         strcasestr, but with Two-Way rather than KMP.
12798         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
12799         * lib/string.in.h (rpl_strcasestr): Declare.
12800         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
12801         performance.
12802         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
12803         * modules/string (Makefile.am): Support strcasestr.
12804         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
12805         * modules/strcasestr-tests (Depends-on): Check for alarm.
12806         * tests/test-strcasestr.c: Augment test.
12807         * lib/str-two-way.h: Clean up stray macro.
12808         * NEWS: Document new module.
12809         * MODULES.html.sh (string handling): Likewise.
12810         * doc/functions/strcasestr.texi: New file.
12811         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
12812         here, since it is not a POSIX function.
12813
12814 2008-01-14  Colin Watson  <cjwatson@debian.org>
12815             Bruno Haible  <bruno@clisp.org>
12816
12817         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
12818         works fine; if not, set REPLACE_STRSIGNAL.
12819         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
12820         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12821         REPLACE_STRSIGNAL.
12822         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
12823         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
12824         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
12825
12826 2008-01-14  Bruno Haible  <bruno@clisp.org>
12827
12828         * modules/strsignal (Include): Change to <string.h>.
12829
12830 2008-01-14  Colin Watson  <cjwatson@debian.org>
12831
12832         * modules/argp (Notice): Add a notice recommending to change
12833         XGETTEXT_OPTIONS.
12834         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
12835
12836 2008-01-13  Colin Watson  <cjwatson@debian.org>
12837
12838         * modules/strsignal-tests: New file.
12839         * tests/test-strsignal.c: New file.
12840
12841         * lib/strsignal.c: New file, from glibc with modifications.
12842         * lib/siglist.h: New file, from glibc with modifications.
12843         * lib/string.in.h (strsignal): New declaration.
12844         * m4/strsignal.m4: New file.
12845         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12846         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
12847         * modules/strsignal: New file.
12848         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
12849         HAVE_DECL_STRSIGNAL.
12850
12851 2008-01-13  Bruno Haible  <bruno@clisp.org>
12852
12853         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
12854         locale encoding is not ASCII. Needed for OpenBSD 4.0.
12855         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
12856         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
12857
12858 2008-01-13  Bruno Haible  <bruno@clisp.org>
12859
12860         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
12861         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
12862         * lib/argp.h (__attribute__): Likewise.
12863         * lib/c-stack.c (__attribute__): Likewise.
12864         * lib/error.h (__attribute__): Likewise.
12865         * lib/fts.c (__attribute__): Likewise.
12866         * lib/openat.h (__attribute__): Likewise.
12867         * lib/stdio.in.h (__attribute__): Likewise.
12868         * lib/string.in.h (__attribute__): Likewise.
12869         * lib/utimens.c (__attribute__): Likewise.
12870         * lib/vasnprintf.h (__attribute__): Likewise.
12871         * lib/xalloc.h (__attribute__): Likewise.
12872         * lib/xprintf.h (__attribute__): Likewise.
12873         * lib/xstrtol.h (__attribute__): Likewise.
12874         * lib/xvasprintf.h (__attribute__): Likewise.
12875
12876 2008-01-12  Bruno Haible  <bruno@clisp.org>
12877
12878         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
12879         * doc/glibc-headers/a.out.texi: New file.
12880         * doc/glibc-headers/aliases.texi: New file.
12881         * doc/glibc-headers/alloca.texi: New file.
12882         * doc/glibc-headers/ar.texi: New file.
12883         * doc/glibc-headers/argp.texi: New file.
12884         * doc/glibc-headers/argz.texi: New file.
12885         * doc/glibc-headers/byteswap.texi: New file.
12886         * doc/glibc-headers/crypt.texi: New file.
12887         * doc/glibc-headers/endian.texi: New file.
12888         * doc/glibc-headers/envz.texi: New file.
12889         * doc/glibc-headers/err.texi: New file.
12890         * doc/glibc-headers/error.texi: New file.
12891         * doc/glibc-headers/execinfo.texi: New file.
12892         * doc/glibc-headers/fpu_control.texi: New file.
12893         * doc/glibc-headers/fstab.texi: New file.
12894         * doc/glibc-headers/fts.texi: New file.
12895         * doc/glibc-headers/getopt.texi: New file.
12896         * doc/glibc-headers/ieee754.texi: New file.
12897         * doc/glibc-headers/ifaddrs.texi: New file.
12898         * doc/glibc-headers/libintl.texi: New file.
12899         * doc/glibc-headers/mcheck.texi: New file.
12900         * doc/glibc-headers/mntent.texi: New file.
12901         * doc/glibc-headers/obstack.texi: New file.
12902         * doc/glibc-headers/paths.texi: New file.
12903         * doc/glibc-headers/printf.texi: New file.
12904         * doc/glibc-headers/pty.texi: New file.
12905         * doc/glibc-headers/resolv.texi: New file.
12906         * doc/glibc-headers/shadow.texi: New file.
12907         * doc/glibc-headers/sysexits.texi: New file.
12908         * doc/glibc-headers/ttyent.texi: New file.
12909
12910 2008-01-12  Jim Meyering  <meyering@redhat.com>
12911
12912         announce-gen: emit Gnulib's git-based version string.
12913         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
12914         New option --gnulib-version=V, where V is expected to be
12915         the output of running git describe in the gnulib directory.
12916         (get_tool_versions): Request feedback on xdelta.  I suspect it's
12917         not useful, and plan to stop publishing an xdelta file with each
12918         coreutils release.
12919
12920         * build-aux/announce-gen: Also check for lzma-compressed files.
12921
12922 2008-01-11  Bruno Haible  <bruno@clisp.org>
12923
12924         * tests/test-memmem.c (main): Increase maximum allowed time.
12925         * tests/test-strstr.c (main): Likewise.
12926
12927 2008-01-11  Bruno Haible  <bruno@clisp.org>
12928
12929         * doc/functions/memmem.texi: Add more precisions about platforms.
12930         * doc/functions/strstr.texi: Likewise.
12931
12932 2008-01-10  Eric Blake  <ebb9@byu.net>
12933
12934         * m4/strstr.m4: Delete cruft from copy-n-paste.
12935         Reported by Bruno Haible.
12936
12937 2008-01-10  Bruno Haible  <bruno@clisp.org>
12938
12939         Make c-strstr rely on strstr.
12940         * lib/c-strstr.c: Don't include str-kmp.h.
12941         (c_strstr): Define in terms of strstr.
12942         * modules/c-strstr (Files): Remove lib/str-kmp.h.
12943         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
12944
12945 2008-01-10  Bruno Haible  <bruno@clisp.org>
12946
12947         * doc/gnulib.texi (String Functions in C Locale): New section.
12948         * doc/c-ctype.texi: New file.
12949         * doc/c-strcase.texi: New file.
12950         * doc/c-strcaseeq.texi: New file.
12951         * doc/c-strcasestr.texi: New file.
12952         * doc/c-strstr.texi: New file.
12953         * doc/c-strtod.texi: New file.
12954         * doc/c-strtold.texi: New file.
12955
12956 2008-01-10  Eric Blake  <ebb9@byu.net>
12957
12958         * lib/relocatable.h: Fix a comment.
12959
12960 2008-01-10  Eric Blake  <ebb9@byu.net>
12961
12962         Share two-way algorithm.
12963         * lib/str-two-way.h: New file, merged from...
12964         * lib/memmem.c: ...here...
12965         * lib/strstr.c: ...and here.
12966         * modules/memmem (Files): Use it.
12967         * modules/strstr (Files): Likewise.
12968
12969         Avoid quadratic strstr implementations.
12970         * lib/strstr.c: New file.
12971         * m4/strstr.m4: Likewise.
12972         * modules/strstr: Likewise.
12973         * modules/strstr-tests: Likewise.
12974         * tests/test-strstr.c: Likewise.
12975         * lib/string.in.h (rpl_strstr): Declare.
12976         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
12977         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
12978         * modules/string (Makefile.am): Likewise.
12979         * MODULES.html.sh (string handling): Mention new module.
12980         * doc/functions/strstr.texi (strstr): Document the bug.
12981
12982 2008-01-10  Bruno Haible  <bruno@clisp.org>
12983
12984         * lib/relocatable.h (relocate): State whether result is freshly
12985         allocated or not.
12986         * lib/relocatable.c (relocate): Return a freshly allocated string
12987         instead of a pointer to a privately held string.
12988         Reported by Sylvain Beucler <beuc@gnu.org>.
12989
12990 2008-01-10  Colin Watson  <cjwatson@debian.org>
12991
12992         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
12993         s/S_ISNLK/S_ISLNK/.
12994
12995 2008-01-09  Bruno Haible  <bruno@clisp.org>
12996
12997         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
12998         and other files.
12999         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
13000         if it's only a guess.
13001         * modules/memmem: Simplify by depending on memmem-simple.
13002
13003 2008-01-09  Bruno Haible  <bruno@clisp.org>
13004
13005         Work around OpenBSD 4.0 tdelete() bug.
13006         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
13007         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
13008         macros and don't redefine the enum values.
13009         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
13010         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
13011         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
13012
13013 2008-01-09  Bruno Haible  <bruno@clisp.org>
13014
13015         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
13016         (main): Don't perform the tests if setlocale did not install a UTF-8
13017         locale. Needed on OpenBSD 4.0.
13018         * modules/wcwidth-tests (Depends-on): Add localcharset.
13019
13020 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
13021
13022         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
13023         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
13024         * NEWS: announce this.
13025         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
13026
13027 2008-01-09  Simon Josefsson  <simon@josefsson.org>
13028         and Eric Blake  <ebb9@byu.net>
13029
13030         Add memmem-simple module.
13031         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
13032         (gl_FUNC_MEMMEM): Separate performance from presence checks.
13033         * modules/memmem-simple: New file.
13034         * modules/memmem (Description): Tweak.
13035         * MODULES.html.sh (string handling): Mention new module.
13036         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
13037         addressed by memmem-simple.
13038         * NEWS: Document the difference.
13039
13040 2008-01-09  Eric Blake  <ebb9@byu.net>
13041
13042         Give gcc some memmem optimization hints.
13043         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
13044         (strcasestr): Declare as pure.
13045         * modules/memmem (Maintainer): Claim my implementation.
13046
13047 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13048
13049         Support AIX 6.1 and higher.
13050         * build-aux/config.libpath: Likewise.
13051         * build-aux/config.rpath: Likewise.
13052
13053 2008-01-08  Jim Meyering  <meyering@redhat.com>
13054             Bruno Haible  <bruno@clisp.org>
13055
13056         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
13057         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
13058         Reported by Peter Fales in
13059         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
13060
13061 2008-01-08  Bruno Haible  <bruno@clisp.org>
13062
13063         * modules/unictype/category-of (Depends-on): Add
13064         unictype/category-none.
13065         * modules/unictype/category-and-tests (Depends-on): Add
13066         unictype/category-{L,N,Lu,Nd}.
13067         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
13068         * modules/unictype/category-or-tests (Depends-on): Add
13069         unictype/category-{L,N}.
13070         * modules/unictype/category-name-tests (Depends-on): Add
13071         unictype/category-{Z,Nl}.
13072         Reported by Simon Josefsson.
13073
13074 2008-01-08  Bruno Haible  <bruno@clisp.org>
13075
13076         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
13077         convention better.
13078         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
13079         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
13080         Reported by Peter Miller <millerp@canb.auug.org.au>.
13081
13082 2008-01-08  Eric Blake  <ebb9@byu.net>
13083
13084         Rewrite memmem to guarantee linear complexity without malloc.
13085         * lib/memmem.c (memmem): Use Two-Way rather than
13086         Knuth-Morris-Pratt, to allow O(1) space usage.
13087         (critical_factorization, two_way_short_needle)
13088         (two_way_long_needle): New functions.
13089         (knuth_morris_pratt): Delete.
13090         * modules/memmem (Depends-on): No longer need malloca or stdbool.
13091         Add stdint.
13092         * tests/test-memmem.c (main): Add tests for periodic needle and
13093         sublinear performance.
13094         * doc/functions/memmem.texi (memmem): Document other deficiencies
13095         in cygwin and older glibc.
13096
13097 2008-01-08  Bruno Haible  <bruno@clisp.org>
13098
13099         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
13100         augmentation.
13101
13102 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
13103
13104         Add a configure time option: --disable-acl.
13105         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
13106         AC_ARG_ENABLE(acl).
13107
13108 2008-01-06  Simon Josefsson  <simon@josefsson.org>
13109
13110         * tests/test-localename.c: Don't include obsolete "setenv.h".
13111
13112         * modules/localename-tests (Depends-on): Need unsetenv.
13113
13114 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13115
13116         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
13117
13118 2008-01-06  Colin Watson  <cjwatson@debian.org>
13119
13120         * users.txt: Add man-db.
13121
13122 2008-01-07  Bruno Haible  <bruno@clisp.org>
13123
13124         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
13125         previous section name.
13126
13127 2008-01-07  Bruno Haible  <bruno@clisp.org>
13128
13129         * lib/progname.c (set_program_name): Don't strip off a leading
13130         "lt-" prefix outside a .libs directory.
13131         Suggested by Paul Eggert.
13132
13133 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
13134             Bruno Haible  <bruno@clisp.org>
13135
13136         Improve memory cleanup in 'relocatable' module.
13137         * lib/relocatable.h (compute_curr_prefix): Change return type to
13138         'char *'.
13139         * lib/relocatable.c (compute_curr_prefix): Change return type to
13140         'char *'. Free curr_installdir after use.
13141         (relocate): Free curr_prefix_better after use.
13142         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
13143
13144 2008-01-01  Bruno Haible  <bruno@clisp.org>
13145
13146         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
13147         failure on older glibc systems.
13148         Reported by Peter Fales <psfales@alcatel-lucent.com>.
13149
13150 2008-01-05  Eric Blake  <ebb9@byu.net>
13151
13152         Avoid quadratic system memmem.
13153         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
13154         Reported by Ralf Wildenhues.
13155
13156         Fix memmem test for mingw.
13157         * modules/memmem-tests (configure.ac): Check for alarm.
13158         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
13159         it.
13160         * doc/functions/memmem.texi: New file.
13161         * doc/gnulib.texi (Function Substitutes): Add memmem.
13162         Reported by Bruno Haible.
13163
13164 2008-01-04  Bruno Haible  <bruno@clisp.org>
13165
13166         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
13167         Require gl_HEADER_STRINGS_H_DEFAULTS, not
13168         gl_HEADER_STRING_H_DEFAULTS.
13169
13170 2008-01-04  Eric Blake  <ebb9@byu.net>
13171
13172         Shorten duration of memmem test.
13173         * tests/test-memmem.c (main): Use alarm to declare failure if test
13174         is taking too long.
13175         Reported by Ralf Wildenhues.
13176
13177 2007-12-21  Simon Josefsson  <simon@josefsson.org>
13178
13179         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
13180         string, needed by strerror.
13181
13182 2008-01-03  Colin Watson  <cjwatson@debian.org>
13183             Bruno Haible  <bruno@clisp.org>
13184
13185         * doc/gnulib-tool.texi (Localization): New section.
13186
13187 2008-01-02  Bruno Haible  <bruno@clisp.org>
13188
13189         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
13190         variables to 'unsigned char *' type.
13191         Reported by Paul Eggert.
13192
13193 2008-01-02  Jim Meyering  <jim@meyering.net>
13194
13195         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
13196
13197 2007-12-31  Jim Meyering  <jim@meyering.net>
13198
13199         Avoid use of private FTS type name.
13200         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
13201
13202 2007-12-30  Karl Berry  <karl@gnu.org>
13203
13204         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
13205         work around defect in Texinfo and/or the standalone Info browser.
13206
13207 2007-12-30  Bruno Haible  <bruno@clisp.org>
13208
13209         Unify 5 copies of the KMP code.
13210         * lib/str-kmp.h: New file.
13211         * lib/c-strcasestr.c: Include str-kmp.h.
13212         (knuth_morris_pratt): Remove function.
13213         (c_strcasestr): Update.
13214         * lib/c-strstr.c: Include str-kmp.h.
13215         (knuth_morris_pratt): Remove function.
13216         (c_strcasestr): Update.
13217         * lib/mbscasestr.c: Include str-kmp.h.
13218         (knuth_morris_pratt_unibyte): Remove function.
13219         * lib/mbsstr.c: Include str-kmp.h.
13220         (knuth_morris_pratt_unibyte): Remove function.
13221         * lib/strcasestr.c: Include str-kmp.h.
13222         (knuth_morris_pratt): Remove function.
13223         (strcasestr): Update.
13224         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
13225         * modules/c-strstr (Files): Likewise.
13226         * modules/mbscasestr (Files): Likewise.
13227         * modules/mbsstr (Files): Likewise.
13228         * modules/strcasestr (Files): Likewise.
13229         Suggested by Paul Eggert.
13230
13231 2007-12-30  Bruno Haible  <bruno@clisp.org>
13232
13233         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
13234         defined.
13235
13236 2007-12-30  Bruno Haible  <bruno@clisp.org>
13237
13238         * lib/xmalloca.h: Include xalloc.h.
13239         (xnmalloca): New macro.
13240
13241 2007-12-30  Bruno Haible  <bruno@clisp.org>
13242
13243         * lib/malloca.h (nmalloca): New macro.
13244         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
13245         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
13246         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
13247         knuth_morris_pratt_multibyte): Likewise.
13248         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
13249         knuth_morris_pratt_multibyte): Likewise.
13250         * lib/memmem.c (knuth_morris_pratt): Likewise.
13251         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
13252
13253 2007-12-25  Bruno Haible  <bruno@clisp.org>
13254
13255         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
13256         * lib/glob.c: Don't include openat.h.
13257         (link_exists2_p): Add back the code that deals with the
13258         !GLOB_ALTDIRFUNC case.
13259         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
13260         let it do the filename concatenation.
13261         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
13262         * modules/glob (Depends-on): Remove openat.
13263
13264 2007-12-31  Bruno Haible  <bruno@clisp.org>
13265
13266         * modules/dirfd (License): Change to LGPLv2+.
13267         Approved by Jim Meyering.
13268
13269 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
13270
13271         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
13272         when multiplying M by sizeof (size_t).
13273
13274 2007-12-10  Martin Lambers  <marlam@marlam.de>
13275
13276         Override getpagesize on mingw.
13277         * lib/getpagesize.c: New file.
13278         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
13279         * modules/getpagesize (Files): Add lib/getpagesize.c.
13280         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
13281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13282         REPLACE_GETPAGESIZE.
13283         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
13284
13285 2007-12-25  Bruno Haible  <bruno@clisp.org>
13286
13287         * modules/localcharset (Notice): New field.
13288         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
13289         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
13290
13291 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
13292             Bruno Haible  <bruno@clisp.org>
13293
13294         Avoid using the syntax symbol() in formatted documentation.
13295         * MODULES.html.sh (func_module): When replacing symbol() with a
13296         hyperlink, remove the parentheses. Show an error if some remain.
13297         Recognize and render the '...' syntax.
13298         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
13299         Rework. Add paragraph about GCC's inlining.
13300         * doc/alloca.texi: Likewise.
13301         * doc/error.texi: Remove parentheses from symbol reference.
13302         * doc/gnulib-intro.texi: Likewise.
13303         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
13304         * modules/fnmatch (Description): Reword to say "the ... function".
13305         * modules/full-read (Description): Likewise.
13306         * modules/full-write (Description): Likewise.
13307         * modules/safe-read (Description): Likewise.
13308         * modules/safe-write (Description): Likewise.
13309         * modules/strchrnul (Description): Likewise.
13310         * modules/trim (Description): Likewise.
13311         * modules/error (Description): Remove parentheses from symbol
13312         references.
13313         * modules/verror (Description): Likewise.
13314         Reported by Karl Berry.
13315
13316 2007-12-25  Bruno Haible  <bruno@clisp.org>
13317
13318         Fixup after 2007-10-16 commit.
13319         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
13320
13321 2007-12-24  Bruno Haible  <bruno@clisp.org>
13322
13323         Make --enable-relocatable work with DESTDIR.
13324         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
13325         to compute installdir from destprog.
13326         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
13327         also set the RELOC_DESTDIR variable.
13328         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
13329
13330 2007-12-24  Bruno Haible  <bruno@clisp.org>
13331
13332         Fix link error due to xalloc_die().
13333         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
13334         of xreadlink.
13335         * lib/relocwrapper.c: Update comments.
13336         * build-aux/install-reloc: Remove xreadlink.c from file list.
13337         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
13338         xreadlink.c.
13339         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
13340
13341 2007-12-24  Bruno Haible  <bruno@clisp.org>
13342
13343         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
13344         * lib/setenv.h: Remove file.
13345         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
13346         lib/setenv.h.
13347         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
13348         (Depends-on): Add stdlib.
13349         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
13350         gl_FUNC_UNSETENV.
13351         (Include): Replace setenv.h with <stdlib.h>.
13352         * modules/unsetenv: New file.
13353         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
13354         * lib/unsetenv.c: Include <stdlib.h> first.
13355         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
13356         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
13357         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
13358         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
13359         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
13360         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
13361         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
13362         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
13363         * doc/functions/unsetenv.texi: Update.
13364         * modules/xsetenv (Depends-on): Add unsetenv.
13365         * modules/getdate (Depends-on): Likewise.
13366         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
13367         * lib/xsetenv.c: Don't include setenv.h.
13368         * lib/getdate.y: Likewise.
13369         * lib/relocwrapper.c: Likewise.
13370         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
13371         (Depends-on): Add stdlib.
13372         * NEWS: Mention the changes.
13373         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
13374
13375 2007-12-23  Bruno Haible  <bruno@clisp.org>
13376
13377         * lib/memmem.c (memmem): Use lowercase variable names. Tab
13378         indentation.
13379
13380 2007-12-23  Bruno Haible  <bruno@clisp.org>
13381
13382         * lib/c-strcasestr.c: Add more comments.
13383         * lib/c-strstr.c: Likewise.
13384         * lib/mbscasestr.c: Likewise.
13385         * lib/mbsstr.c: Likewise.
13386         * lib/strcasestr.c: Likewise.
13387         * lib/memmem.c: Likewise.
13388
13389 2007-12-23  Bruno Haible  <bruno@clisp.org>
13390
13391         * tests/test-memmem.c: Include <string.h> first.
13392
13393 2007-12-22  Bruno Haible  <bruno@clisp.org>
13394
13395         * gnulib-tool (func_create_testdir): Change $auxdir while generating
13396         the contents of $testsbase.
13397         Reported by Ralf Wildenhues.
13398
13399 2007-12-22  Bruno Haible  <bruno@clisp.org>
13400
13401         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
13402         two variables local_ldadd_before, local_ldadd_last.
13403
13404 2007-12-20  Eric Blake  <ebb9@byu.net>
13405
13406         Work around circular library issue when cross-compiling.
13407         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
13408         that progname.o does not need to pull in rpl_memcmp.
13409
13410 2007-12-19  Eric Blake  <ebb9@byu.net>
13411
13412         Fix memmem to avoid O(n^2) worst-case complexity.
13413         * lib/memmem.c (knuth_morris_pratt): New function.
13414         (memmem): Use it if first few naive iterations fail.
13415         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
13416         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
13417         * modules/memchr (License): Likewise.
13418         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
13419         malloca.
13420         * tests/test-memmem.c: Rewrite, borrowing ideas from
13421         test-mbsstr1.c; the old version wouldn't even compile!
13422         * modules/memmem-tests: New file.
13423         * lib/string.in.h (rpl_memmem): Add declaration.
13424         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
13425         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
13426         REPLACE_MEMMEM.
13427
13428 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
13429
13430         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
13431         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
13432         before any system include files, and undef after them all.  This
13433         should fix a problem on VMS reported by John E. Malmberg in
13434         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
13435
13436 2007-12-17  Eric Blake  <ebb9@byu.net>
13437
13438         Revert addition of verify, for BSD/OS.
13439         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
13440         can't handle large files, for the sake of obsolete platforms.
13441         * modules/fseeko (Depends-on): Remove verify.
13442         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
13443         * doc/functions/ftello.texi (ftello): Likewise.
13444         * doc/functions/fgetpos.texi (fgetpos): Likewise.
13445         Reported by Larry Jones.
13446
13447 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
13448
13449         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
13450         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
13451
13452 2007-12-17  Jim Meyering  <meyering@redhat.com>
13453
13454         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
13455         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
13456         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
13457         * modules/getcwd (Depends-on): Add openat.
13458         Reported by Petr Salinger.
13459
13460 2007-12-17  Bruno Haible  <bruno@clisp.org>
13461
13462         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
13463         avoid a segmentation fault of the configure test on x86_64 systems.
13464
13465 2007-12-15  Jim Meyering  <meyering@redhat.com>
13466
13467         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
13468
13469 2007-12-13  Eric Blake  <ebb9@byu.net>
13470
13471         Another fseek test.
13472         * tests/test-fseek.c (main): Also test ungetc handling.
13473         * tests/test-fseeko.c (main): Likewise.
13474         * modules/fseeko (Depends-on): Add verify.
13475         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
13476         large.
13477         Reported by Larry Jones.
13478
13479         Fix fseeko on mingw.
13480         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
13481         seek.
13482
13483         Beef up fseek tests.
13484         * tests/test-fseek.c (main): Also test eof handling.
13485         * tests/test-fseeko.c (main): Likewise.
13486         Reported by Larry Jones.
13487
13488 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
13489
13490         Fix fseeko on BSD-based platforms.
13491         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
13492         successful seek.
13493
13494 2007-12-12  Eric Blake  <ebb9@byu.net>
13495
13496         Allow circular dependency of separate libtests.a
13497         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
13498         when use_libtests.
13499
13500 2007-12-11  Eric Blake  <ebb9@byu.net>
13501
13502         Fix bug with -0.0L in previous patch.
13503         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
13504         * tests/test-isnan.c (main): Also test on zeroes.
13505         * tests/test-isnanf.c (main): Likewise.
13506         * tests/test-isnanl.h (main): Likewise.
13507
13508         Detect pseudo-denormals on x86 even when cross-compiling.
13509         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
13510         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
13511         invalid bit patterns that happen to satisfy ==.
13512
13513         Avoid link failures with separate libtests.a.
13514         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
13515         last, to satisfy circular dependencies.
13516
13517 2007-12-11  Eric Blake  <ebb9@byu.net>
13518         and Bruno Haible  <bruno@clisp.org>
13519
13520         Fix OpenBSD 4.0 <float.h> handling of long double.
13521         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
13522         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
13523         * doc/headers/float.texi (float.h): Document OpenBSD bug.
13524
13525 2007-12-11  Jim Meyering  <meyering@redhat.com>
13526
13527         * users.txt: Add libvirt.
13528
13529         Support versions of autoconf prior to 2.59c.
13530         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
13531         if it is not already defined.
13532
13533 2007-12-09  Bruno Haible  <bruno@clisp.org>
13534
13535         Let 'gnulib-tool --import' collect sources needed for the tests in
13536         tests/ rather than in lib/.
13537         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
13538         argument. If true, add rules to generate libtests.a, and put libtests.a
13539         into $(LDADD). Consider source files in subdirectories and set
13540         uses_subdirs.
13541         (func_emit_initmacro_start, func_emit_initmacro_end,
13542         func_emit_initmacro_done): Pass all arguments explicitly.
13543         (func_import): Determine two module lists main_modules,
13544         testsrelated_modules. Determine use_libtests. Determine two variables
13545         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
13546         instead of just sed_transform_lib_file. Determine two variables
13547         main_files and testsrelated_files. Compute 'files' as the union of
13548         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
13549         func_add_or_update. In the generated gnulib-comp.m4, collect the
13550         object files for tests/ in different variables than those for lib/.
13551         Substitute LIBTESTS_LIBDEPS.
13552         (func_create_testdir): Combine the uses_subdirs results from
13553         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
13554
13555 2007-12-09  Bruno Haible  <bruno@clisp.org>
13556
13557         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
13558         the build-aux directory.
13559
13560 2007-12-09  Bruno Haible  <bruno@clisp.org>
13561
13562         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
13563         introduced on 2006-09-09.
13564
13565 2007-12-07  Jim Meyering  <meyering@redhat.com>
13566
13567         Let these macros work also with autoconf-2.59.
13568         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
13569         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
13570         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
13571
13572 2007-12-06  Jim Meyering  <meyering@redhat.com>
13573
13574         Avoid a configure-time syntax error in gl_FUNC_ACL.
13575         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
13576         function in each branch, before testing the cache variable.
13577
13578 2007-12-04  Eric Blake  <ebb9@byu.net>
13579
13580         Make scripts executable.
13581         * build-aux/config.guess: Add execute permissions.
13582         * build-aux/config.sub: Likewise.
13583         * build-aux/gendocs.sh: Likewise.
13584
13585         Fix frexp on mingw.
13586         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
13587         cross-compiling.
13588         * doc/functions/frexp.texi (frexp): Document the bug.
13589
13590         Make cygwin fseeko check more reliable.
13591         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
13592         version numbers, rather than unrelated feature check.
13593         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
13594         * doc/functions/ftello.texi (ftello): Likewise.
13595         Reported by Bruno Haible.
13596
13597         * m4/strerror.m4: Bump version number.
13598
13599 2007-12-03  Bruno Haible  <bruno@clisp.org>
13600
13601         * doc/functions/mprotect.texi: Mention the mingw problem.
13602
13603 2007-12-03  Eric Blake  <ebb9@byu.net>
13604
13605         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
13606         REPLACE_STRERROR is initialized before this macro.
13607
13608 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
13609
13610         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
13611         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
13612         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
13613         put -lsec in even for programs other than 'ls'.  This fixes a problem
13614         for gettext reported by Bruno Haible in
13615         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
13616         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
13617         Add support for Solaris 10.  This isn't efficient, but should get the
13618         job done for now.
13619
13620 2007-12-03  James Youngman  <jay@gnu.org>
13621
13622         * doc/regexprops-generic.texi: change "an close-group" to "a
13623         close-group" and "illegal" to "not allowed".
13624
13625 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13626
13627         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
13628         pr_byname.h. Needed for the rare case when the maintainer has done
13629         "make maintainer-clean" in the source directory and then attempts a
13630         build outside the source directory.
13631         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
13632         scripts_byname.h.
13633
13634 2007-12-02  Martin Lambers <marlam@marlam.de>
13635             Bruno Haible  <bruno@clisp.org>
13636
13637         * lib/getpagesize.h: Remove file.
13638         * lib/unistd.in.h: Include declaration of getpagesize here.
13639         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
13640         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
13641         HAVE_SYS_PARAM_H.
13642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
13643         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
13644         * modules/getpagesize (Files): Remove lib/getpagesize.h.
13645         (Depends-on): Add unistd.
13646         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13647         (Include): Use <unistd.h> instead of getpagesize.h.
13648         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
13649         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
13650         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
13651         gl_GETPAGESIZE invocation, already handled by module dependency.
13652         * lib/pagealign_alloc.c: Don't include getpagesize.h.
13653
13654 2007-12-02  Bruno Haible  <bruno@clisp.org>
13655
13656         * modules/strings-tests: New file.
13657         * tests/test-strings.c: New file.
13658
13659         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
13660         * lib/strings.in.h: New file.
13661         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
13662         * m4/strings_h.m4: New file.
13663         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
13664         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
13665         * modules/strings: New file.
13666         * modules/string (Makefile.am): Update.
13667         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
13668         Reported by Karl Berry.
13669
13670 2007-12-01  Eric Blake  <ebb9@byu.net>
13671
13672         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
13673         accomodate fix in cygwin 1.5.25.
13674
13675 2007-12-01  Jim Meyering  <meyering@redhat.com>
13676
13677         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
13678         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
13679         that would inhibit utf8-optimization of a regexp containing line-
13680         or buffer-anchors, e.g., `^', `$'.
13681
13682 2007-11-30  Bruno Haible  <bruno@clisp.org>
13683
13684         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
13685         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
13686         glthread_recursive_lock_init.
13687         * lib/lock.c (glthread_recursive_lock_init)
13688         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
13689         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
13690
13691 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
13692
13693         New function qset_acl, like set_acl but with syscall semantics.
13694         * lib/acl.h (qset_acl): New decl.
13695         * lib/acl.c (qset_acl): New function.
13696         (set_acl): Use new function.  Use more-consistent diagnostics.
13697
13698 2007-11-28  Jim Meyering  <meyering@redhat.com>
13699
13700         * modules/physmem (License): Change from GPL to LGPLv2+.
13701
13702 2007-11-26  Bruno Haible  <bruno@clisp.org>
13703
13704         * lib/vasnprintf.c (decode_long_double): Don't abort if the
13705         'long double' type has excess precision.
13706         Reported by Jim Meyering in
13707         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
13708
13709 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13710
13711         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
13712         Sync from <http://gnu.org/licenses>.
13713         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
13714         with license text from same location.
13715         * doc/maintain.texi, doc/standards.texi:  Sync from
13716         <http://savannah.gnu.org/projects/gnustandards>.
13717
13718 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
13719         and Jim Meyering  <meyering@redhat.com>
13720
13721         Adjust getdate' grammar to accept a slightly more regular language.
13722         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
13723         Before, the former was rejected.
13724         * lib/getdate.y (digits_to_date_time): New function, factored
13725         out of ...
13726         (number): ...here.  Just call digits_to_date_time.
13727         (hybrid): New non-terminal to handle an <unsigned number,
13728         signed relative offset> sequence consistently.
13729
13730 2007-11-18  Jim Meyering  <meyering@redhat.com>
13731
13732         Pull my changes from coreutils:
13733         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
13734         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
13735         use of $gnulib_tool_option_extras, so that it's separated from the
13736         preceding argument.
13737
13738         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
13739         * build-aux/bootstrap (cp_mark_as_generated): Create any required
13740         parent destination directories before copying a file into place.
13741
13742 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
13743
13744         bootstrap: work also with 4-argument variant of AC_INIT
13745         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
13746
13747 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
13748
13749         Port test-getaddrinfo to Solaris.
13750         Problem reported by Bruno Haible in
13751         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
13752         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
13753         explanation of setting 'hints'.
13754         Don't reject an implementation merely because it returns EAI_SERVICE.
13755         (EAI_SERVICE): Define to 0 if not defined.
13756
13757 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
13758
13759         The license of gnu-make and posix-shell is now "GPLed build tool".
13760         * modules/gnu-make (License): Likewise.
13761         * modules/posix-shell (License): Likewise.
13762
13763         New module posix-shell, for determining a POSIX shell
13764         or perhaps something that is close enough to a POSIX shell.
13765         * m4/posix-shell.m4: New file.
13766         * modules/posix-shell: New file.
13767
13768         * MODULES.html.sh: Mention new module.
13769
13770         New module gnu-make, for determining whether we're using GNU Make.
13771         * m4/gnu-make.m4: New file.
13772         * modules/gnu-make: New file.
13773         * MODULES.html.sh: Mention new module.
13774
13775 2007-11-14  Jim Meyering  <meyering@redhat.com>
13776
13777         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
13778         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
13779         use this macro to create a function _definition_.
13780         Remove useless "#undef ARGMATCH_DIE".
13781
13782 2007-11-14  Bruno Haible  <bruno@clisp.org>
13783
13784         * lib/config.charset: Update for OpenBSD 4.1.
13785         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
13786
13787 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
13788
13789         Document 64-bit #if problems in stdint.texi.
13790         * doc/headers/stdint.texi (stdint.h): Mention problems with
13791         64-bit-#if, and how to work around them.
13792
13793         Don't insist on 'long long int' support in the preprocessor.  It
13794         breaks too many things.  For example, PRIdMAX still uses a 'long
13795         long int' format with the latest Sun compiler, even though
13796         HAVE_LONG_LONG_INT isn't defined due to that compiler's
13797         preprocessor problem.  This causes the latest coreutils to dump
13798         core on Solaris 10 sparc with the Sun C compiler.
13799         Instead, fix the 2007-10-16 problem in a different way, by evaluating
13800         the troublesome expressions at configure-time, not at #if-time.
13801         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
13802         preprocessor.
13803         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
13804         compile-time C checks, done at 'configure'-time.
13805         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
13806         * modules/inttypes (Makefile): Substitute the new symbols that
13807         gl_INTTYPES_H now generates.
13808         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
13809
13810 2007-11-12  Bruno Haible  <bruno@clisp.org>
13811
13812         Tests for Unicode character classification functions.
13813
13814         * modules/unictype/bidicategory-byname-tests: New file.
13815         * modules/unictype/bidicategory-name-tests: New file.
13816         * modules/unictype/bidicategory-of-tests: New file.
13817         * modules/unictype/bidicategory-test-tests: New file.
13818         * modules/unictype/block-list-tests: New file.
13819         * modules/unictype/block-of-tests: New file.
13820         * modules/unictype/block-test-tests: New file.
13821         * modules/unictype/category-C-tests: New file.
13822         * modules/unictype/category-Cc-tests: New file.
13823         * modules/unictype/category-Cf-tests: New file.
13824         * modules/unictype/category-Cn-tests: New file.
13825         * modules/unictype/category-Co-tests: New file.
13826         * modules/unictype/category-Cs-tests: New file.
13827         * modules/unictype/category-L-tests: New file.
13828         * modules/unictype/category-Ll-tests: New file.
13829         * modules/unictype/category-Lm-tests: New file.
13830         * modules/unictype/category-Lo-tests: New file.
13831         * modules/unictype/category-Lt-tests: New file.
13832         * modules/unictype/category-Lu-tests: New file.
13833         * modules/unictype/category-M-tests: New file.
13834         * modules/unictype/category-Mc-tests: New file.
13835         * modules/unictype/category-Me-tests: New file.
13836         * modules/unictype/category-Mn-tests: New file.
13837         * modules/unictype/category-N-tests: New file.
13838         * modules/unictype/category-Nd-tests: New file.
13839         * modules/unictype/category-Nl-tests: New file.
13840         * modules/unictype/category-No-tests: New file.
13841         * modules/unictype/category-P-tests: New file.
13842         * modules/unictype/category-Pc-tests: New file.
13843         * modules/unictype/category-Pd-tests: New file.
13844         * modules/unictype/category-Pe-tests: New file.
13845         * modules/unictype/category-Pf-tests: New file.
13846         * modules/unictype/category-Pi-tests: New file.
13847         * modules/unictype/category-Po-tests: New file.
13848         * modules/unictype/category-Ps-tests: New file.
13849         * modules/unictype/category-S-tests: New file.
13850         * modules/unictype/category-Sc-tests: New file.
13851         * modules/unictype/category-Sk-tests: New file.
13852         * modules/unictype/category-Sm-tests: New file.
13853         * modules/unictype/category-So-tests: New file.
13854         * modules/unictype/category-Z-tests: New file.
13855         * modules/unictype/category-Zl-tests: New file.
13856         * modules/unictype/category-Zp-tests: New file.
13857         * modules/unictype/category-Zs-tests: New file.
13858         * modules/unictype/category-and-not-tests: New file.
13859         * modules/unictype/category-and-tests: New file.
13860         * modules/unictype/category-byname-tests: New file.
13861         * modules/unictype/category-name-tests: New file.
13862         * modules/unictype/category-none-tests: New file.
13863         * modules/unictype/category-of-tests: New file.
13864         * modules/unictype/category-or-tests: New file.
13865         * modules/unictype/category-test-withtable-tests: New file.
13866         * modules/unictype/combining-class-tests: New file.
13867         * modules/unictype/ctype-alnum-tests: New file.
13868         * modules/unictype/ctype-alpha-tests: New file.
13869         * modules/unictype/ctype-blank-tests: New file.
13870         * modules/unictype/ctype-cntrl-tests: New file.
13871         * modules/unictype/ctype-digit-tests: New file.
13872         * modules/unictype/ctype-graph-tests: New file.
13873         * modules/unictype/ctype-lower-tests: New file.
13874         * modules/unictype/ctype-print-tests: New file.
13875         * modules/unictype/ctype-punct-tests: New file.
13876         * modules/unictype/ctype-space-tests: New file.
13877         * modules/unictype/ctype-upper-tests: New file.
13878         * modules/unictype/ctype-xdigit-tests: New file.
13879         * modules/unictype/decimal-digit-tests: New file.
13880         * modules/unictype/digit-tests: New file.
13881         * modules/unictype/mirror-tests: New file.
13882         * modules/unictype/numeric-tests: New file.
13883         * modules/unictype/property-alphabetic-tests: New file.
13884         * modules/unictype/property-ascii-hex-digit-tests: New file.
13885         * modules/unictype/property-bidi-arabic-digit-tests: New file.
13886         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
13887         * modules/unictype/property-bidi-block-separator-tests: New file.
13888         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
13889         * modules/unictype/property-bidi-common-separator-tests: New file.
13890         * modules/unictype/property-bidi-control-tests: New file.
13891         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
13892         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
13893         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
13894         * modules/unictype/property-bidi-european-digit-tests: New file.
13895         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
13896         * modules/unictype/property-bidi-left-to-right-tests: New file.
13897         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
13898         * modules/unictype/property-bidi-other-neutral-tests: New file.
13899         * modules/unictype/property-bidi-pdf-tests: New file.
13900         * modules/unictype/property-bidi-segment-separator-tests: New file.
13901         * modules/unictype/property-bidi-whitespace-tests: New file.
13902         * modules/unictype/property-byname-tests: New file.
13903         * modules/unictype/property-combining-tests: New file.
13904         * modules/unictype/property-composite-tests: New file.
13905         * modules/unictype/property-currency-symbol-tests: New file.
13906         * modules/unictype/property-dash-tests: New file.
13907         * modules/unictype/property-decimal-digit-tests: New file.
13908         * modules/unictype/property-default-ignorable-code-point-tests: New file.
13909         * modules/unictype/property-deprecated-tests: New file.
13910         * modules/unictype/property-diacritic-tests: New file.
13911         * modules/unictype/property-extender-tests: New file.
13912         * modules/unictype/property-format-control-tests: New file.
13913         * modules/unictype/property-grapheme-base-tests: New file.
13914         * modules/unictype/property-grapheme-extend-tests: New file.
13915         * modules/unictype/property-grapheme-link-tests: New file.
13916         * modules/unictype/property-hex-digit-tests: New file.
13917         * modules/unictype/property-hyphen-tests: New file.
13918         * modules/unictype/property-id-continue-tests: New file.
13919         * modules/unictype/property-id-start-tests: New file.
13920         * modules/unictype/property-ideographic-tests: New file.
13921         * modules/unictype/property-ids-binary-operator-tests: New file.
13922         * modules/unictype/property-ids-trinary-operator-tests: New file.
13923         * modules/unictype/property-ignorable-control-tests: New file.
13924         * modules/unictype/property-iso-control-tests: New file.
13925         * modules/unictype/property-join-control-tests: New file.
13926         * modules/unictype/property-left-of-pair-tests: New file.
13927         * modules/unictype/property-line-separator-tests: New file.
13928         * modules/unictype/property-logical-order-exception-tests: New file.
13929         * modules/unictype/property-lowercase-tests: New file.
13930         * modules/unictype/property-math-tests: New file.
13931         * modules/unictype/property-non-break-tests: New file.
13932         * modules/unictype/property-not-a-character-tests: New file.
13933         * modules/unictype/property-numeric-tests: New file.
13934         * modules/unictype/property-other-alphabetic-tests: New file.
13935         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
13936         * modules/unictype/property-other-grapheme-extend-tests: New file.
13937         * modules/unictype/property-other-id-continue-tests: New file.
13938         * modules/unictype/property-other-id-start-tests: New file.
13939         * modules/unictype/property-other-lowercase-tests: New file.
13940         * modules/unictype/property-other-math-tests: New file.
13941         * modules/unictype/property-other-uppercase-tests: New file.
13942         * modules/unictype/property-paired-punctuation-tests: New file.
13943         * modules/unictype/property-paragraph-separator-tests: New file.
13944         * modules/unictype/property-pattern-syntax-tests: New file.
13945         * modules/unictype/property-pattern-white-space-tests: New file.
13946         * modules/unictype/property-private-use-tests: New file.
13947         * modules/unictype/property-punctuation-tests: New file.
13948         * modules/unictype/property-quotation-mark-tests: New file.
13949         * modules/unictype/property-radical-tests: New file.
13950         * modules/unictype/property-sentence-terminal-tests: New file.
13951         * modules/unictype/property-soft-dotted-tests: New file.
13952         * modules/unictype/property-space-tests: New file.
13953         * modules/unictype/property-terminal-punctuation-tests: New file.
13954         * modules/unictype/property-test-tests: New file.
13955         * modules/unictype/property-titlecase-tests: New file.
13956         * modules/unictype/property-unassigned-code-value-tests: New file.
13957         * modules/unictype/property-unified-ideograph-tests: New file.
13958         * modules/unictype/property-uppercase-tests: New file.
13959         * modules/unictype/property-variation-selector-tests: New file.
13960         * modules/unictype/property-white-space-tests: New file.
13961         * modules/unictype/property-xid-continue-tests: New file.
13962         * modules/unictype/property-xid-start-tests: New file.
13963         * modules/unictype/property-zero-width-tests: New file.
13964         * modules/unictype/scripts-tests: New file.
13965         * modules/unictype/syntax-c-ident-tests: New file.
13966         * modules/unictype/syntax-c-whitespace-tests: New file.
13967         * modules/unictype/syntax-java-ident-tests: New file.
13968         * modules/unictype/syntax-java-whitespace-tests: New file.
13969         * tests/unictype/test-bidi_byname.c: New file.
13970         * tests/unictype/test-bidi_name.c: New file.
13971         * tests/unictype/test-bidi_of.c: New file.
13972         * tests/unictype/test-bidi_test.c: New file.
13973         * tests/unictype/test-block_list.c: New file.
13974         * tests/unictype/test-block_of.c: New file.
13975         * tests/unictype/test-block_test.c: New file.
13976         * tests/unictype/test-categ_and.c: New file.
13977         * tests/unictype/test-categ_and_not.c: New file.
13978         * tests/unictype/test-categ_byname.c: New file.
13979         * tests/unictype/test-categ_name.c: New file.
13980         * tests/unictype/test-categ_none.c: New file.
13981         * tests/unictype/test-categ_of.c: New file.
13982         * tests/unictype/test-categ_or.c: New file.
13983         * tests/unictype/test-categ_test_withtable.c: New file.
13984         * tests/unictype/test-combining.c: New file.
13985         * tests/unictype/test-decdigit.c: New file.
13986         * tests/unictype/test-digit.c: New file.
13987         * tests/unictype/test-mirror.c: New file.
13988         * tests/unictype/test-numeric.c: New file.
13989         * tests/unictype/test-pr_byname.c: New file.
13990         * tests/unictype/test-pr_test.c: New file.
13991         * tests/unictype/test-predicate-part1.h: New file.
13992         * tests/unictype/test-predicate-part2.h: New file.
13993         * tests/unictype/test-scripts.c: New file.
13994         * tests/unictype/test-sy_c_ident.c: New file.
13995         * tests/unictype/test-sy_java_ident.c: New file.
13996
13997         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
13998         for Unicode 5.0.0.
13999         * tests/unictype/test-categ_Cc.c: Likewise.
14000         * tests/unictype/test-categ_Cf.c: Likewise.
14001         * tests/unictype/test-categ_Cn.c: Likewise.
14002         * tests/unictype/test-categ_Co.c: Likewise.
14003         * tests/unictype/test-categ_Cs.c: Likewise.
14004         * tests/unictype/test-categ_L.c: Likewise.
14005         * tests/unictype/test-categ_Ll.c: Likewise.
14006         * tests/unictype/test-categ_Lm.c: Likewise.
14007         * tests/unictype/test-categ_Lo.c: Likewise.
14008         * tests/unictype/test-categ_Lt.c: Likewise.
14009         * tests/unictype/test-categ_Lu.c: Likewise.
14010         * tests/unictype/test-categ_M.c: Likewise.
14011         * tests/unictype/test-categ_Mc.c: Likewise.
14012         * tests/unictype/test-categ_Me.c: Likewise.
14013         * tests/unictype/test-categ_Mn.c: Likewise.
14014         * tests/unictype/test-categ_N.c: Likewise.
14015         * tests/unictype/test-categ_Nd.c: Likewise.
14016         * tests/unictype/test-categ_Nl.c: Likewise.
14017         * tests/unictype/test-categ_No.c: Likewise.
14018         * tests/unictype/test-categ_P.c: Likewise.
14019         * tests/unictype/test-categ_Pc.c: Likewise.
14020         * tests/unictype/test-categ_Pd.c: Likewise.
14021         * tests/unictype/test-categ_Pe.c: Likewise.
14022         * tests/unictype/test-categ_Pf.c: Likewise.
14023         * tests/unictype/test-categ_Pi.c: Likewise.
14024         * tests/unictype/test-categ_Po.c: Likewise.
14025         * tests/unictype/test-categ_Ps.c: Likewise.
14026         * tests/unictype/test-categ_S.c: Likewise.
14027         * tests/unictype/test-categ_Sc.c: Likewise.
14028         * tests/unictype/test-categ_Sk.c: Likewise.
14029         * tests/unictype/test-categ_Sm.c: Likewise.
14030         * tests/unictype/test-categ_So.c: Likewise.
14031         * tests/unictype/test-categ_Z.c: Likewise.
14032         * tests/unictype/test-categ_Zl.c: Likewise.
14033         * tests/unictype/test-categ_Zp.c: Likewise.
14034         * tests/unictype/test-categ_Zs.c: Likewise.
14035         * tests/unictype/test-ctype_alnum.c: Likewise.
14036         * tests/unictype/test-ctype_alpha.c: Likewise.
14037         * tests/unictype/test-ctype_blank.c: Likewise.
14038         * tests/unictype/test-ctype_cntrl.c: Likewise.
14039         * tests/unictype/test-ctype_digit.c: Likewise.
14040         * tests/unictype/test-ctype_graph.c: Likewise.
14041         * tests/unictype/test-ctype_lower.c: Likewise.
14042         * tests/unictype/test-ctype_print.c: Likewise.
14043         * tests/unictype/test-ctype_punct.c: Likewise.
14044         * tests/unictype/test-ctype_space.c: Likewise.
14045         * tests/unictype/test-ctype_upper.c: Likewise.
14046         * tests/unictype/test-ctype_xdigit.c: Likewise.
14047         * tests/unictype/test-decdigit.h: Likewise.
14048         * tests/unictype/test-digit.h: Likewise.
14049         * tests/unictype/test-numeric.h: Likewise.
14050         * tests/unictype/test-pr_alphabetic.c: Likewise.
14051         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
14052         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
14053         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
14054         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
14055         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
14056         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
14057         * tests/unictype/test-pr_bidi_control.c: Likewise.
14058         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
14059         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
14060         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
14061         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
14062         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
14063         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
14064         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
14065         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
14066         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
14067         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
14068         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
14069         * tests/unictype/test-pr_combining.c: Likewise.
14070         * tests/unictype/test-pr_composite.c: Likewise.
14071         * tests/unictype/test-pr_currency_symbol.c: Likewise.
14072         * tests/unictype/test-pr_dash.c: Likewise.
14073         * tests/unictype/test-pr_decimal_digit.c: Likewise.
14074         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
14075         * tests/unictype/test-pr_deprecated.c: Likewise.
14076         * tests/unictype/test-pr_diacritic.c: Likewise.
14077         * tests/unictype/test-pr_extender.c: Likewise.
14078         * tests/unictype/test-pr_format_control.c: Likewise.
14079         * tests/unictype/test-pr_grapheme_base.c: Likewise.
14080         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
14081         * tests/unictype/test-pr_grapheme_link.c: Likewise.
14082         * tests/unictype/test-pr_hex_digit.c: Likewise.
14083         * tests/unictype/test-pr_hyphen.c: Likewise.
14084         * tests/unictype/test-pr_id_continue.c: Likewise.
14085         * tests/unictype/test-pr_id_start.c: Likewise.
14086         * tests/unictype/test-pr_ideographic.c: Likewise.
14087         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
14088         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
14089         * tests/unictype/test-pr_ignorable_control.c: Likewise.
14090         * tests/unictype/test-pr_iso_control.c: Likewise.
14091         * tests/unictype/test-pr_join_control.c: Likewise.
14092         * tests/unictype/test-pr_left_of_pair.c: Likewise.
14093         * tests/unictype/test-pr_line_separator.c: Likewise.
14094         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
14095         * tests/unictype/test-pr_lowercase.c: Likewise.
14096         * tests/unictype/test-pr_math.c: Likewise.
14097         * tests/unictype/test-pr_non_break.c: Likewise.
14098         * tests/unictype/test-pr_not_a_character.c: Likewise.
14099         * tests/unictype/test-pr_numeric.c: Likewise.
14100         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
14101         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
14102         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
14103         * tests/unictype/test-pr_other_id_continue.c: Likewise.
14104         * tests/unictype/test-pr_other_id_start.c: Likewise.
14105         * tests/unictype/test-pr_other_lowercase.c: Likewise.
14106         * tests/unictype/test-pr_other_math.c: Likewise.
14107         * tests/unictype/test-pr_other_uppercase.c: Likewise.
14108         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
14109         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
14110         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
14111         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
14112         * tests/unictype/test-pr_private_use.c: Likewise.
14113         * tests/unictype/test-pr_punctuation.c: Likewise.
14114         * tests/unictype/test-pr_quotation_mark.c: Likewise.
14115         * tests/unictype/test-pr_radical.c: Likewise.
14116         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
14117         * tests/unictype/test-pr_soft_dotted.c: Likewise.
14118         * tests/unictype/test-pr_space.c: Likewise.
14119         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
14120         * tests/unictype/test-pr_titlecase.c: Likewise.
14121         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
14122         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
14123         * tests/unictype/test-pr_uppercase.c: Likewise.
14124         * tests/unictype/test-pr_variation_selector.c: Likewise.
14125         * tests/unictype/test-pr_white_space.c: Likewise.
14126         * tests/unictype/test-pr_xid_continue.c: Likewise.
14127         * tests/unictype/test-pr_xid_start.c: Likewise.
14128         * tests/unictype/test-pr_zero_width.c: Likewise.
14129         * tests/unictype/test-sy_c_whitespace.c: Likewise.
14130         * tests/unictype/test-sy_java_whitespace.c: Likewise.
14131
14132 2007-11-12  Bruno Haible  <bruno@clisp.org>
14133
14134         Unicode character classification functions.
14135         * lib/unictype.h: New file.
14136         * modules/unictype/base: New file.
14137         * modules/unictype/category-L: New file.
14138         * modules/unictype/category-Lu: New file.
14139         * modules/unictype/category-Ll: New file.
14140         * modules/unictype/category-Lt: New file.
14141         * modules/unictype/category-Lm: New file.
14142         * modules/unictype/category-Lo: New file.
14143         * modules/unictype/category-M: New file.
14144         * modules/unictype/category-Mn: New file.
14145         * modules/unictype/category-Mc: New file.
14146         * modules/unictype/category-Me: New file.
14147         * modules/unictype/category-N: New file.
14148         * modules/unictype/category-Nd: New file.
14149         * modules/unictype/category-Nl: New file.
14150         * modules/unictype/category-No: New file.
14151         * modules/unictype/category-P: New file.
14152         * modules/unictype/category-Pc: New file.
14153         * modules/unictype/category-Pd: New file.
14154         * modules/unictype/category-Ps: New file.
14155         * modules/unictype/category-Pe: New file.
14156         * modules/unictype/category-Pi: New file.
14157         * modules/unictype/category-Pf: New file.
14158         * modules/unictype/category-Po: New file.
14159         * modules/unictype/category-S: New file.
14160         * modules/unictype/category-Sm: New file.
14161         * modules/unictype/category-Sc: New file.
14162         * modules/unictype/category-Sk: New file.
14163         * modules/unictype/category-So: New file.
14164         * modules/unictype/category-Z: New file.
14165         * modules/unictype/category-Zs: New file.
14166         * modules/unictype/category-Zl: New file.
14167         * modules/unictype/category-Zp: New file.
14168         * modules/unictype/category-C: New file.
14169         * modules/unictype/category-Cc: New file.
14170         * modules/unictype/category-Cf: New file.
14171         * modules/unictype/category-Cs: New file.
14172         * modules/unictype/category-Co: New file.
14173         * modules/unictype/category-Cn: New file.
14174         * modules/unictype/category-or: New file.
14175         * modules/unictype/category-of: New file.
14176         * modules/unictype/category-test: New file.
14177         * modules/unictype/category-test-withtable: New file.
14178         * modules/unictype/category-byname: New file.
14179         * modules/unictype/category-none: New file.
14180         * modules/unictype/category-and: New file.
14181         * modules/unictype/category-and-not: New file.
14182         * modules/unictype/category-name: New file.
14183         * modules/unictype/combining-class: New file.
14184         * modules/unictype/category-all: New file.
14185         * modules/unictype/bidicategory-all: New file.
14186         * modules/unictype/bidicategory-byname: New file.
14187         * modules/unictype/bidicategory-name: New file.
14188         * modules/unictype/bidicategory-of: New file.
14189         * modules/unictype/bidicategory-test: New file.
14190         * modules/unictype/decimal-digit: New file.
14191         * modules/unictype/digit: New file.
14192         * modules/unictype/numeric: New file.
14193         * modules/unictype/mirror: New file.
14194         * modules/unictype/property-white-space: New file.
14195         * modules/unictype/property-alphabetic: New file.
14196         * modules/unictype/property-other-alphabetic: New file.
14197         * modules/unictype/property-not-a-character: New file.
14198         * modules/unictype/property-default-ignorable-code-point: New file.
14199         * modules/unictype/property-other-default-ignorable-code-point: New
14200         file.
14201         * modules/unictype/property-deprecated: New file.
14202         * modules/unictype/property-logical-order-exception: New file.
14203         * modules/unictype/property-variation-selector: New file.
14204         * modules/unictype/property-private-use: New file.
14205         * modules/unictype/property-unassigned-code-value: New file.
14206         * modules/unictype/property-uppercase: New file.
14207         * modules/unictype/property-other-uppercase: New file.
14208         * modules/unictype/property-lowercase: New file.
14209         * modules/unictype/property-other-lowercase: New file.
14210         * modules/unictype/property-titlecase: New file.
14211         * modules/unictype/property-soft-dotted: New file.
14212         * modules/unictype/property-id-start: New file.
14213         * modules/unictype/property-other-id-start: New file.
14214         * modules/unictype/property-id-continue: New file.
14215         * modules/unictype/property-other-id-continue: New file.
14216         * modules/unictype/property-xid-start: New file.
14217         * modules/unictype/property-xid-continue: New file.
14218         * modules/unictype/property-pattern-white-space: New file.
14219         * modules/unictype/property-pattern-syntax: New file.
14220         * modules/unictype/property-join-control: New file.
14221         * modules/unictype/property-grapheme-base: New file.
14222         * modules/unictype/property-grapheme-extend: New file.
14223         * modules/unictype/property-other-grapheme-extend: New file.
14224         * modules/unictype/property-grapheme-link: New file.
14225         * modules/unictype/property-bidi-control: New file.
14226         * modules/unictype/property-bidi-left-to-right: New file.
14227         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
14228         * modules/unictype/property-bidi-arabic-right-to-left: New file.
14229         * modules/unictype/property-bidi-european-digit: New file.
14230         * modules/unictype/property-bidi-eur-num-separator: New file.
14231         * modules/unictype/property-bidi-eur-num-terminator: New file.
14232         * modules/unictype/property-bidi-arabic-digit: New file.
14233         * modules/unictype/property-bidi-common-separator: New file.
14234         * modules/unictype/property-bidi-block-separator: New file.
14235         * modules/unictype/property-bidi-segment-separator: New file.
14236         * modules/unictype/property-bidi-whitespace: New file.
14237         * modules/unictype/property-bidi-non-spacing-mark: New file.
14238         * modules/unictype/property-bidi-boundary-neutral: New file.
14239         * modules/unictype/property-bidi-pdf: New file.
14240         * modules/unictype/property-bidi-embedding-or-override: New file.
14241         * modules/unictype/property-bidi-other-neutral: New file.
14242         * modules/unictype/property-hex-digit: New file.
14243         * modules/unictype/property-ascii-hex-digit: New file.
14244         * modules/unictype/property-ideographic: New file.
14245         * modules/unictype/property-unified-ideograph: New file.
14246         * modules/unictype/property-radical: New file.
14247         * modules/unictype/property-ids-binary-operator: New file.
14248         * modules/unictype/property-ids-trinary-operator: New file.
14249         * modules/unictype/property-zero-width: New file.
14250         * modules/unictype/property-space: New file.
14251         * modules/unictype/property-non-break: New file.
14252         * modules/unictype/property-iso-control: New file.
14253         * modules/unictype/property-format-control: New file.
14254         * modules/unictype/property-dash: New file.
14255         * modules/unictype/property-hyphen: New file.
14256         * modules/unictype/property-punctuation: New file.
14257         * modules/unictype/property-line-separator: New file.
14258         * modules/unictype/property-paragraph-separator: New file.
14259         * modules/unictype/property-quotation-mark: New file.
14260         * modules/unictype/property-sentence-terminal: New file.
14261         * modules/unictype/property-terminal-punctuation: New file.
14262         * modules/unictype/property-currency-symbol: New file.
14263         * modules/unictype/property-math: New file.
14264         * modules/unictype/property-other-math: New file.
14265         * modules/unictype/property-paired-punctuation: New file.
14266         * modules/unictype/property-left-of-pair: New file.
14267         * modules/unictype/property-combining: New file.
14268         * modules/unictype/property-composite: New file.
14269         * modules/unictype/property-decimal-digit: New file.
14270         * modules/unictype/property-numeric: New file.
14271         * modules/unictype/property-diacritic: New file.
14272         * modules/unictype/property-extender: New file.
14273         * modules/unictype/property-ignorable-control: New file.
14274         * modules/unictype/property-test: New file.
14275         * modules/unictype/property-byname: New file.
14276         * modules/unictype/property-all: New file.
14277         * modules/unictype/scripts: New file.
14278         * modules/unictype/scripts-all: New file.
14279         * modules/unictype/block-of: New file.
14280         * modules/unictype/block-test: New file.
14281         * modules/unictype/block-list: New file.
14282         * modules/unictype/block-all: New file.
14283         * modules/unictype/syntax-c-whitespace: New file.
14284         * modules/unictype/syntax-java-whitespace: New file.
14285         * modules/unictype/syntax-c-ident: New file.
14286         * modules/unictype/syntax-java-ident: New file.
14287         * modules/unictype/ctype-alnum: New file.
14288         * modules/unictype/ctype-alpha: New file.
14289         * modules/unictype/ctype-cntrl: New file.
14290         * modules/unictype/ctype-digit: New file.
14291         * modules/unictype/ctype-graph: New file.
14292         * modules/unictype/ctype-lower: New file.
14293         * modules/unictype/ctype-print: New file.
14294         * modules/unictype/ctype-punct: New file.
14295         * modules/unictype/ctype-space: New file.
14296         * modules/unictype/ctype-upper: New file.
14297         * modules/unictype/ctype-xdigit: New file.
14298         * modules/unictype/ctype-blank: New file.
14299         * lib/unictype/bidi_byname.c: New file.
14300         * lib/unictype/bidi_name.c: New file.
14301         * lib/unictype/bidi_of.c: New file.
14302         * lib/unictype/bidi_test.c: New file.
14303         * lib/unictype/bitmap.h: New file.
14304         * lib/unictype/block_test.c: New file.
14305         * lib/unictype/blocks.c: New file.
14306         * lib/unictype/categ_C.c: New file.
14307         * lib/unictype/categ_Cc.c: New file.
14308         * lib/unictype/categ_Cf.c: New file.
14309         * lib/unictype/categ_Cn.c: New file.
14310         * lib/unictype/categ_Co.c: New file.
14311         * lib/unictype/categ_Cs.c: New file.
14312         * lib/unictype/categ_L.c: New file.
14313         * lib/unictype/categ_Ll.c: New file.
14314         * lib/unictype/categ_Lm.c: New file.
14315         * lib/unictype/categ_Lo.c: New file.
14316         * lib/unictype/categ_Lt.c: New file.
14317         * lib/unictype/categ_Lu.c: New file.
14318         * lib/unictype/categ_M.c: New file.
14319         * lib/unictype/categ_Mc.c: New file.
14320         * lib/unictype/categ_Me.c: New file.
14321         * lib/unictype/categ_Mn.c: New file.
14322         * lib/unictype/categ_N.c: New file.
14323         * lib/unictype/categ_Nd.c: New file.
14324         * lib/unictype/categ_Nl.c: New file.
14325         * lib/unictype/categ_No.c: New file.
14326         * lib/unictype/categ_P.c: New file.
14327         * lib/unictype/categ_Pc.c: New file.
14328         * lib/unictype/categ_Pd.c: New file.
14329         * lib/unictype/categ_Pe.c: New file.
14330         * lib/unictype/categ_Pf.c: New file.
14331         * lib/unictype/categ_Pi.c: New file.
14332         * lib/unictype/categ_Po.c: New file.
14333         * lib/unictype/categ_Ps.c: New file.
14334         * lib/unictype/categ_S.c: New file.
14335         * lib/unictype/categ_Sc.c: New file.
14336         * lib/unictype/categ_Sk.c: New file.
14337         * lib/unictype/categ_Sm.c: New file.
14338         * lib/unictype/categ_So.c: New file.
14339         * lib/unictype/categ_Z.c: New file.
14340         * lib/unictype/categ_Zl.c: New file.
14341         * lib/unictype/categ_Zp.c: New file.
14342         * lib/unictype/categ_Zs.c: New file.
14343         * lib/unictype/categ_and.c: New file.
14344         * lib/unictype/categ_and_not.c: New file.
14345         * lib/unictype/categ_byname.c: New file.
14346         * lib/unictype/categ_name.c: New file.
14347         * lib/unictype/categ_none.c: New file.
14348         * lib/unictype/categ_of.c: New file.
14349         * lib/unictype/categ_or.c: New file.
14350         * lib/unictype/categ_test.c: New file.
14351         * lib/unictype/combining.c: New file.
14352         * lib/unictype/ctype_alnum.c: New file.
14353         * lib/unictype/ctype_alpha.c: New file.
14354         * lib/unictype/ctype_blank.c: New file.
14355         * lib/unictype/ctype_cntrl.c: New file.
14356         * lib/unictype/ctype_digit.c: New file.
14357         * lib/unictype/ctype_graph.c: New file.
14358         * lib/unictype/ctype_lower.c: New file.
14359         * lib/unictype/ctype_print.c: New file.
14360         * lib/unictype/ctype_punct.c: New file.
14361         * lib/unictype/ctype_space.c: New file.
14362         * lib/unictype/ctype_upper.c: New file.
14363         * lib/unictype/ctype_xdigit.c: New file.
14364         * lib/unictype/decdigit.c: New file.
14365         * lib/unictype/digit.c: New file.
14366         * lib/unictype/identsyntaxmap.h: New file.
14367         * lib/unictype/mirror.c: New file.
14368         * lib/unictype/numeric.c: New file.
14369         * lib/unictype/pr_alphabetic.c: New file.
14370         * lib/unictype/pr_ascii_hex_digit.c: New file.
14371         * lib/unictype/pr_bidi_arabic_digit.c: New file.
14372         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
14373         * lib/unictype/pr_bidi_block_separator.c: New file.
14374         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
14375         * lib/unictype/pr_bidi_common_separator.c: New file.
14376         * lib/unictype/pr_bidi_control.c: New file.
14377         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
14378         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
14379         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
14380         * lib/unictype/pr_bidi_european_digit.c: New file.
14381         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
14382         * lib/unictype/pr_bidi_left_to_right.c: New file.
14383         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
14384         * lib/unictype/pr_bidi_other_neutral.c: New file.
14385         * lib/unictype/pr_bidi_pdf.c: New file.
14386         * lib/unictype/pr_bidi_segment_separator.c: New file.
14387         * lib/unictype/pr_bidi_whitespace.c: New file.
14388         * lib/unictype/pr_byname.c: New file.
14389         * lib/unictype/pr_byname.gperf: New file.
14390         * lib/unictype/pr_combining.c: New file.
14391         * lib/unictype/pr_composite.c: New file.
14392         * lib/unictype/pr_currency_symbol.c: New file.
14393         * lib/unictype/pr_dash.c: New file.
14394         * lib/unictype/pr_decimal_digit.c: New file.
14395         * lib/unictype/pr_default_ignorable_code_point.c: New file.
14396         * lib/unictype/pr_deprecated.c: New file.
14397         * lib/unictype/pr_diacritic.c: New file.
14398         * lib/unictype/pr_extender.c: New file.
14399         * lib/unictype/pr_format_control.c: New file.
14400         * lib/unictype/pr_grapheme_base.c: New file.
14401         * lib/unictype/pr_grapheme_extend.c: New file.
14402         * lib/unictype/pr_grapheme_link.c: New file.
14403         * lib/unictype/pr_hex_digit.c: New file.
14404         * lib/unictype/pr_hyphen.c: New file.
14405         * lib/unictype/pr_id_continue.c: New file.
14406         * lib/unictype/pr_id_start.c: New file.
14407         * lib/unictype/pr_ideographic.c: New file.
14408         * lib/unictype/pr_ids_binary_operator.c: New file.
14409         * lib/unictype/pr_ids_trinary_operator.c: New file.
14410         * lib/unictype/pr_ignorable_control.c: New file.
14411         * lib/unictype/pr_iso_control.c: New file.
14412         * lib/unictype/pr_join_control.c: New file.
14413         * lib/unictype/pr_left_of_pair.c: New file.
14414         * lib/unictype/pr_line_separator.c: New file.
14415         * lib/unictype/pr_logical_order_exception.c: New file.
14416         * lib/unictype/pr_lowercase.c: New file.
14417         * lib/unictype/pr_math.c: New file.
14418         * lib/unictype/pr_non_break.c: New file.
14419         * lib/unictype/pr_not_a_character.c: New file.
14420         * lib/unictype/pr_numeric.c: New file.
14421         * lib/unictype/pr_other_alphabetic.c: New file.
14422         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
14423         * lib/unictype/pr_other_grapheme_extend.c: New file.
14424         * lib/unictype/pr_other_id_continue.c: New file.
14425         * lib/unictype/pr_other_id_start.c: New file.
14426         * lib/unictype/pr_other_lowercase.c: New file.
14427         * lib/unictype/pr_other_math.c: New file.
14428         * lib/unictype/pr_other_uppercase.c: New file.
14429         * lib/unictype/pr_paired_punctuation.c: New file.
14430         * lib/unictype/pr_paragraph_separator.c: New file.
14431         * lib/unictype/pr_pattern_syntax.c: New file.
14432         * lib/unictype/pr_pattern_white_space.c: New file.
14433         * lib/unictype/pr_private_use.c: New file.
14434         * lib/unictype/pr_punctuation.c: New file.
14435         * lib/unictype/pr_quotation_mark.c: New file.
14436         * lib/unictype/pr_radical.c: New file.
14437         * lib/unictype/pr_sentence_terminal.c: New file.
14438         * lib/unictype/pr_soft_dotted.c: New file.
14439         * lib/unictype/pr_space.c: New file.
14440         * lib/unictype/pr_terminal_punctuation.c: New file.
14441         * lib/unictype/pr_test.c: New file.
14442         * lib/unictype/pr_titlecase.c: New file.
14443         * lib/unictype/pr_unassigned_code_value.c: New file.
14444         * lib/unictype/pr_unified_ideograph.c: New file.
14445         * lib/unictype/pr_uppercase.c: New file.
14446         * lib/unictype/pr_variation_selector.c: New file.
14447         * lib/unictype/pr_white_space.c: New file.
14448         * lib/unictype/pr_xid_continue.c: New file.
14449         * lib/unictype/pr_xid_start.c: New file.
14450         * lib/unictype/pr_zero_width.c: New file.
14451         * lib/unictype/scripts.c: New file.
14452         * lib/unictype/sy_c_ident.c: New file.
14453         * lib/unictype/sy_c_whitespace.c: New file.
14454         * lib/unictype/sy_java_ident.c: New file.
14455         * lib/unictype/sy_java_whitespace.c: New file.
14456
14457         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
14458         Unicode 5.0.0.
14459         * lib/unictype/blocks.h: Likewise.
14460         * lib/unictype/categ_C.h: Likewise.
14461         * lib/unictype/categ_Cc.h: Likewise.
14462         * lib/unictype/categ_Cf.h: Likewise.
14463         * lib/unictype/categ_Cn.h: Likewise.
14464         * lib/unictype/categ_Co.h: Likewise.
14465         * lib/unictype/categ_Cs.h: Likewise.
14466         * lib/unictype/categ_L.h: Likewise.
14467         * lib/unictype/categ_Ll.h: Likewise.
14468         * lib/unictype/categ_Lm.h: Likewise.
14469         * lib/unictype/categ_Lo.h: Likewise.
14470         * lib/unictype/categ_Lt.h: Likewise.
14471         * lib/unictype/categ_Lu.h: Likewise.
14472         * lib/unictype/categ_M.h: Likewise.
14473         * lib/unictype/categ_Mc.h: Likewise.
14474         * lib/unictype/categ_Me.h: Likewise.
14475         * lib/unictype/categ_Mn.h: Likewise.
14476         * lib/unictype/categ_N.h: Likewise.
14477         * lib/unictype/categ_Nd.h: Likewise.
14478         * lib/unictype/categ_Nl.h: Likewise.
14479         * lib/unictype/categ_No.h: Likewise.
14480         * lib/unictype/categ_P.h: Likewise.
14481         * lib/unictype/categ_Pc.h: Likewise.
14482         * lib/unictype/categ_Pd.h: Likewise.
14483         * lib/unictype/categ_Pe.h: Likewise.
14484         * lib/unictype/categ_Pf.h: Likewise.
14485         * lib/unictype/categ_Pi.h: Likewise.
14486         * lib/unictype/categ_Po.h: Likewise.
14487         * lib/unictype/categ_Ps.h: Likewise.
14488         * lib/unictype/categ_S.h: Likewise.
14489         * lib/unictype/categ_Sc.h: Likewise.
14490         * lib/unictype/categ_Sk.h: Likewise.
14491         * lib/unictype/categ_Sm.h: Likewise.
14492         * lib/unictype/categ_So.h: Likewise.
14493         * lib/unictype/categ_Z.h: Likewise.
14494         * lib/unictype/categ_Zl.h: Likewise.
14495         * lib/unictype/categ_Zp.h: Likewise.
14496         * lib/unictype/categ_Zs.h: Likewise.
14497         * lib/unictype/categ_of.h: Likewise.
14498         * lib/unictype/combining.h: Likewise.
14499         * lib/unictype/ctype_alnum.h: Likewise.
14500         * lib/unictype/ctype_alpha.h: Likewise.
14501         * lib/unictype/ctype_blank.h: Likewise.
14502         * lib/unictype/ctype_cntrl.h: Likewise.
14503         * lib/unictype/ctype_digit.h: Likewise.
14504         * lib/unictype/ctype_graph.h: Likewise.
14505         * lib/unictype/ctype_lower.h: Likewise.
14506         * lib/unictype/ctype_print.h: Likewise.
14507         * lib/unictype/ctype_punct.h: Likewise.
14508         * lib/unictype/ctype_space.h: Likewise.
14509         * lib/unictype/ctype_upper.h: Likewise.
14510         * lib/unictype/ctype_xdigit.h: Likewise.
14511         * lib/unictype/decdigit.h: Likewise.
14512         * lib/unictype/digit.h: Likewise.
14513         * lib/unictype/mirror.h: Likewise.
14514         * lib/unictype/numeric.h: Likewise.
14515         * lib/unictype/pr_alphabetic.h: Likewise.
14516         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
14517         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
14518         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
14519         * lib/unictype/pr_bidi_block_separator.h: Likewise.
14520         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
14521         * lib/unictype/pr_bidi_common_separator.h: Likewise.
14522         * lib/unictype/pr_bidi_control.h: Likewise.
14523         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
14524         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
14525         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
14526         * lib/unictype/pr_bidi_european_digit.h: Likewise.
14527         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
14528         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
14529         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
14530         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
14531         * lib/unictype/pr_bidi_pdf.h: Likewise.
14532         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
14533         * lib/unictype/pr_bidi_whitespace.h: Likewise.
14534         * lib/unictype/pr_combining.h: Likewise.
14535         * lib/unictype/pr_composite.h: Likewise.
14536         * lib/unictype/pr_currency_symbol.h: Likewise.
14537         * lib/unictype/pr_dash.h: Likewise.
14538         * lib/unictype/pr_decimal_digit.h: Likewise.
14539         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
14540         * lib/unictype/pr_deprecated.h: Likewise.
14541         * lib/unictype/pr_diacritic.h: Likewise.
14542         * lib/unictype/pr_extender.h: Likewise.
14543         * lib/unictype/pr_format_control.h: Likewise.
14544         * lib/unictype/pr_grapheme_base.h: Likewise.
14545         * lib/unictype/pr_grapheme_extend.h: Likewise.
14546         * lib/unictype/pr_grapheme_link.h: Likewise.
14547         * lib/unictype/pr_hex_digit.h: Likewise.
14548         * lib/unictype/pr_hyphen.h: Likewise.
14549         * lib/unictype/pr_id_continue.h: Likewise.
14550         * lib/unictype/pr_id_start.h: Likewise.
14551         * lib/unictype/pr_ideographic.h: Likewise.
14552         * lib/unictype/pr_ids_binary_operator.h: Likewise.
14553         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
14554         * lib/unictype/pr_ignorable_control.h: Likewise.
14555         * lib/unictype/pr_iso_control.h: Likewise.
14556         * lib/unictype/pr_join_control.h: Likewise.
14557         * lib/unictype/pr_left_of_pair.h: Likewise.
14558         * lib/unictype/pr_line_separator.h: Likewise.
14559         * lib/unictype/pr_logical_order_exception.h: Likewise.
14560         * lib/unictype/pr_lowercase.h: Likewise.
14561         * lib/unictype/pr_math.h: Likewise.
14562         * lib/unictype/pr_non_break.h: Likewise.
14563         * lib/unictype/pr_not_a_character.h: Likewise.
14564         * lib/unictype/pr_numeric.h: Likewise.
14565         * lib/unictype/pr_other_alphabetic.h: Likewise.
14566         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
14567         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
14568         * lib/unictype/pr_other_id_continue.h: Likewise.
14569         * lib/unictype/pr_other_id_start.h: Likewise.
14570         * lib/unictype/pr_other_lowercase.h: Likewise.
14571         * lib/unictype/pr_other_math.h: Likewise.
14572         * lib/unictype/pr_other_uppercase.h: Likewise.
14573         * lib/unictype/pr_paired_punctuation.h: Likewise.
14574         * lib/unictype/pr_paragraph_separator.h: Likewise.
14575         * lib/unictype/pr_pattern_syntax.h: Likewise.
14576         * lib/unictype/pr_pattern_white_space.h: Likewise.
14577         * lib/unictype/pr_private_use.h: Likewise.
14578         * lib/unictype/pr_punctuation.h: Likewise.
14579         * lib/unictype/pr_quotation_mark.h: Likewise.
14580         * lib/unictype/pr_radical.h: Likewise.
14581         * lib/unictype/pr_sentence_terminal.h: Likewise.
14582         * lib/unictype/pr_soft_dotted.h: Likewise.
14583         * lib/unictype/pr_space.h: Likewise.
14584         * lib/unictype/pr_terminal_punctuation.h: Likewise.
14585         * lib/unictype/pr_titlecase.h: Likewise.
14586         * lib/unictype/pr_unassigned_code_value.h: Likewise.
14587         * lib/unictype/pr_unified_ideograph.h: Likewise.
14588         * lib/unictype/pr_uppercase.h: Likewise.
14589         * lib/unictype/pr_variation_selector.h: Likewise.
14590         * lib/unictype/pr_white_space.h: Likewise.
14591         * lib/unictype/pr_xid_continue.h: Likewise.
14592         * lib/unictype/pr_xid_start.h: Likewise.
14593         * lib/unictype/pr_zero_width.h: Likewise.
14594         * lib/unictype/scripts.h: Likewise.
14595         * lib/unictype/scripts_byname.gperf: Likewise.
14596         * lib/unictype/sy_c_ident.h: Likewise.
14597         * lib/unictype/sy_c_whitespace.h: Likewise.
14598         * lib/unictype/sy_java_ident.h: Likewise.
14599         * lib/unictype/sy_java_whitespace.h: Likewise.
14600
14601         * lib/unictype/Makefile: New file.
14602         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
14603         glibc.
14604         * lib/unictype/3level.h: New file, copied from glibc.
14605         * lib/unictype/3levelbit.h: New file.
14606
14607 2007-11-11  Bruno Haible  <bruno@clisp.org>
14608
14609         * modules/gperf: New file.
14610         * modules/iconv_open (Depends-on): Add it.
14611         (Makefile.am): Remove the GPERF definition.
14612
14613 2007-11-11  Bruno Haible  <bruno@clisp.org>
14614
14615         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
14616         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
14617
14618 2007-11-11  Bruno Haible  <bruno@clisp.org>
14619
14620         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
14621         (usage): Remove function.
14622
14623 2007-11-11  Bruno Haible  <bruno@clisp.org>
14624
14625         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
14626         gl_FUNC_CEILF_LIBS.
14627         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
14628         gl_FUNC_CEIL_LIBS.
14629         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
14630         gl_FUNC_CEILL_LIBS.
14631         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
14632         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
14633         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
14634
14635 2007-11-11  Bruno Haible  <bruno@clisp.org>
14636
14637         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
14638         roundf were declared but do not exist on functions.
14639         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
14640         roundl were declared but do not exist on functions.
14641         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
14642         HAVE_FLOORL_AND_CEILL, respectively.
14643         Needed for Sun C on Solaris 10.
14644
14645 2007-11-11  Bruno Haible  <bruno@clisp.org>
14646
14647         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
14648         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
14649         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
14650         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
14651         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
14652         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
14653         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
14654         HAVE_DECL_ROUNDF.
14655         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
14656         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
14657         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
14658         of HAVE_DECL_ROUND*.
14659         * modules/math (Makefile.am): Update.
14660
14661 2007-11-10  Bruno Haible  <bruno@clisp.org>
14662
14663         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
14664         ptrdiff_t as m4/intl.m4.
14665
14666 2007-11-10  Jim Meyering  <meyering@redhat.com>
14667
14668         Avoid link failure for the argmatch test.
14669         * tests/test-argmatch.c (usage): Define function to avoid a link
14670         failure: argmatch_die requires a usage function.
14671
14672 2007-11-09  Bruno Haible  <bruno@clisp.org>
14673
14674         * doc/functions/snprintf.texi: Mention BeOS deficiency.
14675         * doc/functions/vsnprintf.texi: Likewise.
14676         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
14677         with a size argument < 2.
14678
14679 2007-11-09  Bruno Haible  <bruno@clisp.org>
14680
14681         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
14682         buffer. Fixes an inefficiency introduced on 2007-11-03.
14683
14684 2007-11-09  Bruno Haible  <bruno@clisp.org>
14685
14686         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
14687         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
14688
14689 2007-11-08  Jim Meyering  <meyering@redhat.com>
14690
14691         Change cache variable name prefix "jm_" to "gl_" everywhere.
14692         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
14693         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
14694         * m4/uptime.m4: s/gl_/jm_/
14695
14696 2007-11-07  Bruno Haible  <bruno@clisp.org>
14697
14698         Update to GNU gettext 0.17.
14699         * m4/intl.m4: Update to GNU gettext 0.17.
14700         * m4/po.m4: Likewise.
14701         * modules/gettext (Files): Remove m4/ulonglong.m4.
14702         (configure.ac): Require gettext infrastructure from version 0.17.
14703
14704 2007-11-06  Bruno Haible  <bruno@clisp.org>
14705
14706         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
14707         symbolic values are not defined in a public header.
14708         * lib/freadable.c (freadable) [QNX]: Likewise.
14709         * lib/freadahead.c (freadahead) [QNX]: Likewise.
14710         * lib/freading.c (freading) [QNX]: Likewise.
14711         * lib/fseterr.c (fseterr) [QNX]: Likewise.
14712         * lib/fwritable.c (fwritable) [QNX]: Likewise.
14713         * lib/fwriting.c (fwriting) [QNX]: Likewise.
14714         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
14715         Reported by Alain Magloire.
14716
14717         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
14718
14719 2007-11-05  Bruno Haible  <bruno@clisp.org>
14720
14721         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
14722         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
14723         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
14724         Reported by Eric Blake.
14725
14726 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14727             Bruno Haible  <bruno@clisp.org>
14728
14729         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
14730         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
14731         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
14732         (malloc): Undefine also before including <stdlib.h>.
14733         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
14734         Needed on OSF/1 4.0.
14735
14736 2007-11-05  Jim Meyering  <meyering@redhat.com>
14737
14738         git-version-gen: sync from coreutils.
14739         * build-aux/git-version-gen: Add comments.
14740         Change the first '-' to '.' in the snapshot version string,
14741         e.g., 6.9-377-08144 -> 6.9.377-08144
14742         Remove first parameter.
14743         Don't declare a version "-dirty" merely because a time
14744         stamp has changed.
14745
14746 2007-11-04  Bruno Haible  <bruno@clisp.org>
14747
14748         * lib/lock.h: Protect all macro definitions containing an 'if'
14749         statement through a "do { ... } while (0)".
14750         * lib/tls.h: Likewise.
14751
14752 2007-11-04  Bruno Haible  <bruno@clisp.org>
14753
14754         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
14755
14756 2007-11-04  Bruno Haible  <bruno@clisp.org>
14757
14758         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
14759         * modules/fprintf-posix (Depends-on): Add nocrash.
14760         * modules/snprintf-posix (Depends-on): Likewise.
14761         * modules/sprintf-posix (Depends-on): Likewise.
14762         * modules/vasnprintf-posix (Depends-on): Likewise.
14763         * modules/vasprintf-posix (Depends-on): Likewise.
14764         * modules/vfprintf-posix (Depends-on): Likewise.
14765         * modules/vsnprintf-posix (Depends-on): Likewise.
14766         * modules/vsprintf-posix (Depends-on): Likewise.
14767         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
14768         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14769         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14770         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14771         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14772         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14773         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14774
14775 2007-11-04  Bruno Haible  <bruno@clisp.org>
14776
14777         * modules/nocrash: New file.
14778         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
14779         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
14780
14781 2007-11-04  Bruno Haible  <bruno@clisp.org>
14782
14783         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
14784         precision handling.
14785         * tests/test-vasprintf-posix.c (test_function): Likewise.
14786         * tests/test-snprintf-posix.h (test_function): Likewise.
14787         * tests/test-sprintf-posix.h (test_function): Likewise.
14788
14789         Fix *printf behaviour for large precisions on mingw and BeOS.
14790         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
14791         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
14792         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
14793         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
14794         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14795         gl_PRINTF_PRECISION and test its result. Invoke
14796         gl_PREREQ_VASNPRINTF_PRECISION.
14797         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14798         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14799         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14800         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14801         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14802         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14803         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14804         * doc/functions/fprintf.texi: Update.
14805         * doc/functions/printf.texi: Update.
14806         * doc/functions/snprintf.texi: Update.
14807         * doc/functions/sprintf.texi: Update.
14808         * doc/functions/vfprintf.texi: Update.
14809         * doc/functions/vprintf.texi: Update.
14810         * doc/functions/vsnprintf.texi: Update.
14811         * doc/functions/vsprintf.texi: Update.
14812
14813 2007-11-04  Bruno Haible  <bruno@clisp.org>
14814
14815         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
14816
14817 2007-11-04  Bruno Haible  <bruno@clisp.org>
14818
14819         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
14820         Reported by Sylvain Beucler <beuc@gnu.org>.
14821
14822 2007-11-03  Bruno Haible  <bruno@clisp.org>
14823
14824         * tests/test-fprintf-posix2.sh: New file.
14825         * tests/test-fprintf-posix2.c: New file.
14826         * modules/fprintf-posix-tests (Files): Add them.
14827         (TESTS): Add test-fprintf-posix2.sh.
14828         (configure.ac): Check for getrlimit and setrlimit.
14829         (check_PROGRAMS): Add test-fprintf-posix2.
14830
14831         * tests/test-printf-posix2.sh: New file.
14832         * tests/test-printf-posix2.c: New file.
14833         * modules/printf-posix-tests (Files): Add them.
14834         (TESTS): Add test-printf-posix2.sh.
14835         (configure.ac): Check for getrlimit and setrlimit.
14836         (check_PROGRAMS): Add test-printf-posix2.
14837
14838         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
14839         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
14840         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
14841         (decode_double): New function, copied from decode_long_double.
14842         (scale10_round_decimal_decoded): New function, extracted from
14843         scale10_round_decimal_long_double.
14844         (scale10_round_decimal_long_double): Use it.
14845         (scale10_round_decimal_double): New function.
14846         (floorlog10): New function.
14847         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
14848         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
14849         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
14850         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14851         gl_PRINTF_ENOMEM and test its result. Invoke
14852         gl_PREREQ_VASNPRINTF_ENOMEM.
14853         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14854         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14855         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14856         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14857         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14858         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14859         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14860         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
14861         * modules/snprintf-posix (Depends-on): Likewise.
14862         * modules/sprintf-posix (Depends-on): Likewise.
14863         * modules/vasnprintf-posix (Depends-on): Likewise.
14864         * modules/vasprintf-posix (Depends-on): Likewise.
14865         * modules/vfprintf-posix (Depends-on): Likewise.
14866         * modules/vsnprintf-posix (Depends-on): Likewise.
14867         * modules/vsprintf-posix (Depends-on): Likewise.
14868         * doc/functions/fprintf.texi: Update.
14869         * doc/functions/printf.texi: Update.
14870         * doc/functions/snprintf.texi: Update.
14871         * doc/functions/sprintf.texi: Update.
14872         * doc/functions/vfprintf.texi: Update.
14873         * doc/functions/vprintf.texi: Update.
14874         * doc/functions/vsnprintf.texi: Update.
14875         * doc/functions/vsprintf.texi: Update.
14876
14877 2007-11-03  Bruno Haible  <bruno@clisp.org>
14878
14879         * modules/frexp-nolibm-tests: New file.
14880
14881         * modules/frexp-nolibm: New file.
14882         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
14883
14884 2007-11-03  Bruno Haible  <bruno@clisp.org>
14885
14886         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
14887         value is C99 compliant.
14888         Needed for OSF/1 5.1.
14889
14890 2007-11-03  Bruno Haible  <bruno@clisp.org>
14891
14892         Fix out-of-memory handling of vasnprintf.
14893         * lib/printf-parse.c: Include <errno.h>.
14894         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
14895         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
14896         is already set.
14897
14898 2007-11-02  Eric Blake  <ebb9@byu.net>
14899
14900         Fix tests on cygwin.
14901         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
14902
14903 2007-11-01  Bruno Haible  <bruno@clisp.org>
14904
14905         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
14906         warning.
14907         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
14908         needed for POSIX compatibility.
14909
14910 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
14911
14912         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
14913         for compatibility with GNU.
14914
14915 2007-11-01  Bruno Haible  <bruno@clisp.org>
14916
14917         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
14918         (putenv): Renamed from rpl_putenv. Change argument type from
14919         'const char *' to 'char *'.
14920         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
14921         of defining putenv in config.h, just set REPLACE_PUTENV.
14922         * modules/putenv (Depends-on): Add stdlib.
14923         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
14924         (Include): Use <stdlib.h>.
14925         * lib/stdlib.in.h (putenv): New declaration.
14926         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
14927         REPLACE_PUTENV.
14928         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
14929         REPLACE_PUTENV.
14930         Needed for MacOS X 10.5.0.
14931         Reported by Peter O'Gorman <peter@pogma.com>.
14932
14933 2007-11-01  Jim Meyering  <meyering@redhat.com>
14934
14935         Treat an empty date string exactly like "0".
14936         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
14937         if the remaining date string (to be parsed) is empty, use "0".
14938         Reported by Mischa Molhoek and discussed in this thread:
14939         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
14940
14941 2007-10-31  Bruno Haible  <bruno@clisp.org>
14942
14943         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
14944         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
14945         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
14946         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
14947         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
14948         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
14949
14950 2007-10-31  Bruno Haible  <bruno@clisp.org>
14951
14952         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
14953         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
14954         (AC_TYPE_LONG_LONG_INT): Use it.
14955         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
14956         it as well.
14957         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
14958         to m4/longlong.m4.
14959         * modules/stdint (Files): Remove m4/ulonglong.m4.
14960         * modules/strtoull (Files): Use m4/longlong.m4 instead of
14961         m4/ulonglong.m4.
14962         * modules/strtoumax (Files): Likewise.
14963
14964 2007-10-30  Bruno Haible  <bruno@clisp.org>
14965
14966         * modules/xvasprintf-posix: New file.
14967         Suggested by Eric Blake.
14968
14969 2007-10-30  Bruno Haible  <bruno@clisp.org>
14970
14971         * modules/xprintf-posix-tests: New file.
14972         * tests/test-xprintf-posix.sh: New file.
14973         * tests/test-xprintf-posix.c: New file.
14974         * tests/test-xfprintf-posix.c: New file.
14975
14976         * modules/xprintf-posix: New file.
14977
14978 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14979
14980         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
14981         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
14982         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
14983
14984 2007-10-29  Bruno Haible  <bruno@clisp.org>
14985
14986         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
14987         contain the special marker '_cv_'.
14988         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
14989         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
14990         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
14991         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
14992         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
14993         Reported by Ralf Wildenhues.
14994
14995 2007-10-29  Bruno Haible  <bruno@clisp.org>
14996
14997         * gnulib-tool (func_import): When --lgpl is not specified, set
14998         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
14999         GPLv3.
15000         Reported by Simon Josefsson.
15001
15002 2007-10-28  Bruno Haible  <bruno@clisp.org>
15003
15004         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
15005         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
15006         HAVE_DECL_ISFINITE.
15007         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
15008         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
15009         HAVE_DECL_ISFINITE.
15010
15011 2007-10-28  Bruno Haible  <bruno@clisp.org>
15012
15013         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
15014         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
15015
15016 2007-10-28  Bruno Haible  <bruno@clisp.org>
15017
15018         Fix link errors with Sun C 5.0 on Solaris 10.
15019         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
15020         function is declared but not present in the compiler's libm.
15021         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
15022         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15023         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
15024         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
15025         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
15026         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
15027         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
15028         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
15029         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
15030         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
15031         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
15032         HAVE_DECL_FLOORL.
15033
15034 2007-10-28  Bruno Haible  <bruno@clisp.org>
15035
15036         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
15037         gl_FUNC_FLOORL. Cache the result.
15038         (gl_FUNC_FLOORL): Use it.
15039         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
15040         gl_FUNC_CEILL. Cache the result.
15041         (gl_FUNC_CEILL): Use it.
15042
15043         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
15044         gl_FUNC_FLOOR. Cache the result.
15045         (gl_FUNC_FLOOR): Use it.
15046         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
15047         gl_FUNC_CEIL. Cache the result.
15048         (gl_FUNC_CEIL): Use it.
15049
15050         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
15051         gl_FUNC_FLOORF. Cache the result.
15052         (gl_FUNC_FLOORF): Use it.
15053         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
15054         gl_FUNC_CEILF. Cache the result.
15055         (gl_FUNC_CEILF): Use it.
15056
15057 2007-10-28  Bruno Haible  <bruno@clisp.org>
15058
15059         * gnulib-tool: Allow specifying the LGPL version number through
15060         --lgpl=2 or --lgpl=3.
15061         (func_usage): Document --lgpl with argument.
15062         Handle --lgpl=... arguments.
15063         (func_import): Recognize also gl_LGPL calls with an argument. When
15064         --lgpl=2 is used and the module's license is just LGPL, report an
15065         error. Set sed_transform_lib_file according to the lgpl variable. In
15066         the generated files, use --lgpl or gl_LGPL invocations with argument,
15067         if necessary.
15068         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
15069         an LGPv2+ license.
15070         * doc/gnulib-tool.texi (Modified imports): Update explanation of
15071         gl_LGPL macro.
15072
15073 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15074             Bruno Haible  <bruno@clisp.org>
15075
15076         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
15077         (u16_uctomb_aux): Likewise.
15078         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
15079         !HAVE_INLINE.
15080         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
15081
15082 2007-10-28  Bruno Haible  <bruno@clisp.org>
15083
15084         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
15085         Invoke AM_GETTEXT_OPTION if it exists.
15086         * modules/vasprintf: Likewise.
15087         * modules/verror: Likewise.
15088         * modules/xprintf: Likewise.
15089         * modules/xvasprintf: Likewise.
15090
15091 2007-10-27  Ben Pfaff  <blp@gnu.org>
15092
15093         * lib/math.in.h: Define isfinite macro and prototypes for
15094         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
15095         implementations.
15096         * m4/math_h.m4: New substitutions for isfinite module.
15097         * lib/isfinite.c: New file.
15098         * m4/isfinite.m4: New file.
15099         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
15100         * modules/isfinite: New file.
15101         * modules/isfinite-tests: New file.
15102         * tests/tests-isfinite.c: New file.
15103         * doc/functions/isfinite.texi: Mention isfinite module.
15104         * MODULES.html.sh: Mention new module.
15105
15106 2007-10-27  Ben Pfaff  <blp@gnu.org>
15107
15108         Ralf Wildenhues reported that Tru64 4.0D declares the round
15109         functions but does not have definitions.
15110         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
15111         cannot be found in any library, set the output variable to
15112         "missing" instead of "".
15113         * m4/round.m4: Also use our substitute if we cannot find round in
15114         any library, even if it is declared.
15115         * m4/roundf.m4: Likewise for roundf.
15116         * m4/roundl.m4: Likewise for roundl.
15117         * lib/math.in.h: Undefine roundf, round, roundl before defining
15118         their replacements, to allow for hypothetical systems where these
15119         may be defined as macros but not available in libraries.
15120
15121 2007-10-27  Bruno Haible  <bruno@clisp.org>
15122
15123         * doc/gnulib.texi: Invoke @firstparagraphindent.
15124         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
15125         changes in gnulib.
15126         (Source changes): New section.
15127
15128 2007-10-26  Bruno Haible  <bruno@clisp.org>
15129
15130         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
15131         borrowed from autoconf.
15132
15133 2007-10-26  Bruno Haible  <bruno@clisp.org>
15134
15135         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
15136         strerror returned the empty string. Needed on HP-UX 11.00.
15137
15138 2007-10-24  Micah Cowan  <micah@cowan.name>
15139
15140         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
15141         * build-aux/bootstrap: Remove support for now-unnecessary option,
15142         --cvs-user, and envvars CVS_USER, CVS_RSH.
15143
15144 2007-10-24  Jim Meyering  <meyering@redhat.com>
15145
15146         Avoid diagnostics from sha1sum when there is no cached checksum.
15147         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
15148         if the po.s1 file hasn't been created yet.
15149
15150         * build-aux/bootstrap: Sync from coreutils:
15151         2007-10-24  Jim Meyering  <meyering@redhat.com>
15152         Get gnulib from the git repository, not from an obsolete cvs one.
15153         * build-aux/bootstrap: Suggestion from Micah Cowan.
15154         2007-10-04  Jim Meyering  <jim@meyering.net>
15155         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
15156         (update_po_files): Work also when there are no .po files in po/.
15157
15158 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15159
15160         * README: Append ".git" to git and cg examples.
15161         Problem reported by Benoit Sigoure.
15162
15163 2007-10-23  Micah Cowan  <micah@cowan.name>
15164
15165         * users.txt: Add wget.
15166
15167 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15168
15169         Fix linking of some unistdio tests on FreeBSD.
15170         * modules/unistdio/u16-vsnprintf-tests
15171         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
15172         * modules/unistdio/u16-vsprintf-tests
15173         (test_u16_vsnprintf1_LDADD): Likewise.
15174         * modules/unistdio/u32-vsnprintf-tests
15175         (test_u32_vsnprintf1_LDADD): Likewise.
15176         * modules/unistdio/u32-vsprintf-tests
15177         (test_u32_vsprintf1_LDADD): Likewise.
15178         * modules/unistdio/u8-vsnprintf-tests
15179         (test_u8_vsnprintf1_LDADD): Likewise.
15180         * modules/unistdio/u8-vsprintf-tests
15181         (test_u8_vsprintf1_LDADD): Likewise.
15182         * modules/unistdio/ulc-vsnprintf-tests
15183         (test_ulc_vsnprintf1_LDADD): Likewise.
15184         * modules/unistdio/ulc-vsprintf-tests
15185         (test_ulc_vsprintf1_LDADD): Likewise.
15186
15187         Fix linking of some uniconv tests on FreeBSD.
15188         * modules/uniconv/u16-conv-from-enc-tests
15189         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
15190         * modules/uniconv/u16-conv-to-enc-tests
15191         (test_u16_conv_to_enc_LDADD): Likewise.
15192         * modules/uniconv/u16-strconv-from-enc-tests
15193         (test_u16_strconv_from_enc_LDADD): Likewise.
15194         * modules/uniconv/u16-strconv-to-enc-tests
15195         (test_u16_strconv_to_enc_LDADD): Likewise.
15196         * modules/uniconv/u32-conv-from-enc-tests
15197         (test_u32_conv_from_enc_LDADD): Likewise.
15198         * modules/uniconv/u32-conv-to-enc-tests
15199         (test_u32_conv_to_enc_LDADD): Likewise.
15200         * modules/uniconv/u32-strconv-from-enc-tests
15201         (test_u32_strconv_from_enc_LDADD): Likewise.
15202         * modules/uniconv/u32-strconv-to-enc-tests
15203         (test_u32_strconv_to_enc_LDADD): Likewise.
15204         * modules/uniconv/u8-conv-from-enc-tests
15205         (test_u8_conv_from_enc_LDADD): Likewise.
15206         * modules/uniconv/u8-conv-to-enc-tests
15207         (test_u8_conv_to_enc_LDADD): Likewise.
15208         * modules/uniconv/u8-strconv-from-enc-tests
15209         (test_u8_strconv_from_enc_LDADD): Likewise.
15210         * modules/uniconv/u8-strconv-to-enc-tests
15211         (test_u8_strconv_to_enc_LDADD): Likewise.
15212
15213 2007-10-22  Bruno Haible  <bruno@clisp.org>
15214
15215         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
15216         size.
15217
15218 2007-10-22  Eric Blake  <ebb9@byu.net>
15219
15220         Tweak x*printf documentation.
15221         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
15222         variable name and comments.
15223         Suggested by Bruno Haible.
15224
15225 2007-10-22  Bruno Haible  <bruno@clisp.org>
15226
15227         * lib/acl.c (copy_acl): Fix file name in comment.
15228
15229 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
15230
15231         Fix Tru64 problem with stdbool.h.
15232         * lib/stdbool.in.h (false, true):
15233         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
15234         Don't declare as an enum in this situation; it runs afoul of Tru64.
15235         Problem reported by Steven M. Schweda in
15236         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
15237
15238 2007-10-22  Eric Blake  <ebb9@byu.net>
15239
15240         Also wrap vf?printf.
15241         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
15242         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
15243         (xvprintf, xvfprintf): New functions.
15244
15245 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15246
15247         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
15248         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
15249
15250         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
15251         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
15252
15253 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
15254
15255         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
15256         by Bruno Haible.
15257
15258 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15259
15260         * lib/getloadavg.c
15261         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
15262         Undef `sys' after including sys/table.h, for Tru64 4.0D.
15263
15264         * tests/test-i-ring.c: Work for C89.
15265
15266 2007-10-22  Bruno Haible  <bruno@clisp.org>
15267
15268         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
15269         -1u, in preprocessor expression, so that we don't test for the bug
15270         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
15271         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
15272
15273 2007-10-22  Eric Blake  <ebb9@byu.net>
15274
15275         * tests/test-yesno.sh: Silence stderr during test.
15276
15277 2007-10-22  Simon Josefsson  <simon@josefsson.org>
15278
15279         * modules/crypto/gc-camellia: New file.
15280
15281         * m4/gc-camellia.m4: New file.
15282
15283         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
15284
15285         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
15286
15287 2007-10-22  Simon Josefsson  <simon@josefsson.org>
15288
15289         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
15290         --help to stdout.  Reported by sms@antinode.org (Steven
15291         M. Schweda).
15292
15293 2007-10-22  Simon Josefsson  <simon@josefsson.org>
15294
15295         * users.txt: Fix link to libksba.
15296
15297 2007-10-21  Ben Pfaff  <blp@gnu.org>
15298
15299         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
15300         round.c roundf implementation that depends on floorf and ceilf to
15301         be tested unconditionally.
15302
15303 2007-10-21  Ben Pfaff  <blp@gnu.org>
15304
15305         * m4/check-libm-func.m4: Removed.
15306         * m4/check-math-lib.m4: New file.
15307         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
15308         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
15309         definition and lack of AC_LIBOBJ([roundf]).
15310         * m4/roundl.m4: Ditto, and similarly for roundl.
15311         * modules/round: Reference new m4 file.
15312         * modules/roundf: Ditto.
15313         * modules/roundl: Ditto.
15314         * tests/test-round2.c (main): Use ROUND instead of round.
15315         Bug report from Bruno Haible.
15316
15317 2007-10-21  Bruno Haible  <bruno@clisp.org>
15318
15319         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
15320         context.
15321
15322 2007-10-21  Bruno Haible  <bruno@clisp.org>
15323
15324         * tests/test-wcwidth.c (main): Allow negative result for some control
15325         characters.
15326
15327         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
15328         Needed on OSF/1 5.1.
15329
15330 2007-10-21  Bruno Haible  <bruno@clisp.org>
15331
15332         * tests/test-floorf1.c: Include isnanf.h.
15333         (main): Use isnanf() instead of isnan().
15334         * tests/test-ceilf1.c: Include isnanf.h.
15335         (main): Use isnanf() instead of isnan().
15336         * tests/test-truncf1.c: Include isnanf.h.
15337         (main): Use isnanf() instead of isnan().
15338         * tests/test-roundf1.c: Include isnanf.h.
15339         (main): Use isnanf() instead of isnan().
15340
15341 2007-10-21  Eric Blake  <ebb9@byu.net>
15342
15343         * users.txt: Update URL for m4.
15344
15345 2007-10-21  Bruno Haible  <bruno@clisp.org>
15346
15347         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
15348
15349 2007-10-21  Bruno Haible  <bruno@clisp.org>
15350
15351         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
15352         Git's management files if the CVS files are not present.
15353
15354 2007-10-20  Bruno Haible  <bruno@clisp.org>
15355
15356         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
15357         gcc-3.4.x.
15358
15359 2007-10-20  Ben Pfaff  <blp@gnu.org>
15360
15361         * lib/math.in.h: Declare round, roundf, roundl if we are providing
15362         implementations.
15363         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
15364         * lib/round.c: New file.
15365         * lib/roundf.c: New file.
15366         * lib/roundl.c: New file.
15367         * m4/round.m4: New file.
15368         * m4/roundf.m4: New file.
15369         * m4/roundl.m4: New file.
15370         * m4/check-libm-func-m4: New file.
15371         * modules/math: Replace round, roundf, roundl related @VARS@ in
15372         math.in.h.
15373         * modules/round: New file.
15374         * modules/round-tests: New file.
15375         * modules/roundf: New file.
15376         * modules/roundf-tests: New file.
15377         * modules/roundl: New file.
15378         * modules/roundl-tests: New file.
15379         * tests/test-round1.c: New file.
15380         * tests/test-round2.c: New file.
15381         * tests/test-roundf1.c: New file.
15382         * tests/test-roundf2.c: New file.
15383         * tests/test-roundl.c: New file.
15384         * doc/functions/round.texi: Mention round module.
15385         * doc/functions/roundf.texi: Mention roundf module.
15386         * doc/functions/roundl.texi: Mention roundl module.
15387         * MODULES.html.sh: Mention new modules.
15388         Thanks to Bruno Haible for suggestions.
15389
15390 2007-10-20  Jim Meyering  <meyering@redhat.com>
15391
15392         * lib/xprintf.c: Include <config.h> unconditionally.
15393
15394         Change xprintf's license to GPL.
15395         * modules/xprintf (License): s/LGPL/GPL/, since this module
15396         depends on modules (exit and exitfail) which are GPL.
15397         Suggestion from Bruno Haible.
15398
15399         xprintf fixes.
15400         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
15401         Use a clearer diagnostic.
15402         Patch from Bruno Haible.
15403
15404 2007-10-20  Bruno Haible  <bruno@clisp.org>
15405
15406         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
15407         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
15408         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15409
15410 2007-10-20  Bruno Haible  <bruno@clisp.org>
15411
15412         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
15413         precision in the comparison result > x - 1 or similar.
15414         * tests/test-ceilf2.c (correct_result_p): Likewise.
15415         * tests/test-truncf2.c (correct_result_p): Likewise.
15416         * tests/test-trunc2.c (correct_result_p): Likewise.
15417         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15418
15419 2007-10-20  Bruno Haible  <bruno@clisp.org>
15420
15421         * modules/ceil: New file.
15422         * m4/ceil.m4: New file.
15423         * doc/functions/ceil.texi: Mention the 'ceil' module.
15424
15425 2007-10-20  Bruno Haible  <bruno@clisp.org>
15426
15427         * modules/floor: New file.
15428         * m4/floor.m4: New file.
15429         * doc/functions/floor.texi: Mention the 'floor' module.
15430
15431 2007-10-20  Bruno Haible  <bruno@clisp.org>
15432
15433         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
15434         of %a.
15435         * modules/floorf-tests (Depends-on): Likewise.
15436         * modules/truncf-tests (Depends-on): Likewise.
15437         * modules/trunc-tests (Depends-on): Likewise.
15438         Reported by Ben Pfaff.
15439
15440 2007-10-19  Jim Meyering  <meyering@redhat.com>
15441
15442         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
15443         Don't bother testing specific errno values.  Just test ferror.
15444
15445         New module: xprintf
15446         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
15447
15448 2007-10-19  Bruno Haible  <bruno@clisp.org>
15449
15450         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
15451         syntax.
15452         * modules/javaexec (Makefile.am): Likewise.
15453         * modules/relocatable-prog (Makefile.am): Likewise.
15454         Suggested by Jim Meyering.
15455
15456 2007-10-18  Bruno Haible  <bruno@clisp.org>
15457
15458         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
15459         Reported by Jim Meyering.
15460
15461 2007-10-18  Eric Blake  <ebb9@byu.net>
15462
15463         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
15464
15465 2007-10-18  Bruno Haible  <bruno@clisp.org>
15466
15467         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
15468         the format string into writable memory. Needed in Fortify conditions.
15469
15470 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
15471             Bruno Haible  <bruno@clisp.org>
15472
15473         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
15474         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
15475         * modules/trim (Depends-on): Add mbchar.
15476         (configure.ac): Add gl_FUNC_MBRTOWC.
15477         (Makefile.am): Augment lib_SOURCES.
15478
15479 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
15480
15481         Modify glob.c to use fstatat and dirfd, to simplify it.
15482         Suggested by Eric Blake.
15483         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
15484         Don't include <stdbool.h>; not used.
15485         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
15486         (link_exists_p): Simplify implementation, since we can now assume
15487         dirfd and fstatat.
15488         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
15489
15490 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15491
15492         * gnulib-tool (func_get_dependencies): Fix sed script to
15493         match only tests.
15494
15495 2007-10-17  Bruno Haible  <bruno@clisp.org>
15496
15497         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
15498         allow locale names without encoding suffix.
15499         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15500         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15501
15502 2007-10-16  Bruno Haible  <bruno@clisp.org>
15503
15504         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
15505         * lib/getgroups.c (getgroups): Likewise.
15506         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
15507
15508 2007-10-16  Bruno Haible  <bruno@clisp.org>
15509
15510         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
15511         * modules/malloc-posix (License): Likewise.
15512         * modules/realloc-posix (License): Likewise.
15513         * modules/calloc-posix (License): Likewise.
15514         * modules/intprops (License): Change from GPL to LGPL, with
15515         Paul Eggert's approval.
15516
15517 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
15518
15519         Merge glibc changes into lib/glob.c.
15520
15521         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
15522         2007-10-15 04:59:03 UTC.  Here are the changes:
15523
15524         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
15525
15526         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
15527
15528         * lib/glob.c: Add some branch prediction throughout.
15529
15530         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
15531
15532         [BZ #5103]
15533         * lib/glob.c (glob): Recognize patterns starting \/.
15534
15535         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
15536
15537         [BZ #3996]
15538         * lib/glob.c (attribute_hidden): Define if not defined.
15539         (glob): Unescape dirname, filename or username when needed and not
15540         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
15541         is NULL.  Handle unescaped [ in pattern without closing ].
15542         Don't pass GLOB_CHECK down to recursive glob for directories.
15543         (__glob_pattern_type): New function.
15544         (__glob_pattern_p): Implement using __glob_pattern_type.
15545         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
15546         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
15547         Remove unreachable code.
15548
15549         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
15550
15551         * lib/glob.c (glob_in_dir): Add some comments and asserts to
15552         explain why there are no leaks.
15553
15554         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
15555
15556         [BZ #3253]
15557         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
15558         time, rather allocate increasingly bigger arrays of pointers, if
15559         possible with alloca, if too large with malloc.
15560
15561 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
15562
15563         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
15564         Problem reported by H.Merijn Brand in
15565         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
15566         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
15567         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
15568
15569 2007-10-15  Bruno Haible  <bruno@clisp.org>
15570
15571         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
15572         with explicit rpl_ prefix.
15573         * lib/fopen.c (fopen): Likewise.
15574         * lib/freopen.c (freopen): Likewise.
15575         * lib/iconv.c (iconv): Likewise.
15576         * lib/iconv_close.c (iconv_close): Likewise.
15577
15578 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15579
15580         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
15581
15582 2007-10-15  Bruno Haible  <bruno@clisp.org>
15583
15584         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
15585         <stddef.h> instead of <stdlib.h> since we only need NULL.
15586         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15587
15588 2007-10-15  Bruno Haible  <bruno@clisp.org>
15589
15590         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
15591         Replace paragraph talking about LIBOBJS.
15592         Reported by Colin Watson <cjwatson@debian.org>.
15593
15594 2007-10-15  Bruno Haible  <bruno@clisp.org>
15595
15596         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
15597         <stdlib.h> before using NULL.
15598
15599 2007-10-15  Simon Josefsson  <simon@josefsson.org>
15600
15601         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
15602         Reported by Albert Chin <china@thewrittenword.com>.
15603
15604 2007-10-14  Bruno Haible  <bruno@clisp.org>
15605
15606         * modules/iconv_open-utf-tests: New file.
15607         * tests/test-iconv-utf.c: New file.
15608
15609         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
15610         * modules/iconv_open-utf: New file.
15611         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
15612         (iconv, iconv_close): New declarations.
15613         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
15614         be defined.
15615         (iconv_open): Add special handling of conversion between UTF-8 and
15616         UTF-{16,32}{BE,LE}.
15617         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
15618         * lib/iconv_close.c: New file.
15619         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
15620         gl_FUNC_ICONV_OPEN.
15621         (gl_FUNC_ICONV_OPEN): Use it.
15622         (gl_FUNC_ICONV_OPEN_UTF): New macro.
15623         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
15624         and REPLACE_ICONV_UTF.
15625         * modules/iconv_open (Depends-on): Add c-strcase.
15626         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
15627         ICONV_CONST.
15628         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
15629
15630 2007-10-13  Albert Chin  <china@thewrittenword.com>
15631             Bruno Haible  <bruno@clisp.org>
15632
15633         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
15634         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
15635
15636 2007-10-13  Bruno Haible  <bruno@clisp.org>
15637
15638         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
15639         defined, use the ISO C99 inline semantics.
15640         * lib/argp.h (ARGP_EI): Likewise.
15641
15642 2007-10-13  Bruno Haible  <bruno@clisp.org>
15643
15644         Handle 'inline' change in gcc 4.3.0.
15645         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
15646         argp_fmtstream_write, argp_fmtstream_set_lmargin,
15647         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
15648         argp_fmtstream_point): Disable 'extern' declaration if the function
15649         definition is going to be provided inline.
15650         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
15651         semantics, not the ISO C99 inline semantics.
15652         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
15653         'extern' declaration if the function definition is going to be provided
15654         inline.
15655         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
15656         the GNU C inline semantics, not the ISO C99 inline semantics. With
15657         GCC 4.2, avoid a warning.
15658
15659 2007-10-13  Bruno Haible  <bruno@clisp.org>
15660
15661         * lib/freading.h (freading): Enable the use of __freading for
15662         glibc >= 2.7.
15663         * lib/freading.c (freading): Likewise.
15664
15665 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
15666
15667         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
15668         "warning: C99 inline functions are not supported; using GNU89".
15669
15670 2007-10-12  Bruno Haible  <bruno@clisp.org>
15671
15672         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
15673         of 2.
15674         * tests/test-ceilf2.c: New file.
15675         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
15676
15677         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
15678         * modules/ceilf-tests: Update.
15679
15680 2007-10-12  Bruno Haible  <bruno@clisp.org>
15681
15682         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
15683         of 2.
15684         * tests/test-floorf2.c: New file.
15685         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
15686
15687         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
15688         * modules/floorf-tests: Update.
15689
15690 2007-10-12  Bruno Haible  <bruno@clisp.org>
15691
15692         * tests/test-trunc2.c: New file.
15693         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
15694
15695         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
15696         * modules/trunc-tests: Update.
15697
15698 2007-10-12  Bruno Haible  <bruno@clisp.org>
15699
15700         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
15701         of 2.
15702         * tests/test-truncf2.c: New file.
15703         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
15704
15705         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
15706         * modules/truncf-tests: Update.
15707
15708 2007-10-11  Eric Blake  <ebb9@byu.net>
15709
15710         Don't claim strerror is broken on Interix.
15711         * doc/functions/strerror.texi (strerror): Known broken systems are
15712         now Solaris 8, and not Interix.
15713         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
15714         Interix on cross-compile.
15715         Reported by Martin Koeppe in
15716         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
15717
15718 2007-10-11  Bruno Haible  <bruno@clisp.org>
15719
15720         * modules/i-ring-tests: New file.
15721         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
15722         instead of assert.
15723
15724 2007-10-11  Bruno Haible  <bruno@clisp.org>
15725
15726         * modules/filenamecat-tests: New file.
15727         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
15728         * lib/filenamecat.c: Remove test code.
15729
15730 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
15731
15732         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
15733
15734         * lib/strerror.c: Include <string.h> always, to test interface,
15735         and to remove the need for the dummy.
15736         Include intprops.h to compute width instead of doing it ourselves
15737         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
15738         (strerror): Define it to return NULL if there's no system strerror.
15739         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
15740         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
15741         ancient pre-strerror Unix systems well any more.  Saying "unknown
15742         system error" is enough.
15743         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
15744         simpler strerror.c implementation.
15745         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
15746         Simplify the tests to reflect the simpler strerror implementation.
15747         * modules/strerror (Depends-on): Add intprops.
15748
15749 2007-10-09  Eric Blake  <ebb9@byu.net>
15750
15751         Silence test-fpending.
15752         * modules/fpending-tests (Files): Add wrapper script.
15753         * tests/test-fpending.sh: New file.
15754
15755 2007-10-09  Bruno Haible  <bruno@clisp.org>
15756
15757         * MODULES.html.sh (func_module): Don't create a hyperlink for
15758         function names like 'printf_frexp'.
15759         (Misc): Add crc, memxor.
15760         (Characteristics of floating types): New section.
15761         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
15762         isnanf-nolibm, signbit, trunc, truncf, truncl.
15763         (Enhancements for ISO C 99 functions): New subsection Input/output.
15764         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
15765         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
15766         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
15767         (Compatibility checks for POSIX:2001 functions): Add clock-time.
15768         (Enhancements for POSIX:2001 functions): Add chdir-long.
15769         (File system functions): Add areadlink, chdir-safer, read-file.
15770         Remove cycle-check.
15771         (File system as inode set): New section.
15772         (Date and time): Add gethrxtime.
15773         (Multithreading): Add openmp.
15774         (Internationalization functions): Add localename.
15775         (Unicode string functions): Add unistr/u*-mbsnlen.
15776         (Support for maintaining and releasing projects): Add git-version-gen.
15777         (Lone files): Remove directories.
15778
15779 2007-10-08  Ben Pfaff  <blp@gnu.org>
15780
15781         * lib/xmalloca.h: Fix typo in comment.
15782
15783 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15784
15785         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
15786         when avoiding problems with integer overflow.  Use a portable test
15787         instead.
15788
15789 2007-10-08  Simon Josefsson  <simon@josefsson.org>
15790
15791         * modules/dummy (License): Change to LGPLv2+.
15792         * modules/float (License): Likewise
15793         * modules/realloc (License): Likewise
15794         * modules/stdlib (License): Likewise
15795
15796 2007-10-07  Bruno Haible  <bruno@clisp.org>
15797
15798         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
15799         * floor.c (TWO_MANT_DIG): Likewise.
15800         * ceil.c (TWO_MANT_DIG): Likewise.
15801         Reported by Ben Pfaff.
15802
15803 2007-10-07  Bruno Haible  <bruno@clisp.org>
15804
15805         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
15806         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
15807         * lib/frexp.c (FUNC): Likewise.
15808         * lib/printf-frexp.h (printf_frexp): Likewise.
15809         * lib/printf-frexpl.h (printf_frexpl): Likewise.
15810         * lib/printf-frexp.c (FUNC): Likewise.
15811         Suggested by Jim Meyering.
15812
15813 2007-10-07  Jim Meyering  <meyering@redhat.com>
15814
15815         Make xnanosleep's integer overflow test more robust.
15816         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
15817         so that gcc-4.3.0 doesn't optimize away this test for overflow.
15818
15819 2007-10-07  Bruno Haible  <bruno@clisp.org>
15820
15821         * NEWS: Mention the license change.
15822
15823         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
15824         abbreviations in the modules files.
15825
15826         Change copyright notice from GPLv2+ to GPLv3+.
15827         * README: Change copyright notice.
15828         * MODULES.html.sh: Likewise.
15829         * build-aux/bootstrap.conf: Likewise.
15830         * build-aux/config.libpath: Likewise.
15831         * build-aux/csharpcomp.sh.in: Likewise.
15832         * build-aux/csharpexec.sh.in: Likewise.
15833         * build-aux/install-reloc: Likewise.
15834         * build-aux/javacomp.sh.in: Likewise.
15835         * build-aux/javaexec.sh.in: Likewise.
15836         * build-aux/ldd.sh.in: Likewise.
15837         * build-aux/reloc-ldflags: Likewise.
15838         * build-aux/relocatable.sh.in: Likewise.
15839         * build-aux/x-to-1.in: Likewise.
15840         * check-module: Likewise.
15841         * config/srclistvars.sh: Likewise.
15842         * gnulib-tool: Likewise.
15843         * lib/acl-internal.h: Likewise.
15844         * lib/acl.c: Likewise.
15845         * lib/acl.h: Likewise.
15846         * lib/acl_entries.c: Likewise.
15847         * lib/areadlink-with-size.c: Likewise.
15848         * lib/areadlink.c: Likewise.
15849         * lib/areadlink.h: Likewise.
15850         * lib/argmatch.c: Likewise.
15851         * lib/argmatch.h: Likewise.
15852         * lib/argp-ba.c: Likewise.
15853         * lib/argp-eexst.c: Likewise.
15854         * lib/argp-fmtstream.c: Likewise.
15855         * lib/argp-fmtstream.h: Likewise.
15856         * lib/argp-fs-xinl.c: Likewise.
15857         * lib/argp-help.c: Likewise.
15858         * lib/argp-namefrob.h: Likewise.
15859         * lib/argp-parse.c: Likewise.
15860         * lib/argp-pin.c: Likewise.
15861         * lib/argp-pv.c: Likewise.
15862         * lib/argp-pvh.c: Likewise.
15863         * lib/argp-xinl.c: Likewise.
15864         * lib/argp.h: Likewise.
15865         * lib/at-func.c: Likewise.
15866         * lib/atanl.c: Likewise.
15867         * lib/backupfile.c: Likewise.
15868         * lib/backupfile.h: Likewise.
15869         * lib/basename.c: Likewise.
15870         * lib/binary-io.h: Likewise.
15871         * lib/byteswap.in.h: Likewise.
15872         * lib/c-stack.c: Likewise.
15873         * lib/c-stack.h: Likewise.
15874         * lib/c-strcasestr.c: Likewise.
15875         * lib/c-strcasestr.h: Likewise.
15876         * lib/c-strstr.c: Likewise.
15877         * lib/c-strstr.h: Likewise.
15878         * lib/c-strtod.c: Likewise.
15879         * lib/calloc.c: Likewise.
15880         * lib/canon-host.c: Likewise.
15881         * lib/canon-host.h: Likewise.
15882         * lib/canonicalize-lgpl.c: Likewise.
15883         * lib/canonicalize.c: Likewise.
15884         * lib/canonicalize.h: Likewise.
15885         * lib/ceil.c: Likewise.
15886         * lib/ceilf.c: Likewise.
15887         * lib/ceill.c: Likewise.
15888         * lib/chdir-long.c: Likewise.
15889         * lib/chdir-long.h: Likewise.
15890         * lib/chdir-safer.c: Likewise.
15891         * lib/chdir-safer.h: Likewise.
15892         * lib/chown.c: Likewise.
15893         * lib/classpath.c: Likewise.
15894         * lib/classpath.h: Likewise.
15895         * lib/clean-temp.c: Likewise.
15896         * lib/clean-temp.h: Likewise.
15897         * lib/cloexec.c: Likewise.
15898         * lib/close-stream.c: Likewise.
15899         * lib/closein.c: Likewise.
15900         * lib/closein.h: Likewise.
15901         * lib/closeout.c: Likewise.
15902         * lib/closeout.h: Likewise.
15903         * lib/concat-filename.c: Likewise.
15904         * lib/copy-file.c: Likewise.
15905         * lib/copy-file.h: Likewise.
15906         * lib/count-one-bits.h: Likewise.
15907         * lib/crc.c: Likewise.
15908         * lib/crc.h: Likewise.
15909         * lib/creat-safer.c: Likewise.
15910         * lib/csharpcomp.c: Likewise.
15911         * lib/csharpcomp.h: Likewise.
15912         * lib/csharpexec.c: Likewise.
15913         * lib/csharpexec.h: Likewise.
15914         * lib/cycle-check.c: Likewise.
15915         * lib/cycle-check.h: Likewise.
15916         * lib/diacrit.c: Likewise.
15917         * lib/diacrit.h: Likewise.
15918         * lib/diffseq.h: Likewise.
15919         * lib/dirchownmod.c: Likewise.
15920         * lib/dirent.in.h: Likewise.
15921         * lib/dirfd.c: Likewise.
15922         * lib/dirfd.h: Likewise.
15923         * lib/dirname.c: Likewise.
15924         * lib/dirname.h: Likewise.
15925         * lib/dummy.c: Likewise.
15926         * lib/dup-safer.c: Likewise.
15927         * lib/dup2.c: Likewise.
15928         * lib/eealloc.h: Likewise.
15929         * lib/error.c: Likewise.
15930         * lib/error.h: Likewise.
15931         * lib/euidaccess.c: Likewise.
15932         * lib/exclude.c: Likewise.
15933         * lib/exclude.h: Likewise.
15934         * lib/execute.c: Likewise.
15935         * lib/execute.h: Likewise.
15936         * lib/exitfail.c: Likewise.
15937         * lib/exitfail.h: Likewise.
15938         * lib/expl.c: Likewise.
15939         * lib/fatal-signal.c: Likewise.
15940         * lib/fatal-signal.h: Likewise.
15941         * lib/fbufmode.c: Likewise.
15942         * lib/fbufmode.h: Likewise.
15943         * lib/fchdir.c: Likewise.
15944         * lib/fchmodat.c: Likewise.
15945         * lib/fchownat.c: Likewise.
15946         * lib/fcntl--.h: Likewise.
15947         * lib/fcntl-safer.h: Likewise.
15948         * lib/fcntl.in.h: Likewise.
15949         * lib/fd-safer.c: Likewise.
15950         * lib/fflush.c: Likewise.
15951         * lib/file-has-acl.c: Likewise.
15952         * lib/file-set.c: Likewise.
15953         * lib/file-type.c: Likewise.
15954         * lib/file-type.h: Likewise.
15955         * lib/fileblocks.c: Likewise.
15956         * lib/filemode.c: Likewise.
15957         * lib/filemode.h: Likewise.
15958         * lib/filename.h: Likewise.
15959         * lib/filenamecat.c: Likewise.
15960         * lib/filenamecat.h: Likewise.
15961         * lib/findprog.c: Likewise.
15962         * lib/findprog.h: Likewise.
15963         * lib/float.in.h: Likewise.
15964         * lib/floor.c: Likewise.
15965         * lib/floorf.c: Likewise.
15966         * lib/floorl.c: Likewise.
15967         * lib/fopen-safer.c: Likewise.
15968         * lib/fopen.c: Likewise.
15969         * lib/fpending.c: Likewise.
15970         * lib/fpending.h: Likewise.
15971         * lib/fprintf.c: Likewise.
15972         * lib/fprintftime.h: Likewise.
15973         * lib/fpucw.h: Likewise.
15974         * lib/fpurge.c: Likewise.
15975         * lib/fpurge.h: Likewise.
15976         * lib/freadable.c: Likewise.
15977         * lib/freadable.h: Likewise.
15978         * lib/freadahead.c: Likewise.
15979         * lib/freadahead.h: Likewise.
15980         * lib/freading.c: Likewise.
15981         * lib/freading.h: Likewise.
15982         * lib/free.c: Likewise.
15983         * lib/freopen.c: Likewise.
15984         * lib/frexp.c: Likewise.
15985         * lib/frexpl.c: Likewise.
15986         * lib/fseek.c: Likewise.
15987         * lib/fseterr.c: Likewise.
15988         * lib/fseterr.h: Likewise.
15989         * lib/fstatat.c: Likewise.
15990         * lib/fstrcmp.c: Likewise.
15991         * lib/fstrcmp.h: Likewise.
15992         * lib/fsusage.c: Likewise.
15993         * lib/fsusage.h: Likewise.
15994         * lib/ftell.c: Likewise.
15995         * lib/ftello.c: Likewise.
15996         * lib/fts-cycle.c: Likewise.
15997         * lib/fts.c: Likewise.
15998         * lib/fts_.h: Likewise.
15999         * lib/full-read.c: Likewise.
16000         * lib/full-read.h: Likewise.
16001         * lib/full-write.c: Likewise.
16002         * lib/full-write.h: Likewise.
16003         * lib/fwritable.c: Likewise.
16004         * lib/fwritable.h: Likewise.
16005         * lib/fwriteerror.c: Likewise.
16006         * lib/fwriteerror.h: Likewise.
16007         * lib/fwriting.c: Likewise.
16008         * lib/fwriting.h: Likewise.
16009         * lib/gcd.c: Likewise.
16010         * lib/gcd.h: Likewise.
16011         * lib/getcwd.c: Likewise.
16012         * lib/getdate.h: Likewise.
16013         * lib/getdate.y: Likewise.
16014         * lib/getdomainname.c: Likewise.
16015         * lib/getdomainname.h: Likewise.
16016         * lib/getgroups.c: Likewise.
16017         * lib/gethostname.c: Likewise.
16018         * lib/gethrxtime.c: Likewise.
16019         * lib/gethrxtime.h: Likewise.
16020         * lib/getloadavg.c: Likewise.
16021         * lib/getndelim2.c: Likewise.
16022         * lib/getndelim2.h: Likewise.
16023         * lib/getnline.c: Likewise.
16024         * lib/getnline.h: Likewise.
16025         * lib/getopt.c: Likewise.
16026         * lib/getopt.in.h: Likewise.
16027         * lib/getopt1.c: Likewise.
16028         * lib/getopt_int.h: Likewise.
16029         * lib/getpagesize.h: Likewise.
16030         * lib/getsubopt.c: Likewise.
16031         * lib/gettime.c: Likewise.
16032         * lib/getugroups.c: Likewise.
16033         * lib/getugroups.h: Likewise.
16034         * lib/getusershell.c: Likewise.
16035         * lib/gl_anyavltree_list1.h: Likewise.
16036         * lib/gl_anyavltree_list2.h: Likewise.
16037         * lib/gl_anyhash_list1.h: Likewise.
16038         * lib/gl_anyhash_list2.h: Likewise.
16039         * lib/gl_anylinked_list1.h: Likewise.
16040         * lib/gl_anylinked_list2.h: Likewise.
16041         * lib/gl_anyrbtree_list1.h: Likewise.
16042         * lib/gl_anyrbtree_list2.h: Likewise.
16043         * lib/gl_anytree_list1.h: Likewise.
16044         * lib/gl_anytree_list2.h: Likewise.
16045         * lib/gl_anytree_oset.h: Likewise.
16046         * lib/gl_anytreehash_list1.h: Likewise.
16047         * lib/gl_anytreehash_list2.h: Likewise.
16048         * lib/gl_array_list.c: Likewise.
16049         * lib/gl_array_list.h: Likewise.
16050         * lib/gl_array_oset.c: Likewise.
16051         * lib/gl_array_oset.h: Likewise.
16052         * lib/gl_avltree_list.c: Likewise.
16053         * lib/gl_avltree_list.h: Likewise.
16054         * lib/gl_avltree_oset.c: Likewise.
16055         * lib/gl_avltree_oset.h: Likewise.
16056         * lib/gl_avltreehash_list.c: Likewise.
16057         * lib/gl_avltreehash_list.h: Likewise.
16058         * lib/gl_carray_list.c: Likewise.
16059         * lib/gl_carray_list.h: Likewise.
16060         * lib/gl_linked_list.c: Likewise.
16061         * lib/gl_linked_list.h: Likewise.
16062         * lib/gl_linkedhash_list.c: Likewise.
16063         * lib/gl_linkedhash_list.h: Likewise.
16064         * lib/gl_list.c: Likewise.
16065         * lib/gl_list.h: Likewise.
16066         * lib/gl_oset.c: Likewise.
16067         * lib/gl_oset.h: Likewise.
16068         * lib/gl_rbtree_list.c: Likewise.
16069         * lib/gl_rbtree_list.h: Likewise.
16070         * lib/gl_rbtree_oset.c: Likewise.
16071         * lib/gl_rbtree_oset.h: Likewise.
16072         * lib/gl_rbtreehash_list.c: Likewise.
16073         * lib/gl_rbtreehash_list.h: Likewise.
16074         * lib/gl_sublist.c: Likewise.
16075         * lib/gl_sublist.h: Likewise.
16076         * lib/group-member.c: Likewise.
16077         * lib/group-member.h: Likewise.
16078         * lib/hard-locale.c: Likewise.
16079         * lib/hard-locale.h: Likewise.
16080         * lib/hash-pjw.c: Likewise.
16081         * lib/hash-pjw.h: Likewise.
16082         * lib/hash-triple.c: Likewise.
16083         * lib/hash.c: Likewise.
16084         * lib/hash.h: Likewise.
16085         * lib/human.c: Likewise.
16086         * lib/human.h: Likewise.
16087         * lib/i-ring.c: Likewise.
16088         * lib/i-ring.h: Likewise.
16089         * lib/idcache.c: Likewise.
16090         * lib/imaxabs.c: Likewise.
16091         * lib/imaxdiv.c: Likewise.
16092         * lib/inet_pton.c: Likewise.
16093         * lib/inet_pton.h: Likewise.
16094         * lib/intprops.h: Likewise.
16095         * lib/inttostr.c: Likewise.
16096         * lib/inttostr.h: Likewise.
16097         * lib/inttypes.in.h: Likewise.
16098         * lib/isapipe.c: Likewise.
16099         * lib/isdir.c: Likewise.
16100         * lib/isnan.c: Likewise.
16101         * lib/isnan.h: Likewise.
16102         * lib/isnanf.c: Likewise.
16103         * lib/isnanf.h: Likewise.
16104         * lib/isnanl-nolibm.h: Likewise.
16105         * lib/isnanl.c: Likewise.
16106         * lib/isnanl.h: Likewise.
16107         * lib/javacomp.c: Likewise.
16108         * lib/javacomp.h: Likewise.
16109         * lib/javaexec.c: Likewise.
16110         * lib/javaexec.h: Likewise.
16111         * lib/javaversion.c: Likewise.
16112         * lib/javaversion.h: Likewise.
16113         * lib/javaversion.java: Likewise.
16114         * lib/lbrkprop.h: Likewise.
16115         * lib/lchmod.h: Likewise.
16116         * lib/lchown.c: Likewise.
16117         * lib/ldexpl.c: Likewise.
16118         * lib/linebreak.c: Likewise.
16119         * lib/linebreak.h: Likewise.
16120         * lib/linebuffer.c: Likewise.
16121         * lib/linebuffer.h: Likewise.
16122         * lib/locale.in.h: Likewise.
16123         * lib/logl.c: Likewise.
16124         * lib/long-options.c: Likewise.
16125         * lib/long-options.h: Likewise.
16126         * lib/lstat.c: Likewise.
16127         * lib/lstat.h: Likewise.
16128         * lib/math.in.h: Likewise.
16129         * lib/mbchar.c: Likewise.
16130         * lib/mbchar.h: Likewise.
16131         * lib/mbfile.h: Likewise.
16132         * lib/mbiter.h: Likewise.
16133         * lib/mbscasecmp.c: Likewise.
16134         * lib/mbscasestr.c: Likewise.
16135         * lib/mbschr.c: Likewise.
16136         * lib/mbscspn.c: Likewise.
16137         * lib/mbslen.c: Likewise.
16138         * lib/mbsncasecmp.c: Likewise.
16139         * lib/mbsnlen.c: Likewise.
16140         * lib/mbspbrk.c: Likewise.
16141         * lib/mbspcasecmp.c: Likewise.
16142         * lib/mbsrchr.c: Likewise.
16143         * lib/mbssep.c: Likewise.
16144         * lib/mbsspn.c: Likewise.
16145         * lib/mbsstr.c: Likewise.
16146         * lib/mbstok_r.c: Likewise.
16147         * lib/mbswidth.c: Likewise.
16148         * lib/mbswidth.h: Likewise.
16149         * lib/mbuiter.h: Likewise.
16150         * lib/memcasecmp.c: Likewise.
16151         * lib/memcasecmp.h: Likewise.
16152         * lib/memchr.c: Likewise.
16153         * lib/memcmp.c: Likewise.
16154         * lib/memcoll.c: Likewise.
16155         * lib/memcoll.h: Likewise.
16156         * lib/memcpy.c: Likewise.
16157         * lib/memrchr.c: Likewise.
16158         * lib/mkancesdirs.c: Likewise.
16159         * lib/mkdir-p.c: Likewise.
16160         * lib/mkdir-p.h: Likewise.
16161         * lib/mkdir.c: Likewise.
16162         * lib/mkdirat.c: Likewise.
16163         * lib/mkdtemp.c: Likewise.
16164         * lib/mkstemp-safer.c: Likewise.
16165         * lib/mkstemp.c: Likewise.
16166         * lib/modechange.c: Likewise.
16167         * lib/modechange.h: Likewise.
16168         * lib/mountlist.c: Likewise.
16169         * lib/mountlist.h: Likewise.
16170         * lib/mpsort.c: Likewise.
16171         * lib/nanosleep.c: Likewise.
16172         * lib/obstack.c: Likewise.
16173         * lib/obstack.h: Likewise.
16174         * lib/open-safer.c: Likewise.
16175         * lib/open.c: Likewise.
16176         * lib/openat-die.c: Likewise.
16177         * lib/openat-priv.h: Likewise.
16178         * lib/openat-proc.c: Likewise.
16179         * lib/openat.c: Likewise.
16180         * lib/openat.h: Likewise.
16181         * lib/pagealign_alloc.c: Likewise.
16182         * lib/pagealign_alloc.h: Likewise.
16183         * lib/physmem.c: Likewise.
16184         * lib/physmem.h: Likewise.
16185         * lib/pipe-safer.c: Likewise.
16186         * lib/pipe.c: Likewise.
16187         * lib/pipe.h: Likewise.
16188         * lib/posixtm.c: Likewise.
16189         * lib/posixtm.h: Likewise.
16190         * lib/posixver.c: Likewise.
16191         * lib/printf-frexp.c: Likewise.
16192         * lib/printf-frexp.h: Likewise.
16193         * lib/printf-frexpl.c: Likewise.
16194         * lib/printf-frexpl.h: Likewise.
16195         * lib/printf.c: Likewise.
16196         * lib/progname.c: Likewise.
16197         * lib/progname.h: Likewise.
16198         * lib/progreloc.c: Likewise.
16199         * lib/putenv.c: Likewise.
16200         * lib/quote.c: Likewise.
16201         * lib/quote.h: Likewise.
16202         * lib/quotearg.c: Likewise.
16203         * lib/quotearg.h: Likewise.
16204         * lib/raise.c: Likewise.
16205         * lib/readline.c: Likewise.
16206         * lib/readline.h: Likewise.
16207         * lib/readlink.c: Likewise.
16208         * lib/readtokens.c: Likewise.
16209         * lib/readtokens.h: Likewise.
16210         * lib/readtokens0.c: Likewise.
16211         * lib/readtokens0.h: Likewise.
16212         * lib/readutmp.c: Likewise.
16213         * lib/readutmp.h: Likewise.
16214         * lib/realloc.c: Likewise.
16215         * lib/relocwrapper.c: Likewise.
16216         * lib/rename-dest-slash.c: Likewise.
16217         * lib/rename.c: Likewise.
16218         * lib/rmdir.c: Likewise.
16219         * lib/rpmatch.c: Likewise.
16220         * lib/safe-read.c: Likewise.
16221         * lib/safe-read.h: Likewise.
16222         * lib/safe-write.c: Likewise.
16223         * lib/safe-write.h: Likewise.
16224         * lib/same-inode.h: Likewise.
16225         * lib/same.c: Likewise.
16226         * lib/same.h: Likewise.
16227         * lib/save-cwd.c: Likewise.
16228         * lib/save-cwd.h: Likewise.
16229         * lib/savedir.c: Likewise.
16230         * lib/savedir.h: Likewise.
16231         * lib/savewd.c: Likewise.
16232         * lib/savewd.h: Likewise.
16233         * lib/search.in.h: Likewise.
16234         * lib/setenv.c: Likewise.
16235         * lib/setenv.h: Likewise.
16236         * lib/settime.c: Likewise.
16237         * lib/sh-quote.c: Likewise.
16238         * lib/sh-quote.h: Likewise.
16239         * lib/sig2str.c: Likewise.
16240         * lib/sig2str.h: Likewise.
16241         * lib/signal.in.h: Likewise.
16242         * lib/signbitd.c: Likewise.
16243         * lib/signbitf.c: Likewise.
16244         * lib/signbitl.c: Likewise.
16245         * lib/sigprocmask.c: Likewise.
16246         * lib/sincosl.c: Likewise.
16247         * lib/sleep.c: Likewise.
16248         * lib/sprintf.c: Likewise.
16249         * lib/sqrtl.c: Likewise.
16250         * lib/stat-time.h: Likewise.
16251         * lib/stdio--.h: Likewise.
16252         * lib/stdio-safer.h: Likewise.
16253         * lib/stdlib--.h: Likewise.
16254         * lib/stdlib-safer.h: Likewise.
16255         * lib/stdlib.in.h: Likewise.
16256         * lib/stpcpy.c: Likewise.
16257         * lib/stpncpy.c: Likewise.
16258         * lib/strchrnul.c: Likewise.
16259         * lib/strcspn.c: Likewise.
16260         * lib/strerror.c: Likewise.
16261         * lib/strftime.c: Likewise.
16262         * lib/strftime.h: Likewise.
16263         * lib/striconveh.c: Likewise.
16264         * lib/striconveh.h: Likewise.
16265         * lib/striconveha.c: Likewise.
16266         * lib/striconveha.h: Likewise.
16267         * lib/stripslash.c: Likewise.
16268         * lib/strnlen1.c: Likewise.
16269         * lib/strnlen1.h: Likewise.
16270         * lib/strtod.c: Likewise.
16271         * lib/strtoimax.c: Likewise.
16272         * lib/strtok_r.c: Likewise.
16273         * lib/strtol.c: Likewise.
16274         * lib/strtoll.c: Likewise.
16275         * lib/strtoul.c: Likewise.
16276         * lib/strtoull.c: Likewise.
16277         * lib/sysexits.in.h: Likewise.
16278         * lib/tempname.c: Likewise.
16279         * lib/tempname.h: Likewise.
16280         * lib/timespec.h: Likewise.
16281         * lib/tls.c: Likewise.
16282         * lib/tls.h: Likewise.
16283         * lib/tmpdir.c: Likewise.
16284         * lib/tmpdir.h: Likewise.
16285         * lib/tmpfile-safer.c: Likewise.
16286         * lib/tmpfile.c: Likewise.
16287         * lib/trigl.c: Likewise.
16288         * lib/trigl.h: Likewise.
16289         * lib/trim.c: Likewise.
16290         * lib/trim.h: Likewise.
16291         * lib/trunc.c: Likewise.
16292         * lib/truncf.c: Likewise.
16293         * lib/truncl.c: Likewise.
16294         * lib/tsearch.c: Likewise.
16295         * lib/unicodeio.c: Likewise.
16296         * lib/unicodeio.h: Likewise.
16297         * lib/unistd--.h: Likewise.
16298         * lib/unistd-safer.h: Likewise.
16299         * lib/unistdio/ulc-fprintf.c: Likewise.
16300         * lib/unistdio/ulc-vfprintf.c: Likewise.
16301         * lib/unlinkdir.c: Likewise.
16302         * lib/unlinkdir.h: Likewise.
16303         * lib/unlocked-io.h: Likewise.
16304         * lib/unsetenv.c: Likewise.
16305         * lib/userspec.c: Likewise.
16306         * lib/utime.c: Likewise.
16307         * lib/utimecmp.c: Likewise.
16308         * lib/utimecmp.h: Likewise.
16309         * lib/utimens.c: Likewise.
16310         * lib/verify.h: Likewise.
16311         * lib/verror.c: Likewise.
16312         * lib/verror.h: Likewise.
16313         * lib/version-etc-fsf.c: Likewise.
16314         * lib/version-etc.c: Likewise.
16315         * lib/version-etc.h: Likewise.
16316         * lib/vfprintf.c: Likewise.
16317         * lib/vprintf.c: Likewise.
16318         * lib/vsprintf.c: Likewise.
16319         * lib/w32spawn.h: Likewise.
16320         * lib/wait-process.c: Likewise.
16321         * lib/wait-process.h: Likewise.
16322         * lib/wcwidth.c: Likewise.
16323         * lib/write-any-file.c: Likewise.
16324         * lib/xalloc-die.c: Likewise.
16325         * lib/xalloc.h: Likewise.
16326         * lib/xasprintf.c: Likewise.
16327         * lib/xgetcwd.c: Likewise.
16328         * lib/xgetcwd.h: Likewise.
16329         * lib/xgetdomainname.c: Likewise.
16330         * lib/xgetdomainname.h: Likewise.
16331         * lib/xgethostname.c: Likewise.
16332         * lib/xmalloc.c: Likewise.
16333         * lib/xmalloca.c: Likewise.
16334         * lib/xmalloca.h: Likewise.
16335         * lib/xmemcoll.c: Likewise.
16336         * lib/xnanosleep.c: Likewise.
16337         * lib/xreadlink.c: Likewise.
16338         * lib/xreadlink.h: Likewise.
16339         * lib/xsetenv.c: Likewise.
16340         * lib/xsetenv.h: Likewise.
16341         * lib/xstriconv.c: Likewise.
16342         * lib/xstriconv.h: Likewise.
16343         * lib/xstrndup.c: Likewise.
16344         * lib/xstrndup.h: Likewise.
16345         * lib/xstrtod.c: Likewise.
16346         * lib/xstrtod.h: Likewise.
16347         * lib/xstrtol-error.c: Likewise.
16348         * lib/xstrtol.c: Likewise.
16349         * lib/xstrtol.h: Likewise.
16350         * lib/xtime.h: Likewise.
16351         * lib/xvasprintf.c: Likewise.
16352         * lib/xvasprintf.h: Likewise.
16353         * lib/yesno.c: Likewise.
16354         * lib/yesno.h: Likewise.
16355         * posix-modules: Likewise.
16356         * tests/test-alloca-opt.c: Likewise.
16357         * tests/test-arcfour.c: Likewise.
16358         * tests/test-arctwo.c: Likewise.
16359         * tests/test-argmatch.c: Likewise.
16360         * tests/test-argp-2.sh: Likewise.
16361         * tests/test-argp.c: Likewise.
16362         * tests/test-arpa_inet.c: Likewise.
16363         * tests/test-array_list.c: Likewise.
16364         * tests/test-array_oset.c: Likewise.
16365         * tests/test-atexit.c: Likewise.
16366         * tests/test-avltree_list.c: Likewise.
16367         * tests/test-avltree_oset.c: Likewise.
16368         * tests/test-avltreehash_list.c: Likewise.
16369         * tests/test-base64.c: Likewise.
16370         * tests/test-binary-io.c: Likewise.
16371         * tests/test-byteswap.c: Likewise.
16372         * tests/test-c-ctype.c: Likewise.
16373         * tests/test-c-strcasecmp.c: Likewise.
16374         * tests/test-c-strcasestr.c: Likewise.
16375         * tests/test-c-strncasecmp.c: Likewise.
16376         * tests/test-c-strstr.c: Likewise.
16377         * tests/test-canonicalize-lgpl.c: Likewise.
16378         * tests/test-canonicalize.c: Likewise.
16379         * tests/test-carray_list.c: Likewise.
16380         * tests/test-ceilf.c: Likewise.
16381         * tests/test-ceill.c: Likewise.
16382         * tests/test-count-one-bits.c: Likewise.
16383         * tests/test-crc.c: Likewise.
16384         * tests/test-dirname.c: Likewise.
16385         * tests/test-fbufmode.c: Likewise.
16386         * tests/test-fcntl.c: Likewise.
16387         * tests/test-fflush.c: Likewise.
16388         * tests/test-floorf.c: Likewise.
16389         * tests/test-floorl.c: Likewise.
16390         * tests/test-fopen.c: Likewise.
16391         * tests/test-fprintf-posix.c: Likewise.
16392         * tests/test-fprintf-posix.h: Likewise.
16393         * tests/test-fpurge.c: Likewise.
16394         * tests/test-freadable.c: Likewise.
16395         * tests/test-freadahead.c: Likewise.
16396         * tests/test-freading.c: Likewise.
16397         * tests/test-freopen.c: Likewise.
16398         * tests/test-frexp.c: Likewise.
16399         * tests/test-frexpl.c: Likewise.
16400         * tests/test-fseek.c: Likewise.
16401         * tests/test-fseeko.c: Likewise.
16402         * tests/test-fseterr.c: Likewise.
16403         * tests/test-fstrcmp.c: Likewise.
16404         * tests/test-ftell.c: Likewise.
16405         * tests/test-ftello.c: Likewise.
16406         * tests/test-fwritable.c: Likewise.
16407         * tests/test-fwriting.c: Likewise.
16408         * tests/test-getaddrinfo.c: Likewise.
16409         * tests/test-getpass.c: Likewise.
16410         * tests/test-gettimeofday.c: Likewise.
16411         * tests/test-hmac-md5.c: Likewise.
16412         * tests/test-hmac-sha1.c: Likewise.
16413         * tests/test-iconv.c: Likewise.
16414         * tests/test-iconvme.c: Likewise.
16415         * tests/test-inttypes.c: Likewise.
16416         * tests/test-isnan.c: Likewise.
16417         * tests/test-isnanf.c: Likewise.
16418         * tests/test-isnanl-nolibm.c: Likewise.
16419         * tests/test-isnanl.c: Likewise.
16420         * tests/test-isnanl.h: Likewise.
16421         * tests/test-ldexpl.c: Likewise.
16422         * tests/test-linked_list.c: Likewise.
16423         * tests/test-linkedhash_list.c: Likewise.
16424         * tests/test-locale.c: Likewise.
16425         * tests/test-localename.c: Likewise.
16426         * tests/test-lock.c: Likewise.
16427         * tests/test-lseek.c: Likewise.
16428         * tests/test-malloca.c: Likewise.
16429         * tests/test-math.c: Likewise.
16430         * tests/test-mbscasecmp.c: Likewise.
16431         * tests/test-mbscasestr1.c: Likewise.
16432         * tests/test-mbscasestr2.c: Likewise.
16433         * tests/test-mbscasestr3.c: Likewise.
16434         * tests/test-mbscasestr4.c: Likewise.
16435         * tests/test-mbschr.c: Likewise.
16436         * tests/test-mbscspn.c: Likewise.
16437         * tests/test-mbsncasecmp.c: Likewise.
16438         * tests/test-mbspbrk.c: Likewise.
16439         * tests/test-mbspcasecmp.c: Likewise.
16440         * tests/test-mbsrchr.c: Likewise.
16441         * tests/test-mbsspn.c: Likewise.
16442         * tests/test-mbsstr1.c: Likewise.
16443         * tests/test-mbsstr2.c: Likewise.
16444         * tests/test-mbsstr3.c: Likewise.
16445         * tests/test-md5.c: Likewise.
16446         * tests/test-memmem.c: Likewise.
16447         * tests/test-netinet_in.c: Likewise.
16448         * tests/test-open.c: Likewise.
16449         * tests/test-printf-frexp.c: Likewise.
16450         * tests/test-printf-frexpl.c: Likewise.
16451         * tests/test-printf-posix.c: Likewise.
16452         * tests/test-printf-posix.h: Likewise.
16453         * tests/test-rbtree_list.c: Likewise.
16454         * tests/test-rbtree_oset.c: Likewise.
16455         * tests/test-rbtreehash_list.c: Likewise.
16456         * tests/test-read-file.c: Likewise.
16457         * tests/test-rijndael.c: Likewise.
16458         * tests/test-search.c: Likewise.
16459         * tests/test-signbit.c: Likewise.
16460         * tests/test-sleep.c: Likewise.
16461         * tests/test-snprintf-posix.c: Likewise.
16462         * tests/test-snprintf-posix.h: Likewise.
16463         * tests/test-snprintf.c: Likewise.
16464         * tests/test-sprintf-posix.c: Likewise.
16465         * tests/test-sprintf-posix.h: Likewise.
16466         * tests/test-stat-time.c: Likewise.
16467         * tests/test-stdbool.c: Likewise.
16468         * tests/test-stdint.c: Likewise.
16469         * tests/test-stdio.c: Likewise.
16470         * tests/test-stdlib.c: Likewise.
16471         * tests/test-stpncpy.c: Likewise.
16472         * tests/test-strcasestr.c: Likewise.
16473         * tests/test-striconv.c: Likewise.
16474         * tests/test-striconveh.c: Likewise.
16475         * tests/test-striconveha.c: Likewise.
16476         * tests/test-string.c: Likewise.
16477         * tests/test-sys_select.c: Likewise.
16478         * tests/test-sys_socket.c: Likewise.
16479         * tests/test-sys_stat.c: Likewise.
16480         * tests/test-sys_time.c: Likewise.
16481         * tests/test-sysexits.c: Likewise.
16482         * tests/test-time.c: Likewise.
16483         * tests/test-tls.c: Likewise.
16484         * tests/test-trunc.c: Likewise.
16485         * tests/test-truncf.c: Likewise.
16486         * tests/test-truncl.c: Likewise.
16487         * tests/test-unistd.c: Likewise.
16488         * tests/test-vasnprintf-posix.c: Likewise.
16489         * tests/test-vasnprintf-posix2.c: Likewise.
16490         * tests/test-vasnprintf.c: Likewise.
16491         * tests/test-vasprintf-posix.c: Likewise.
16492         * tests/test-vasprintf.c: Likewise.
16493         * tests/test-verify.c: Likewise.
16494         * tests/test-vfprintf-posix.c: Likewise.
16495         * tests/test-vprintf-posix.c: Likewise.
16496         * tests/test-vsnprintf-posix.c: Likewise.
16497         * tests/test-vsnprintf.c: Likewise.
16498         * tests/test-vsprintf-posix.c: Likewise.
16499         * tests/test-wchar.c: Likewise.
16500         * tests/test-wctype.c: Likewise.
16501         * tests/test-wcwidth.c: Likewise.
16502         * tests/test-xstrtol.c: Likewise.
16503         * tests/test-xvasprintf.c: Likewise.
16504         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
16505         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
16506         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
16507         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
16508         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
16509         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
16510         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
16511         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
16512         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
16513         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
16514         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
16515         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
16516         * tests/uniname/test-uninames.c: Likewise.
16517         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
16518         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
16519         * tests/unistdio/test-u16-printf1.h: Likewise.
16520         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
16521         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
16522         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
16523         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
16524         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
16525         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
16526         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
16527         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
16528         * tests/unistdio/test-u32-printf1.h: Likewise.
16529         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
16530         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
16531         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
16532         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
16533         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
16534         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
16535         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
16536         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
16537         * tests/unistdio/test-u8-printf1.h: Likewise.
16538         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
16539         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
16540         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
16541         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
16542         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
16543         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
16544         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
16545         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
16546         * tests/unistdio/test-ulc-printf1.h: Likewise.
16547         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
16548         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
16549         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
16550         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
16551         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
16552         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
16553         * tests/uniwidth/test-u16-strwidth.c: Likewise.
16554         * tests/uniwidth/test-u16-width.c: Likewise.
16555         * tests/uniwidth/test-u32-strwidth.c: Likewise.
16556         * tests/uniwidth/test-u32-width.c: Likewise.
16557         * tests/uniwidth/test-u8-strwidth.c: Likewise.
16558         * tests/uniwidth/test-u8-width.c: Likewise.
16559         * tests/uniwidth/test-uc_width.c: Likewise.
16560         * config/srclist-update: Likewise.
16561         (fixlicense): Update to GPLv3+.
16562
16563         Change copyright notice from LGPLv2.1+ to LGPLv3+.
16564         * tests/test-tsearch.c: Change copyright notice.
16565
16566         Change copyright notice from LGPLv2.0+ to LGPLv3+.
16567         * lib/c-strcaseeq.h: Change copyright notice.
16568         * lib/streq.h: Likewise.
16569         * lib/uniconv.h: Likewise.
16570         * lib/uniconv/u-conv-from-enc.h: Likewise.
16571         * lib/uniconv/u-conv-to-enc.h: Likewise.
16572         * lib/uniconv/u-strconv-from-enc.h: Likewise.
16573         * lib/uniconv/u-strconv-to-enc.h: Likewise.
16574         * lib/uniconv/u16-conv-from-enc.c: Likewise.
16575         * lib/uniconv/u16-conv-to-enc.c: Likewise.
16576         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
16577         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
16578         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
16579         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
16580         * lib/uniconv/u32-conv-from-enc.c: Likewise.
16581         * lib/uniconv/u32-conv-to-enc.c: Likewise.
16582         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
16583         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
16584         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
16585         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
16586         * lib/uniconv/u8-conv-from-enc.c: Likewise.
16587         * lib/uniconv/u8-conv-to-enc.c: Likewise.
16588         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
16589         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
16590         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
16591         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
16592         * lib/uniname.h: Likewise.
16593         * lib/uniname/uniname.c: Likewise.
16594         * lib/unistdio.h: Likewise.
16595         * lib/unistdio/u-asnprintf.h: Likewise.
16596         * lib/unistdio/u-asprintf.h: Likewise.
16597         * lib/unistdio/u-printf-args.c: Likewise.
16598         * lib/unistdio/u-printf-args.h: Likewise.
16599         * lib/unistdio/u-printf-parse.h: Likewise.
16600         * lib/unistdio/u-snprintf.h: Likewise.
16601         * lib/unistdio/u-sprintf.h: Likewise.
16602         * lib/unistdio/u-vasprintf.h: Likewise.
16603         * lib/unistdio/u-vsnprintf.h: Likewise.
16604         * lib/unistdio/u-vsprintf.h: Likewise.
16605         * lib/unistdio/u16-asnprintf.c: Likewise.
16606         * lib/unistdio/u16-asprintf.c: Likewise.
16607         * lib/unistdio/u16-printf-parse.c: Likewise.
16608         * lib/unistdio/u16-snprintf.c: Likewise.
16609         * lib/unistdio/u16-sprintf.c: Likewise.
16610         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
16611         * lib/unistdio/u16-u16-asprintf.c: Likewise.
16612         * lib/unistdio/u16-u16-snprintf.c: Likewise.
16613         * lib/unistdio/u16-u16-sprintf.c: Likewise.
16614         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
16615         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
16616         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
16617         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
16618         * lib/unistdio/u16-vasnprintf.c: Likewise.
16619         * lib/unistdio/u16-vasprintf.c: Likewise.
16620         * lib/unistdio/u16-vsnprintf.c: Likewise.
16621         * lib/unistdio/u16-vsprintf.c: Likewise.
16622         * lib/unistdio/u32-asnprintf.c: Likewise.
16623         * lib/unistdio/u32-asprintf.c: Likewise.
16624         * lib/unistdio/u32-printf-parse.c: Likewise.
16625         * lib/unistdio/u32-snprintf.c: Likewise.
16626         * lib/unistdio/u32-sprintf.c: Likewise.
16627         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
16628         * lib/unistdio/u32-u32-asprintf.c: Likewise.
16629         * lib/unistdio/u32-u32-snprintf.c: Likewise.
16630         * lib/unistdio/u32-u32-sprintf.c: Likewise.
16631         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
16632         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
16633         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
16634         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
16635         * lib/unistdio/u32-vasnprintf.c: Likewise.
16636         * lib/unistdio/u32-vasprintf.c: Likewise.
16637         * lib/unistdio/u32-vsnprintf.c: Likewise.
16638         * lib/unistdio/u32-vsprintf.c: Likewise.
16639         * lib/unistdio/u8-asnprintf.c: Likewise.
16640         * lib/unistdio/u8-asprintf.c: Likewise.
16641         * lib/unistdio/u8-printf-parse.c: Likewise.
16642         * lib/unistdio/u8-snprintf.c: Likewise.
16643         * lib/unistdio/u8-sprintf.c: Likewise.
16644         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
16645         * lib/unistdio/u8-u8-asprintf.c: Likewise.
16646         * lib/unistdio/u8-u8-snprintf.c: Likewise.
16647         * lib/unistdio/u8-u8-sprintf.c: Likewise.
16648         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
16649         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
16650         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
16651         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
16652         * lib/unistdio/u8-vasnprintf.c: Likewise.
16653         * lib/unistdio/u8-vasprintf.c: Likewise.
16654         * lib/unistdio/u8-vsnprintf.c: Likewise.
16655         * lib/unistdio/u8-vsprintf.c: Likewise.
16656         * lib/unistdio/ulc-asnprintf.c: Likewise.
16657         * lib/unistdio/ulc-asprintf.c: Likewise.
16658         * lib/unistdio/ulc-printf-parse.c: Likewise.
16659         * lib/unistdio/ulc-snprintf.c: Likewise.
16660         * lib/unistdio/ulc-sprintf.c: Likewise.
16661         * lib/unistdio/ulc-vasnprintf.c: Likewise.
16662         * lib/unistdio/ulc-vasprintf.c: Likewise.
16663         * lib/unistdio/ulc-vsnprintf.c: Likewise.
16664         * lib/unistdio/ulc-vsprintf.c: Likewise.
16665         * lib/unistr.h: Likewise.
16666         * lib/unistr/u-cpy-alloc.h: Likewise.
16667         * lib/unistr/u-cpy.h: Likewise.
16668         * lib/unistr/u-endswith.h: Likewise.
16669         * lib/unistr/u-move.h: Likewise.
16670         * lib/unistr/u-set.h: Likewise.
16671         * lib/unistr/u-startswith.h: Likewise.
16672         * lib/unistr/u-stpcpy.h: Likewise.
16673         * lib/unistr/u-stpncpy.h: Likewise.
16674         * lib/unistr/u-strcat.h: Likewise.
16675         * lib/unistr/u-strcpy.h: Likewise.
16676         * lib/unistr/u-strcspn.h: Likewise.
16677         * lib/unistr/u-strdup.h: Likewise.
16678         * lib/unistr/u-strlen.h: Likewise.
16679         * lib/unistr/u-strncat.h: Likewise.
16680         * lib/unistr/u-strncpy.h: Likewise.
16681         * lib/unistr/u-strnlen.h: Likewise.
16682         * lib/unistr/u-strpbrk.h: Likewise.
16683         * lib/unistr/u-strspn.h: Likewise.
16684         * lib/unistr/u-strstr.h: Likewise.
16685         * lib/unistr/u-strtok.h: Likewise.
16686         * lib/unistr/u16-check.c: Likewise.
16687         * lib/unistr/u16-chr.c: Likewise.
16688         * lib/unistr/u16-cmp.c: Likewise.
16689         * lib/unistr/u16-cpy-alloc.c: Likewise.
16690         * lib/unistr/u16-cpy.c: Likewise.
16691         * lib/unistr/u16-endswith.c: Likewise.
16692         * lib/unistr/u16-mblen.c: Likewise.
16693         * lib/unistr/u16-mbsnlen.c: Likewise.
16694         * lib/unistr/u16-mbtouc-aux.c: Likewise.
16695         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
16696         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
16697         * lib/unistr/u16-mbtouc.c: Likewise.
16698         * lib/unistr/u16-mbtoucr.c: Likewise.
16699         * lib/unistr/u16-move.c: Likewise.
16700         * lib/unistr/u16-next.c: Likewise.
16701         * lib/unistr/u16-prev.c: Likewise.
16702         * lib/unistr/u16-set.c: Likewise.
16703         * lib/unistr/u16-startswith.c: Likewise.
16704         * lib/unistr/u16-stpcpy.c: Likewise.
16705         * lib/unistr/u16-stpncpy.c: Likewise.
16706         * lib/unistr/u16-strcat.c: Likewise.
16707         * lib/unistr/u16-strchr.c: Likewise.
16708         * lib/unistr/u16-strcmp.c: Likewise.
16709         * lib/unistr/u16-strcpy.c: Likewise.
16710         * lib/unistr/u16-strcspn.c: Likewise.
16711         * lib/unistr/u16-strdup.c: Likewise.
16712         * lib/unistr/u16-strlen.c: Likewise.
16713         * lib/unistr/u16-strmblen.c: Likewise.
16714         * lib/unistr/u16-strmbtouc.c: Likewise.
16715         * lib/unistr/u16-strncat.c: Likewise.
16716         * lib/unistr/u16-strncmp.c: Likewise.
16717         * lib/unistr/u16-strncpy.c: Likewise.
16718         * lib/unistr/u16-strnlen.c: Likewise.
16719         * lib/unistr/u16-strpbrk.c: Likewise.
16720         * lib/unistr/u16-strrchr.c: Likewise.
16721         * lib/unistr/u16-strspn.c: Likewise.
16722         * lib/unistr/u16-strstr.c: Likewise.
16723         * lib/unistr/u16-strtok.c: Likewise.
16724         * lib/unistr/u16-to-u32.c: Likewise.
16725         * lib/unistr/u16-to-u8.c: Likewise.
16726         * lib/unistr/u16-uctomb-aux.c: Likewise.
16727         * lib/unistr/u16-uctomb.c: Likewise.
16728         * lib/unistr/u32-check.c: Likewise.
16729         * lib/unistr/u32-chr.c: Likewise.
16730         * lib/unistr/u32-cmp.c: Likewise.
16731         * lib/unistr/u32-cpy-alloc.c: Likewise.
16732         * lib/unistr/u32-cpy.c: Likewise.
16733         * lib/unistr/u32-endswith.c: Likewise.
16734         * lib/unistr/u32-mblen.c: Likewise.
16735         * lib/unistr/u32-mbsnlen.c: Likewise.
16736         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
16737         * lib/unistr/u32-mbtouc.c: Likewise.
16738         * lib/unistr/u32-mbtoucr.c: Likewise.
16739         * lib/unistr/u32-move.c: Likewise.
16740         * lib/unistr/u32-next.c: Likewise.
16741         * lib/unistr/u32-prev.c: Likewise.
16742         * lib/unistr/u32-set.c: Likewise.
16743         * lib/unistr/u32-startswith.c: Likewise.
16744         * lib/unistr/u32-stpcpy.c: Likewise.
16745         * lib/unistr/u32-stpncpy.c: Likewise.
16746         * lib/unistr/u32-strcat.c: Likewise.
16747         * lib/unistr/u32-strchr.c: Likewise.
16748         * lib/unistr/u32-strcmp.c: Likewise.
16749         * lib/unistr/u32-strcpy.c: Likewise.
16750         * lib/unistr/u32-strcspn.c: Likewise.
16751         * lib/unistr/u32-strdup.c: Likewise.
16752         * lib/unistr/u32-strlen.c: Likewise.
16753         * lib/unistr/u32-strmblen.c: Likewise.
16754         * lib/unistr/u32-strmbtouc.c: Likewise.
16755         * lib/unistr/u32-strncat.c: Likewise.
16756         * lib/unistr/u32-strncmp.c: Likewise.
16757         * lib/unistr/u32-strncpy.c: Likewise.
16758         * lib/unistr/u32-strnlen.c: Likewise.
16759         * lib/unistr/u32-strpbrk.c: Likewise.
16760         * lib/unistr/u32-strrchr.c: Likewise.
16761         * lib/unistr/u32-strspn.c: Likewise.
16762         * lib/unistr/u32-strstr.c: Likewise.
16763         * lib/unistr/u32-strtok.c: Likewise.
16764         * lib/unistr/u32-to-u16.c: Likewise.
16765         * lib/unistr/u32-to-u8.c: Likewise.
16766         * lib/unistr/u32-uctomb.c: Likewise.
16767         * lib/unistr/u8-check.c: Likewise.
16768         * lib/unistr/u8-chr.c: Likewise.
16769         * lib/unistr/u8-cmp.c: Likewise.
16770         * lib/unistr/u8-cpy-alloc.c: Likewise.
16771         * lib/unistr/u8-cpy.c: Likewise.
16772         * lib/unistr/u8-endswith.c: Likewise.
16773         * lib/unistr/u8-mblen.c: Likewise.
16774         * lib/unistr/u8-mbsnlen.c: Likewise.
16775         * lib/unistr/u8-mbtouc-aux.c: Likewise.
16776         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
16777         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
16778         * lib/unistr/u8-mbtouc.c: Likewise.
16779         * lib/unistr/u8-mbtoucr.c: Likewise.
16780         * lib/unistr/u8-move.c: Likewise.
16781         * lib/unistr/u8-next.c: Likewise.
16782         * lib/unistr/u8-prev.c: Likewise.
16783         * lib/unistr/u8-set.c: Likewise.
16784         * lib/unistr/u8-startswith.c: Likewise.
16785         * lib/unistr/u8-stpcpy.c: Likewise.
16786         * lib/unistr/u8-stpncpy.c: Likewise.
16787         * lib/unistr/u8-strcat.c: Likewise.
16788         * lib/unistr/u8-strchr.c: Likewise.
16789         * lib/unistr/u8-strcmp.c: Likewise.
16790         * lib/unistr/u8-strcpy.c: Likewise.
16791         * lib/unistr/u8-strcspn.c: Likewise.
16792         * lib/unistr/u8-strdup.c: Likewise.
16793         * lib/unistr/u8-strlen.c: Likewise.
16794         * lib/unistr/u8-strmblen.c: Likewise.
16795         * lib/unistr/u8-strmbtouc.c: Likewise.
16796         * lib/unistr/u8-strncat.c: Likewise.
16797         * lib/unistr/u8-strncmp.c: Likewise.
16798         * lib/unistr/u8-strncpy.c: Likewise.
16799         * lib/unistr/u8-strnlen.c: Likewise.
16800         * lib/unistr/u8-strpbrk.c: Likewise.
16801         * lib/unistr/u8-strrchr.c: Likewise.
16802         * lib/unistr/u8-strspn.c: Likewise.
16803         * lib/unistr/u8-strstr.c: Likewise.
16804         * lib/unistr/u8-strtok.c: Likewise.
16805         * lib/unistr/u8-to-u16.c: Likewise.
16806         * lib/unistr/u8-to-u32.c: Likewise.
16807         * lib/unistr/u8-uctomb-aux.c: Likewise.
16808         * lib/unistr/u8-uctomb.c: Likewise.
16809         * lib/unitypes.h: Likewise.
16810         * lib/uniwidth.h: Likewise.
16811         * lib/uniwidth/cjk.h: Likewise.
16812         * lib/uniwidth/u16-strwidth.c: Likewise.
16813         * lib/uniwidth/u16-width.c: Likewise.
16814         * lib/uniwidth/u32-strwidth.c: Likewise.
16815         * lib/uniwidth/u32-width.c: Likewise.
16816         * lib/uniwidth/u8-strwidth.c: Likewise.
16817         * lib/uniwidth/u8-width.c: Likewise.
16818         * lib/uniwidth/width.c: Likewise.
16819
16820 2007-10-07  Bruno Haible  <bruno@clisp.org>
16821
16822         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
16823         The file is still under LGPL (see modules/inttypes).
16824
16825 2007-10-06  Bruno Haible  <bruno@clisp.org>
16826
16827         * modules/trunc (Dependencies): Add 'extensions'.
16828         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
16829         Reported by Ben Pfaff <blp@gnu.org>.
16830
16831 2007-10-06  Bruno Haible  <bruno@clisp.org>
16832
16833         * modules/freopen-tests: New file.
16834         * tests/test-freopen.c: New file.
16835
16836         * modules/fopen-tests: New file.
16837         * tests/test-fopen.c: New file.
16838
16839         * modules/fopen: New file.
16840         * lib/fopen.c: New file.
16841         * m4/fopen.m4: New file.
16842         * modules/freopen: New file.
16843         * lib/freopen.c: New file.
16844         * m4/freopen.m4: New file.
16845         * lib/stdio.in.h (fopen, freopen): New declarations.
16846         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
16847         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
16848         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
16849         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
16850         * doc/functions/fopen.texi: Mention the 'fopen' module.
16851         * doc/functions/freopen.texi: Mention the 'freopen' module.
16852
16853 2007-10-06  Bruno Haible  <bruno@clisp.org>
16854
16855         * modules/open-tests: New file.
16856         * tests/test-open.c: New file.
16857
16858         * modules/open: New file.
16859         * lib/open.c: New file.
16860         * m4/open.m4: New file.
16861         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
16862         lib/open.c does.
16863         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
16864         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
16865         macros.
16866         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
16867         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
16868         REPLACE_OPEN.
16869         * doc/functions/open.texi: Mention the 'open' module.
16870
16871 2007-10-04  Bruno Haible  <bruno@clisp.org>
16872
16873         * modules/ceill-tests: New file.
16874         * tests/test-ceill.c: New file.
16875
16876         * modules/ceill: New file.
16877         * lib/ceill.c: Replace entire file.
16878         * m4/ceill.m4: New file.
16879         * lib/math.in.h (ceill): Replace declaration.
16880         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
16881         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
16882         * doc/functions/ceill.texi: Mention the 'ceill' module.
16883         * modules/mathl (Files): Remove lib/ceill.c.
16884         (Depends-on): Add ceill.
16885
16886 2007-10-04  Bruno Haible  <bruno@clisp.org>
16887
16888         * modules/ceilf-tests: New file.
16889         * tests/test-ceilf.c: New file.
16890
16891         * modules/ceilf: New file.
16892         * lib/ceil.c: New file.
16893         * lib/ceilf.c: New file.
16894         * m4/ceilf.m4: New file.
16895         * lib/math.in.h (ceilf): New declaration.
16896         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
16897         HAVE_DECL_CEILF.
16898         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
16899         HAVE_DECL_CEILF.
16900         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
16901
16902 2007-10-04  Bruno Haible  <bruno@clisp.org>
16903
16904         * modules/floorl-tests: New file.
16905         * tests/test-floorl.c: New file.
16906
16907         * modules/floorl: New file.
16908         * lib/floorl.c: Replace entire file.
16909         * m4/floorl.m4: New file.
16910         * lib/math.in.h (floorl): Replace declaration.
16911         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
16912         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
16913         * doc/functions/floorl.texi: Mention the 'floorl' module.
16914         * modules/mathl (Files): Remove lib/floorl.c.
16915         (Depends-on): Add floorl.
16916
16917 2007-10-04  Bruno Haible  <bruno@clisp.org>
16918
16919         * modules/floorf-tests: New file.
16920         * tests/test-floorf.c: New file.
16921
16922         * modules/floorf: New file.
16923         * lib/floor.c: New file.
16924         * lib/floorf.c: New file.
16925         * m4/floorf.m4: New file.
16926         * lib/math.in.h (floorf): New declaration.
16927         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
16928         HAVE_DECL_FLOORF.
16929         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
16930         HAVE_DECL_FLOORF.
16931         * doc/functions/floorf.texi: Mention the 'floorf' module.
16932
16933 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
16934             Bruno Haible  <bruno@clisp.org>
16935
16936         Advertise for the Git server instead of the CVS server.
16937         * doc/gnulib-intro.texi (Steady Development): Mention the Git
16938         repository instead of the CVS one.
16939         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
16940         about all VCS systems generically.
16941         * doc/gnulib.texi (Introduction): Capitalize `Git'.
16942
16943 2007-10-04  Bruno Haible  <bruno@clisp.org>
16944
16945         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
16946         means.
16947         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
16948
16949 2007-10-04  Bruno Haible  <bruno@clisp.org>
16950
16951         * modules/truncl-tests: New file.
16952         * tests/test-truncl.c: New file.
16953
16954         * modules/truncl: New file.
16955         * lib/truncl.c: New file.
16956         * m4/truncl.m4: New file.
16957         * lib/math.in.h (truncl): New declaration.
16958         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
16959         HAVE_DECL_TRUNCL.
16960         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
16961         HAVE_DECL_TRUNCL.
16962         * doc/functions/truncl.texi: Mention the 'truncl' module.
16963
16964 2007-10-04  Bruno Haible  <bruno@clisp.org>
16965
16966         * modules/truncf-tests: New file.
16967         * tests/test-truncf.c: New file.
16968
16969         * modules/truncf: New file.
16970         * lib/trunc.c: Make paramerizable through USE_* macros.
16971         * lib/truncf.c: New file.
16972         * m4/truncf.m4: New file.
16973         * lib/math.in.h (truncf): New declaration.
16974         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
16975         HAVE_DECL_TRUNCF.
16976         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
16977         HAVE_DECL_TRUNCF.
16978         * doc/functions/truncf.texi: Mention the 'truncf' module.
16979
16980 2007-10-03  Bruno Haible  <bruno@clisp.org>
16981
16982         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
16983         augmentation also for tests modules.
16984         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
16985         * modules/atexit-tests (Makefile.am): Likewise.
16986         * modules/binary-io-tests (Makefile.am): Likewise.
16987         * modules/c-strcase-tests (Makefile.am): Likewise.
16988         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
16989         * modules/canonicalize-tests (Makefile.am): Likewise.
16990         * modules/closein-tests (Makefile.am): Likewise.
16991         * modules/fprintf-posix-tests (Makefile.am): Likewise.
16992         * modules/freadahead-tests (Makefile.am): Likewise.
16993         * modules/fseek-tests (Makefile.am): Likewise.
16994         * modules/fseeko-tests (Makefile.am): Likewise.
16995         * modules/ftell-tests (Makefile.am): Likewise.
16996         * modules/ftello-tests (Makefile.am): Likewise.
16997         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
16998         * modules/isnanl-tests (Makefile.am): Likewise.
16999         * modules/lseek-tests (Makefile.am): Likewise.
17000         * modules/mbscasecmp-tests (Makefile.am): Likewise.
17001         * modules/mbscasestr-tests (Makefile.am): Likewise.
17002         * modules/mbschr-tests (Makefile.am): Likewise.
17003         * modules/mbscspn-tests (Makefile.am): Likewise.
17004         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
17005         * modules/mbspbrk-tests (Makefile.am): Likewise.
17006         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
17007         * modules/mbsrchr-tests (Makefile.am): Likewise.
17008         * modules/mbsspn-tests (Makefile.am): Likewise.
17009         * modules/mbsstr-tests (Makefile.am): Likewise.
17010         * modules/printf-posix-tests (Makefile.am): Likewise.
17011         * modules/snprintf-posix-tests (Makefile.am): Likewise.
17012         * modules/sprintf-posix-tests (Makefile.am): Likewise.
17013         * modules/tsearch-tests (Makefile.am): Likewise.
17014         * modules/uniname/uniname-tests (Makefile.am): Likewise.
17015         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
17016         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
17017         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
17018         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
17019         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
17020         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
17021         * modules/vprintf-posix-tests (Makefile.am): Likewise.
17022         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
17023         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
17024         * modules/xstrtoimax-tests (Makefile.am): Likewise.
17025         * modules/xstrtol-tests (Makefile.am): Likewise.
17026         * modules/xstrtoumax-tests (Makefile.am): Likewise.
17027         * modules/yesno-tests (Makefile.am): Likewise.
17028
17029 2007-10-03  Bruno Haible  <bruno@clisp.org>
17030
17031         * modules/trunc-tests: New file.
17032         * tests/test-trunc.c: New file.
17033
17034         * modules/trunc: New file.
17035         * lib/trunc.c: New file.
17036         * m4/trunc.m4: New file.
17037         * lib/math.in.h (trunc): New declaration.
17038         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
17039         HAVE_DECL_TRUNC.
17040         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
17041         HAVE_DECL_TRUNC.
17042         * doc/functions/trunc.texi: Mention the 'trunc' module.
17043
17044 2007-10-03  Bruno Haible  <bruno@clisp.org>
17045
17046         * tests/test-fpending.c: New file, mostly copied
17047         from coreutils/lib/t-fpending.c.
17048         * modules/fpending-tests: New file.
17049
17050 2007-10-03  Bruno Haible  <bruno@clisp.org>
17051
17052         Port the stdio extensions to QNX (untested).
17053         * lib/fseterr.c (fseterr): Add support for QNX.
17054         * lib/fbufmode.c (fbufmode): Likewise.
17055         * lib/freadable.c (freadable): Likewise.
17056         * lib/fwritable.c (fwritable): Likewise.
17057         * lib/freading.c (freading): Likewise.
17058         * lib/fwriting.c (fwriting): Likewise.
17059         * lib/freadahead.c (freadahed): Likewise.
17060         * lib/fpurge.c (fpurge): Likewise.
17061         * lib/fseeko.c (rpl_fseeko): Likewise.
17062
17063 2007-10-03  Bruno Haible  <bruno@clisp.org>
17064             Jim Meyering  <jim@meyering.net>
17065             Eric Blake  <ebb9@byu.net>
17066
17067         * doc/relocatable.texi: Use @command instead of @program.
17068
17069 2007-10-02  Jim Meyering  <jim@meyering.net>
17070
17071         Perform one more "_.h" -> ".in.h" substitution.
17072         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
17073         instead of unistd_.h here, too.
17074
17075 2007-10-01  Bruno Haible  <bruno@clisp.org>
17076
17077         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
17078         Needed for the alloca-opt module.
17079
17080 2007-09-30  Bruno Haible  <bruno@clisp.org>
17081
17082         * lib/alloca.in.h: Renamed from lib/alloca_.h.
17083         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
17084         alloca_.h.
17085         * lib/argz.in.h: Renamed from lib/argz_.h.
17086         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
17087         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
17088         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
17089         byteswap_.h.
17090         * lib/dirent.in.h: Renamed from lib/dirent_.h.
17091         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
17092         dirent_.h.
17093         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
17094         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
17095         fcntl_.h.
17096         * lib/float.in.h: Renamed from lib/float_.h.
17097         * modules/float (Files, Makefile.am): Use float.in.h instead of
17098         float_.h.
17099         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
17100         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
17101         fnmatch_.h.
17102         * lib/getopt.in.h: Renamed from lib/getopt_.h.
17103         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
17104         getopt_.h.
17105         * lib/glob.in.h: Renamed from lib/glob_.h.
17106         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
17107         * lib/iconv.in.h: Renamed from lib/iconv_.h.
17108         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
17109         iconv_.h.
17110         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
17111         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
17112         inttypes_.h.
17113         * lib/locale.in.h: Renamed from lib/locale_.h.
17114         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
17115         locale_.h.
17116         * lib/math.in.h: Renamed from lib/math_.h.
17117         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
17118         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
17119         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
17120         of netinet_in_.h. Add dependency.
17121         * lib/poll.in.h: Renamed from lib/poll_.h.
17122         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
17123         * lib/search.in.h: Renamed from lib/search_.h.
17124         * modules/search (Files, Makefile.am): Use search.in.h instead of
17125         search_.h.
17126         * lib/signal.in.h: Renamed from lib/signal_.h.
17127         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
17128         _signal.h.
17129         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
17130         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
17131         stdbool_.h.
17132         * lib/stdint.in.h: Renamed from lib/stdint_.h.
17133         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
17134         stdint_.h.
17135         * lib/stdio.in.h: Renamed from lib/stdio_.h.
17136         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
17137         stdio_.h.
17138         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
17139         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
17140         stdlib_.h.
17141         * lib/string.in.h: Renamed from lib/string_.h.
17142         * modules/string (Files, Makefile.am): Use string.in.h instead of
17143         string_.h.
17144         * doc/gnulib-tool.texi (Initial import): Update.
17145         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
17146         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
17147         of sys_select_.h. Add dependency.
17148         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
17149         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
17150         of sys_socket_.h.
17151         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
17152         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
17153         sys_stat_.h.
17154         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
17155         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
17156         sys_time_.h.
17157         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
17158         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
17159         sysexits_.h.
17160         * lib/time.in.h: Renamed from lib/time_.h.
17161         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
17162         * lib/unistd.in.h: Renamed from lib/unistd_.h.
17163         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
17164         unistd_.h.
17165         * lib/wchar.in.h: Renamed from lib/wchar_.h.
17166         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
17167         wchar_.h.
17168         * lib/wctype.in.h: Renamed from lib/wctype_.h.
17169         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
17170         wctype_.h.
17171         * build-aux/bootstrap (slurp): Update.
17172         * lib/.cppi-disable: Update.
17173
17174 2007-09-30  Bruno Haible  <bruno@clisp.org>
17175
17176         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
17177         Needed on BeOS.
17178
17179 2007-09-30  Bruno Haible  <bruno@clisp.org>
17180
17181         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
17182
17183 2007-09-29  Bruno Haible  <bruno@clisp.org>
17184
17185         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
17186
17187 2007-09-29  Bruno Haible  <bruno@clisp.org>
17188
17189         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
17190         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
17191         * build-aux/install-reloc: Compile also areadlink.c.
17192         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
17193
17194 2007-09-29  Bruno Haible  <bruno@clisp.org>
17195
17196         * gnulib-tool (func_emit_initmacro_done): Indentation.
17197
17198 2007-09-29  Bruno Haible  <bruno@clisp.org>
17199
17200         * README: Add CVS checkout update instructions.
17201         Info from Bob Proulx <bob@proulx.com>.
17202
17203 2007-09-28  Eric Blake  <ebb9@byu.net>
17204
17205         Provide move-if-change.
17206         * build-aux/move-if-change: New file, based on best practice
17207         rather than any canonical upstream location.
17208
17209 2007-09-28  Jim Meyering  <jim@meyering.net>
17210
17211         Fix canonicalize loop-detection corner case.
17212         Do not attempt to stat the symlink values stored via seen_triple.
17213         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
17214         on linux-2.6.18, (but not 2.6.22).
17215         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
17216         triple_compare.  The former compares dev,ino,filename, while the latter
17217         would actually stat dirname(filename) when dev and ino were equal.
17218         * lib/hash-triple.c: Install <string.h>.
17219         (STREQ): Define.
17220         (triple_compare_ino_str): New function.
17221         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
17222
17223 2007-09-28  Eric Blake  <ebb9@byu.net>
17224
17225         Enforce that AC_REPLACE_FUNCS files exist.
17226         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
17227         override check for typos.
17228
17229         Fix test-closein on Solaris 10.
17230         * tests/test-closein.c (main): Don't assume stdin can be inherited
17231         closed on all systems.
17232         * tests/test-closein.sh: Likewise.
17233         Reported by Piotr Tarnowski.
17234
17235 2007-09-28  Jim Meyering  <jim@meyering.net>
17236
17237         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
17238
17239 2007-09-27  Jim Meyering  <jim@meyering.net>
17240
17241         canonicalize: Avoid a false-positive cycle failure.
17242         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
17243         Sort.  Remove cycle-check.
17244         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
17245         not cycle-check.h.
17246         (seen_triple): New function.
17247         (canonicalize_filename_mode): Use it instead of cycle-check.
17248         * tests/test-canonicalize.c: Add a test for this bug.
17249         * tests/test-canonicalize.sh: Set up and run the test.
17250
17251         New module, file-set, from coreutils.
17252         * modules/file-set: Define it.
17253         * lib/file-set.c, lib/file-set.h: Implement.
17254
17255         New module, hash-triple, from coreutils.
17256         * modules/hash-triple: Define it.
17257         * lib/hash-triple.c, lib/hash-triple.h: Implement.
17258
17259 2007-09-25  Eric Blake  <ebb9@byu.net>
17260
17261         Fix strerror on Interix.
17262         * lib/string_.h (strerror): Declare replacement.
17263         * doc/functions/strerror.texi (strerror): Document the Interix
17264         shortcoming.
17265         * modules/string (Makefile.am): Support new hooks.
17266         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
17267         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
17268         gl_FUNC_STRERROR_SEPARATE.
17269         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
17270         * lib/strerror.c (rpl_strerror): Provide replacement.
17271         * modules/strerror (Depends-on): Add string.
17272         (configure.ac): Detect use of module.
17273         * tests/test-strerror.c: New file.
17274         * modules/strerror-tests: New test module.
17275         * modules/argp (Depends-on): Add strerror.
17276         * modules/error (Depends-on): Likewise.
17277         Reported by Martin Koeppe.
17278
17279 2007-09-24  Bruno Haible  <bruno@clisp.org>
17280
17281         * README: Update git instructions.
17282
17283 2007-09-24  Eric Blake  <ebb9@byu.net>
17284
17285         Revert fpending breakage from 2007-09-08.
17286         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
17287         __fpending.c.
17288
17289 2007-09-24  Jim Meyering  <jim@meyering.net>
17290
17291         filenamecat.c: Add a test.
17292         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
17293         showing how the function works when DIR is the empty string.
17294
17295 2007-09-21  Simon Josefsson  <simon@josefsson.org>
17296
17297         * tests/test-canonicalize.sh: Turn on executable bit.
17298
17299 2007-09-19  Eric Blake  <ebb9@byu.net>
17300
17301         * README: Update CVS instructions.
17302
17303 2007-09-18  Bruno Haible  <bruno@clisp.org>
17304
17305         * modules/areadlink: New file.
17306         * lib/areadlink.h (areadlink): New declaration.
17307         * lib/areadlink.c: New file, based on lib/xreadlink.c.
17308
17309 2007-09-17  Jim Meyering  <jim@meyering.net>
17310
17311         * lib/savewd.c (ESTALE) [!defined]: Define.
17312         Reported to be required on Interix by Martin Koeppe.
17313
17314 2007-09-17  Bruno Haible  <bruno@clisp.org>
17315
17316         * gnulib-tool (func_version): Use $version.
17317
17318 2007-09-16  Bruno Haible  <bruno@clisp.org>
17319
17320         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
17321         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
17322         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
17323         Reported by Greg Schafer <gschafer@zip.com.au>.
17324
17325 2007-09-15  Bruno Haible  <bruno@clisp.org>
17326
17327         * gnulib-tool (sed): Try a little harder to make bash understand the
17328         alias.
17329         Reported by Bruce Korb <bruce.korb@gmail.com>.
17330
17331 2007-09-13  Eric Blake  <ebb9@byu.net>
17332
17333         * ChangeLog: Remove conflict markers.
17334
17335 2007-09-13  Simon Josefsson  <simon@josefsson.org>
17336
17337         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
17338         Reported by Bruno Haible <bruno@clisp.org>.
17339
17340 2007-09-12  Bruno Haible  <bruno@clisp.org>
17341
17342         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
17343         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
17344         is not defined.
17345
17346 2007-09-12  Eric Blake  <ebb9@byu.net>
17347
17348         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
17349         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
17350         Autoconf definition.
17351         * modules/euidaccess (Depends-on): Add extensions, for
17352         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
17353         * modules/fnmatch (Depends-on): Likewise.
17354         * modules/getaddrinfo (Depends-on): Likewise.
17355         * modules/getdelim (Depends-on): Likewise.
17356         * modules/getline (Depends-on): Likewise.
17357         * modules/getsubopt (Depends-on): Likewise.
17358         * modules/gettext (Depends-on): Likewise.
17359         * modules/group-member (Depends-on): Likewise.
17360         * modules/mbchar (Depends-on): Likewise.
17361         * modules/memmem (Depends-on): Likewise.
17362         * modules/mempcpy (Depends-on): Likewise.
17363         * modules/memrchr (Depends-on): Likewise.
17364         * modules/pagealign_alloc (Depends-on): Likewise.
17365         * modules/readutmp (Depends-on): Likewise.
17366         * modules/stpcpy (Depends-on): Likewise.
17367         * modules/stpncpy (Depends-on): Likewise.
17368         * modules/strchrnul (Depends-on): Likewise.
17369         * modules/strndup (Depends-on): Likewise.
17370         * modules/strsep (Depends-on): Likewise.
17371         * modules/strverscmp (Depends-on): Likewise.
17372         * modules/vasprintf (Depends-on): Likewise.
17373         * modules/wcwidth (Depends-on): Likewise.
17374         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
17375         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
17376         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
17377         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
17378         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17379         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17380         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
17381         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
17382         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
17383         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
17384         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17385         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
17386         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
17387         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
17388         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
17389         * m4/readutmp.m4 (gl_READUTMP): Likewise.
17390         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
17391         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
17392         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17393         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
17394         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
17395         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
17396         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
17397         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
17398         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
17399         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17400         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
17401         so that lock.m4 can be used in gettext without extensions module.
17402
17403 2007-09-11  Bruno Haible  <bruno@clisp.org>
17404
17405         * m4/isc-posix.m4: Remove file.
17406         Suggested by Eric Blake.
17407
17408 2007-09-11  Eric Blake  <ebb9@byu.net>
17409
17410         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
17411
17412 2007-09-10  Bruno Haible  <bruno@clisp.org>
17413
17414         * posix-modules: Fix typo in error message.
17415         Reported by Matt <mkraai@beckman.com>.
17416
17417 2007-09-09  Bruno Haible  <bruno@clisp.org>
17418
17419         * doc/functions/getdelim.texi: Update list of platforms lacking the
17420         function.
17421         * doc/functions/getline.texi: Likewise.
17422
17423 2007-09-09  Jim Meyering  <jim@meyering.net>
17424
17425         * lib/hash.c (hash_initialize): Detect calloc failure.
17426         Reported by Bruno Haible.
17427
17428 2007-09-09  Bruno Haible  <bruno@clisp.org>
17429
17430         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
17431         malloc or realloc fails.
17432
17433 2007-09-09  Bruno Haible  <bruno@clisp.org>
17434
17435         * modules/getcwd (Depends-on): Add malloc-posix.
17436         * modules/glob (Depends-on): Likewise.
17437         * modules/putenv (Depends-on): Likewise.
17438         * modules/strdup (Depends-on): Likewise.
17439         * modules/getdelim (Depends-on): Add realloc-posix.
17440         * modules/read-file (Depends-on): Likewise.
17441
17442 2007-09-09  Bruno Haible  <bruno@clisp.org>
17443
17444         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
17445         (gl_FUNC_MALLOC_POSIX): Require it.
17446         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
17447         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
17448         * modules/realloc (Files): Add m4/malloc.m4.
17449         * modules/calloc (Files): Likewise.
17450
17451 2007-09-09  Bruno Haible  <bruno@clisp.org>
17452
17453         * modules/malloc-posix: New file.
17454         * modules/malloc (Depends-on): Add malloc-posix.
17455         * lib/malloc.c: Include errno.h.
17456         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
17457         and a POSIX-compatible malloc into a single function. Set ENOMEM
17458         when returning NULL.
17459         * m4/malloc.m4: New file.
17460         * doc/functions/malloc.texi: Mention the malloc-posix module.
17461         * lib/stdlib_.h (malloc): New declaration.
17462         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
17463         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
17464         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
17465         and HAVE_MALLOC_POSIX.
17466
17467 2007-09-09  Bruno Haible  <bruno@clisp.org>
17468
17469         * modules/realloc-posix: New file.
17470         * modules/realloc (Depends-on): Add realloc-posix.
17471         * lib/realloc.c: Include errno.h.
17472         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
17473         and a POSIX-compatible realloc into a single function. Set ENOMEM
17474         when returning NULL.
17475         * m4/realloc.m4: New file.
17476         * doc/functions/realloc.texi: Mention the realloc-posix module.
17477         * lib/stdlib_.h (realloc): New declaration.
17478         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
17479         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
17480         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
17481         and HAVE_REALLOC_POSIX.
17482
17483 2007-09-09  Bruno Haible  <bruno@clisp.org>
17484
17485         * modules/calloc-posix: New file.
17486         * modules/calloc (Depends-on): Add calloc-posix.
17487         * lib/calloc.c: Include errno.h.
17488         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
17489         and a POSIX-compatible calloc into a single function. Set ENOMEM
17490         when returning NULL.
17491         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
17492         * doc/functions/calloc.texi: Mention the calloc-posix module.
17493         * lib/stdlib_.h (calloc): New declaration.
17494         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
17495         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
17496         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
17497         and HAVE_CALLOC_POSIX.
17498
17499 2007-09-09  Bruno Haible  <bruno@clisp.org>
17500
17501         Allow for modules to show an arbitrary notice.
17502         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
17503         * gnulib-tool: New option --extract-notice.
17504         (func_usage): Document it.
17505         (sed_extract_prog): Update.
17506         (func_get_notice): New function.
17507         (func_modules_notice): New function.
17508         (func_import, func_create_testdir): Invoke it.
17509         Suggested by Jim Meyering.
17510
17511 2007-09-09  Bruno Haible  <bruno@clisp.org>
17512
17513         * gnulib-tool: New options --verbose, --quiet.
17514         (func_usage): Document them.
17515         (verbose): New variable.
17516         (func_execute_command): New function.
17517         (func_import): Don't show the module list and the file list if
17518         $verbose < 0.
17519         (func_create_testdir): Likewise. Use func_execute_command.
17520         (func_create_megatestdir): Use func_execute_command.
17521
17522 2007-09-08  Bruno Haible  <bruno@clisp.org>
17523
17524         * gnulib-tool (func_import): Prefer rsync over wget when available,
17525         for fetching the PO files.
17526
17527 2007-09-08  Bruno Haible  <bruno@clisp.org>
17528
17529         * posix-modules: New file. Portions copied from gnulib-tool.
17530         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
17531
17532 2007-09-08  Jim Meyering  <jim@meyering.net>
17533
17534         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
17535         * lib/fpending.h: Rename from __fpending.h.
17536         * lib/fpending.c: Rename from __fpending.c.
17537         Include "fpending.h", not "__fpending.h".
17538         * lib/__fpending.h, lib/__fpending.c: Remove files.
17539         * modules/fpending (Files): Reflect new file names.
17540         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
17541
17542 2007-09-08  Bruno Haible  <bruno@clisp.org>
17543
17544         * m4/inttypes-h.m4: Remove stub file.
17545
17546 2007-09-07  Simon Josefsson  <simon@josefsson.org>
17547
17548         * doc/headers/stdint.texi: Discuss #include_next issue.
17549
17550 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
17551
17552         * build-aux/bootstrap: Remove obsolete comment about wget --help.
17553
17554 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17555
17556         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
17557         in variable name.
17558
17559 2007-09-03  Jim Meyering  <jim@meyering.net>
17560
17561         New module: git-version-gen.
17562         * modules/git-version-gen: New file.
17563
17564         Import changes from coreutils for bootstrap script.
17565
17566         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
17567
17568         bootstrap: uses rsync to download the .po files
17569         * build-aux/bootstrap (po_download_command_format): New global.
17570         (download_po_files): Use rsync.
17571         (update_po_files): Don't remove .po files after download,
17572         so future rsync runs can take advantage of the copies.
17573
17574         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
17575
17576         Solve the unnecessary-.po-file-regeneration problem once and for all.
17577         * build-aux/bootstrap (download_po_files): New function, renamed from
17578         get_translations.  Now, downloads, but doesn't update LINGUAS.
17579         (update_po_files): New function.
17580
17581         bootstrap: Ignore more.
17582         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
17583         uniwidth to e.g., lib/.gitignore.
17584         (slurp): Handle the sys_stat_.h -> sys mapping, too.
17585
17586         * build-aux/bootstrap: New setting: vc_ignore.
17587         (insert_sorted_if_absent): Create $file if absent.
17588         Adapt to new, possibly empty, list: $vc_ignore.
17589
17590         bootstrap: generate more ignorable names
17591         * build-aux/bootstrap (slurp): When generating ignorable names,
17592         also map .sin to .sed, .gperf to .c, and .y to .c.
17593
17594 2007-09-03  Jim Meyering  <jim@meyering.net>
17595
17596         * build-aux/git-version-gen: New file, from coreutils.  For details, see
17597         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
17598
17599 2007-09-02  Bruno Haible  <bruno@clisp.org>
17600
17601         Fix mis-recognition of 'mcs' on QNX 6.
17602         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
17603         output contains the string "Mono".
17604         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
17605         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
17606
17607 2007-09-01  Bruno Haible  <bruno@clisp.org>
17608
17609         Fix collision between uniwidth/* and linebreak modules.
17610         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
17611         u32_width): Remove declarations.
17612         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
17613         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
17614         streq3, streq2, streq1, streq0): Remove functions.
17615         (STREQ): Remove macro.
17616         (is_cjk_encoding): Remove function.
17617         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
17618         (uc_width, u8_width, u16_width, u32_width): Remove functions.
17619         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
17620         * NEWS: Document the change.
17621
17622 2007-09-01  Bruno Haible  <bruno@clisp.org>
17623
17624         * lib/streq.h: Add double-inclusion guard.
17625
17626 2007-09-01  Karl Berry  <karl@gnu.org>
17627
17628         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
17629
17630 2007-08-28  Jim Meyering  <jim@meyering.net>
17631
17632         Rename mreadlink_with_size to areadlink_with_size.
17633         * NEWS: Document the change.
17634         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
17635         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
17636         * lib/mreadlink.h: Rename this to...
17637         * lib/areadlink.h: ...this.
17638         * modules/mreadlink-with-size: Rename this to...
17639         * modules/areadlink-with-size: ...this.
17640         * lib/canonicalize.c: Reflect the renaming.
17641         * modules/canonicalize: Likewise.
17642
17643 2007-08-26  Bruno Haible  <bruno@clisp.org>
17644
17645         * gnulib-tool (func_import): When deciding which files to remove,
17646         consider also dangling symbolic links.
17647         Reported by Eric Blake.
17648
17649 2007-08-26  Bruno Haible  <bruno@clisp.org>
17650
17651         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
17652
17653 2007-08-23  Simon Josefsson  <simon@josefsson.org>
17654
17655         * lib/readline.c: Don't include getline.h, the prototype is now
17656         found in stdio.h.
17657
17658 2007-08-23  Jim Meyering  <jim@meyering.net>
17659
17660         Getdelim touchup.
17661         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
17662         around the funlockfile call, since funlockfile never sets errno.
17663         Don't set errno upon failed realloc.
17664
17665 2007-08-22  Eric Blake  <ebb9@byu.net>
17666
17667         Getline touchups.
17668         * lib/getdelim.c (getdelim): Revert regression that required *n to
17669         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
17670         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
17671         getdelim, rather than whether implementation is missing.
17672         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
17673         * lib/stdio_.h (getline): Also declare if replacement is
17674         required.
17675         * doc/functions/getdelim.texi: New file.
17676         * doc/functions/getline.texi: Likewise.
17677         * doc/gnulib.texi (Function Substitutes): Add new files.
17678         Reported by Bruno Haible.
17679
17680 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
17681
17682         * users.txt: Add Guile.
17683
17684 2007-08-22  Eric Blake  <ebb9@byu.net>
17685
17686         * tests/test-getdelim.c (main): Use remove, not unlink.
17687         * tests/test-getline.c (main): Likewise.
17688
17689         Move getline and getdelim into stdio.h, per POSIX 200x.
17690         * modules/getline (Files): Remove getline.h.
17691         (Depends-on): Add stdio.
17692         (configure.ac): Add module indicator.
17693         * modules/getdelim (Files): Remove getdelim.h.
17694         (Depends-on): Add stdio.
17695         (configure.ac): Add module indicator.
17696         * modules/stdio (Makefile.am): Work with new indicators.
17697         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
17698         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
17699         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17700         * lib/getdelim.h: Delete.
17701         * lib/getline.h: Delete.
17702         * lib/stdio_.h (getdelim, getline): Declare.
17703         * modules/getdelim-tests: New module.
17704         * modules/getline-tests: Likewise.
17705         * tests/test-getdelim.c: New file.
17706         * tests/test-getline.c: Likewise.
17707         * NEWS: Document the change.
17708         * lib/getline.c: Update choice of header.
17709         * lib/csharpcomp.c: Likewise.
17710         * lib/getpass.c: Likewise.
17711         * lib/javacomp.c: Likewise.
17712         * lib/javaversion.c: Likewise.
17713         * lib/yesno.c: Likewise.
17714         * lib/getdelim.c: Likewise.
17715         (getdelim): Set errno on failure, and avoid memory leak.
17716
17717 2007-08-19  Bruno Haible  <bruno@clisp.org>
17718
17719         * modules/closein (Depends-on): Add freadahead.
17720         * lib/closein.c: Include freadahead.h.
17721         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
17722         is zero.
17723
17724 2007-08-19  Bruno Haible  <bruno@clisp.org>
17725
17726         * modules/freadahead-tests: New file.
17727         * tests/test-freadahead.sh: New file.
17728         * tests/test-freadahead.c: New file.
17729
17730         * modules/freadahead: New file.
17731         * lib/freadahead.h: New file.
17732         * lib/freadahead.c: New file.
17733         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
17734         fbufmode, fpurge, freadable, fwritable.
17735
17736 2007-08-19  Eric Blake  <ebb9@byu.net>
17737
17738         Test yesno in combination with closein.
17739         * lib/yesno.c (yesno): Document use of stdin.
17740         * modules/yesno-tests (Files): New module.
17741         * tests/test-yesno.c (main): New file.
17742         * tests/test-yesno.sh: Likewise.
17743
17744 2007-08-19  Bruno Haible  <bruno@clisp.org>
17745
17746         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
17747         * lib/fseeko.c (rpl_fseeko): Likewise.
17748         * lib/fseterr.c (fseterr): Likewise.
17749
17750 2007-08-19  Bruno Haible  <bruno@clisp.org>
17751
17752         * tests/test-lseek.c (main): Disable a test for BeOS.
17753         * doc/functions/lseek.texi: Document the BeOS bug.
17754
17755 2007-08-19  Bruno Haible  <bruno@clisp.org>
17756             Eric Blake  <ebb9@byu.net>
17757
17758         * lib/lseek.c: Include <sys/stat.h>.
17759         (rpl_lseek): Add workaround code also for Unix platforms.
17760         Needed for BeOS.
17761         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
17762         * doc/functions/lseek.texi: Document BeOS definiency.
17763
17764 2007-08-18  Bruno Haible  <bruno@clisp.org>
17765
17766         * modules/fstrcmp-tests: New file.
17767         * tests/test-fstrcmp.c: New file.
17768
17769 2007-08-18  Bruno Haible  <bruno@clisp.org>
17770
17771         * modules/fstrcmp: New file, from GNU gettext with modifications.
17772         * lib/fstrcmp.h: New file, from GNU gettext.
17773         * lib/fstrcmp.c: New file, from GNU gettext.
17774         * MODULES.html.sh (String handling): Add fstrcmp.
17775
17776 2007-08-18  Bruno Haible  <bruno@clisp.org>
17777
17778         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
17779         'bool'.
17780         (diag, compareseq): Remove const from the ctxt argument.
17781         (USE_HEURISTIC): Undefine at the end.
17782
17783 2007-08-18  Jim Meyering  <jim@meyering.net>
17784
17785         New file: lib/idcache.h
17786         * NEWS: Mention the addition.
17787         * modules/idcache (Files): Add lib/idcache.h
17788         * lib/idcache.c: Include "idcache.h".
17789         Don't include <sys/types.h>.
17790         Add a FIXME comment.
17791         Move file-scoped "static" declarations to the top.
17792         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
17793
17794 2007-08-17  Bruno Haible  <bruno@clisp.org>
17795         and Paul Eggert  <eggert@cs.ucla.edu>
17796
17797         * MODULES.html.sh: Add diffseq.
17798         * modules/diffseq: New file.
17799         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
17800         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
17801
17802 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
17803
17804         Import changes from coreutils for bootstrap script.
17805
17806         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
17807
17808         * build-aux/bootstrap (slurp): Work even in environments where
17809         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
17810         current code does not slurp files whose names start with ".", and
17811         this looks like it might be a troublesome area.
17812
17813         2007-07-11  Jim Meyering  <jim@meyering.net>
17814
17815         If there's a GPL vN copyright comment, require that N == 3.
17816
17817         2007-07-08  Jim Meyering  <jim@meyering.net>
17818
17819         Run the coreutils-specific code only if tests/Makefile.am.in exists.
17820         * build-aux/bootstrap (mam_template): Move definition out of loop.
17821
17822         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
17823
17824         * build-aux/bootstrap (symlink_to_dir): Rename function from
17825         symlink_to_gnulib.  Add a directory parameter.  Update all
17826         callers.
17827         (cp_mark_as_generated): Also check for -- and link to -- files in
17828         gl/.
17829
17830         2007-07-08  Jim Meyering  <jim@meyering.net>
17831
17832         Adapt to deeper hierarchy in gnulib.
17833         * build-aux/bootstrap (symlink_to_dir): If the destination
17834         directory doesn't exist, create it. This is required at least for
17835         "lib/uniwidth/cjk.h".
17836
17837         2007-05-15  Jim Meyering  <jim@meyering.net>
17838
17839         * build-aux/bootstrap: Now that generated Makefile.am files
17840         are no longer under version control, they must be created at
17841         bootstrap time.
17842
17843 2007-08-14  Ben Pfaff  <blp@gnu.org>
17844
17845         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
17846
17847 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
17848
17849         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
17850         given the changes below.
17851         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
17852         even on hosts that have padding bits beyond the supported 64.
17853
17854 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17855
17856         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
17857         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
17858         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
17859         depends on it.
17860         (xstrtol_error): Remove.
17861         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
17862         but with a different signature.
17863         (ATTRIBUTE_NORETURN, __attribute__): New macros.
17864         * lib/xstrtol-error.c: Include exitfail.h.
17865         (xstrtol_fatal): New function, with a different signature from the
17866         old xstrtol_error, so that the caller need not worry about passing
17867         in an exit status, or about storage management of the option argument.
17868         (xstrtol_error): Now a static function.  Redo signature to
17869         implement xstrtol_fatal.  Output the correct number of hyphens in
17870         front of the option so that the caller need not worry about
17871         storage management.
17872         (N_): New macro.
17873         (_): Remove; not used now.
17874         * modules/xstrtol: Depend on getopt.
17875         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
17876         of old STRTOL_FATAL_ERROR macro.
17877         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
17878         of test program.
17879         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
17880         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
17881
17882 2007-08-08  Eric Blake  <ebb9@byu.net>
17883
17884         * lib/xstrtol-error.c: Add missing include.
17885
17886         Move xstrtol messages into gnulib domain, when --pobase is used.
17887         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
17888         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
17889         * modules/xstrtol (Files): Distribute new file.
17890         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
17891         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
17892         * tests/test-xstrtol.c: ...into new file.
17893         * tests/test-xstrtoul.c: Also test xstrtoul.
17894         * tests/test-xstrtoimax.c: Also test xstrtoimax.
17895         * tests/test-xstrtoumax.c: Also test xstrtoumax.
17896         * tests/test-xstrtol.sh: Drive the tests.
17897         * tests/test-xstrtoimax.sh: Likewise.
17898         * tests/test-xstrtoumax.sh: Likewise.
17899         * modules/xstrtol-tests: New module.
17900         * modules/xstrtoimax-tests: Likewise.
17901         * modules/xstrtoumax-tests: Likewise.
17902
17903 2007-08-08  Jim Meyering  <jim@meyering.net>
17904
17905         New function: mfile_name_concat.
17906         * lib/filenamecat.c (mfile_name_concat): New function, just like
17907         file_name_concat, but return NULL upon failure rather than exiting
17908         with a diagnostic.
17909         * lib/filenamecat.h: Declare it.
17910
17911 2007-08-07  Bruno Haible  <bruno@clisp.org>
17912
17913         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
17914         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
17915         warning from gcc.
17916         Reported by Eric Blake.
17917
17918 2007-08-07  Simon Josefsson  <simon@josefsson.org>
17919
17920         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
17921         * modules/crypto/arcfour (License): Likewise.
17922         * modules/crypto/des-tests (License): Likewise.
17923         * modules/crypto/gc-arctwo-tests (License): Likewise.
17924         * modules/crypto/gc-des-tests (License): Likewise.
17925         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
17926         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
17927         * modules/crypto/gc-md2-tests (License): Likewise.
17928         * modules/crypto/gc-md4-tests (License): Likewise.
17929         * modules/crypto/gc-md5-tests (License): Likewise.
17930         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
17931         * modules/crypto/gc-rijndael-tests (License): Likewise.
17932         * modules/crypto/gc-sha1-tests (License): Likewise.
17933         * modules/crypto/gc-tests (License): Likewise.
17934         * modules/crypto/hmac-md5 (License): Likewise.
17935         * modules/crypto/hmac-sha1 (License): Likewise.
17936         * modules/crypto/md2-tests (License): Likewise.
17937         * modules/crypto/md4-tests (License): Likewise.
17938         * modules/crypto/md5 (License): Likewise.
17939         * modules/crypto/rijndael (License): Likewise.
17940         * modules/crypto/sha1 (License): Likewise.
17941         * modules/memxor (License): Likewise.
17942
17943 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
17944         and Bruno Haible  <bruno@clisp.org>
17945
17946         * NEWS: Describe interface changes to human, xstrtol.
17947         * lib/human.h: Include <xstrtol.h>.
17948         (human_options): Return enum strtol_error, not int.  Remove
17949         bool arg; take int * instead.
17950         * lib/human.c: Don't include "gettext.h".
17951         (_): Remove; no longer used.
17952         Don't include <xstrtol.h>, since human.h does it.
17953         (human_options): Adjust to abovementioned interface changes.
17954         Do not report error to stderr; that's now the caller's
17955         responsibility.
17956         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
17957         interface change.
17958         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
17959         Str, Argument_type_string.  All uses changed.  Put " argument"
17960         in diagnostics to make them clearer.  Change wording of suffix
17961         message for clarity.
17962         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
17963         Argument_type_string.
17964         (STRTOL_FATAL_WARN): Remove; no longer used.
17965         * modules/human (Depends-on): Remove gettext-h.
17966
17967 2007-08-06  Simon Josefsson  <simon@josefsson.org>
17968
17969         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
17970
17971 2007-07-31  Bruno Haible  <bruno@clisp.org>
17972
17973         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
17974         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
17975         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
17976
17977 2007-07-31  Bruno Haible  <bruno@clisp.org>
17978
17979         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
17980         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
17981
17982 2007-07-30  Bruno Haible  <bruno@clisp.org>
17983
17984         * modules/base64 (License): Use the synonymous term "LGPLv2+".
17985         * modules/c-ctype (License): Likewise.
17986         * modules/c-strcase (License): Likewise.
17987         * modules/check-version (License): Likewise.
17988         * modules/iconv (License): Likewise.
17989         * modules/iconv_open (License): Likewise.
17990         * modules/read-file (License): Likewise.
17991         * modules/striconv (License): Likewise.
17992         * modules/strverscmp (License): Likewise.
17993         * modules/vasprintf (License): Likewise.
17994         * modules/crypto/des (License): Likewise.
17995         * modules/crypto/gc (License): Likewise.
17996         * modules/crypto/gc-arcfour (License): Likewise.
17997         * modules/crypto/gc-arctwo (License): Likewise.
17998         * modules/crypto/gc-des (License): Likewise.
17999         * modules/crypto/gc-hmac-md5 (License): Likewise.
18000         * modules/crypto/gc-hmac-sha1 (License): Likewise.
18001         * modules/crypto/gc-md2 (License): Likewise.
18002         * modules/crypto/gc-md4 (License): Likewise.
18003         * modules/crypto/gc-md5 (License): Likewise.
18004         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
18005         * modules/crypto/gc-random (License): Likewise.
18006         * modules/crypto/gc-rijndael (License): Likewise.
18007         * modules/crypto/gc-sha1 (License): Likewise.
18008         * modules/crypto/md2 (License): Likewise.
18009         * modules/crypto/md4 (License): Likewise.
18010
18011 2007-07-30  Jim Meyering  <jim@meyering.net>
18012
18013         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
18014         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
18015         it has valid stat data.  This bug would cause du not to count the
18016         sizes of inaccessible directories.
18017         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
18018         in <http://bugzilla.redhat.com/250077>.
18019
18020 2007-07-25  Peter O'Gorman  <peter@pogma.com>
18021             Bruno Haible  <bruno@clisp.org>
18022
18023         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
18024         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
18025         #include_next, gives a diagnostic about it, but reports no error in
18026         the exit code.
18027         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
18028
18029 2007-07-24  Ben Pfaff  <blp@gnu.org>
18030
18031         Improve name: "count-one-bits" is better than "popcount".
18032         * MODULES.html.sh: Update name.
18033         * lib/popcount.h: Renamed lib/count-one-bits.h.
18034         (popcount): Renamed count_one_bits.
18035         (popcountl): Renamed count_one_bits_l.
18036         (popcountll): Renamed count_one_bits_ll.
18037         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
18038         * modules/popcount: Renamed module/count-one-bits.
18039         * modules/popcount-tests: Renamed module/count-one-bits-tests.
18040         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
18041
18042 2007-07-23  Ben Pfaff  <blp@gnu.org>
18043
18044         * lib/popcount.h (popcount32): Reduce size of constants, to allow
18045         better code generation, and add U to large constants to avoid
18046         warnings, in non-GCC case.
18047         Suggested by Bruno Haible.
18048
18049 2007-07-23  Ben Pfaff  <blp@gnu.org>
18050
18051         * lib/popcount.h: Use verify_true instead of if...abort.
18052         * modules/popcount: Depend on verify module.
18053         Suggested by Jim Meyering.
18054
18055 2007-07-23  Bruno Haible  <bruno@clisp.org>
18056
18057         * gnulib-tool (func_import): Create a .cvsignore file also when the
18058         directory is not yet in CVS but the toplevel directory is. When
18059         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
18060         Reported by Karl Berry.
18061
18062 2007-07-22  Ben Pfaff  <blp@gnu.org>
18063
18064         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
18065         case.
18066         Suggested by Eric Blake.
18067
18068 2007-07-22  Ben Pfaff  <blp@gnu.org>
18069
18070         New module: popcount.
18071         * MODULES.html.sh: Add popcount.
18072         * modules/popcount: New file.
18073         * modules/popcount-tests: New file.
18074         * tests/test-popcount.c: New file.
18075         * lib/popcount.h: New file.
18076         * m4/popcount.m4: New file.
18077
18078 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
18079
18080         * build-aux/announce-gen: Update to GPLv3.
18081
18082         * build-aux/config.guess: Update from config.
18083
18084 2007-07-21  Bruno Haible  <bruno@clisp.org>
18085
18086         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
18087         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
18088
18089 2007-07-20  Jim Meyering  <jim@meyering.net>
18090
18091         * check-module: Diagnose a self-dependency.
18092
18093 2007-07-19  Bruno Haible  <bruno@clisp.org>
18094
18095         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
18096         empty.
18097         Reported by Eric Blake.
18098
18099 2007-07-18  Bruno Haible  <bruno@clisp.org>
18100
18101         * gnulib-tool: New options --po-base, --po-domain.
18102         (func_usage): Document them.
18103         (pobase, po_domain): New variables.
18104         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
18105         DEFAULT_TEXT_DOMAIN.
18106         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
18107         (func_import): Consider pobase and po_domain. Create a po/ directory.
18108         (func_create_testdir): Set pobase and po_domain to empty.
18109         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
18110         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
18111
18112 2007-07-18  Bruno Haible  <bruno@clisp.org>
18113
18114         * gnulib-tool (func_get_automake_snippet): Synthesize also an
18115         EXTRA_DIST augmentation for files in build-aux/.
18116
18117 2007-07-16  Bruno Haible  <bruno@clisp.org>
18118
18119         * modules/lseek (License): Use the synonymous term "LGPLv2+".
18120         * modules/getdelim (License): Likewise.
18121
18122 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18123
18124         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
18125         * modules/d-type (License): Likewise.
18126         * modules/extensions (License): Likewise.
18127         * modules/fnmatch (License): Likewise.
18128         * modules/fseeko (License): Likewise.
18129         * modules/getaddrinfo (License): Likewise.
18130         * modules/getline (License): Likewise.
18131         * modules/getlogin_r (License): Likewise.
18132         * modules/getpass (License): Likewise.
18133         * modules/gettimeofday (License): Likewise.
18134         * modules/glob (License): Likewise.
18135         * modules/inet_ntop (License): Likewise.
18136         * modules/malloc (License): Likewise.
18137         * modules/malloca (License): Likewise.
18138         * modules/memmem (License): Likewise.
18139         * modules/mempcpy (License): Likewise.
18140         * modules/memset (License): Likewise.
18141         * modules/minmax (License): Likewise.
18142         * modules/mktime (License): Likewise.
18143         * modules/netinet_in (License): Likewise.
18144         * modules/pathmax (License): Likewise.
18145         * modules/poll (License): Likewise.
18146         * modules/regex (License): Likewise.
18147         * modules/snprintf (License): Likewise.
18148         * modules/stdbool (License): Likewise.
18149         * modules/stdint (License): Likewise.
18150         * modules/stdio (License): Likewise.
18151         * modules/strcase (License): Likewise.
18152         * modules/strcasestr (License): Likewise.
18153         * modules/strdup (License): Likewise.
18154         * modules/string (License): Likewise.
18155         * modules/strndup (License): Likewise.
18156         * modules/strnlen (License): Likewise.
18157         * modules/strpbrk (License): Likewise.
18158         * modules/strptime (License): Likewise.
18159         * modules/strsep (License): Likewise.
18160         * modules/sys_select (License): Likewise.
18161         * modules/sys_socket (License): Likewise.
18162         * modules/sys_stat (License): Likewise.
18163         * modules/sys_time (License): Likewise.
18164         * modules/time (License): Likewise.
18165         * modules/time_r (License): Likewise.
18166         * modules/timegm (License): Likewise.
18167         * modules/unistd (License): Likewise.
18168         * modules/vsnprintf (License): Likewise.
18169         * modules/wctype (License): Likewise.
18170
18171 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18172
18173         * modules/argz (License): LGPLv2+.
18174
18175 2007-07-15  Karl Berry  <karl@gnu.org>
18176
18177         * doc/gnulib.texi: revise node structure per new fdl.texi.
18178
18179 2007-07-14  Bruno Haible  <bruno@clisp.org>
18180
18181         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
18182         the output file.
18183         * lib/uniname/uninames.h: Regenerated.
18184
18185 2007-07-14  Karl Berry  <karl@gnu.org>
18186
18187         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
18188         omitting sectioning and index commands.
18189
18190 2007-07-13  Bruno Haible  <bruno@clisp.org>
18191
18192         New gnulib-tool option --more-symlinks.
18193         * gnulib-tool (func_usage): Document --more-symlinks.
18194         (do_copyrights): New variable.
18195         Recognize option --more-symlinks.
18196         (func_import): Don't add a copyright notice transform to
18197         sed_transform_lib_file if do_copyrights is empty.
18198
18199 2007-07-13  Bruno Haible  <bruno@clisp.org>
18200
18201         * lib/vasnprintf.c (decimal_point_char): Define also if
18202         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
18203         && !NEED_PRINTF_DIRECTIVE_A.
18204         Reported by Clemens Koller <clemens.koller@anagramm.de> via
18205         Gary V. Vaughan <gary@gnu.org>.
18206
18207 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
18208
18209         * lib/inttypes_.h: Undo previous change, since it was fixed
18210         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
18211
18212 2007-07-13  Bruno Haible  <bruno@clisp.org>
18213
18214         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
18215         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
18216
18217 2007-07-13  Jim Meyering  <jim@meyering.net>
18218
18219         df: Don't fail for Tru64's "file-on-file mount".
18220         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
18221         so we fall through and use statfs instead.  Details here:
18222         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
18223         Reported by Albert Chin.
18224
18225 2007-07-13  Bruno Haible  <bruno@clisp.org>
18226
18227         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
18228         * modules/configmake (License): Likewise.
18229         * modules/gettext (License): Likewise.
18230         * modules/gettext-h (License): Likewise.
18231         * modules/include_next (License): Likewise.
18232         * modules/link-warning (License): Likewise.
18233         * modules/localcharset (License): Likewise.
18234         * modules/localename (License): Likewise.
18235         * modules/lock (License): Likewise.
18236         * modules/relocatable-lib-lgpl (License): Likewise.
18237         * modules/size_max (License): Likewise.
18238         * modules/vasnprintf (License): Likewise.
18239         * modules/wchar (License): Likewise.
18240         * modules/xsize (License): Likewise.
18241
18242 2007-07-13  Bruno Haible  <bruno@clisp.org>
18243
18244         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
18245         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
18246
18247 2007-07-12  Bruno Haible  <bruno@clisp.org>
18248
18249         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
18250         in the modules files.
18251
18252 2007-07-11  Karl Berry  <karl@gnu.org>
18253
18254         * MODULES.html.sh (func_module): use
18255          sed -e '\|^'"${includefile}"'$|d'
18256          instead of /.../d, to avoid errors on $includefile's containing /.
18257
18258 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
18259
18260         * gnulib-tool (func_import): Avoid duplication of --avoid
18261         statements
18262         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
18263         names to `_' in variable names.
18264
18265 2007-07-10  Eric Blake  <ebb9@byu.net>
18266
18267         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
18268         * NEWS: Document this change.
18269
18270 2007-07-08  Bruno Haible  <bruno@clisp.org>
18271
18272         Update to Unicode 5.0.
18273         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
18274         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
18275         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
18276         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
18277         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
18278         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
18279         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
18280         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
18281         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
18282         U+10A3F, U+1D242..U+1D244.
18283         (nonspacing_table_ind): Update.
18284         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
18285         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
18286
18287 2007-07-08  Bruno Haible  <bruno@clisp.org>
18288
18289         Update to Unicode 5.0.
18290         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
18291         code transform. Extend the name index field of unicode_name_to_code and
18292         unicode_code_to_name from 16 to 24 bits.
18293         * lib/uniname/uniname.c (unicode_character_name,
18294         unicode_name_character): Add the range 0x12xxx to the code transform.
18295         * lib/uniname/uninames.h: Regenerated.
18296         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
18297
18298 2007-07-07  Bruno Haible  <bruno@clisp.org>
18299
18300         * modules/wcwidth-tests: New file.
18301         * tests/test-wcwidth.c: New file.
18302
18303         Work around MacOS X wcwidth() bug.
18304         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
18305         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
18306         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
18307         original wcwidth in non-UTF-8 locales.
18308         * modules/wcwidth (Depends-on): Add localcharset, streq,
18309         uniwidth/width.
18310         * doc/functions/wcwidth.texi: Update.
18311
18312 2007-07-07  Bruno Haible  <bruno@clisp.org>
18313
18314         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
18315         (wcwidth): New declaration.
18316         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
18317         macros.
18318         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
18319         here. Prepare for creating <wchar.h> unconditionally.
18320         * modules/wchar (Depends-on): Add link-warning.
18321         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
18322         REPLACE_WCWIDTH, and GL_LINK_WARNING.
18323         * lib/wcwidth.h: Remove file.
18324         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
18325         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
18326         * modules/wcwidth (Files): Remove lib/wcwidth.h.
18327         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
18328         (Include): Replace wcwidth.h with <wchar.h>.
18329         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
18330         * lib/mbchar.h: Don't include wcwidth.h.
18331         * lib/mbswidth.c: Likewise.
18332         * NEWS: Mention the change.
18333
18334 2007-07-07  Bruno Haible  <bruno@clisp.org>
18335
18336         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
18337         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
18338         definition with an external declaration.
18339         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
18340         defined as a function. Remove AC_C_INLINE requirement.
18341         * modules/wcwidth (Files): Add lib/wcwidth.c.
18342         (Makefile.am): Remove redundant statement.
18343
18344 2007-07-07  Bruno Haible  <bruno@clisp.org>
18345
18346         * MODULES.html.sh (Unicode string functions): Add the new modules.
18347
18348         * tests/uniwidth/test-u32-strwidth.c: New file.
18349         * modules/uniwidth/u32-strwidth-tests: New file.
18350
18351         * lib/uniwidth/u32-strwidth.c: New file.
18352         * modules/uniwidth/u32-strwidth: New file.
18353
18354         * tests/uniwidth/test-u16-strwidth.c: New file.
18355         * modules/uniwidth/u16-strwidth-tests: New file.
18356
18357         * lib/uniwidth/u16-strwidth.c: New file.
18358         * modules/uniwidth/u16-strwidth: New file.
18359
18360         * tests/uniwidth/test-u8-strwidth.c: New file.
18361         * modules/uniwidth/u8-strwidth-tests: New file.
18362
18363         * lib/uniwidth/u8-strwidth.c: New file.
18364         * modules/uniwidth/u8-strwidth: New file.
18365
18366         * tests/uniwidth/test-u32-width.c: New file.
18367         * modules/uniwidth/u32-width-tests: New file.
18368
18369         * lib/uniwidth/u32-width.c: New file.
18370         * modules/uniwidth/u32-width: New file.
18371
18372         * tests/uniwidth/test-u16-width.c: New file.
18373         * modules/uniwidth/u16-width-tests: New file.
18374
18375         * lib/uniwidth/u16-width.c: New file.
18376         * modules/uniwidth/u16-width: New file.
18377
18378         * tests/uniwidth/test-u8-width.c: New file.
18379         * modules/uniwidth/u8-width-tests: New file.
18380
18381         * lib/uniwidth/u8-width.c: New file.
18382         * modules/uniwidth/u8-width: New file.
18383
18384         * tests/uniwidth/test-uc_width.c: New file.
18385         * modules/uniwidth/width-tests: New file.
18386
18387         * lib/uniwidth/width.c: New file, from GNU libiconv.
18388         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
18389         * modules/uniwidth/width: New file.
18390
18391         * lib/uniwidth.h: New file, from GNU libiconv.
18392         * modules/uniwidth/base: New file.
18393
18394 2007-07-07  Bruno Haible  <bruno@clisp.org>
18395
18396         * lib/uniname.h: New file, from GNU gettext.
18397         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
18398         * lib/uniname/uninames.h: New file, from GNU gettext.
18399         * lib/uniname/uniname.c: New file, from GNU gettext.
18400         * tests/uniname/test-uninames.sh: New file.
18401         * tests/uniname/test-uninames.c: New file, from GNU gettext.
18402         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
18403         * modules/uniname/base: New file.
18404         * modules/uniname/uniname: New file.
18405         * modules/uniname/uniname-tests: New file.
18406         * MODULES.html.sh (Unicode string functions): Add the new modules.
18407
18408 2007-07-06  Bruno Haible  <bruno@clisp.org>
18409
18410         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
18411
18412 2007-07-06  Bruno Haible  <bruno@clisp.org>
18413
18414         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
18415         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
18416         includes <cygwin/sys_time.h> which includes <sys/select.h> which
18417         include <sys/time.h>.
18418         Reported by Eric Blake.
18419
18420 2007-07-06  Eric Blake  <ebb9@byu.net>
18421
18422         Fix testing canonicalize on cygwin.
18423         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
18424         Revert patch from 2007-06-19.
18425         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
18426         canonicalize module is also in use.
18427         * tests/test-canonicalize.c: New file.
18428         * tests/test-canonicalize.sh: Likewise.
18429         * modules/canonicalize-tests: Likewise.
18430
18431 2007-07-06  Jim Meyering  <jim@meyering.net>
18432
18433         * lib/getugroups.c (getugroups): Detect getgrent failure.
18434         Adjust comment to reflect reality: this function may return -1.
18435
18436 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18437
18438         * build-aux/bootstrap (TP_URL,get_translations): Update to use
18439         the new TP address.
18440         (usage): Fix typo
18441         (gnulib_mk): New variable.
18442
18443 2007-07-05  Jim Meyering  <jim@meyering.net>
18444
18445         Don't let endgrent clobber errno, no matter how improbable.
18446         * lib/getugroups.c (getugroups): Save and restore errno around
18447         endgrent call.
18448
18449         Close the group DB even when failing with 2^31 or more members.
18450         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
18451
18452 2007-07-04  Jim Meyering  <jim@meyering.net>
18453
18454         * lib/getugroups.h: New file.
18455         * lib/getugroups.c: Include "getugroups.h".
18456         Remove uses of "register" keyword.
18457         Move local variable, "cp", down into scope where used.
18458         Give "username" parameter the "const" attribute.
18459         * modules/getugroups (Files): Add lib/getugroups.h
18460
18461 2007-07-04  Karl Berry  <karl@gnu.org>
18462
18463         * MODULES.html.sh (func_all_modules): Complete rename of
18464         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
18465
18466 2007-07-02  Bruno Haible  <bruno@clisp.org>
18467
18468         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
18469         mode, when inttypes.h comes from gnulib.
18470         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
18471
18472 2007-07-02  Simon Josefsson  <simon@josefsson.org>
18473
18474         * NEWS: Mention lgpl module name change.
18475
18476         * modules/lgpl-2.1: Renamed from lgpl.
18477
18478         * NEWS: Mention gpl module name change.
18479
18480         * modules/gpl-3.0: New file, based on gpl-2.0.
18481
18482         * modules/gpl-2.0: Renamed from gpl.
18483
18484         * modules/gpl: Fix filename, doc/gpl.texi is now found at
18485         doc/gpl-2.0.texi.
18486
18487 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
18488
18489         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
18490         #define __STDC_LIMIT_MACROS temporarily while including
18491         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
18492         Problem reported by Joel E. Denny in
18493         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
18494
18495 2007-07-01  Bruno Haible  <bruno@clisp.org>
18496
18497         * lib/unistdio.h: New file.
18498         * lib/unistdio/u-asnprintf.h: New file.
18499         * lib/unistdio/u-asprintf.h: New file.
18500         * lib/unistdio/u-printf-args.c: New file.
18501         * lib/unistdio/u-printf-args.h: New file.
18502         * lib/unistdio/u-printf-parse.h: New file.
18503         * lib/unistdio/u-snprintf.h: New file.
18504         * lib/unistdio/u-sprintf.h: New file.
18505         * lib/unistdio/u-vasprintf.h: New file.
18506         * lib/unistdio/u-vsnprintf.h: New file.
18507         * lib/unistdio/u-vsprintf.h: New file.
18508         * lib/unistdio/ulc-asnprintf.c: New file.
18509         * lib/unistdio/ulc-asprintf.c: New file.
18510         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
18511         * lib/unistdio/ulc-printf-parse.c: New file.
18512         * lib/unistdio/ulc-snprintf.c: New file.
18513         * lib/unistdio/ulc-sprintf.c: New file.
18514         * lib/unistdio/ulc-vasnprintf.c: New file.
18515         * lib/unistdio/ulc-vasprintf.c: New file.
18516         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
18517         * lib/unistdio/ulc-vsnprintf.c: New file.
18518         * lib/unistdio/ulc-vsprintf.c: New file.
18519         * lib/unistdio/u8-asnprintf.c: New file.
18520         * lib/unistdio/u8-asprintf.c: New file.
18521         * lib/unistdio/u8-printf-parse.c: New file.
18522         * lib/unistdio/u8-snprintf.c: New file.
18523         * lib/unistdio/u8-sprintf.c: New file.
18524         * lib/unistdio/u8-vasnprintf.c: New file.
18525         * lib/unistdio/u8-vasprintf.c: New file.
18526         * lib/unistdio/u8-vsnprintf.c: New file.
18527         * lib/unistdio/u8-vsprintf.c: New file.
18528         * lib/unistdio/u8-u8-asnprintf.c: New file.
18529         * lib/unistdio/u8-u8-asprintf.c: New file.
18530         * lib/unistdio/u8-u8-snprintf.c: New file.
18531         * lib/unistdio/u8-u8-sprintf.c: New file.
18532         * lib/unistdio/u8-u8-vasnprintf.c: New file.
18533         * lib/unistdio/u8-u8-vasprintf.c: New file.
18534         * lib/unistdio/u8-u8-vsnprintf.c: New file.
18535         * lib/unistdio/u8-u8-vsprintf.c: New file.
18536         * lib/unistdio/u16-asnprintf.c: New file.
18537         * lib/unistdio/u16-asprintf.c: New file.
18538         * lib/unistdio/u16-printf-parse.c: New file.
18539         * lib/unistdio/u16-snprintf.c: New file.
18540         * lib/unistdio/u16-sprintf.c: New file.
18541         * lib/unistdio/u16-vasnprintf.c: New file.
18542         * lib/unistdio/u16-vasprintf.c: New file.
18543         * lib/unistdio/u16-vsnprintf.c: New file.
18544         * lib/unistdio/u16-vsprintf.c: New file.
18545         * lib/unistdio/u16-u16-asnprintf.c: New file.
18546         * lib/unistdio/u16-u16-asprintf.c: New file.
18547         * lib/unistdio/u16-u16-snprintf.c: New file.
18548         * lib/unistdio/u16-u16-sprintf.c: New file.
18549         * lib/unistdio/u16-u16-vasnprintf.c: New file.
18550         * lib/unistdio/u16-u16-vasprintf.c: New file.
18551         * lib/unistdio/u16-u16-vsnprintf.c: New file.
18552         * lib/unistdio/u16-u16-vsprintf.c: New file.
18553         * lib/unistdio/u32-asnprintf.c: New file.
18554         * lib/unistdio/u32-asprintf.c: New file.
18555         * lib/unistdio/u32-printf-parse.c: New file.
18556         * lib/unistdio/u32-snprintf.c: New file.
18557         * lib/unistdio/u32-sprintf.c: New file.
18558         * lib/unistdio/u32-vasnprintf.c: New file.
18559         * lib/unistdio/u32-vasprintf.c: New file.
18560         * lib/unistdio/u32-vsnprintf.c: New file.
18561         * lib/unistdio/u32-vsprintf.c: New file.
18562         * lib/unistdio/u32-u32-asnprintf.c: New file.
18563         * lib/unistdio/u32-u32-asprintf.c: New file.
18564         * lib/unistdio/u32-u32-snprintf.c: New file.
18565         * lib/unistdio/u32-u32-sprintf.c: New file.
18566         * lib/unistdio/u32-u32-vasnprintf.c: New file.
18567         * lib/unistdio/u32-u32-vasprintf.c: New file.
18568         * lib/unistdio/u32-u32-vsnprintf.c: New file.
18569         * lib/unistdio/u32-u32-vsprintf.c: New file.
18570         * tests/unistdio/test-ulc-asnprintf1.c: New file.
18571         * tests/unistdio/test-ulc-asnprintf1.h: New file.
18572         * tests/unistdio/test-ulc-printf1.h: New file.
18573         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
18574         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
18575         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
18576         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
18577         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
18578         * tests/unistdio/test-ulc-vasprintf1.c: New file.
18579         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
18580         * tests/unistdio/test-ulc-vsprintf1.c: New file.
18581         * tests/unistdio/test-u8-asnprintf1.c: New file.
18582         * tests/unistdio/test-u8-asnprintf1.h: New file.
18583         * tests/unistdio/test-u8-printf1.h: New file.
18584         * tests/unistdio/test-u8-vasnprintf1.c: New file.
18585         * tests/unistdio/test-u8-vasnprintf2.c: New file.
18586         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
18587         * tests/unistdio/test-u8-vasnprintf3.c: New file.
18588         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
18589         * tests/unistdio/test-u8-vasprintf1.c: New file.
18590         * tests/unistdio/test-u8-vsnprintf1.c: New file.
18591         * tests/unistdio/test-u8-vsprintf1.c: New file.
18592         * tests/unistdio/test-u16-asnprintf1.c: New file.
18593         * tests/unistdio/test-u16-asnprintf1.h: New file.
18594         * tests/unistdio/test-u16-printf1.h: New file.
18595         * tests/unistdio/test-u16-vasnprintf1.c: New file.
18596         * tests/unistdio/test-u16-vasnprintf2.c: New file.
18597         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
18598         * tests/unistdio/test-u16-vasnprintf3.c: New file.
18599         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
18600         * tests/unistdio/test-u16-vasprintf1.c: New file.
18601         * tests/unistdio/test-u16-vsnprintf1.c: New file.
18602         * tests/unistdio/test-u16-vsprintf1.c: New file.
18603         * tests/unistdio/test-u32-asnprintf1.c: New file.
18604         * tests/unistdio/test-u32-asnprintf1.h: New file.
18605         * tests/unistdio/test-u32-printf1.h: New file.
18606         * tests/unistdio/test-u32-vasnprintf1.c: New file.
18607         * tests/unistdio/test-u32-vasnprintf2.c: New file.
18608         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
18609         * tests/unistdio/test-u32-vasnprintf3.c: New file.
18610         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
18611         * tests/unistdio/test-u32-vasprintf1.c: New file.
18612         * tests/unistdio/test-u32-vsnprintf1.c: New file.
18613         * tests/unistdio/test-u32-vsprintf1.c: New file.
18614         * modules/unistdio/base: New file.
18615         * modules/unistdio/u-printf-args: New file.
18616         * modules/unistdio/ulc-asnprintf: New file.
18617         * modules/unistdio/ulc-asprintf: New file.
18618         * modules/unistdio/ulc-fprintf: New file.
18619         * modules/unistdio/ulc-printf-parse: New file.
18620         * modules/unistdio/ulc-snprintf: New file.
18621         * modules/unistdio/ulc-sprintf: New file.
18622         * modules/unistdio/ulc-vasnprintf: New file.
18623         * modules/unistdio/ulc-vasprintf: New file.
18624         * modules/unistdio/ulc-vfprintf: New file.
18625         * modules/unistdio/ulc-vsnprintf: New file.
18626         * modules/unistdio/ulc-vsprintf: New file.
18627         * modules/unistdio/u8-asnprintf: New file.
18628         * modules/unistdio/u8-asprintf: New file.
18629         * modules/unistdio/u8-printf-parse: New file.
18630         * modules/unistdio/u8-snprintf: New file.
18631         * modules/unistdio/u8-sprintf: New file.
18632         * modules/unistdio/u8-vasnprintf: New file.
18633         * modules/unistdio/u8-vasprintf: New file.
18634         * modules/unistdio/u8-vsnprintf: New file.
18635         * modules/unistdio/u8-vsprintf: New file.
18636         * modules/unistdio/u8-u8-asnprintf: New file.
18637         * modules/unistdio/u8-u8-asprintf: New file.
18638         * modules/unistdio/u8-u8-snprintf: New file.
18639         * modules/unistdio/u8-u8-sprintf: New file.
18640         * modules/unistdio/u8-u8-vasnprintf: New file.
18641         * modules/unistdio/u8-u8-vasprintf: New file.
18642         * modules/unistdio/u8-u8-vsnprintf: New file.
18643         * modules/unistdio/u8-u8-vsprintf: New file.
18644         * modules/unistdio/u16-asnprintf: New file.
18645         * modules/unistdio/u16-asprintf: New file.
18646         * modules/unistdio/u16-printf-parse: New file.
18647         * modules/unistdio/u16-snprintf: New file.
18648         * modules/unistdio/u16-sprintf: New file.
18649         * modules/unistdio/u16-vasnprintf: New file.
18650         * modules/unistdio/u16-vasprintf: New file.
18651         * modules/unistdio/u16-vsnprintf: New file.
18652         * modules/unistdio/u16-vsprintf: New file.
18653         * modules/unistdio/u16-u16-asnprintf: New file.
18654         * modules/unistdio/u16-u16-asprintf: New file.
18655         * modules/unistdio/u16-u16-snprintf: New file.
18656         * modules/unistdio/u16-u16-sprintf: New file.
18657         * modules/unistdio/u16-u16-vasnprintf: New file.
18658         * modules/unistdio/u16-u16-vasprintf: New file.
18659         * modules/unistdio/u16-u16-vsnprintf: New file.
18660         * modules/unistdio/u16-u16-vsprintf: New file.
18661         * modules/unistdio/u32-asnprintf: New file.
18662         * modules/unistdio/u32-asprintf: New file.
18663         * modules/unistdio/u32-printf-parse: New file.
18664         * modules/unistdio/u32-snprintf: New file.
18665         * modules/unistdio/u32-sprintf: New file.
18666         * modules/unistdio/u32-vasnprintf: New file.
18667         * modules/unistdio/u32-vasprintf: New file.
18668         * modules/unistdio/u32-vsnprintf: New file.
18669         * modules/unistdio/u32-vsprintf: New file.
18670         * modules/unistdio/u32-u32-asnprintf: New file.
18671         * modules/unistdio/u32-u32-asprintf: New file.
18672         * modules/unistdio/u32-u32-snprintf: New file.
18673         * modules/unistdio/u32-u32-sprintf: New file.
18674         * modules/unistdio/u32-u32-vasnprintf: New file.
18675         * modules/unistdio/u32-u32-vasprintf: New file.
18676         * modules/unistdio/u32-u32-vsnprintf: New file.
18677         * modules/unistdio/u32-u32-vsprintf: New file.
18678         * modules/unistdio/ulc-asnprintf-tests: New file.
18679         * modules/unistdio/ulc-vasnprintf-tests: New file.
18680         * modules/unistdio/ulc-vasprintf-tests: New file.
18681         * modules/unistdio/ulc-vsnprintf-tests: New file.
18682         * modules/unistdio/ulc-vsprintf-tests: New file.
18683         * modules/unistdio/u8-asnprintf-tests: New file.
18684         * modules/unistdio/u8-vasnprintf-tests: New file.
18685         * modules/unistdio/u8-vasprintf-tests: New file.
18686         * modules/unistdio/u8-vsnprintf-tests: New file.
18687         * modules/unistdio/u8-vsprintf-tests: New file.
18688         * modules/unistdio/u16-asnprintf-tests: New file.
18689         * modules/unistdio/u16-vasnprintf-tests: New file.
18690         * modules/unistdio/u16-vasprintf-tests: New file.
18691         * modules/unistdio/u16-vsnprintf-tests: New file.
18692         * modules/unistdio/u16-vsprintf-tests: New file.
18693         * modules/unistdio/u32-asnprintf-tests: New file.
18694         * modules/unistdio/u32-vasnprintf-tests: New file.
18695         * modules/unistdio/u32-vasprintf-tests: New file.
18696         * modules/unistdio/u32-vsnprintf-tests: New file.
18697         * modules/unistdio/u32-vsprintf-tests: New file.
18698         * MODULES.html.sh (Unicode string functions): Add the new modules.
18699
18700 2007-07-01  Bruno Haible  <bruno@clisp.org>
18701
18702         * lib/sprintf.c (sprintf): Limit the available length estimation,
18703         to avoid address wraparound.
18704         * lib/vsprintf.c (vsprintf): Likewise.
18705         * modules/sprintf-posix (Dependencies): Add stdint.
18706         * modules/vsprintf-posix (Dependencies): Likewise.
18707
18708 2007-07-01  Bruno Haible  <bruno@clisp.org>
18709
18710         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
18711         Windows PATH as well. Conservative double-quoting. Comments.
18712
18713 2007-07-01  Bruno Haible  <bruno@clisp.org>
18714             Eric Blake  <ebb9@byu.net>
18715             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18716
18717         * gnulib-tool (self_abspathname): Fix algorithm to cope with
18718         empty components in $PATH, denoting '.'.
18719
18720 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18721
18722         * gnulib-tool: Fix indentation.
18723         (func_create_megatestdir): Likewise.
18724         Report by Bruno Haible.
18725
18726 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18727
18728         Sync from Automake.
18729         * build-aux/gnupload: Fix shell portability issues with for loops.
18730         Report by Karl Berry.
18731
18732 2007-06-29  Simon Josefsson  <simon@josefsson.org>
18733
18734         * build-aux/maint.mk (POURL): Use translationproject.org.
18735
18736 2007-06-27  Simon Josefsson  <simon@josefsson.org>
18737             Bruno Haible  <bruno@clisp.org>
18738
18739         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
18740         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
18741         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
18742         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
18743         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
18744
18745 2007-06-27  Bruno Haible  <bruno@clisp.org>
18746
18747         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
18748         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
18749
18750 2007-06-26  Karl Berry  <karl@gnu.org>
18751
18752         * MODULES.html.sh: remove xreadlink-with-size.
18753
18754 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
18755
18756         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
18757         method that I hope also handles the double-include problem noted
18758         by Bruno Haible in
18759         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
18760
18761 2007-06-23  Bruno Haible  <bruno@clisp.org>
18762
18763         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18764         Don't let the 'mostlyclean' target fail if the last subdirectory could
18765         not be removed.
18766         Reported by Karl Berry.
18767
18768 2007-06-23  Bruno Haible  <bruno@clisp.org>
18769
18770         * gnulib-tool (echo): Add a speedier workaround for ksh.
18771         * tests/test-echo.sh: Likewise.
18772
18773 2007-06-23  Bruno Haible  <bruno@clisp.org>
18774
18775         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
18776         * tests/test-echo.sh: Likewise.
18777
18778 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18779
18780         * gnulib-tool (IFS): Initialize early, so we don't set it to
18781         empty later.
18782         (self_abspathname): Rewrite algorithm to set it, reindent.
18783         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
18784         (func_create_megatestdir): Merge some sed scripts.
18785
18786 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
18787
18788         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
18789         exposed by Sun Studio 11 cc on Solaris 8.
18790
18791 2007-06-22  Bruno Haible  <bruno@clisp.org>
18792
18793         * gnulib-tool (echo): Ensure the echo primitive does not interpret
18794         backslashes.
18795         * tests/test-echo.sh: New file.
18796
18797 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18798
18799         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
18800         simplify `sed_replace_build_aux' scripts, they are portable but
18801         echoing them with `echo' is not.
18802         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
18803
18804 2007-06-21  Karl Berry  <karl@gnu.org>
18805
18806         * config/srclist.txt: guess we can't handle the licenses via
18807         srclist at the moment.
18808
18809 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
18810
18811         * MODULES.html.sh: Add include_next.
18812         * modules/include_next: New file.
18813
18814 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
18815
18816         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
18817         INCLUDE_NEXT.
18818         (gl_CHECK_NEXT_HEADERS): New macro.
18819         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
18820         the obsolescent gl_ABSOLUTE_HEADER.
18821         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
18822         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
18823         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
18824         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
18825         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
18826         * m4/math_h.m4 (gl_MATH_H): Likewise.
18827         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
18828         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18829         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
18830         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18831         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
18832         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
18833         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
18834         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18835         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18836         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
18837         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
18838         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
18839         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
18840         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18841         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18842         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
18843         * m4/inttypes.m4 (gl_INTTYPES_H): Define
18844         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
18845         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
18846         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
18847         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
18848         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
18849         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
18850         * lib/float_.h: Likewise.
18851         * lib/inttypes_.h: Likewise.
18852         * lib/math_.h: Likewise.
18853         * lib/search_.h: Likewise.
18854         * lib/signal_.h: Likewise.
18855         * lib/stdint_.h: Likewise.
18856         * lib/stdio_.h: Likewise.
18857         * lib/stdlib_.h: Likewise.
18858         * lib/string_.h: Likewise.
18859         * lib/sys_stat_.h: Likewise.
18860         * lib/sys_time_.h: Likewise.
18861         * lib/time_.h: Likewise.
18862         * lib/unistd_.h: Likewise.
18863         * lib/wchar_.h: Likewise.
18864         * lib/wctype_.h: Likewise.
18865         * lib/dirent_.h: Likewise.
18866         * lib/iconv_.h: Likewise.
18867         * lib/locale_.h: Likewise.
18868         * lib/netinet_in_.h: Likewise.
18869         * lib/sys_select_.h: Likewise.
18870         * lib/sys_socket_.h: Likewise.
18871         * lib/sysexits_.h: Likewise.
18872         * modules/fcntl (Depends-on): Depend on include_next, not
18873         absolute_header.
18874         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
18875         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
18876         * modules/fchdir: Likewise.
18877         * modules/float: Likewise.
18878         * modules/iconv_open: Likewise.
18879         * modules/inttypes: Likewise.
18880         * modules/locale: Likewise.
18881         * modules/math: Likewise.
18882         * modules/netinet_in: Likewise.
18883         * modules/search: Likewise.
18884         * modules/signal: Likewise.
18885         * modules/stdint: Likewise.
18886         * modules/stdio: Likewise.
18887         * modules/stdlib: Likewise.
18888         * modules/string: Likewise.
18889         * modules/sys_select: Likewise.
18890         * modules/sys_socket: Likewise.
18891         * modules/sys_stat: Likewise.
18892         * modules/sys_time: Likewise.
18893         * modules/sysexits: Likewise.
18894         * modules/time: Likewise.
18895         * modules/unistd: Likewise.
18896         * modules/wchar: Likewise.
18897         * modules/wctype: Likewise.
18898         * modules/sys_stat: Change maintainer to "all".
18899         * modules/unistd: Likewise.
18900
18901 2007-06-20  Karl Berry  <karl@gnu.org>
18902
18903         * config/srclist.txt: track www changes in license files.
18904
18905 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
18906
18907         * build-aux/bootstrap: Remove stray dot.
18908         Make sure build_aux settings are honored when linking
18909         gnulib_extra_files.
18910
18911 2007-06-19  Eric Blake  <ebb9@byu.net>
18912
18913         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
18914         Allow compilation on cygwin.
18915
18916 2007-06-19  Jim Meyering  <jim@meyering.net>
18917
18918         xreadlink-with-size: Remove module.  No longer used.
18919         Ex-callers now use xreadlink or mreadlink-with-size.
18920         * modules/xreadlink-with-size: Remove module.
18921         * lib/xreadlink-with-size.c: Remove file.
18922         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
18923         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
18924         just before the function definition *is* accurate.
18925
18926         Eliminate one way canonicalize_filename_mode could exit.
18927         * lib/canonicalize.c (canonicalize_filename_mode):
18928         Use mreadlink_with_size, not xreadlink_with_size.
18929
18930 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
18931
18932         Detect porting problems to FreeBSD/arm, which has time_t wider than
18933         long int.  Original problem reported for GNU diff by Xin Li in
18934         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
18935         * modules/getdate (Depends-on): Add intprops, verify.
18936         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
18937         is an integer type no wider than long int.
18938
18939 2007-06-18  Jim Meyering  <jim@meyering.net>
18940
18941         New module: mreadlink-with-size.
18942         * MODULES.html.sh: Add mreadlink-with-size.
18943         * modules/mreadlink-with-size: New module
18944         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
18945         not xreadlink-with-size.
18946         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
18947
18948 2007-06-16  Bruno Haible  <bruno@clisp.org>
18949
18950         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
18951         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
18952         Reported by Gary V. Vaughan <gary@gnu.org>.
18953
18954 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
18955
18956         Revamp lchown so that it lives in unistd.h where it belongs.
18957         * lib/lchown.h: Remove.
18958         * lib/dirchownmod.c: Don't include lib/lchown.h.
18959         * lib/fchownat.c: Likewise.
18960         * lib/openat.c: Likewise.
18961         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
18962         does not follow symlinks.
18963         (EOPNOTSUPP): Define if not defined.
18964         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
18965         is defined to 0.
18966         (lchown): New decl.
18967         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
18968         Do not check for lchown decl.
18969         Set REPLACE_LCHOWN.
18970         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
18971         REPLACE_LCHOWN.
18972         * modules/chown: Make it clear it follows symlinks.
18973         * modules/lchown: Make it clear it doesn't follow symlinks.
18974         (Files): Remove lib/lchown.h
18975         (Depends-on): Add unistd.
18976         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
18977         (Include): Include <unistd.h>, not "lchown.h".
18978         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
18979         REPLACE_LCHOWN.
18980
18981 2007-06-15  Jim Meyering  <jim@meyering.net>
18982
18983         Change license (GPL to LGPL) of fsusage and dependents.
18984         * modules/fsusage (License): Change to LGPL.
18985         * modules/full-read (License): Likewise.
18986         * modules/full-write (License): Likewise.
18987         * modules/safe-read (License): Likewise.
18988         * modules/safe-write (License): Likewise.
18989
18990 2007-06-14  Ben Pfaff  <blp@gnu.org>
18991
18992         Missing part of allocsa -> malloca transition.
18993         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
18994         gl_MALLOCA.
18995
18996 2007-06-12  Bruno Haible  <bruno@clisp.org>
18997
18998         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
18999         to ia64, x86_64, i386.
19000         Reported by Eric Blake.
19001
19002 2007-06-12  Bruno Haible  <bruno@clisp.org>
19003
19004         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
19005         cross-compiling to x86_64.
19006
19007 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
19008
19009         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
19010         glitch reported by Ralf Wildenhues in
19011         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
19012
19013         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
19014         Vin Shelton.
19015
19016 2007-06-11  Bruno Haible  <bruno@clisp.org>
19017
19018         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
19019         replacement string.
19020         Reported by Eric Blake.
19021
19022 2007-06-10  Bruno Haible  <bruno@clisp.org>
19023
19024         Prepare vasnprintf code for use with Unicode strings.
19025         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
19026         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
19027         TYPE_U32_STRING.
19028         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
19029         a_u32_string variants.
19030         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
19031         * lib/printf-args.c: Don't include config.h and the specification
19032         header if PRINTF_FETCHARGS is already defined.
19033         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
19034         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
19035         TYPE_U16_STRING, TYPE_U32_STRING.
19036         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
19037         u16_directive, u16_directives, u32_directive, u32_directives): New
19038         types.
19039         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
19040         New declarations.
19041         * lib/printf-parse.c: Don't include config.h and the specification
19042         header if PRINTF_PARSE is already defined. Eliminate the set of
19043         parameters for WIDE_CHAR_VERSION; the user of this file must provide
19044         them now. Include c-ctype.h.
19045         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
19046         directive and CHAR_T_ONLY_ASCII.
19047         * lib/vasnprintf.c: Don't include config.h and the specification header
19048         if VASNPRINTF is already defined.
19049         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
19050         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
19051         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
19052         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
19053         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
19054         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
19055         code accordingly.
19056         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
19057         pad_ourselves also in this case, with the 'c' and 's' directives, and
19058         with a different notion of "width".
19059         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
19060
19061 2007-06-10  Bruno Haible  <bruno@clisp.org>
19062
19063         * modules/unistr/u32-mbsnlen: New file.
19064         * lib/unistr/u32-mbsnlen.c: New file.
19065
19066         * modules/unistr/u16-mbsnlen: New file.
19067         * lib/unistr/u16-mbsnlen.c: New file.
19068
19069         * modules/unistr/u8-mbsnlen: New file.
19070         * lib/unistr/u8-mbsnlen.c: New file.
19071
19072         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
19073         declarations.
19074
19075 2007-06-10  Bruno Haible  <bruno@clisp.org>
19076
19077         * lib/string_.h (mbsnlen): New declaration.
19078         * lib/mbsnlen.c: New file.
19079         * m4/mbsnlen.m4: New file.
19080         * modules/mbsnlen: New file.
19081         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
19082         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
19083         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
19084
19085 2007-06-10  Bruno Haible  <bruno@clisp.org>
19086
19087         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
19088
19089 2007-06-10  Bruno Haible  <bruno@clisp.org>
19090
19091         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
19092         * lib/mbuiter.h: Likewise.
19093
19094 2007-06-10  Bruno Haible  <bruno@clisp.org>
19095
19096         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
19097         declaration.
19098
19099 2007-06-10  Karl Berry  <karl@gnu.org>
19100
19101         * config/srclist.txt: remove gettext entries, Bruno prefers
19102         to update individually.
19103
19104 2007-06-10  Bruno Haible  <bruno@clisp.org>
19105
19106         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
19107         'maxlen'. Ensure only length + width bytes are allocated, not
19108         length + 1 + width.
19109
19110 2007-06-09  Bruno Haible  <bruno@clisp.org>
19111
19112         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
19113         (CHAR_T): Remove macro.
19114         (VASNPRINTF): Update.
19115
19116 2007-06-09  Bruno Haible  <bruno@clisp.org>
19117
19118         * MODULES.html.sh (Unicode string functions): Add the new modules.
19119
19120         * modules/uniconv/u32-conv-to-enc: New file.
19121         * lib/uniconv/u32-conv-to-enc.c: New file.
19122         * modules/uniconv/u32-conv-to-enc-tests: New file.
19123         * tests/uniconv/test-u32-conv-to-enc.c: New file.
19124
19125         * modules/uniconv/u16-conv-to-enc: New file.
19126         * lib/uniconv/u16-conv-to-enc.c: New file.
19127         * lib/uniconv/u-conv-to-enc.h: New file.
19128         * modules/uniconv/u16-conv-to-enc-tests: New file.
19129         * tests/uniconv/test-u16-conv-to-enc.c: New file.
19130
19131         * modules/uniconv/u8-conv-to-enc: New file.
19132         * lib/uniconv/u8-conv-to-enc.c: New file.
19133         * modules/uniconv/u8-conv-to-enc-tests: New file.
19134         * tests/uniconv/test-u8-conv-to-enc.c: New file.
19135
19136         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
19137         u32_conv_to_encoding): New declarations.
19138
19139 2007-06-09  Bruno Haible  <bruno@clisp.org>
19140
19141         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
19142
19143 2007-06-09  Bruno Haible  <bruno@clisp.org>
19144
19145         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
19146         * modules/malloca: Renamed from modules/allocsa, updated.
19147         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
19148         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
19149         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
19150         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
19151         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
19152         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
19153         * modules/xmalloca: Renamed from modules/xallocsa, updated.
19154         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
19155         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
19156         * modules/c-strcasestr (Depends-on): Update.
19157         * lib/c-strcasestr.c: Update.
19158         * modules/c-strstr (Depends-on): Update.
19159         * lib/c-strstr.c: Update.
19160         * modules/canonicalize-lgpl (Depends-on): Update.
19161         * lib/canonicalize-lgpl.c: Update.
19162         * modules/clean-temp (Depends-on): Update.
19163         * lib/clean-temp.c: Update.
19164         * modules/csharpcomp (Depends-on): Update.
19165         * lib/csharpcomp.c: Update.
19166         * modules/csharpexec (Depends-on): Update.
19167         * lib/csharpexec.c: Update.
19168         * modules/javacomp (Depends-on): Update.
19169         * lib/javacomp.c: Update.
19170         * modules/javaexec (Depends-on): Update.
19171         * lib/javaexec.c: Update.
19172         * modules/mbscasestr (Depends-on): Update.
19173         * lib/mbscasestr.c: Update.
19174         * modules/mbsstr (Depends-on): Update.
19175         * lib/mbsstr.c: Update.
19176         * modules/setenv (Depends-on): Update.
19177         * lib/setenv.c: Update.
19178         * modules/strcasestr (Depends-on): Update.
19179         * lib/strcasestr.c: Update.
19180         * modules/striconveha (Depends-on): Update.
19181         * lib/striconveha.c: Update.
19182         * modules/relocatable-prog-wrapper (Files): Update.
19183         * lib/relocwrapper.c: Update.
19184         * build-aux/install-reloc: Update.
19185         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
19186
19187 2007-06-08  Bruno Haible  <bruno@clisp.org>
19188
19189         Port to uClibc.
19190         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
19191         * lib/fpurge.c (fpurge): Likewise.
19192         * lib/freading.c (freading): Likewise.
19193         * lib/fseeko.c (rpl_fseeko): Likewise.
19194         * lib/fseterr.c (fseterr): Likewise.
19195         * lib/fwriting.c (fwriting): Likewise.
19196         * tests/test-fflush.c (main): Avoid a failure on uClibc.
19197
19198 2007-06-08  Bruno Haible  <bruno@clisp.org>
19199
19200         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
19201         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
19202         * modules/gettext (Files): Add m4/intlmacosx.m4.
19203
19204 2007-06-07  Bruno Haible  <bruno@clisp.org>
19205
19206         * modules/localename-tests: New file.
19207         * tests/test-localename.c: New file.
19208
19209         New module 'localename'.
19210         * lib/localename.h: New file.
19211         * lib/localename.c: New file, from GNU gettext.
19212         * m4/localename.m4: New file.
19213         * modules/localename: New file.
19214
19215 2007-06-07  Bruno Haible  <bruno@clisp.org>
19216
19217         Work around the lack of <wchar.h> on some builds of uClibc.
19218         * doc/headers/wchar.texi: Update.
19219         * lib/wchar_.h: Include <wchar.h> only if it exists.
19220         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
19221         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
19222         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
19223         doesn't exist.
19224         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
19225         * modules/mbfile (Depends-on): Add wchar.
19226         * modules/mbiter (Depends-on): Likewise.
19227         * modules/mbuiter (Depends-on): Likewise.
19228         Reported by Simon Josefsson.
19229
19230 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
19231
19232         Work around problem reported by Steven M. Schweda in
19233         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
19234         Tru64 5.1B with the Compaq compiler environment installed declares
19235         an 'isblank' function but does not define it in the C library.
19236         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
19237         * lib/regex_internal.h (isblank): Likewise.
19238         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
19239         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
19240
19241 2007-06-05  Bruno Haible  <bruno@clisp.org>
19242
19243         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
19244         ia64.
19245         * modules/printf-safe: New file.
19246         * modules/fprintf-posix (Depends-on): Add printf-safe.
19247         * modules/printf-posix (Depends-on): Likewise.
19248         * modules/snprintf-posix (Depends-on): Likewise.
19249         * modules/sprintf-posix (Depends-on): Likewise.
19250         * modules/vasnprintf-posix (Depends-on): Likewise.
19251         * modules/vasprintf-posix (Depends-on): Likewise.
19252         * modules/vfprintf-posix (Depends-on): Likewise.
19253         * modules/vprintf-posix (Depends-on): Likewise.
19254         * modules/vsnprintf-posix (Depends-on): Likewise.
19255         * modules/vsprintf-posix (Depends-on): Likewise.
19256         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
19257         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
19258         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
19259         "no" on i386, x86_64, ia64.
19260         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
19261         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
19262         on i386, x86_64, ia64.
19263         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
19264         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
19265         on i386, x86_64, ia64.
19266         * tests/test-vasnprintf-posix.c: Include float.h.
19267         (LDBL80_WORDS): New macro.
19268         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
19269         on i386, x86_64, ia64.
19270         * tests/test-vasprintf-posix.c: Include float.h.
19271         (LDBL80_WORDS): New macro.
19272         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
19273         on i386, x86_64, ia64.
19274         * tests/test-snprintf-posix.c: Include float.h.
19275         * tests/test-sprintf-posix.c: Likewise.
19276         * tests/test-vsnprintf-posix.c: Likewise.
19277         * tests/test-vsprintf-posix.c: Likewise.
19278
19279 2007-06-05  Bruno Haible  <bruno@clisp.org>
19280
19281         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
19282         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
19283         non-IEEE numbers on i386, x86_64, ia64.
19284         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
19285         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
19286         * tests/test-isnanl.h: Include float.h.
19287         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
19288
19289 2007-06-05  Bruno Haible  <bruno@clisp.org>
19290
19291         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
19292         also the %a / %A. Handle the %a / %A code before this extra handling.
19293
19294 2007-06-05  Bruno Haible  <bruno@clisp.org>
19295
19296         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
19297         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
19298
19299 2007-06-05  Bruno Haible  <bruno@clisp.org>
19300
19301         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
19302         typo in variable name.
19303
19304 2007-06-05  Eric Blake  <ebb9@byu.net>
19305
19306         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
19307         Reported by Simon Josefsson.
19308
19309 2007-06-04  Bruno Haible  <bruno@clisp.org>
19310
19311         Avoid test failures on some PowerPC platforms.
19312         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
19313         Define differently for PowerPC.
19314         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
19315         Reported by Gary V. Vaughan <gary@gnu.org>.
19316
19317 2007-06-02  Bruno Haible  <bruno@clisp.org>
19318
19319         Fix test-stdint failure on FreeBSD/ia64.
19320         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
19321         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
19322         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
19323         * doc/headers/stdint.texi: Update.
19324
19325 2007-06-01  Bruno Haible  <bruno@clisp.org>
19326
19327         * tests/test-binary-io.c (main): Pass a third argument to open().
19328         Reported by Gary V. Vaughan <gary@gnu.org>.
19329
19330 2007-06-01  Bruno Haible  <bruno@clisp.org>
19331
19332         * doc/functions/frexpl.texi: Update for mingw.
19333
19334 2007-06-01  Bruno Haible  <bruno@clisp.org>
19335
19336         * tests/test-lseek.c (main): Disable test of errno for invalid third
19337         argument.
19338         * doc/functions/lseek.texi: Update.
19339         Reported by Gary V. Vaughan <gary@gnu.org>.
19340
19341 2007-05-28  Bruno Haible  <bruno@clisp.org>
19342
19343         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
19344
19345 2007-05-31  Eric Blake  <ebb9@byu.net>
19346
19347         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
19348         cross compiling.
19349
19350 2007-05-30  Eric Blake  <ebb9@byu.net>
19351         and Bruno Haible  <bruno@clisp.org>
19352
19353         Work around mingw test failures exposed by m4-1.4.9b.
19354         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
19355         * tests/test-unistd.c: Disable uid_t and git_t tests for the
19356         moment.
19357
19358 2007-05-30  Bruno Haible  <bruno@clisp.org>
19359
19360         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
19361         assuming that they are closed. Needed on HP-UX 11.
19362
19363 2007-05-29  Bruno Haible  <bruno@clisp.org>
19364
19365         Fix a problem with #include_next.
19366         * lib/dirent_.h: Split the double-inclusion guard.
19367         * lib/fcntl_.h: Likewise.
19368         * lib/float_.h: Likewise.
19369         * lib/iconv_.h: Likewise.
19370         * lib/inttypes_.h: Likewise.
19371         * lib/locale_.h: Likewise.
19372         * lib/math_.h: Likewise.
19373         * lib/netinet_in_.h: Likewise.
19374         * lib/search_.h: Likewise.
19375         * lib/signal_.h: Likewise.
19376         * lib/stdint_.h: Likewise.
19377         * lib/stdio_.h: Likewise.
19378         * lib/stdlib_.h: Likewise.
19379         * lib/string_.h: Likewise.
19380         * lib/sys_select_.h: Likewise.
19381         * lib/sys_socket_.h: Likewise.
19382         * lib/sys_stat_.h: Likewise.
19383         * lib/sys_time_.h: Likewise.
19384         * lib/sysexits_.h: Likewise.
19385         * lib/time_.h: Likewise.
19386         * lib/unistd_.h: Likewise.
19387         * lib/wchar_.h: Likewise.
19388         * lib/wctype_.h: Likewise.
19389
19390 2007-05-29  Bruno Haible  <bruno@clisp.org>
19391
19392         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
19393         for the moment.
19394
19395 2007-05-29  Bruno Haible  <bruno@clisp.org>
19396
19397         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
19398         invocation.
19399         Reported by Eric Blake.
19400
19401 2007-05-29  Bruno Haible  <bruno@clisp.org>
19402
19403         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
19404         compiling case.
19405
19406 2007-05-29  Eric Blake  <ebb9@byu.net>
19407             Bruno Haible  <bruno@clisp.org>
19408
19409         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
19410         cross compiles.
19411
19412 2007-05-28  Eric Blake  <ebb9@byu.net>
19413
19414         * modules/closein-tests (test_closein_LDADD): Support test on
19415         cygwin with libtool.
19416
19417 2007-05-28  Bruno Haible  <bruno@clisp.org>
19418
19419         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
19420         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
19421         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
19422         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
19423         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
19424         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
19425         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
19426         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
19427         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
19428
19429 2007-05-28  Eric Blake  <ebb9@byu.net>
19430
19431         Unconditionally include <config.h> in unit tests.
19432         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
19433         * tests/test-allocsa.c, tests/test-arcfour.c,
19434         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
19435         tests/test-array_list.c, tests/test-array_oset.c,
19436         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
19437         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
19438         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
19439         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
19440         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
19441         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
19442         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
19443         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
19444         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
19445         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
19446         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
19447         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
19448         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
19449         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
19450         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
19451         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
19452         test-md5.c, test-memmem.c, test-printf-posix.c,
19453         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
19454         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
19455         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
19456         test-strcasestr.c, test-striconv.c, test-striconveh.c,
19457         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
19458         test-vasnprintf-posix2.c, test-vasnprintf.c,
19459         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
19460         test-vfprintf-posix.c, test-vprintf-posix.c,
19461         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
19462         test-xvasprintf.c: Likewise.
19463
19464 2007-05-28  Bruno Haible  <bruno@clisp.org>
19465
19466         * gnulib-tool (func_import): Remember the --with-tests command-line
19467         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
19468         Reported by Eric Blake.
19469
19470 2007-05-28  Bruno Haible  <bruno@clisp.org>
19471
19472         * modules/ftell-tests: New file.
19473         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
19474         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
19475
19476         * lib/ftell.c: New file.
19477         * modules/ftell: New file.
19478         * m4/ftell.m4: New file.
19479         * doc/functions/ftell.texi: Update.
19480         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
19481         REPLACE_FTELL.
19482         * lib/stdio_.h (rpl_ftell): New declaration.
19483         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
19484         REPLACE_FTELL.
19485
19486 2007-05-28  Eric Blake  <ebb9@byu.net>
19487
19488         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
19489
19490 2007-05-28  Bruno Haible  <bruno@clisp.org>
19491
19492         * modules/fseek-tests: New file.
19493         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
19494         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
19495
19496         * lib/fseek.c: New file.
19497         * modules/fseek: New file.
19498         * m4/fseek.m4: New file.
19499         * doc/functions/fseek.texi: Update.
19500         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
19501         REPLACE_FSEEK.
19502         * lib/stdio_.h (rpl_fseek): New declaration.
19503         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
19504         REPLACE_FSEEK.
19505
19506 2007-05-28  Bruno Haible  <bruno@clisp.org>
19507
19508         * lib/stdio_.h (fflush): More comments.
19509
19510 2007-05-28  Bruno Haible  <bruno@clisp.org>
19511
19512         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
19513         runtime test.
19514
19515 2007-05-28  Eric Blake  <ebb9@byu.net>
19516
19517         Improve lseek module.
19518         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
19519         * lib/unistd_.h (lseek): Scale back link warning message.
19520         * tests/test-lseek.c: Beef up test.
19521         * tests/test-lseek.sh: Exercise more facets of lseek.
19522         Reported by Bruno Haible.
19523
19524 2007-05-28  Bruno Haible  <bruno@clisp.org>
19525
19526         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
19527         to define.
19528
19529 2007-05-27  Bruno Haible  <bruno@clisp.org>
19530
19531         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
19532
19533 2007-05-27  Bruno Haible  <bruno@clisp.org>
19534
19535         * modules/openmp: New file.
19536         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
19537         Noah Misch.
19538
19539 2007-05-26  Bruno Haible  <bruno@clisp.org>
19540
19541         * modules/chdir-long (Depends-on): Add fchdir.
19542         * modules/chdir-safer (Depends-on): Likewise.
19543         * modules/fts (Depends-on): Likewise.
19544         * modules/fts-lgpl (Depends-on): Likewise.
19545         * modules/openat (Depends-on): Likewise.
19546         * modules/savewd (Depends-on): Likewise.
19547
19548 2007-05-24  Eric Blake  <ebb9@byu.net>
19549
19550         Fix lseek on mingw.
19551         * modules/lseek: New module.
19552         * m4/lseek.m4: New file.
19553         * lib/lseek.c: New file.
19554         * modules/lseek-tests: New file.
19555         * tests/test-lseek.c: New file.
19556         * tests/test-lseek.sh: New file.
19557         * MODULES.html.sh: Document lseek module.
19558         * modules/fflush (Depends-on): Add lseek, fseeko.
19559         * modules/fseeko (Depends-on): Likewise.
19560         * modules/ftello (Depends-on): Likewise.
19561         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
19562         broken.
19563         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
19564         broken.
19565         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
19566         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
19567         * lib/ftello.c (rpl_ftello): Likewise.
19568         * tests/test-fseeko.c (main): Test this.
19569         * tests/test-fseeko.sh: Likewise.
19570         * tests/test-ftello.c (main): Likewise.
19571         * tests/test-ftello.sh: Likewise.
19572         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
19573         implies replacing fseek.
19574         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
19575         HAVE_FTELLO.
19576         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
19577         * modules/unistd (Makefile.am): Likewise.
19578         * lib/unistd_.h (lseek): Declare a replacement.
19579         * doc/functions/lseek.texi (lseek): Document this fix.
19580         * doc/functions/fseek.texi (fseek): Likewise.
19581         * doc/functions/ftell.texi (ftell): Likewise.
19582
19583 2007-05-24  Bruno Haible  <bruno@clisp.org>
19584
19585         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
19586         in the printed representation of a NaN.
19587         * tests/test-vasprintf-posix.c (test_function): Likewise.
19588         * tests/test-snprintf-posix.h (test_function): Likewise.
19589         * tests/test-sprintf-posix.h (test_function): Likewise.
19590         Reported by Eric Blake.
19591
19592 2007-05-23  Eric Blake  <ebb9@byu.net>
19593
19594         Fix fseeko/ftello on cygwin 1.5.24.
19595         * doc/functions/fseeko.texi (fseeko): Document the fix.
19596         * doc/functions/ftello.texi (ftello): Document the fix.
19597         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
19598         * doc/functions/stdout.text (stdout): New file.
19599         * doc/functions/stderr.text (stderr): New file.
19600         * doc/gnulib.texi (Function Substitutes): Use new files.
19601         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
19602         prior to 1.7.0.
19603         * tests/test-ftello.c (main): Likewise for ftello.
19604         * tests/test-fseeko.sh: New file.
19605         * tests/test-ftello.sh: New file.
19606         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
19607         with seekable stdin.
19608         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
19609         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
19610         (gl_REPLACE_FSEEKO): New macro.
19611         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
19612         * modules/fseeko (Files): Distribute fseeko.c.
19613         * modules/ftello (Files): Distribute ftello.c.
19614         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
19615         mode.
19616         * lib/ftello.c (rpl_ftello): New file.
19617         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
19618         fseeko, ftello.
19619         (gl_STDIN_LARGE_OFFSET): New macro.
19620         * modules/stdio (Makefile.am): Perform the replacement.
19621         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
19622
19623 2007-05-23  Bruno Haible  <bruno@clisp.org>
19624
19625         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
19626         GNULIB_POSIXCHECK is defined.
19627
19628 2007-05-21  Bruno Haible  <bruno@clisp.org>
19629
19630         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
19631         Check also the output for NaN arguments. When cross-compiling, guess
19632         no on IRIX.
19633         * lib/vasnprintf.c: Update comments.
19634         * tests/test-vasnprintf-posix.c (strisnan): New function.
19635         (test_function): Use it.
19636         * tests/test-vasprintf-posix.c (strisnan): New function.
19637         (test_function): Use it.
19638         * tests/test-snprintf-posix.h (strisnan): New function.
19639         (test_function): Use it.
19640         * tests/test-sprintf-posix.h (strisnan): New function.
19641         (test_function): Use it.
19642         Reported by Eric Blake.
19643
19644 2007-05-20  Bruno Haible  <bruno@clisp.org>
19645
19646         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
19647         numbers that fails on BeOS.
19648         * doc/functions/frexpl.texi: Update.
19649
19650 2007-05-20  Jim Meyering  <jim@meyering.net>
19651
19652         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
19653         forced upon us by glibc-2.6.
19654
19655 2007-05-20  Bruno Haible  <bruno@clisp.org>
19656
19657         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
19658         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
19659         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
19660         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
19661         NEED_PRINTF_INFINITE.
19662         (is_infinitel): New function.
19663         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
19664         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
19665         gl_PREREQ_VASNPRINTF_INFINITE.
19666         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
19667         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19668         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
19669         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
19670         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
19671         gl_PREREQ_VASNPRINTF_INFINITE.
19672         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19673         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19674         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19675         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19676         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19677         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19678         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19679         * doc/functions/fprintf.texi: Update.
19680         * doc/functions/printf.texi: Update.
19681         * doc/functions/snprintf.texi: Update.
19682         * doc/functions/sprintf.texi: Update.
19683         * doc/functions/vfprintf.texi: Update.
19684         * doc/functions/vprintf.texi: Update.
19685         * doc/functions/vsnprintf.texi: Update.
19686         * doc/functions/vsprintf.texi: Update.
19687
19688 2007-05-20  Bruno Haible  <bruno@clisp.org>
19689
19690         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
19691         was not found in libc.
19692         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
19693
19694 2007-05-20  Bruno Haible  <bruno@clisp.org>
19695
19696         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
19697         printed as "-nan" instead of "nan".
19698         * tests/test-vasprintf-posix.c (test_function): Likewise.
19699         * tests/test-snprintf-posix.h (test_function): Likewise.
19700         * tests/test-sprintf-posix.h (test_function): Likewise.
19701         Needed for HP-UX 11.
19702
19703 2007-05-20  Jim Meyering  <jim@meyering.net>
19704
19705         Fix buggy test for the fchownat-deref bug.
19706         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
19707         symlink required for the run-test.  Without it, this test would
19708         always declare that fchownat doesn't work, and client code would
19709         unnecessarily use the replacement function with fixed libc.
19710         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
19711         Reported by Greg Schafer.
19712
19713 2007-05-19  Bruno Haible  <bruno@clisp.org>
19714
19715         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
19716         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
19717         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
19718         Needed for IRIX 6.5 and Solaris 2.5.1.
19719
19720 2007-05-19  Bruno Haible  <bruno@clisp.org>
19721
19722         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
19723         (test_function): Skip tests involving -0.0 on platforms where
19724         -0.0 = 0.0.
19725         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
19726         (test_function): Skip tests involving -0.0 on platforms where
19727         -0.0 = 0.0.
19728         * tests/test-snprintf-posix.h (have_minus_zero): New function.
19729         (test_function): Skip tests involving -0.0 on platforms where
19730         -0.0 = 0.0.
19731         * tests/test-sprintf-posix.h (have_minus_zero): New function.
19732         (test_function): Skip tests involving -0.0 on platforms where
19733         -0.0 = 0.0.
19734         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
19735         tests.
19736         * tests/test-printf-posix.h (test_function): Likewise.
19737         * tests/test-printf-posix.output: Remove all -0.0 related results.
19738         Needed for IRIX 6.5.
19739
19740 2007-05-19  Bruno Haible  <bruno@clisp.org>
19741
19742         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
19743         printed as "nan0x7fffffff" instead of "nan".
19744         * tests/test-vasprintf-posix.c (test_function): Likewise.
19745         * tests/test-snprintf-posix.h (test_function): Likewise.
19746         * tests/test-sprintf-posix.h (test_function): Likewise.
19747         * tests/test-fprintf-posix.h (NaN): Remove macro.
19748         (test_function): Remove all NaN related tests.
19749         * tests/test-printf-posix.h (NaN): Remove macro.
19750         (test_function): Remove all NaN related tests.
19751         * tests/test-printf-posix.output: Remove all NaN related results.
19752         Needed for IRIX 6.5.
19753
19754 2007-05-19  Bruno Haible  <bruno@clisp.org>
19755
19756         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
19757         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19758
19759 2007-05-19  Bruno Haible  <bruno@clisp.org>
19760
19761         * lib/float_.h: New file.
19762         * m4/float_h.m4: New file.
19763         * modules/float: New file.
19764         * modules/isnanl (Dependencies): Add float.
19765         * modules/isnanl-nolibm (Dependencies): Likewise.
19766         * modules/mathl (Dependencies): Likewise.
19767         * modules/printf-frexpl (Dependencies): Likewise.
19768         * modules/signbit (Dependencies): Likewise.
19769         * modules/vasnprintf (Dependencies): Likewise.
19770         * doc/headers/float.texi: Update.
19771
19772 2007-05-19  Jim Meyering  <jim@meyering.net>
19773
19774         * lib/utimens.c (gl_futimens): Rename from futimens,
19775         now that glibc-2.6 declares futimens.
19776         * lib/utimens.h: Likewise.
19777
19778 2007-05-19  Bruno Haible  <bruno@clisp.org>
19779
19780         Avoid test failures on mingw.
19781         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
19782         * tests/test-printf-posix.sh: Likewise.
19783         * tests/test-vfprintf-posix.sh: Likewise.
19784         * tests/test-vprintf-posix.sh: Likewise.
19785
19786 2007-05-19  Bruno Haible  <bruno@clisp.org>
19787
19788         Fix *printf result for NaN, Inf, -0.0 on mingw.
19789         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
19790         * lib/vasnprintf.c: Include math.h and isnan.h.
19791         (is_infinite_or_zero): New function.
19792         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
19793         values in the %f, %F, %e, %E, %g, %G directives.
19794         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
19795         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19796         gl_PRINTF_INFINITE and test its result. Invoke
19797         gl_PREREQ_VASNPRINTF_INFINITE.
19798         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19799         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19800         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19801         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19802         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19803         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19804         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19805         * doc/functions/fprintf.texi: Update.
19806         * doc/functions/printf.texi: Update.
19807         * doc/functions/snprintf.texi: Update.
19808         * doc/functions/sprintf.texi: Update.
19809         * doc/functions/vfprintf.texi: Update.
19810         * doc/functions/vprintf.texi: Update.
19811         * doc/functions/vsnprintf.texi: Update.
19812         * doc/functions/vsprintf.texi: Update.
19813
19814 2007-05-19  Bruno Haible  <bruno@clisp.org>
19815
19816         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
19817         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
19818         Instead of multiplying with 10^k, set extra_zeroes to k.
19819         (scale10_round_long_double): Remove function.
19820
19821 2007-05-18  Bruno Haible  <bruno@clisp.org>
19822
19823         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
19824         introduced on 2007-05-06.
19825
19826 2007-05-18  Bruno Haible  <bruno@clisp.org>
19827
19828         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
19829         %g directives.
19830         * tests/test-vasprintf-posix.c (test_function): Likewise.
19831         * tests/test-snprintf-posix.h (test_function): Likewise.
19832         * tests/test-sprintf-posix.h (test_function): Likewise.
19833
19834 2007-05-18  Bruno Haible  <bruno@clisp.org>
19835
19836         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
19837         (strmatch): New function.
19838         (test_function): Test the %f directive on numbers of various exponents.
19839         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
19840         (strmatch): New function.
19841         (test_function): Test the %f directive on numbers of various exponents.
19842         * tests/test-snprintf-posix.h (strmatch): New function.
19843         (test_function): Test the %f directive on numbers of various exponents.
19844         * tests/test-sprintf-posix.h (strmatch): New function.
19845         (test_function): Test the %f directive on numbers of various exponents.
19846         * tests/test-snprintf-posix.c (SIZEOF): New macro.
19847         * tests/test-sprintf-posix.c (SIZEOF): New macro.
19848         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
19849         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
19850
19851 2007-05-18  Bruno Haible  <bruno@clisp.org>
19852
19853         Add support for 'long double' number output.
19854         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
19855         * lib/vasnprintf.c: Include math.h and float+.h.
19856         (mp_limb_t): New type.
19857         (GMP_LIMB_BITS): New macro.
19858         (mp_twolimb_t): New type.
19859         (GMP_TWOLIMB_BITS): New macro.
19860         (mpn_t): New type.
19861         (multiply, divide, convert_to_decimal, decode_long_double,
19862         scale10_round_long_double, scale10_round_decimal_long_double,
19863         floorlog10l): New functions.
19864         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
19865         for the %f, %F, %e, %E, %g, %G directives.
19866         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
19867         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19868         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
19869         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
19870         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19871         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19872         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19873         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19874         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19875         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19876         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19877         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
19878         * modules/snprintf-posix (Depends-on): Likewise.
19879         * modules/sprintf-posix (Depends-on): Likewise.
19880         * modules/vasnprintf-posix (Depends-on): Likewise.
19881         * modules/vasprintf-posix (Depends-on): Likewise.
19882         * modules/vfprintf-posix (Depends-on): Likewise.
19883         * modules/vsnprintf-posix (Depends-on): Likewise.
19884         * modules/vsprintf-posix (Depends-on): Likewise.
19885         * modules/vasnprintf (Files): Add lib/float+.h.
19886         * doc/functions/fprintf.texi: Update.
19887         * doc/functions/printf.texi: Update.
19888         * doc/functions/snprintf.texi: Update.
19889         * doc/functions/sprintf.texi: Update.
19890         * doc/functions/vfprintf.texi: Update.
19891         * doc/functions/vprintf.texi: Update.
19892         * doc/functions/vsnprintf.texi: Update.
19893         * doc/functions/vsprintf.texi: Update.
19894
19895 2007-05-18  Bruno Haible  <bruno@clisp.org>
19896
19897         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
19898
19899 2007-05-18  Bruno Haible  <bruno@clisp.org>
19900
19901         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
19902         for printing 64-bit integers. Needed for mingw.
19903
19904 2007-05-18  Bruno Haible  <bruno@clisp.org>
19905
19906         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
19907         gl_FUNC_FREXPL_WORKS.
19908         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
19909
19910 2007-05-18  Bruno Haible  <bruno@clisp.org>
19911
19912         * modules/frexpl-nolibm-tests: New file.
19913
19914         * modules/frexpl-nolibm: New file.
19915         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
19916
19917 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
19918
19919         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
19920         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
19921         GCC 4.2, which otherwise issues a lot of warnings.
19922         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
19923         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
19924         Likewise.
19925         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
19926         * modules/iconv_open (iconv.h): Likewise.
19927         * modules/locale (locale.h): Likewise.
19928         * modules/netinet_in (netinet/in.h): Likewise.
19929         * modules/sys_select (sys_select.h): Likewise.
19930         * modules/sys_socket (sys/socket.h): Likewise.
19931         * modules/sys_stat (sys/stat.h): Likewise.
19932         * modules/sysexits (sysexits.h): Likewise.
19933         * modules/unistd (unistd.h): Likewise.
19934
19935 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19936
19937         * modules/closein-tests (Makefile.am): Distribute
19938         `test-closein.sh'.
19939
19940 2007-05-17  Bruno Haible  <bruno@clisp.org>
19941
19942         * tests/test-printf-posix.output: Renamed from
19943         tests/test-fprintf-posix.out.
19944         * modules/fprintf-posix-tests: Update.
19945         * modules/printf-posix-tests: Update.
19946         * modules/vfprintf-posix-tests: Update.
19947         * modules/vprintf-posix-tests: Update.
19948         * tests/test-fprintf-posix.sh: Update.
19949         * tests/test-printf-posix.sh: Update.
19950         * tests/test-vfprintf-posix.sh: Update.
19951         * tests/test-vprintf-posix.sh: Update.
19952         Reported by Ralf Wildenhues.
19953
19954 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19955
19956         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
19957         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
19958         GCC 4.2, which otherwise issues a lot of warnings.
19959         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
19960         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
19961         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
19962         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
19963         it should no longer be needed.
19964         * lib/string_.h: Likewise.
19965         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
19966         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
19967         * modules/inttypes (inttypes.h): Likewise.
19968         * modules/math (math.h): Likewise.
19969         * modules/search (search.h): Likewise.
19970         * modules/signal (signal.h): Likewise.
19971         * modules/stdint (stdint.h): Likewise.
19972         * modules/stdio (stdio.h): Likewise.
19973         * modules/stdlib (stdlib.h): Likewise.
19974         * modules/string (string.h): Likewise.
19975         * modules/sys_time (sys/time.h): Likewise.
19976         * modules/time (time.h): Likewise.
19977         * modules/wchar (wchar.h): Likewise.
19978         * modules/wctype (wtype.h): Likewise.
19979
19980 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
19981
19982         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
19983
19984 2007-05-13  Bruno Haible  <bruno@clisp.org>
19985
19986         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
19987         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19988         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
19989         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
19990         (gl_PREREQ_STRTOK_R): Don't require it here.
19991
19992 2007-05-13  Bruno Haible  <bruno@clisp.org>
19993
19994         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
19995         when used in C++ mode.
19996
19997 2007-05-12  Bruno Haible  <bruno@clisp.org>
19998
19999         * lib/linebuffer.h: Tweak doc.
20000         * lib/linebuffer.c: Likewise.
20001
20002 2007-05-12  James Youngman  <jay@gnu.org>
20003
20004         * lib/linebuffer.c (readlinebuffer_delim): New function,
20005         like readlinebuffer, but use a caller-specified delimiter.
20006         (readlinebuffer): Just call readlinebuffer_delim with '\n'
20007         as the delimiter.
20008         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
20009
20010 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
20011
20012         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
20013         * modules/openat (Files): Remove openat-die.c.
20014         (Depends-on): Add openat-die.
20015         * modules/openat-die: New module.
20016
20017 2007-05-06  Bruno Haible  <bruno@clisp.org>
20018
20019         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
20020         Update with info about Cygwin.
20021         * doc/functions/fprintf.texi: Update.
20022         * doc/functions/printf.texi: Update.
20023         * doc/functions/snprintf.texi: Update.
20024         * doc/functions/sprintf.texi: Update.
20025         * doc/functions/vfprintf.texi: Update.
20026         * doc/functions/vprintf.texi: Update.
20027         * doc/functions/vsnprintf.texi: Update.
20028         * doc/functions/vsprintf.texi: Update.
20029         Reported by Eric Blake.
20030
20031 2007-05-06  Bruno Haible  <bruno@clisp.org>
20032
20033         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
20034         padding ourselves for the floating-point directives.
20035         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
20036         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
20037         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
20038         gl_PRINTF_FLAG_ZERO and test its result. Invoke
20039         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
20040         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20041         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
20042         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20043         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20044         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20045         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20046         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20047         * tests/test-snprintf-posix.h (test_function): Also check the width
20048         and some flags in the %f directive.
20049         * tests/test-sprintf-posix.h (test_function): Likewise.
20050         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20051         * tests/test-vasprintf-posix.c (test_function): Likewise.
20052         * doc/functions/fprintf.texi: Update.
20053         * doc/functions/printf.texi: Update.
20054         * doc/functions/snprintf.texi: Update.
20055         * doc/functions/sprintf.texi: Update.
20056         * doc/functions/vfprintf.texi: Update.
20057         * doc/functions/vprintf.texi: Update.
20058         * doc/functions/vsnprintf.texi: Update.
20059         * doc/functions/vsprintf.texi: Update.
20060
20061 2007-05-06  Bruno Haible  <bruno@clisp.org>
20062
20063         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
20064         pass the ' flag character to sprintf or snprintf.
20065         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
20066         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
20067         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
20068         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
20069         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
20070         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20071         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
20072         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20073         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20074         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20075         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20076         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20077         * tests/test-snprintf-posix.h (test_function): Also check the grouping
20078         flag.
20079         * tests/test-sprintf-posix.h (test_function): Likewise.
20080         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20081         * tests/test-vasprintf-posix.c (test_function): Likewise.
20082         * doc/functions/fprintf.texi: Update.
20083         * doc/functions/printf.texi: Update.
20084         * doc/functions/snprintf.texi: Update.
20085         * doc/functions/sprintf.texi: Update.
20086         * doc/functions/vfprintf.texi: Update.
20087         * doc/functions/vprintf.texi: Update.
20088         * doc/functions/vsnprintf.texi: Update.
20089         * doc/functions/vsprintf.texi: Update.
20090
20091 2007-05-01  Bruno Haible  <bruno@clisp.org>
20092
20093         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
20094
20095 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
20096
20097         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
20098         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
20099
20100 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
20101
20102         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
20103         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
20104         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
20105
20106 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
20107
20108         * lib/argp-help.c (struct hol_entry): New member `ord'.
20109         (HOL_ENTRY_PTRCMP): Use ord for comparison
20110         (hol_sort): Initialize ord.
20111
20112 2007-05-01  Bruno Haible  <bruno@clisp.org>
20113
20114         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
20115         Reported by Eric Blake.
20116         * doc/gnulib.texi (Function Substitutes): Update.
20117
20118 2007-05-01  Bruno Haible  <bruno@clisp.org>
20119
20120         * doc/functions.texi: Remove file, now redundant through
20121         doc/functions/*.texi.
20122
20123 2007-05-01  Bruno Haible  <bruno@clisp.org>
20124
20125         * modules/argp (Depends-on): Add sleep.
20126
20127 2007-05-01  Bruno Haible  <bruno@clisp.org>
20128
20129         * modules/sleep-tests: New file.
20130         * tests/test-sleep.c: New file.
20131
20132         * modules/sleep: New file.
20133         * lib/sleep.c: New file.
20134         * m4/sleep.m4: New file.
20135         * lib/unistd_.h (sleep): New declaration.
20136         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
20137         HAVE_SLEEP.
20138         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
20139         * doc/functions/sleep.texi: Document the sleep module.
20140
20141 2007-05-01  Bruno Haible  <bruno@clisp.org>
20142
20143         * lib/sigprocmask.h: Remove file.
20144         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
20145         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
20146         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
20147         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
20148         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
20149         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
20150         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
20151         HAVE_SIGSET_T as a shell variable.
20152         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
20153         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
20154         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
20155         (Depends-on): Add signal. Remove verify.
20156         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
20157         (Include): Mention <signal.h> instead of sigprocmask.h.
20158         * NEWS: Mention the change.
20159         * lib/fatal-signal.c: Don't include sigprocmask.h.
20160
20161 2007-05-01  Bruno Haible  <bruno@clisp.org>
20162
20163         * modules/signal: New file.
20164         * lib/signal_.h: New file.
20165         * m4/signal_h.m4: New file.
20166
20167 2007-05-01  Bruno Haible  <bruno@clisp.org>
20168
20169         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
20170         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
20171         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
20172         HAVE_WCTYPE_CTMP_BUG into wctype.h.
20173
20174 2007-05-01  Bruno Haible  <bruno@clisp.org>
20175
20176         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
20177         configure time.
20178         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
20179         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
20180         * modules/sys_stat (Makefile.am): Substitute their values into
20181         sys/stat.h.
20182
20183 2007-05-01  Bruno Haible  <bruno@clisp.org>
20184
20185         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
20186         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
20187         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
20188
20189 2007-05-01  Bruno Haible  <bruno@clisp.org>
20190
20191         * doc/header/assert.texi: Undo last change: don't mention the gnulib
20192         'assert' module here.
20193
20194 2007-05-01  Bruno Haible  <bruno@clisp.org>
20195
20196         * doc/functions/*.texi: New files.
20197         * doc/functions/google-ranking.txt: New file.
20198         * doc/gnulib.texi (Function Substitutes): New chapter.
20199         (ctime, inet_ntoa): Remove sections.
20200         * doc/ctime.texi: Remove file.
20201         * doc/inet_ntoa.texi: Remove file.
20202         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
20203         dependencies.
20204         (%.info): New rule, specifying a --reference-limit.
20205
20206 2007-05-01  Bruno Haible  <bruno@clisp.org>
20207
20208         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
20209
20210 2007-05-01  Bruno Haible  <bruno@clisp.org>
20211
20212         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
20213         the portability of 'mkdir' to mingw systems.
20214
20215 2007-05-01  Bruno Haible  <bruno@clisp.org>
20216
20217         * doc/headers/google-ranking.txt: New file.
20218
20219 2007-04-30  Eric Blake  <ebb9@byu.net>
20220
20221         Prefer fseeko to fseek.
20222         * modules/getpass (Depends-on): Add fseeko.
20223         * lib/getpass.c (getpass): Use fseeko, not fseek.
20224
20225 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
20226
20227         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
20228         assumes the sorting is stable, while most qsort implementations
20229         are not.  Use argument addresses to ensure they never compare as
20230         equal.
20231
20232         * tests/test-argp-2.sh (usage-indent test): Fix output
20233         (func_compare): Restore diff options
20234         * tests/test-argp.c: Restore #include "progname.h"
20235
20236 2007-04-29  Bruno Haible  <bruno@clisp.org>
20237
20238         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
20239         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
20240         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
20241         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20242         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
20243         (configure.ac): Define CHECK_SNPRINTF_POSIX.
20244         (TESTS, check_PROGRAMS): Add test-snprintf.
20245         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
20246         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
20247         (TESTS, check_PROGRAMS): Add test-vsnprintf.
20248         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
20249         assertions that fail on HP-UX, OSF/1, or IRIX.
20250         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
20251
20252 2007-04-29  Bruno Haible  <bruno@clisp.org>
20253
20254         * MODULES.html.sh (posix_functions): Remove 'contents'.
20255
20256 2007-04-29  Karl Berry  <karl@gnu.org>
20257
20258         * config/srclist.txt (gendocs_template_min): new entry.
20259
20260 2007-04-29  Bruno Haible  <bruno@clisp.org>
20261
20262         Work around fpurge bug on BSD systems.
20263         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
20264         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
20265         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
20266         fpurge to rpl_fpurge if the system already has this function.
20267         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
20268         the case where the system already has this function. Correct invariants
20269         on BSD systems.
20270         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
20271         BSD systems.
20272
20273 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
20274
20275         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
20276         proposed by Sven Verdoolaege.
20277
20278         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
20279         options.
20280         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
20281         (usage and help tests): Update
20282
20283 2007-04-29  Bruno Haible  <bruno@clisp.org>
20284
20285         * tests/test-fflush.c (main): Use a file of size 17, not 10.
20286         Print more information in case of failure. Disable a test on BeOS.
20287
20288 2007-04-29  Bruno Haible  <bruno@clisp.org>
20289
20290         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
20291         This helps debugging on systems on which no gdb is available.
20292
20293 2007-04-29  Bruno Haible  <bruno@clisp.org>
20294
20295         * lib/freading.h: Improve comments.
20296         * lib/fwriting.h: Likewise.
20297         * tests/test-freading.c (main): Don't check freading immediately after
20298         repositioning. Needed for glibc.
20299
20300 2007-04-29  Bruno Haible  <bruno@clisp.org>
20301
20302         * lib/freading.c (freading): Trivial simplification.
20303
20304 2007-04-28  Bruno Haible  <bruno@clisp.org>
20305
20306         * tests/test-fwriting.c (main): Also test the interaction between
20307         fflush and fwriting.
20308         * modules/fwriting-tests (Depends-on): Add fflush.
20309
20310         * tests/test-freading.c (main): Also test the interaction between
20311         fflush and freading.
20312         * modules/freading-tests (Depends-on): Add fflush.
20313
20314 2007-04-28  Bruno Haible  <bruno@clisp.org>
20315
20316         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
20317         fseeko and ftello.
20318         Suggested by Eric Blake.
20319
20320 2007-04-28  Jim Meyering  <jim@meyering.net>
20321
20322         Avoid false-negative in gl_STDINT_H's C99 conformance test.
20323         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
20324         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
20325
20326 2007-04-27  Eric Blake  <ebb9@byu.net>
20327
20328         * doc/headers/assert.texi (assert.h): Document assert module use.
20329
20330 2007-04-27  Bruno Haible  <bruno@clisp.org>
20331
20332         * doc/headers/*.texi: New files.
20333         * doc/gnulib.texi (Header File Substitutes): New chapter.
20334         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
20335         dependencies.
20336         (standards.info ,standards.html, standards.dvi): Update dependencies.
20337         (mostlyclean, clean): New targets.
20338
20339 2007-04-27  Bruno Haible  <bruno@clisp.org>
20340
20341         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
20342         * modules/sysexits (Files, Makefile.am): Update.
20343
20344         * lib/sys_socket_.h: Renamed from lib/socket_.h.
20345         * modules/sys_socket (Files, Makefile.am): Update.
20346
20347         * lib/sys_stat_.h: Renamed from lib/stat_.h.
20348         * modules/sys_stat (Files, Makefile.am): Update.
20349
20350 2007-04-27  Eric Blake  <ebb9@byu.net>
20351
20352         * lib/freading.h: Improve comments.
20353         * lib/fwriting.h: Likewise.
20354         * lib/fflush.c: Likewise.
20355
20356         Fix closein for mingw.
20357         * modules/closein-tests: Add tests for closein.
20358         * tests/test-closein.c: New file.
20359         * tests/test-closein.sh: Likewise.
20360         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
20361         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
20362
20363 2007-04-27  Bruno Haible  <bruno@clisp.org>
20364
20365         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
20366         version is < 6.
20367         * lib/math_.h [__DECC]: Likewise.
20368         * lib/stdio_.h [__DECC]: Likewise.
20369         * lib/stdlib_.h [__DECC]: Likewise.
20370         * lib/string_.h [__DECC]: Likewise.
20371         * lib/time_.h [__DECC]: Likewise.
20372         * lib/wchar_.h [__DECC]: Likewise.
20373         * lib/wctype_.h [__DECC]: Likewise.
20374
20375 2007-04-27  Bruno Haible  <bruno@clisp.org>
20376
20377         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
20378
20379 2007-04-27  Bruno Haible  <bruno@clisp.org>
20380
20381         * lib/fflush.c: Add comments.
20382         * modules/fpurge-tests (Depends-on): Add fflush.
20383         * modules/freadable-tests (Depends-on): Likewise.
20384         * modules/fwritable-tests (Depends-on): Likewise.
20385
20386 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
20387
20388         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
20389         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
20390         Report by Bruno Haible <bruno@clisp.org>.
20391
20392 2007-04-26  Eric Blake  <ebb9@byu.net>
20393
20394         Fix fflush on mingw.
20395         * modules/fflush (Depends-on): Add freading.
20396         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
20397         but unread data.
20398
20399 2007-04-26  Eric Blake  <ebb9@byu.net>
20400         and Bruno Haible  <bruno@clisp.org>
20401
20402         Implement freading and fwriting.
20403         * lib/freading.c: New file.
20404         * lib/freading.h: Likewise.
20405         * m4/freading.m4: Likewise.
20406         * modules/freading: Likewise.
20407         * modules/freading-tests: Likewise.
20408         * tests/test-freading.c: Likewise.
20409         * lib/fwriting.c: New file.
20410         * lib/fwriting.h: Likewise.
20411         * m4/fwriting.m4: Likewise.
20412         * modules/fwriting: Likewise.
20413         * modules/fwriting-tests: Likewise.
20414         * tests/test-fwriting.c: Likewise.
20415         * MODULES.html.sh (File stream based Input/Output): Mention them.
20416
20417 2007-04-26  Bruno Haible  <bruno@clisp.org>
20418
20419         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
20420         'long' when we assume it.
20421         Suggested by Eric Blake.
20422
20423 2007-04-26  Bruno Haible  <bruno@clisp.org>
20424
20425         Ensure fseeko, ftello are declared on glibc systems.
20426         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
20427         * modules/fseeko (configure.ac-early): Likewise.
20428         * modules/ftello (configure.ac-early): Likewise.
20429         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
20430         AC_FUNC_FSEEKO for this.
20431         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
20432         (gl_CHECK_FSEEKO): Remove macro.
20433
20434 2007-04-26  Bruno Haible  <bruno@clisp.org>
20435
20436         * tests/test-fflush.c (main): Also check the ftell result after
20437         fflush and fseek/fseeko.
20438         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
20439         file descriptor position cache in the stream.
20440         * lib/fseeko.c (rpl_fseeko): Likewise.
20441
20442 2007-04-26  Bruno Haible  <bruno@clisp.org>
20443
20444         * modules/fflush-tests (Depends-on): Add fseeko.
20445
20446 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
20447             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20448
20449         * lib/argz_.h: ensure error_t definition is obtained in same
20450         mechanism system argz.h would have.
20451         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
20452         argz facilities are known bad.  Err on the side of caution if
20453         cross-compiling.
20454
20455 2007-04-25  Eric Blake  <ebb9@byu.net>
20456
20457         * lib/fpurge.c (includes): Use stdlib.h for free.
20458         * tests/test-fflush.c (main): Also test fflush-fseeko.
20459
20460 2007-04-25  Bruno Haible  <bruno@clisp.org>
20461
20462         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
20463         * lib/fseeko.c: New file.
20464         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
20465         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
20466         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
20467         gl_FUNC_FSEEKO.
20468         (gl_FUNC_FSEEKO): Invoke it.
20469         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
20470         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
20471         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
20472
20473 2007-04-25  Bruno Haible  <bruno@clisp.org>
20474
20475         * modules/fflush (Depends-on): Add ftello.
20476
20477 2007-04-25  Bruno Haible  <bruno@clisp.org>
20478
20479         * modules/ftello-tests: New file.
20480         * tests/test-ftello.c: New file.
20481
20482         * modules/ftello: New file.
20483         * m4/ftello.m4: New file.
20484         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
20485         HAVE_FTELLO.
20486         * lib/stdio_.h (ftello): New declaration.
20487         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
20488         HAVE_FTELLO.
20489
20490 2007-04-25  Bruno Haible  <bruno@clisp.org>
20491
20492         * modules/fseeko-tests: New file.
20493         * tests/test-fseeko.c: New file.
20494
20495         * modules/fseeko: New file.
20496         * m4/fseeko.m4: New file.
20497         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
20498         HAVE_FSEEKO.
20499         * lib/stdio_.h (fseeko): New declaration.
20500         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
20501         HAVE_FSEEKO.
20502
20503 2007-04-25  Bruno Haible  <bruno@clisp.org>
20504
20505         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
20506
20507 2007-04-25  Bruno Haible  <bruno@clisp.org>
20508
20509         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
20510         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
20511         * tests/test-unistd.c: Likewise.
20512         * tests/test-fcntl.c: Likewise.
20513
20514 2007-04-23  Eric Blake  <ebb9@byu.net>
20515
20516         * lib/fflush.c: Fix missing include.
20517         Reported by Bruno Haible.
20518
20519 2007-04-23  Bruno Haible  <bruno@clisp.org>
20520
20521         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
20522         Reported by Eric Blake.
20523
20524 2007-04-23  Bruno Haible  <bruno@clisp.org>
20525
20526         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
20527
20528 2007-04-23  Bruno Haible  <bruno@clisp.org>
20529
20530         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
20531
20532 2007-04-23  Bruno Haible  <bruno@clisp.org>
20533
20534         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
20535         Needed on HP-UX 11.
20536
20537 2007-04-16  Eric Blake  <ebb9@byu.net>
20538
20539         Make fflush rely on fpurge.
20540         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
20541         open coding all variants.
20542         * modules/fflush (Depends-on): Add fpurge and unistd.
20543         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
20544         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
20545
20546         Fix --with-tests compilation on cygwin.
20547         * modules/argmatch-tests (Makefile.am): List gnulib library first
20548         in LDADD.
20549         * modules/argp-tests (Makefile.am): Likewise.
20550         * modules/array-list-tests (Makefile.am): Likewise.
20551         * modules/array-oset-tests (Makefile.am): Likewise.
20552         * modules/avltree-list-tests (Makefile.am): Likewise.
20553         * modules/avltree-oset-tests (Makefile.am): Likewise.
20554         * modules/avltreehash-list-tests (Makefile.am): Likewise.
20555         * modules/carray-list-tests (Makefile.am): Likewise.
20556         * modules/dirname-tests (Makefile.am): Likewise.
20557         * modules/frexp-tests (Makefile.am): Likewise.
20558         * modules/isnanl-tests (Makefile.am): Likewise.
20559         * modules/linked-list-tests (Makefile.am): Likewise.
20560         * modules/linkedhash-list-tests (Makefile.am): Likewise.
20561         * modules/lock-tests (Makefile.am): Likewise.
20562         * modules/rbtree-list-tests (Makefile.am): Likewise.
20563         * modules/rbtree-oset-tests (Makefile.am): Likewise.
20564         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
20565         * modules/tls-tests (Makefile.am): Likewise.
20566         * modules/tsearch-tests (Makefile.am): Likewise.
20567         * modules/xvasprintf-tests (Makefile.am): Likewise.
20568
20569         Fix fpurge for cygwin.
20570         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
20571         value.
20572         * modules/fpurge-tests (Depends-on): Clean up trash.
20573
20574 2007-04-16  Simon Josefsson  <simon@josefsson.org>
20575
20576         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
20577
20578         * m4/autobuild.m4: Re-indent.
20579
20580 2007-04-13  Bruno Haible  <bruno@clisp.org>
20581
20582         * modules/fpurge-tests: New file.
20583         * tests/test-fpurge.c: New file.
20584
20585         * modules/fpurge: New file.
20586         * lib/fpurge.h: New file.
20587         * lib/fpurge.c: New file.
20588         * m4/fpurge.m4: New file.
20589
20590 2007-04-13  Bruno Haible  <bruno@clisp.org>
20591
20592         * modules/fbufmode-tests: New file.
20593         * tests/test-fbufmode.c: New file.
20594
20595         * modules/fbufmode: New file.
20596         * lib/fbufmode.h: New file.
20597         * lib/fbufmode.c: New file.
20598         * m4/fbufmode.m4: New file.
20599
20600 2007-04-13  Bruno Haible  <bruno@clisp.org>
20601
20602         * modules/fwritable-tests: New file.
20603         * tests/test-fwritable.c: New file.
20604
20605         * modules/fwritable: New file.
20606         * lib/fwritable.h: New file.
20607         * lib/fwritable.c: New file.
20608         * m4/fwritable.m4: New file.
20609
20610 2007-04-13  Bruno Haible  <bruno@clisp.org>
20611
20612         * modules/freadable-tests: New file.
20613         * tests/test-freadable.c: New file.
20614
20615         * modules/freadable: New file.
20616         * lib/freadable.h: New file.
20617         * lib/freadable.c: New file.
20618         * m4/freadable.m4: New file.
20619
20620 2007-04-13  Bruno Haible  <bruno@clisp.org>
20621
20622         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
20623         MOSTLYCLEANFILES.
20624
20625 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
20626
20627         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
20628         gzip bootstrap.conf to avoid dragging in i18n machinery.
20629         (gnulib_tool_option): Use it.
20630
20631 2007-04-13  Bruno Haible  <bruno@clisp.org>
20632
20633         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
20634         %F directives.
20635         * tests/test-vasprintf-posix.c (test_function): Likewise.
20636         * tests/test-snprintf-posix.h (test_function): Likewise.
20637         * tests/test-sprintf-posix.h (test_function): Likewise.
20638         * tests/test-fprintf-posix.h (test_function): Likewise.
20639         * tests/test-printf-posix.h (test_function): Likewise.
20640         * tests/test-fprintf-posix.out: Likewise.
20641
20642 2007-04-13  Bruno Haible  <bruno@clisp.org>
20643
20644         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
20645         * modules/tls-tests (configure.ac): Likewise.
20646         Reported by Arto C. Nirkko <anirkko@insel.ch>.
20647
20648 2007-04-13  Bruno Haible  <bruno@clisp.org>
20649
20650         * lib/tls.c (glthread_tls_get): Fix return type.
20651         Patch by Arto C. Nirkko <anirkko@insel.ch>.
20652
20653 2007-04-12  Eric Blake  <ebb9@byu.net>
20654
20655         * modules/gettime (Depends-on): Remove gettime.
20656         Reported by Dmitry V. Levin.
20657
20658 2007-04-12  Bruno Haible  <bruno@clisp.org>
20659
20660         * modules/fflush (Include): Mention <stdio.h>.
20661         * modules/strtoimax (Include): Mention <inttypes.h>.
20662         * modules/strtoumax (Include): Likewise.
20663
20664 2007-04-12  Eric Blake  <ebb9@byu.net>
20665
20666         * .cvsignore: New file.
20667         * .gitignore: Likewise.
20668
20669 2007-04-12  Bruno Haible  <bruno@clisp.org>
20670
20671         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
20672         not before, since $(LDADD) often contains libgnu.a.
20673         * modules/striconv-tests (test_striconv_LDADD): Likewise.
20674         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
20675         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
20676         Needed on Cygwin.
20677
20678 2007-04-12  Eric Blake  <ebb9@byu.net>
20679
20680         Work around glibc's failure to flush stdin on fclose.
20681         * lib/closein.c (close_stdin): Flush stdin before closing.
20682
20683         Work around glibc's failure to reset seekable stdin on exit.
20684         * modules/closein: New module.
20685         * lib/closein.c: New file.
20686         * lib/closein.h: Likewise.
20687         * m4/closein.m4: Likewise.
20688         * MODULES.html.sh (File stream based Input/Output): Document it.
20689
20690 2007-04-12  Simon Josefsson  <simon@josefsson.org>
20691
20692         * gnulib-tool: Rename generated 'autobuild' script to
20693         'do-autobuild' in --create-megatestdir output.
20694
20695         * doc/gnulib.texi (Build robot for gnulib): Fix.
20696
20697 2007-04-12  Simon Josefsson  <simon@josefsson.org>
20698
20699         * modules/sysexits (Depends-on): Add absolute-header.
20700
20701 2007-04-12  Eric Blake  <ebb9@byu.net>
20702
20703         No need to preserve errno on success.
20704         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
20705         Reported by Bruno Haible.
20706
20707 2007-04-12  Simon Josefsson  <simon@josefsson.org>
20708
20709         * MODULES.html.sh (Support for maintaining and releasing
20710         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
20711
20712 2007-04-12  Simon Josefsson  <simon@josefsson.org>
20713
20714         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
20715
20716 2007-04-12  Simon Josefsson  <simon@josefsson.org>
20717
20718         * modules/autobuild: New module.
20719
20720         * m4/autobuild.m4: New file.
20721
20722 2007-04-11  Bruno Haible  <bruno@clisp.org>
20723
20724         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
20725         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
20726         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
20727         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
20728         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20729         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20730         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20731         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
20732         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20733         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20734         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
20735         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20736         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20737         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
20738         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20739         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20740         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
20741         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20742         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20743         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
20744         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20745         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20746         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
20747         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20748         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20749         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
20750         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20751         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20752         Reported by Eric Blake.
20753
20754 2007-04-11  Bruno Haible  <bruno@clisp.org>
20755
20756         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
20757
20758 2007-04-10  Bruno Haible  <bruno@clisp.org>
20759
20760         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
20761         for NaN and Infinity. Needed on FreeBSD 6.1.
20762         * tests/test-vasnprintf-posix.c (test_function): Undo last change
20763         regarding results for "%010a" of Infinity and NaN.
20764         * tests/test-vasprintf-posix.c (test_function): Likewise.
20765         * tests/test-snprintf-posix.h (test_function): Likewise.
20766         * tests/test-sprintf-posix.h (test_function): Likewise.
20767         * tests/test-fprintf-posix.h (test_function): Likewise.
20768         * tests/test-printf-posix.h (test_function): Likewise.
20769         * tests/test-fprintf-posix.out: Likewise.
20770
20771 2007-04-10  Bruno Haible  <bruno@clisp.org>
20772
20773         * modules/locale-tests: New file.
20774         * tests/test-locale.c: New file.
20775
20776         * modules/locale: New file.
20777         * lib/locale_.h: New file.
20778         * m4/locale_h.m4: New file.
20779
20780 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
20781             Bruno Haible  <bruno@clisp.org>
20782
20783         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
20784         be determined, test for availability of the copysignf, copysign,
20785         copysignl functions.
20786         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
20787         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
20788         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
20789
20790 2007-04-09  Eric Blake  <ebb9@byu.net>
20791
20792         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
20793         * modules/stdio (Makefile.am): Support fflush.
20794         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20795         * modules/fflush: New file.
20796         * lib/fflush.c: Likewise.
20797         * m4/fflush.m4: Likewise.
20798         * modules/fflush-tests: New test.
20799         * tests/test-fflush.c: Likewise.
20800         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
20801
20802 2007-04-06  Bruno Haible  <bruno@clisp.org>
20803
20804         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
20805         (VASNPRINTF): Use signbit for faster determination whether to print a
20806         minus sign.
20807         * modules/vasnprintf (Files): Remove lib/float+.h.
20808         * modules/fprintf-posix (Depends-on): Add signbit.
20809         * modules/snprintf-posix (Depends-on): Likewise.
20810         * modules/sprintf-posix (Depends-on): Likewise.
20811         * modules/vasnprintf-posix (Depends-on): Likewise.
20812         * modules/vasprintf-posix (Depends-on): Likewise.
20813         * modules/vfprintf-posix (Depends-on): Likewise.
20814         * modules/vsnprintf-posix (Depends-on): Likewise.
20815         * modules/vsprintf-posix (Depends-on): Likewise.
20816
20817 2007-04-06  Bruno Haible  <bruno@clisp.org>
20818
20819         * tests/test-frexp.c (main): Test also the sign bit of zero results.
20820         * tests/test-frexpl.c (main): Likewise.
20821         * tests/test-ldexpl.c (main): Likewise.
20822         * modules/frexp-tests (Depends-on): Add signbit.
20823         * modules/frexpl-tests (Depdends-on): Likewise.
20824         * modules/ldexpl-tests (Depdends-on): Likewise.
20825
20826 2007-04-06  Bruno Haible  <bruno@clisp.org>
20827
20828         * modules/signbit-tests: New file.
20829         * tests/test-signbit.c: New file.
20830
20831         * modules/signbit: New file.
20832         * lib/signbitf.c: New file.
20833         * lib/signbitd.c: New file.
20834         * lib/signbitl.c: New file.
20835         * m4/signbit.m4: New file.
20836         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
20837         (signbit): New macro.
20838         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
20839         REPLACE_SIGNBIT.
20840         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
20841         REPLACE_FREXPL into math.h.
20842
20843 2007-04-06  Bruno Haible  <bruno@clisp.org>
20844
20845         * modules/isnanf-nolibm-tests: New file.
20846         * tests/test-isnanf.c: New file.
20847
20848         * modules/isnanf-nolibm: New file.
20849         * lib/isnanf.h: New file.
20850         * lib/isnanf.c: New file.
20851         * lib/isnan.c: Consider the USE_FLOAT macro.
20852         * m4/isnanf.m4: New file.
20853
20854 2007-04-06  Bruno Haible  <bruno@clisp.org>
20855
20856         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
20857         (Link): New section.
20858
20859         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
20860
20861 2007-04-06  Bruno Haible  <bruno@clisp.org>
20862
20863         Assume the 'long double' type.
20864         * m4/longdouble.m4: Remove file.
20865         * config/srclist.txt: Don't mention longdouble.m4.
20866         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
20867         * lib/float+.h: Likewise.
20868         * lib/frexp.c: Likewise.
20869         * lib/printf-args.h: Likewise.
20870         * lib/printf-args.c: Likewise.
20871         * lib/printf-frexp.c: Likewise.
20872         * lib/printf-parse.c: Likewise.
20873         * lib/vasnprintf.c: Likewise.
20874         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
20875         * m4/intl.m4: Likewise.
20876         * m4/isnanl.m4: Likewise.
20877         * m4/printf.m4: Likewise.
20878         * m4/printf-frexpl.m4: Likewise.
20879         * m4/vasnprintf.m4: Likewise.
20880         * modules/allocsa (Files): Remove m4/longdouble.m4.
20881         * modules/gettext (Files): Likewise.
20882         * modules/relocatable-prog-wrapper (Files): Likewise.
20883         * modules/vasnprintf (Files): Likewise.
20884         * modules/isnanl (Files): Likewise.
20885         (Include): Simplify.
20886         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
20887         (Include): Simplify.
20888         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
20889         (Include): Simplify.
20890         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
20891         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
20892         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
20893         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
20894         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
20895         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
20896         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
20897         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
20898         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
20899         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
20900         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
20901         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
20902         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
20903         * tests/test-isnanl.c: Likewise.
20904         * tests/test-snprintf-posix.h: Likewise.
20905         * tests/test-sprintf-posix.h: Likewise.
20906         * tests/test-vasnprintf-posix.c: Likewise.
20907         * tests/test-vasnprintf-posix2.c: Likewise.
20908         * tests/test-vasprintf-posix.c: Likewise.
20909
20910 2007-04-06  Bruno Haible  <bruno@clisp.org>
20911
20912         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
20913         * lib/math_.h [__DECC]: Include the overridden include file through
20914         #include_next, outside the double-inclusion guard.
20915         * lib/stdio_.h [__DECC]: Likewise.
20916         * lib/stdlib_.h [__DECC]: Likewise.
20917         * lib/string_.h [__DECC]: Likewise.
20918         * lib/time_.h [__DECC]: Likewise.
20919         * lib/wchar_.h [__DECC]: Likewise.
20920         * lib/wctype_.h [__DECC]: Likewise.
20921         * lib/inttypes_.h [__DECC]: Likewise.
20922         Reported by Albert Chin <china@thewrittenword.com> in
20923         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
20924
20925 2007-04-04  Eric Blake  <ebb9@byu.net>
20926
20927         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
20928         1.5.x.
20929
20930 2007-04-04  Bruno Haible  <bruno@clisp.org>
20931
20932         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
20933         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
20934
20935 2007-04-04  Bruno Haible  <bruno@clisp.org>
20936
20937         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
20938         results for "%010a" of Infinity and NaN.
20939         * tests/test-vasprintf-posix.c (test_function): Likewise.
20940         * tests/test-snprintf-posix.h (test_function): Likewise.
20941         * tests/test-sprintf-posix.h (test_function): Likewise.
20942         * tests/test-fprintf-posix.h (test_function): Remove these tests.
20943         * tests/test-printf-posix.h (test_function): Likewise.
20944         * tests/test-fprintf-posix.out: Update.
20945         Needed for FreeBSD 6.1.
20946
20947 2007-04-04  Bruno Haible  <bruno@clisp.org>
20948
20949         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
20950         directly used by the gnulib modules nor by gnulib-tool.
20951
20952 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
20953
20954         * DEPENDENCIES: Give overall description of version dependency
20955         desirability.  Use more-typical names for apps.
20956         Add shell, coreutils, diffutils, grep, tar, gzip.
20957
20958 2007-04-04  Simon Josefsson  <simon@josefsson.org>
20959
20960         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
20961
20962 2007-04-04  Karl Berry  <karl@gnu.org>
20963
20964         * MODULES.html.sh (func_module): missing '.
20965
20966 2007-04-03  Bruno Haible  <bruno@clisp.org>
20967
20968         * modules/argmatch-tests (Makefile.am): New variable
20969         test_argmatch_LDADD.
20970         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
20971         * modules/array-list-tests (Makefile.am): New variable
20972         test_array_list_LDADD.
20973         * modules/array-oset-tests (Makefile.am): New variable
20974         test_array_oset_LDADD.
20975         * modules/avltree-list-tests (Makefile.am): New variable
20976         test_avltree_list_LDADD.
20977         * modules/avltree-oset-tests (Makefile.am): New variable
20978         test_avltree_oset_LDADD.
20979         * modules/avltreehash-list-tests (Makefile.am): New variable
20980         test_avltreehash_list_LDADD.
20981         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
20982         test_canonicalize_lgpl_LDADD.
20983         * modules/carray-list-tests (Makefile.am): New variable
20984         test_carray_list_LDADD.
20985         * modules/dirname-tests (Makefile.am): New variable
20986         test_dirname_LDADD.
20987         * modules/linked-list-tests (Makefile.am): New variable
20988         test_linked_list_LDADD.
20989         * modules/linkedhash-list-tests (Makefile.am): New variable
20990         test_linkedhash_list_LDADD.
20991         * modules/rbtree-list-tests (Makefile.am): New variable
20992         test_rbtree_list_LDADD.
20993         * modules/rbtree-oset-tests (Makefile.am): New variable
20994         test_rbtree_oset_LDADD.
20995         * modules/rbtreehash-list-tests (Makefile.am): New variable
20996         test_rbtreehash_list_LDADD.
20997         * modules/xvasprintf-tests (Makefile.am): New variable
20998         test_xvasprintf_LDADD.
20999         Reported by Eric Blake.
21000
21001 2007-04-03  Eric Blake  <ebb9@byu.net>
21002
21003         * DEPENDENCIES: Weaken m4 requirements.
21004
21005 2007-04-03  Bruno Haible  <bruno@clisp.org>
21006
21007         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
21008         * modules/isnanl-tests (configure.ac): Likewise.
21009
21010 2007-04-03  Ben Pfaff  <blp@gnu.org>
21011
21012         * modules/iconv_open: Add $(srcdir)/ to source directory
21013         references in Makefile fragments that call gperf, to fix VPATH
21014         builds.
21015
21016 2007-04-03  Bruno Haible  <bruno@clisp.org>
21017
21018         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
21019         * lib/ldexpl.c: Undo last change.
21020
21021 2007-04-03  Bruno Haible  <bruno@clisp.org>
21022
21023         * modules/printf-frexpl (Depends-on): Undo last change.
21024         (Files): Add m4/ldexpl.m4.
21025
21026 2007-04-03  Bruno Haible  <bruno@clisp.org>
21027
21028         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
21029         * modules/isnanl (Link): New section.
21030
21031         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
21032         * modules/frexp (Link): New section.
21033
21034         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
21035         * modules/frexpl (Link): New section.
21036
21037         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
21038         * modules/ldexpl (Link): New section.
21039
21040 2007-04-03  Bruno Haible  <bruno@clisp.org>
21041
21042         * modules/TEMPLATE-EXTENDED: New file.
21043         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
21044
21045 2007-04-03  Bruno Haible  <bruno@clisp.org>
21046
21047         * DEPENDENCIES: New file.
21048         Suggested by Simon Josefsson.
21049
21050 2007-04-03  Bruno Haible  <bruno@clisp.org>
21051
21052         * doc/gnulib.texi: Escape @.
21053
21054 2007-04-03  James Youngman  <jay@gnu.org>
21055         and Paul Eggert  <eggert@cs.ucla.edu>
21056
21057         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
21058         birthtime on all systems that have birthtime, not just those which
21059         use st_birthtimensec rather than st_birthtim.  Putting zero in
21060         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
21061         that the birth time is not available for files on an NFS mount.
21062
21063 2007-04-03  Simon Josefsson  <simon@josefsson.org>
21064
21065         * modules/memxor: Move back from crypto/, suggested by Bruno.
21066         * modules/crypto/hmac-sha1: Fix memxor dependency.
21067
21068         * modules/crypto/gc: Moved from ../.
21069
21070 2007-04-02  Eric Blake  <ebb9@byu.net>
21071
21072         * lib/ldexpl.c (includes): Avoid libm.
21073
21074         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
21075
21076 2007-04-02  Bruno Haible  <bruno@clisp.org>
21077
21078         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
21079         on IRIX.
21080
21081 2007-04-02  Bruno Haible  <bruno@clisp.org>
21082
21083         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
21084         x86 or x86_64 platforms running MacOS X.
21085         Reported by Ryan Schmidt <@ryandesign.com>.
21086
21087 2007-04-02  Bruno Haible  <bruno@clisp.org>
21088
21089         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
21090         i386.
21091
21092 2007-04-01  Simon Josefsson  <simon@josefsson.org>
21093
21094         * modules/crypto/arcfour: Moved from ../.
21095         * modules/crypto/arcfour-tests: Moved from ../.
21096         * modules/crypto/arctwo: Moved from ../.
21097         * modules/crypto/arctwo-tests: Moved from ../.
21098         * modules/crypto/des: Moved from ../.
21099         * modules/crypto/des-tests: Moved from ../.
21100         * modules/crypto/gc-arcfour: Moved from ../.
21101         * modules/crypto/gc-arcfour-tests: Moved from ../.
21102         * modules/crypto/gc-arctwo: Moved from ../.
21103         * modules/crypto/gc-arctwo-tests: Moved from ../.
21104         * modules/crypto/gc-des: Moved from ../.
21105         * modules/crypto/gc-des-tests: Moved from ../.
21106         * modules/crypto/gc-hmac-md5: Moved from ../.
21107         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
21108         * modules/crypto/gc-hmac-sha1: Moved from ../.
21109         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
21110         * modules/crypto/gc-md2: Moved from ../.
21111         * modules/crypto/gc-md2-tests: Moved from ../.
21112         * modules/crypto/gc-md4: Moved from ../.
21113         * modules/crypto/gc-md4-tests: Moved from ../.
21114         * modules/crypto/gc-md5: Moved from ../.
21115         * modules/crypto/gc-md5-tests: Moved from ../.
21116         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
21117         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
21118         * modules/crypto/gc-random: Moved from ../.
21119         * modules/crypto/gc-rijndael: Moved from ../.
21120         * modules/crypto/gc-rijndael-tests: Moved from ../.
21121         * modules/crypto/gc-sha1: Moved from ../.
21122         * modules/crypto/gc-sha1-tests: Moved from ../.
21123         * modules/crypto/gc-tests: Moved from ../.
21124         * modules/crypto/hmac-md5: Moved from ../.
21125         * modules/crypto/hmac-md5-tests: Moved from ../.
21126         * modules/crypto/hmac-sha1: Moved from ../.
21127         * modules/crypto/hmac-sha1-tests: Moved from ../.
21128         * modules/crypto/md2: Moved from ../.
21129         * modules/crypto/md2-tests: Moved from ../.
21130         * modules/crypto/md4: Moved from ../.
21131         * modules/crypto/md4-tests: Moved from ../.
21132         * modules/crypto/md5: Moved from ../.
21133         * modules/crypto/md5-tests: Moved from ../.
21134         * modules/crypto/memxor: Moved from ../.
21135         * modules/crypto/rijndael: Moved from ../.
21136         * modules/crypto/rijndael-tests: Moved from ../.
21137         * modules/crypto/sha1: Moved from ../.
21138
21139 2007-03-30  James Youngman  <jay@gnu.org>
21140
21141         * tests/test-stat-time.c (prepare_test): use chmod() rather than
21142         rename() to change the ctime of a file (because ctime is unaffected
21143         by rename on jfs2 on AIX 5.1).
21144         (main): Start by doing cleanup, in case a previous run failed leaving
21145         test files behind.
21146
21147 2007-03-31  Bruno Haible  <bruno@clisp.org>
21148
21149         Support old proprietary implementations of iconv.
21150         * modules/iconv_open: New file.
21151         * lib/iconv_.h: New file.
21152         * m4/iconv_h.m4: New file.
21153         * lib/iconv_open.c: New file.
21154         * lib/iconv_open-aix.gperf: New file.
21155         * lib/iconv_open-hpux.gperf: New file.
21156         * lib/iconv_open-irix.gperf: New file.
21157         * lib/iconv_open-osf.gperf: New file.
21158         * m4/iconv_open.m4: New file.
21159         * modules/linebreak (Depends-on): Add iconv_open.
21160         * modules/striconv (Depends-on): Likewise.
21161         * modules/striconveh (Depends-on): Likewise.
21162         * modules/unicodeio (Depends-on): Likewise.
21163         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
21164         (iconv_t)(-1).
21165         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
21166         conversion if cd is (iconv_t)(-1).
21167         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
21168         is not possible.
21169
21170 2007-03-31  Bruno Haible  <bruno@clisp.org>
21171
21172         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
21173         work on Solaris either. Protect also second use of "autodetect_jp".
21174
21175 2007-03-31  Bruno Haible  <bruno@clisp.org>
21176
21177         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
21178         the function is not present.
21179
21180 2007-03-31  Bruno Haible  <bruno@clisp.org>
21181
21182         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
21183         the function is not present.
21184
21185 2007-03-31  Bruno Haible  <bruno@clisp.org>
21186
21187         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
21188         a bug in HP-UX iconv_open().
21189
21190 2007-03-31  Bruno Haible  <bruno@clisp.org>
21191
21192         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
21193         (Mathematics <math.h>): New section, add fpieee.
21194         (Input/output <stdio.h>): Add fseterr.
21195         (Mathematics <math.h>): New section, add printf-frexp.
21196         (Container data structures): Add sublist.
21197         (Core language properties): Add fpucw, inline.
21198         (Functions for greatest-width integer types <inttypes.h>): Add
21199         imaxabs, imaxdiv, inttypes.
21200         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
21201         isnanl-nolibm, ldexp.
21202         (Mathematics <math.h>): New section, add printf-frexpl.
21203         (Support for systems lacking POSIX:2001): Add fprintf-posix,
21204         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
21205         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
21206         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
21207         (Unicode string functions): Add unistr/u*-mbtoucr.
21208         (Java): Add javacomp-script, javaexec-script.
21209         (C#): Add csharpcomp-script, csharpexec-script.
21210         (Support for building libraries and executables): Add havelib,
21211         relocatable-*.
21212         (Support for maintaining and releasing projects): Renamed from
21213         'Support for maintaining and release projects'. Add announce-gen.
21214
21215 2007-03-31  Bruno Haible  <bruno@clisp.org>
21216
21217         * README: Talk primarily about git.
21218         (git and CVS): Renamed from CVS.
21219         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
21220         gnulib is available through git.
21221         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
21222
21223 2007-03-30  Bruno Haible  <bruno@clisp.org>
21224
21225         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
21226         * lib/poll_.h: Likewise.
21227         * lib/stat_.h: Likewise.
21228         * lib/sys_time_.h: Likewise.
21229         * lib/sysexit_.h: Likewise.
21230         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
21231         * lib/stdbool_.h: Likewise.
21232         * lib/byteswap_.h: Add double-inclusion guard.
21233
21234 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
21235
21236         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
21237
21238 2007-03-30  Karl Berry  <karl@gnu.org>
21239
21240         * config/srclist-update: double space after USA in the license
21241         substitution, since that's how it's usually (?) written.
21242
21243 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
21244
21245         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
21246         reported by Bruno Haible.
21247
21248 2007-03-29  Bruno Haible  <bruno@clisp.org>
21249
21250         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
21251         a bug in AIX iconv().
21252
21253 2007-03-29  Bruno Haible  <bruno@clisp.org>
21254
21255         * modules/ldexpl-tests: New file.
21256         * tests/test-ldexpl.c: New file.
21257
21258 2007-03-29  Bruno Haible  <bruno@clisp.org>
21259
21260         * lib/ldexpl.c: Include fpucw.h.
21261         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
21262         multiplication.
21263         * modules/ldexpl (Depends-on): Add fpucw.
21264
21265 2007-03-29  Bruno Haible  <bruno@clisp.org>
21266
21267         * modules/ldexpl: New file.
21268         * m4/ldexpl.m4: New file.
21269         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
21270         set.
21271         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
21272         REPLACE_LDEXPL.
21273         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
21274         REPLACE_LDEXPL.
21275         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
21276         gl_FUNC_LDEXPL_WORKS.
21277         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
21278         * modules/mathl (Files): Remove lib/ldexpl.c.
21279         (Depends-on): Add ldexpl.
21280
21281 2007-03-29  Bruno Haible  <bruno@clisp.org>
21282
21283         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
21284
21285 2007-03-29  Bruno Haible  <bruno@clisp.org>
21286
21287         * tests/test-striconveh.c (main): Don't assume that a direct conversion
21288         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
21289         and possibly also HP-UX.
21290         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
21291         work on AIX, IRIX, HP-UX, OSF/1.
21292         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
21293         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
21294         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
21295         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
21296         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
21297         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
21298
21299 2007-03-29  Bruno Haible  <bruno@clisp.org>
21300
21301         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
21302
21303 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
21304
21305         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
21306         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
21307
21308 2007-03-29  Eric Blake  <ebb9@byu.net>
21309
21310         * lib/acl-internal.h: Remove redundant include.
21311         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
21312         Cygwin when a file is locked.
21313
21314 2007-03-29  Bruno Haible  <bruno@clisp.org>
21315
21316         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
21317         file.
21318         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
21319
21320 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
21321
21322         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
21323         try to remove a parent directory if the child couldn't be removed
21324         (except for the first rmdir, which could fail because the child
21325         doesn't exist).  Problem reported by Jeff Blaine in
21326         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
21327
21328 2007-03-28  Bruno Haible  <bruno@clisp.org>
21329
21330         * lib/striconveh.c (utf8conv_carefully): New function.
21331         (mem_cd_iconveh_internal): Invoke it.
21332
21333 2007-03-28  Bruno Haible  <bruno@clisp.org>
21334
21335         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
21336         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
21337         input.
21338         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
21339         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
21340         unistr/u8-uctomb.
21341
21342 2007-03-28  Bruno Haible  <bruno@clisp.org>
21343
21344         * modules/unistr/u8-mbtoucr: New file.
21345         * lib/unistr/u8-mbtoucr.c: New file.
21346         * modules/unistr/u16-mbtoucr: New file.
21347         * lib/unistr/u16-mbtoucr.c: New file.
21348         * modules/unistr/u16-mbtoucr: New file.
21349         * lib/unistr/u16-mbtoucr.c: New file.
21350         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
21351
21352 2007-03-27  Simon Josefsson  <simon@josefsson.org>
21353             Bruno Haible  <bruno@clisp.org>
21354
21355         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
21356         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
21357         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
21358
21359         * m4/stdio_h.m4: Add stubs for vasprintf too.
21360
21361         * modules/stdio: Support vasprintf in sed command.
21362
21363         * modules/vasprintf: Depend on stdio for prototypes.  Remove
21364         vasprintf.h.  Add stdio module indicator.
21365
21366         * lib/stdio_.h: Declare asprintf and vasprintf, based on
21367         vasprintf.h.
21368
21369         * lib/vasprintf.h: File removed.
21370
21371         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
21372         * lib/vasprintf.c: Ditto.
21373         * lib/xvasprintf.c: Ditto.
21374         * tests/test-vasprintf-posix.c: Ditto.
21375         * tests/test-vasprintf.c: Ditto.
21376
21377 2007-03-27  Bruno Haible  <bruno@clisp.org>
21378
21379         Make vasnprintf multithread-safe.
21380         * lib/vasnprintf.c (decimal_point_char): New function.
21381         (VASNPRINTF): Use it.
21382         Suggested by Simon Josefsson.
21383
21384 2007-03-27  Eric Blake  <ebb9@byu.net>
21385
21386         Support sub-second birthtime on cygwin.
21387         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
21388         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
21389         (get_stat_birthtime): Also work with st_birthtim.
21390
21391 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
21392
21393         * lib/stat-time.h (USE_BIRTHTIME): Remove.
21394         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
21395         (get_stat_birthtime_ns): Do not try to use "spare" fields.
21396         (get_stat_birthtime_ns): Simplify compile-time tests.
21397         (get_stat_birthtime): Change the API to look like
21398         get_stat_mtime etc., except return a negative tv_nsec on error.
21399         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
21400         Don't check for "spare" fields.
21401         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
21402         or for struct stat.st_birthtime, as these tests aren't used.
21403         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
21404
21405 2007-03-27  Bruno Haible  <bruno@clisp.org>
21406
21407         * lib/stat-time.h: Include <sys/stat.h>.
21408
21409 2007-03-27  James Youngman  <jay@gnu.org>
21410
21411         * lib/stat-time.h (get_stat_birthtime): New function for
21412           retrieving st_birthtime as provided by UFS2 (hence *BSD).
21413         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
21414           and its variants.
21415         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
21416         * modules/stat-time-test: New file.
21417         * tests/test-stat-time.c: New test, devised by Bruno Haible.
21418
21419 2007-03-26  Bruno Haible  <bruno@clisp.org>
21420
21421         Better support of signalling NaNs.
21422         * lib/atanl.c: Include isnanl.h.
21423         (atanl): Perform test for NaN at the beginning of the function and
21424         through a call to isnanl.
21425         * lib/cosl.c: Include isnanl.h.
21426         (cosl): Perform test for NaN at the beginning of the function and
21427         through a call to isnanl.
21428         * lib/ldexpl.c: Include isnanl.h.
21429         (ldexpl): Perform test for NaN through a call to isnanl.
21430         * lib/logl.c: Include isnanl.h.
21431         (logl): Perform test for NaN at the beginning of the function and
21432         through a call to isnanl.
21433         * lib/sinl.c: Include isnanl.h.
21434         (sinl): Perform test for NaN at the beginning of the function and
21435         through a call to isnanl.
21436         * lib/sqrtl.c: Include isnanl.h.
21437         (sqrtl): Perform test for NaN at the beginning of the function and
21438         through a call to isnanl.
21439         * lib/tanl.c: Include isnanl.h.
21440         (tanl): Perform test for NaN at the beginning of the function and
21441         through a call to isnanl.
21442         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
21443         * modules/mathl (Depends-on): Add isnanl.
21444
21445 2007-03-26  Eric Blake  <ebb9@byu.net>
21446
21447         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
21448         regression in logic sense of previous patch.
21449
21450 2007-03-26  Bruno Haible  <bruno@clisp.org>
21451
21452         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
21453         unportable shell command "if ! ...".
21454         Reported by Ralf Wildenhues.
21455
21456 2007-03-25  Bruno Haible  <bruno@clisp.org>
21457
21458         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
21459         <sysexits.h> file, and only add EX_CONFIG.
21460         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
21461         absolute file name and whether it is sufficient. Substitute also
21462         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
21463         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
21464         ABSOLUTE_SYSEXITS_H into sysexits.h.
21465
21466 2007-03-25  Bruno Haible  <bruno@clisp.org>
21467
21468         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
21469         hints is NULL.
21470
21471 2007-03-25  Bruno Haible  <bruno@clisp.org>
21472
21473         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
21474         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
21475
21476 2007-03-25  Bruno Haible  <bruno@clisp.org>
21477
21478         * lib/vasnprintf.c: Include langinfo.h.
21479         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
21480         multithread-safe.
21481         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
21482         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
21483         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
21484         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
21485         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
21486         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
21487         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
21488         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
21489         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
21490         Reported by Simon Josefsson.
21491
21492 2007-03-25  Bruno Haible  <bruno@clisp.org>
21493
21494         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
21495         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
21496         * modules/vasnprintf (Depends-on): Add stdint.
21497
21498 2007-03-25  Bruno Haible  <bruno@clisp.org>
21499
21500         * modules/fpieee: New file.
21501         * m4/fpieee.m4: New file.
21502         * modules/isnan-nolibm (Depends-on): Add fpieee.
21503         * modules/isnanl-nolibm (Depends-on): Add fpieee.
21504         * modules/isnanl (Depends-on): Add fpieee.
21505
21506 2007-03-25  Bruno Haible  <bruno@clisp.org>
21507
21508         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
21509
21510 2007-03-25  Bruno Haible  <bruno@clisp.org>
21511
21512         Avoid test failures on IRIX 6.5.
21513         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
21514         (main): Use it.
21515         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
21516         macros.
21517         (main): Use them.
21518
21519 2007-03-25  Bruno Haible  <bruno@clisp.org>
21520
21521         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
21522         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
21523         exists but doesn't work.
21524         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
21525         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
21526         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
21527         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
21528
21529 2007-03-25  Bruno Haible  <bruno@clisp.org>
21530
21531         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
21532         returns inf. Needed on IRIX 6.5.
21533
21534 2007-03-25  Bruno Haible  <bruno@clisp.org>
21535
21536         * tests/test-frexpl.c: Include isnanl-nolibm.h.
21537         (main): Use isnanl instead of x != x idiom.
21538         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
21539
21540         * tests/test-frexp.c: Include isnan.h.
21541         (main): Use isnan instead of x != x idiom.
21542         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
21543
21544 2007-03-25  Bruno Haible  <bruno@clisp.org>
21545
21546         * tests/test-frexp.c (NaN): New function/macro.
21547         (main): Use it instead of 0.0 / 0.0.
21548         * tests/test-isnan.c (NaN): New function/macro.
21549         (main): Use it instead of 0.0 / 0.0.
21550         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
21551         (test_function): Use it instead of 0.0 / 0.0.
21552         * tests/test-vasprintf-posix.c (NaN): New function/macro.
21553         (test_function): Use it instead of 0.0 / 0.0.
21554         * tests/test-snprintf-posix.h (NaN): New function/macro.
21555         (test_function): Use it instead of 0.0 / 0.0.
21556         * tests/test-sprintf-posix.h (NaN): New function/macro.
21557         (test_function): Use it instead of 0.0 / 0.0.
21558         * tests/test-fprintf-posix.h (NaN): New function/macro.
21559         (test_function): Use it instead of 0.0 / 0.0.
21560         * tests/test-printf-posix.h (NaN): New function/macro.
21561         (test_function): Use it instead of 0.0 / 0.0.
21562
21563         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
21564
21565 2007-03-25  Bruno Haible  <bruno@clisp.org>
21566
21567         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
21568
21569 2007-03-25  Bruno Haible  <bruno@clisp.org>
21570
21571         * lib/regexec.c (merge_state_with_log): Make static.
21572
21573 2007-03-25  Bruno Haible  <bruno@clisp.org>
21574
21575         * lib/trigl.c (kernel_rem_pio2): Make static.
21576
21577 2007-03-25  Bruno Haible  <bruno@clisp.org>
21578
21579         * lib/sincosl.c (sincosl_table): Make static.
21580
21581 2007-03-25  Bruno Haible  <bruno@clisp.org>
21582
21583         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
21584         if the compiler does not support C99.
21585
21586 2007-03-25  Bruno Haible  <bruno@clisp.org>
21587
21588         * modules/time (Makefile.am): Ensure all rule action lines start with a
21589         tab.
21590
21591 2007-03-24  Bruno Haible  <bruno@clisp.org>
21592
21593         * modules/tsearch-tests: New file.
21594         * tests/test-tsearch.sh: New file.
21595         * tests/test-tsearch.c: New file, mostly copied from glibc.
21596
21597         * modules/search-tests: New file.
21598         * tests/test-search.c: New file.
21599
21600         * modules/search: New file.
21601         * lib/search_.h: New file, incorporating lib/tsearch.h.
21602         * m4/search_h.m4: New file.
21603         * lib/tsearch.h: Remove file.
21604         * lib/tsearch.c: Include search.h instead of tsearch.h.
21605         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
21606         HAVE_TSEARCH.
21607         * modules/tsearch (Files): Remove lib/tsearch.h.
21608         (Depends-on): Add search.
21609         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
21610         (Include): Change tsearch.h into search.h.
21611
21612 2007-03-24  Bruno Haible  <bruno@clisp.org>
21613
21614         * modules/fpucw: New file.
21615         * lib/fpucw.h: New file.
21616         * lib/frexp.c: Include fpucw.h.
21617         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
21618         (FUNC): Use them.
21619         * lib/printf-frexp.c: Include fpucw.h.
21620         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
21621         (FUNC): Use them.
21622         * lib/vasnprintf.c: Include fpucw.h.
21623         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
21624         'long double' calculations.
21625         * tests/test-frexpl.c: Include fpucw.h.
21626         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
21627         * tests/test-printf-frexpl.c: Include fpucw.h.
21628         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
21629         * modules/frexpl (Depends-on): Add fpucw.
21630         * modules/printf-frexpl (Depends-on): Likewise.
21631         * modules/fprintf-posix (Depends-on): Likewise.
21632         * modules/snprintf-posix (Depends-on): Likewise.
21633         * modules/sprintf-posix (Depends-on): Likewise.
21634         * modules/vasnprintf-posix (Depends-on): Likewise.
21635         * modules/vasprintf-posix (Depends-on): Likewise.
21636         * modules/vfprintf-posix (Depends-on): Likewise.
21637         * modules/vsnprintf-posix (Depends-on): Likewise.
21638         * modules/vsprintf-posix (Depends-on): Likewise.
21639         * modules/frexpl-tests (Depends-on): Likewise.
21640         * modules/printf-frexpl-tests (Depends-on): Likewise.
21641
21642 2007-03-24  Bruno Haible  <bruno@clisp.org>
21643
21644         * lib/float+.h: New file.
21645         * lib/isnan.c: Include float+.h.
21646         (SIZE): New macro.
21647         (FUNC): Compare only SIZE bytes of the value.
21648         * lib/vasnprintf.c: Include float+.h.
21649         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
21650         SIZEOF_LDBL or SIZEOF_DBL bytes.
21651         * modules/isnan-nolibm (Files): Add lib/float+.h.
21652         * modules/isnanl-nolibm (Files): Add lib/float+.h.
21653         * modules/isnanl (Files): Add lib/float+.h.
21654         * modules/vasnprintf (Files): Add lib/float+.h.
21655
21656 2007-03-24  Bruno Haible  <bruno@clisp.org>
21657
21658         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
21659         include isnanl-nolibm.h.
21660
21661 2007-03-24  Bruno Haible  <bruno@clisp.org>
21662
21663         * tests/test-read-file.c (main): Don't produce spurious output for
21664         expected situations. Make the test fail if it encountered unexpected
21665         results.
21666
21667 2007-03-24  Bruno Haible  <bruno@clisp.org>
21668
21669         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
21670         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
21671
21672 2007-03-24  Bruno Haible  <bruno@clisp.org>
21673
21674         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
21675
21676 2007-03-24  Bruno Haible  <bruno@clisp.org>
21677
21678         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
21679         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
21680
21681         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
21682         * modules/utf8-ucs4: Turn into a symbolic link to module
21683         unistr/u8-mbtouc.
21684
21685         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
21686         utf8-ucs4-unsafe.
21687         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
21688         unistr/u8-mbtouc-unsafe.
21689
21690         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
21691         * modules/utf16-ucs4: Turn into a symbolic link to module
21692         unistr/u16-mbtouc.
21693
21694         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
21695         utf16-ucs4-unsafe.
21696         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
21697         unistr/u16-mbtouc-unsafe.
21698
21699         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
21700         * modules/ucs4-utf8: Turn into a symbolic link to module
21701         unistr/u8-ubtomb.
21702
21703         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
21704         * modules/ucs4-utf16: Turn into a symbolic link to module
21705         unistr/u16-ubtomb.
21706
21707 2007-03-24  Bruno Haible  <bruno@clisp.org>
21708
21709         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
21710         Enable the function only if HAVE_INLINE.
21711         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
21712         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
21713         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
21714         Enable the function only if HAVE_INLINE.
21715         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
21716         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
21717         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
21718         Enable the function only if HAVE_INLINE.
21719         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
21720         Enable the function only if HAVE_INLINE.
21721         * modules/utf8-ucs4: Update.
21722         * modules/utf8-ucs4-unsafe: Update.
21723         * modules/utf16-ucs4: Update.
21724         * modules/utf16-ucs4-unsafe: Update.
21725         * modules/ucs4-utf8: Update.
21726         * modules/ucs4-utf16: Update.
21727
21728 2007-03-24  Bruno Haible  <bruno@clisp.org>
21729
21730         * lib/utf8-ucs4.h: Remove file.
21731         * lib/utf8-ucs4-unsafe.h: Remove file.
21732         * lib/utf16-ucs4.h: Remove file.
21733         * lib/utf16-ucs4-unsafe.h: Remove file.
21734         * lib/ucs4-utf8.h: Remove file.
21735         * lib/ucs4-utf16.h: Remove file.
21736         * lib/unistr.h: Include their previous contents.
21737         * m4/utf-ucs4.m4: Remove file.
21738         * m4/ucs4-utf.m4: Remove file.
21739         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
21740         (Depends-on): Add unistr/base.
21741         (configure.ac): Remove gl_UTF_UCS4.
21742         (Makefile.am): Update.
21743         (Include): Change to unistr.h.
21744         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
21745         (Depends-on): Add unistr/base.
21746         (configure.ac): Remove gl_UTF_UCS4.
21747         (Makefile.am): Update.
21748         (Include): Change to unistr.h.
21749         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
21750         (Depends-on): Add unistr/base.
21751         (configure.ac): Remove gl_UTF_UCS4.
21752         (Makefile.am): Update.
21753         (Include): Change to unistr.h.
21754         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
21755         (Depends-on): Add unistr/base.
21756         (configure.ac): Remove gl_UTF_UCS4.
21757         (Makefile.am): Update.
21758         (Include): Change to unistr.h.
21759         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
21760         (Depends-on): Add unistr/base.
21761         (configure.ac): Remove gl_UCS4_UTF.
21762         (Makefile.am): Update.
21763         (Include): Change to unistr.h.
21764         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
21765         (Depends-on): Add unistr/base.
21766         (configure.ac): Remove gl_UCS4_UTF.
21767         (Makefile.am): Update.
21768         (Include): Change to unistr.h.
21769         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
21770         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
21771         utf8-ucs4-unsafe.h.
21772         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
21773         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
21774         utf16-ucs4-unsafe.h.
21775         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
21776         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
21777         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
21778         * lib/unistr/u8-strchr.c: Likewise.
21779         * lib/unistr/u8-strrchr.c: Likewise.
21780         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
21781         * lib/unistr/u16-strchr.c: Likewise.
21782         * lib/unistr/u16-strrchr.c: Likewise.
21783         * lib/striconveh.c: Update.
21784         * lib/linebreak.c: Update.
21785
21786 2007-03-24  Bruno Haible  <bruno@clisp.org>
21787
21788         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
21789         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
21790
21791 2007-03-22  Bruno Haible  <bruno@clisp.org>
21792
21793         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
21794
21795 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
21796
21797         * MODULES.html.sh (File system functions): New module write-any-file.
21798         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
21799         * m4/write-any-file.m4: New files.
21800
21801 2007-03-23  Eric Blake  <ebb9@byu.net>
21802
21803         * gnulib-tool: Rearrange space-tab sequences, since some editors
21804         like to eat them.
21805
21806 2007-03-23  Eric Blake  <ebb9@byu.net>
21807
21808         * lib/version-etc.c (version_etc_va): Update license wording to
21809         be more concise.  Recommended by Richard Stallman.
21810
21811 2007-03-22  Bruno Haible  <bruno@clisp.org>
21812
21813         * lib/poll.c (MSG_PEEK): New fallback definition.
21814
21815 2007-03-22  Bruno Haible  <bruno@clisp.org>
21816
21817         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
21818         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
21819         (main): Update.
21820         Fixes a compilation error on BeOS.
21821
21822 2007-03-22  Bruno Haible  <bruno@clisp.org>
21823
21824         * modules/frexpl-tests: New file.
21825         * tests/test-frexpl.c: New file.
21826
21827         * modules/frexpl: New file.
21828         * m4/frexpl.m4: New file.
21829         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
21830         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
21831         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
21832         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
21833         (Depends-on): Add frexpl. Remove isnanl-nolibm.
21834         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
21835
21836 2007-03-22  Bruno Haible  <bruno@clisp.org>
21837
21838         * lib/frexpl.c: Share code with lib/frexp.c.
21839         * modules/mathl (Files): Add lib/frexp.c.
21840         (Depends-on): Add isnanl-nolibm.
21841
21842 2007-03-22  Bruno Haible  <bruno@clisp.org>
21843
21844         * modules/printf-frexp (Files): Add m4/frexp.m4.
21845         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
21846         only if the found frexp function actually works.
21847
21848 2007-03-22  Bruno Haible  <bruno@clisp.org>
21849
21850         * lib/frexp.c: Remove older implementation that uses divisions.
21851
21852 2007-03-21  Bruno Haible  <bruno@clisp.org>
21853
21854         * modules/frexp-tests: New file.
21855         * tests/test-frexp.c: New file.
21856
21857         * modules/frexp: New file.
21858         * lib/frexp.c: New file.
21859         * m4/frexp.m4: New file.
21860         * lib/math_.h (frexp): New declaration.
21861         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
21862         REPLACE_FREXP.
21863         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
21864
21865 2007-03-21  Bruno Haible  <bruno@clisp.org>
21866
21867         * modules/isnanl-tests: New file.
21868         * tests/test-isnanl.c: New file.
21869
21870         * modules/isnanl: New file.
21871         * lib/isnanl.h: New file.
21872         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
21873         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
21874         gl_FUNC_ISNANL_WORKS.
21875         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
21876         New macros.
21877
21878 2007-03-21  Bruno Haible  <bruno@clisp.org>
21879
21880         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
21881         lib/isnanl.h.
21882         (Include): Update.
21883         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
21884         * lib/vasnprintf.c: Update.
21885         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
21886         tests/test-isnanl.h, remove tests/test-isnanl.c.
21887         (Makefile.am): Update.
21888         * tests/test-isnanl-nolibm.c: New file.
21889         * tests/test-isnanl.h: New file.
21890         * tests/test-isnanl.c: Remove file.
21891
21892 2007-03-21  Jim Meyering  <jim@meyering.net>
21893
21894         When trying to open ".", treat ESTALE like EACCES.
21895         * lib/savewd.c (savewd_save): Resort to forking not just upon
21896         failure with EACCES, but also when errno is ESTALE.
21897
21898 2007-03-20  Bruno Haible  <bruno@clisp.org>
21899
21900         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
21901         Needed on AIX 5.1. Reported by Matthew Woehlke.
21902
21903 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21904
21905         Suggestions by Bruno Haible:
21906         * lib/acl-internal.h: Include "gettext.h" rather than rolling
21907         our own.
21908         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
21909         * modules/acl (Depends-on): Add gettext.
21910
21911 2007-03-19  Bruno Haible  <bruno@clisp.org>
21912
21913         * modules/iconvme: Remove file.
21914         * lib/iconvme.h: Remove file.
21915         * lib/iconvme.c: Remove file.
21916         * m4/iconvme.m4: Remove file.
21917
21918 2007-03-19  Bruno Haible  <bruno@clisp.org>
21919
21920         * doc/relocatable-maint.texi: Break long shell script line.
21921         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
21922
21923 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21924
21925         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
21926         handle file_has_acl.
21927         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
21928         * lib/acl.c: Move header inclusions and related macro defns into
21929         lib/acl-internal.h.
21930         (S_ISLNK): Remove defn, since that's now done for us.
21931         (file_has_acl): Move to lib/file-has-acl.c.
21932         Call acl_trivial if available.  This is the crucial part of the fix.
21933         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
21934         shared within the library.  Rewrite a bit, partly to make it compatible
21935         with the GNU coding style.
21936         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
21937         Remove unnecessary double-quotes.
21938         Don't test for acl_to_text; the build will catch that.
21939         Replace acl_entries if it doesn't exist and it is needed.
21940         Check for -lsec and acl_trivial (as used on Solaris 10).
21941         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
21942         lib/file-has-acl.c.
21943         (Depends-on): Add sys_stat, for S_ISLNK.
21944
21945 2007-03-19  Ben Pfaff  <blp@gnu.org>
21946
21947         * doc/gnulib.texi: Fix typos.
21948         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
21949
21950 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21951
21952         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
21953         If size is zero here, buf must be zero.
21954
21955 2007-03-19  Simon Josefsson  <simon@josefsson.org>
21956
21957         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
21958         <bruno@clisp.org>.
21959
21960 2007-03-18  Bruno Haible  <bruno@clisp.org>
21961
21962         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
21963         Suggested by Eric Blake.
21964
21965 2007-03-18  Ben Pfaff  <blp@gnu.org>
21966
21967         * doc/relocatable.texi: Recommend using as prefix a directory
21968         that does not exist and will never be created.  Based on
21969         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
21970         and others.
21971
21972 2007-03-17  Bruno Haible  <bruno@clisp.org>
21973
21974         * lib/fchownat.c: Include lchown.h.
21975
21976 2007-03-17  Bruno Haible  <bruno@clisp.org>
21977
21978         Fix endless loop when the given allocated size was > INT_MAX.
21979         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
21980         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
21981         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
21982         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
21983         * lib/sprintf.c (sprintf): Likewise.
21984
21985 2007-03-17  Bruno Haible  <bruno@clisp.org>
21986
21987         * tests/test-argp-2.sh (func_compare): Output a context diff.
21988
21989 2007-03-17  Bruno Haible  <bruno@clisp.org>
21990
21991         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
21992         locale's decimal-point character.
21993
21994 2007-03-17  Bruno Haible  <bruno@clisp.org>
21995
21996         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
21997         before comparing it. Needed because on some platforms (e.g. x86) a
21998         'long double' occupies less bytes than sizeof (long double).
21999
22000 2007-03-17  Bruno Haible  <bruno@clisp.org>
22001
22002         * tests/test-crc.c (main): Make printf statements 64-bit clean.
22003         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
22004         * tests/test-getaddrinfo.c (simple): Likewise.
22005         * tests/test-read-file.c (main): Likewise.
22006
22007 2007-03-17  Bruno Haible  <bruno@clisp.org>
22008
22009         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
22010
22011 2007-03-17  Bruno Haible  <bruno@clisp.org>
22012
22013         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
22014         unused variable.
22015
22016 2007-03-17  Bruno Haible  <bruno@clisp.org>
22017
22018         * tests/test-c-strcasecmp.c: Include c-strcase.h.
22019         * tests/test-c-strncasecmp.c: Likewise.
22020
22021 2007-03-17  Bruno Haible  <bruno@clisp.org>
22022
22023         * modules/stdlib (Depends-on): Add unistd.
22024         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
22025         Needed for MacOS X 10.3.
22026
22027 2007-03-17  Bruno Haible  <bruno@clisp.org>
22028
22029         * lib/unistr/u-strdup.h: Include <stdlib.h>.
22030
22031 2007-03-17  Bruno Haible  <bruno@clisp.org>
22032
22033         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
22034
22035 2007-03-17  Bruno Haible  <bruno@clisp.org>
22036
22037         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
22038         to reflect files copied from gnulib (with or without modifications).
22039         Suggested by Jim Meyering.
22040
22041 2007-03-17  Eric Blake  <ebb9@byu.net>
22042
22043         * NEWS: Document stdlib change from 2007-02-18.
22044
22045 2007-03-17  Jim Meyering  <jim@meyering.net>
22046
22047         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
22048         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
22049         someone uses a name containing shell meta-characters.
22050         Reported by Alfred M. Szmidt.
22051
22052         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
22053
22054 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
22055
22056         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
22057         and copy gettext configuration files only if configure.ac contains
22058         a use of AM_GNU_GETTEXT_VERSION.
22059
22060 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
22061
22062         * build-aux/bootstrap (gnulib_name): New variable.
22063         (gnulib_tool_options): Use it.
22064
22065 2007-03-13  Simon Josefsson  <simon@josefsson.org>
22066
22067         * tests/test-des.c: Use new namespace.
22068
22069 2007-03-15  Bruno Haible  <bruno@clisp.org>
22070
22071         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
22072         Reported by James Youngman <jay@gnu.org>.
22073
22074 2007-03-15  Bruno Haible  <bruno@clisp.org>
22075
22076         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
22077         declared prototype. Needed with cc on OSF/1 5.1.
22078
22079 2007-03-15  Bruno Haible  <bruno@clisp.org>
22080
22081         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
22082         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
22083         (struct gl_list_implementation): Add dispose_fn argument to the
22084         'create_empty', 'create' methods.
22085         (struct gl_list_impl_base): Add field 'dispose_fn'.
22086         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
22087         argument.
22088         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
22089         dispose_fn argument.
22090         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
22091         dispose_fn on the dropped values.
22092         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
22093         dispose_fn argument.
22094         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
22095         dropped values.
22096         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
22097         (gl_tree_remove_node): Call dispose_fn on the dropped value.
22098         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
22099         (gl_tree_remove_node): Call dispose_fn on the dropped value.
22100         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
22101         argument.
22102         (gl_tree_list_free): Call dispose_fn on the dropped values.
22103         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
22104         the dropped values.
22105         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
22106         Add dispose_fn argument.
22107         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
22108         Call dispose_fn on the dropped values.
22109         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
22110         Add dispose_fn argument.
22111         (gl_sublist_create): Initialize the 'dispose_fn' field.
22112         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
22113         * tests/test-array_list.c (main): Update.
22114         * tests/test-carray_list.c (main): Update.
22115         * tests/test-avltree_list.c (main): Update.
22116         * tests/test-rbtree_list.c (main): Update.
22117         * tests/test-avltreehash_list.c (main): Update.
22118         * tests/test-rbtreehash_list.c (main): Update.
22119         * tests/test-linked_list.c (main): Update.
22120         * tests/test-linkedhash_list.c (main): Update.
22121         * tests/test-array_oset.c (main): Update.
22122
22123 2007-03-15  Bruno Haible  <bruno@clisp.org>
22124
22125         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
22126         (gl_oset_create_empty): Add dispose_fn argument.
22127         (struct gl_oset_implementation): Add dispose_fn argument to
22128         'create_empty' method.
22129         (struct gl_oset_impl_base): Add dispose_fn field.
22130         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
22131         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
22132         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
22133         values.
22134         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
22135         (gl_tree_oset_free): Call dispose_fn on the dropped values.
22136         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
22137         dropped value.
22138         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
22139         dropped value.
22140         * tests/test-array_oset.c (main): Update.
22141         * tests/test-avltree_oset.c (main): Update.
22142         * tests/test-rbtree_oset.c (main): Update.
22143         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
22144
22145 2007-03-13  Bruno Haible  <bruno@clisp.org>
22146
22147         * tests/test-stdbool.c (i): Update after last patch.
22148
22149 2007-03-12  Bruno Haible  <bruno@clisp.org>
22150
22151         * lib/quotearg.c: Include <wctype.h> early, before the definition of
22152         the iswprint macro. Needed on Solaris 2.5.1.
22153
22154 2007-03-12  Bruno Haible  <bruno@clisp.org>
22155
22156         * tests/test-printf-frexp.c (main): Declare x as volatile.
22157
22158 2007-03-12  Simon Josefsson  <simon@josefsson.org>
22159
22160         * doc/gnulib.texi (Build robot for gnulib): New section.
22161
22162 2007-03-12  Jim Meyering  <jim@meyering.net>
22163
22164         * build-aux/bootstrap: New file.
22165         * build-aux/bootstrap.conf: New file, from coreutils.
22166
22167 2007-03-11  Bruno Haible  <bruno@clisp.org>
22168
22169         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
22170
22171 2007-03-12  Simon Josefsson  <simon@josefsson.org>
22172
22173         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
22174         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
22175         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
22176
22177 2007-03-11  Bruno Haible  <bruno@clisp.org>
22178
22179         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
22180         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
22181
22182 2007-03-11  Bruno Haible  <bruno@clisp.org>
22183
22184         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
22185         formula. Needed for SunPRO C 5.0.
22186
22187 2007-03-11  Bruno Haible  <bruno@clisp.org>
22188
22189         * modules/long-options (Depends-on): Add getopt.
22190
22191 2007-03-11  Bruno Haible  <bruno@clisp.org>
22192
22193         * modules/modechange (Depends-on): Add stdbool.
22194
22195 2007-03-11  Bruno Haible  <bruno@clisp.org>
22196
22197         * modules/i-ring (Depends-on): Add stdbool.
22198
22199 2007-03-11  Bruno Haible  <bruno@clisp.org>
22200
22201         * modules/gc-des (Depends-on): Add stdbool.
22202
22203 2007-03-11  Bruno Haible  <bruno@clisp.org>
22204
22205         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
22206
22207 2007-03-11  Bruno Haible  <bruno@clisp.org>
22208
22209         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
22210
22211 2007-03-11  Bruno Haible  <bruno@clisp.org>
22212
22213         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
22214
22215 2007-03-11  Bruno Haible  <bruno@clisp.org>
22216
22217         * lib/vasnprintf.c (sprintf): Undefine.
22218
22219 2007-03-11  Bruno Haible  <bruno@clisp.org>
22220
22221         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
22222         initializers in SunPRO C and Compaq C compilers.
22223
22224 2007-03-11  Bruno Haible  <bruno@clisp.org>
22225
22226         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
22227         decrementing code ANSI C compliant.
22228
22229 2007-03-11  Bruno Haible  <bruno@clisp.org>
22230
22231         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
22232         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
22233
22234 2007-03-11  Bruno Haible  <bruno@clisp.org>
22235
22236         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
22237         <stdbool.h> substitute doesn't pass.
22238
22239 2007-03-11  Bruno Haible  <bruno@clisp.org>
22240
22241         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
22242
22243 2007-03-11  Bruno Haible  <bruno@clisp.org>
22244
22245         * gnulib-tool (func_create_megatestdir): Create also an autobuild
22246         script, for submission to autobuild.josefsson.org.
22247
22248 2007-03-10  Bruno Haible  <bruno@clisp.org>
22249
22250         * modules/canonicalize-lgpl-tests: New file.
22251         * tests/test-canonicalize-lgpl.sh: New file.
22252         * tests/test-canonicalize-lgpl.c: New file.
22253
22254         * modules/c-strcase-tests: New file.
22255         * tests/test-c-strcase.sh: New file.
22256         * tests/test-c-strcasecmp.c: New file.
22257         * tests/test-c-strncasecmp.c: New file.
22258
22259         * modules/atexit-tests: New file.
22260         * tests/test-atexit.sh: New file.
22261         * tests/test-atexit.c: New file.
22262
22263 2007-03-10  Bruno Haible  <bruno@clisp.org>
22264
22265         * tests/test-binary-io.sh: Use temporary filenames that are not so
22266         likely to clash with those of other tests (in a parallel make).
22267         * tests/test-binary-io.c: Likewise.
22268
22269 2007-03-10  Bruno Haible  <bruno@clisp.org>
22270
22271         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
22272         fallback; use #error instead.
22273         Suggested by Simon Josefsson.
22274
22275 2007-03-10  Bruno Haible  <bruno@clisp.org>
22276
22277         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
22278         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
22279         first and the last.
22280
22281 2007-03-10  Bruno Haible  <bruno@clisp.org>
22282
22283         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
22284
22285 2007-03-10  Bruno Haible  <bruno@clisp.org>
22286
22287         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
22288         "make distcheck".
22289         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
22290         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
22291         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
22292
22293 2007-03-10  Bruno Haible  <bruno@clisp.org>
22294
22295         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
22296         variable.
22297         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
22298         variable.
22299
22300 2007-03-09  Eric Blake  <ebb9@byu.net>
22301         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
22302
22303         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
22304         types are not being provided by gnulib.
22305         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
22306         types are supported.
22307
22308 2007-03-10  Bruno Haible  <bruno@clisp.org>
22309
22310         * lib/stdio_.h (__attribute__): New macro.
22311         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
22312         vsprintf): Specify __attribute__ __format__ for GCC.
22313         Suggested by Eric Blake.
22314
22315 2007-03-09  Bruno Haible  <bruno@clisp.org>
22316
22317         * modules/printf-posix-tests: New file.
22318         * tests/test-printf-posix.sh: New file.
22319         * tests/test-printf-posix.c: New file.
22320
22321         * modules/printf-posix: New file.
22322         * lib/printf.c: New file.
22323         * m4/printf-posix-rpl.m4: New file.
22324         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
22325         REPLACE_PRINTF.
22326         * lib/stdio_.h (printf): New declaration.
22327         (format, __format__, ____printf____, ____scanf____, ____strftime____,
22328         ____strfmon____): New macros.
22329         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
22330         REPLACE_PRINTF.
22331
22332 2007-03-09  Bruno Haible  <bruno@clisp.org>
22333
22334         * tests/test-vasnprintf-posix2.sh: New file.
22335         * tests/test-vasnprintf-posix2.c: New file.
22336         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
22337         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
22338         (Makefile.am): Activate test-vasnprintf-posix2.sh.
22339
22340         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
22341         a locale dependent decimal point, rather than always '.'.
22342
22343 2007-03-09  Eric Blake  <ebb9@byu.net>
22344
22345         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
22346         spite of platforms like Tandem/NSK that define it to -1.
22347
22348 2007-03-08  Bruno Haible  <bruno@clisp.org>
22349
22350         * modules/vprintf-posix-tests: New file.
22351         * tests/test-vprintf-posix.sh: New file.
22352         * tests/test-vprintf-posix.c: New file.
22353         * tests/test-printf-posix.h: New file.
22354
22355         * modules/vprintf-posix: New file.
22356         * lib/vprintf.c: New file.
22357         * m4/vprintf-posix.m4: New file.
22358         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
22359         REPLACE_VPRINTF.
22360         * lib/stdio_.h (vprintf): New declaration.
22361         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
22362         REPLACE_VPRINTF.
22363
22364 2007-03-08  Bruno Haible  <bruno@clisp.org>
22365
22366         * modules/fprintf-posix-tests: New file.
22367         * tests/test-fprintf-posix.sh: New file.
22368         * tests/test-fprintf-posix.c: New file.
22369
22370         * modules/fprintf-posix: New file.
22371         * lib/fprintf.c: New file.
22372         * m4/fprintf-posix.m4: New file.
22373         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
22374         REPLACE_FPRINTF.
22375         * lib/stdio_.h (fprintf): New declaration.
22376         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
22377         REPLACE_FPRINTF.
22378
22379 2007-03-08  Bruno Haible  <bruno@clisp.org>
22380
22381         * modules/vfprintf-posix-tests: New file.
22382         * tests/test-vfprintf-posix.sh: New file.
22383         * tests/test-vfprintf-posix.c: New file.
22384         * tests/test-fprintf-posix.h: New file.
22385         * tests/test-fprintf-posix.out: New file.
22386
22387         * modules/vfprintf-posix: New file.
22388         * lib/vfprintf.c: New file.
22389         * m4/vfprintf-posix.m4: New file.
22390         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
22391         REPLACE_VFPRINTF.
22392         * lib/stdio_.h (vfprintf): New declaration.
22393         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
22394         REPLACE_VFPRINTF.
22395
22396 2007-03-08  Bruno Haible  <bruno@clisp.org>
22397
22398         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
22399
22400 2007-03-08  Bruno Haible  <bruno@clisp.org>
22401
22402         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
22403         instead of 'expr' invocations.
22404         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22405         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22406         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22407         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22408         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22409         Suggested by Paul Eggert.
22410
22411 2007-03-08  Bruno Haible  <bruno@clisp.org>
22412
22413         * modules/fseterr-tests: New file.
22414         * tests/test-fseterr.c: New file.
22415
22416         * modules/fseterr: New file.
22417         * lib/fseterr.h: New file.
22418         * lib/fseterr.c: New file.
22419
22420 2007-03-08  Bruno Haible  <bruno@clisp.org>
22421
22422         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
22423         * lib/getopt_.h: Likewise.
22424         * lib/mbswidth.h: Likewise.
22425         * lib/setenv.h: Likewise.
22426         * lib/vasnprintf.h: Likewise.
22427         * lib/vasprintf.h: Likewise.
22428         * lib/verror.h: Likewise.
22429         * lib/xsetenv.h: Likewise.
22430         * lib/xvasprintf.h: Likewise.
22431
22432 2007-03-08  Jim Meyering  <jim@meyering.net>
22433
22434         * users.txt: Add parted.
22435
22436         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
22437
22438 2007-03-07  Bruno Haible  <bruno@clisp.org>
22439
22440         * m4/printf.m4: Make the shell script snippets copy&pastable.
22441
22442 2007-03-02  Bruno Haible  <bruno@clisp.org>
22443
22444         * lib/netinet_in_.h: New file.
22445         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
22446         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
22447         * modules/netinet_in (Files): Add lib/netinet_in_.h.
22448         (Depends-on): Add absolute-header.
22449         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
22450         into netinet/in.h.
22451
22452 2007-03-03  Bruno Haible  <bruno@clisp.org>
22453
22454         * lib/sys_select_.h: New file.
22455         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
22456         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
22457         * modules/sys_select (Files): Add lib/sys_select_.h.
22458         (Depends-on): Add absolute-header.
22459         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
22460         into sys/select.h.
22461
22462 2007-03-02  Bruno Haible  <bruno@clisp.org>
22463
22464         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
22465         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
22466         values.
22467         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
22468         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
22469         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
22470         * modules/sys_socket (Depends-on): Add absolute-header.
22471         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
22472         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
22473         (Include): Remove requirement of inclusion of <sys/types.h>.
22474
22475 2007-03-02  Bruno Haible  <bruno@clisp.org>
22476
22477         * lib/byteswap_.h (bswap_32): Fix formula.
22478
22479 2007-03-06  Bruno Haible  <bruno@clisp.org>
22480
22481         * modules/sprintf-posix-tests: New file.
22482         * tests/test-sprintf-posix.c: New file.
22483
22484         * modules/sprintf-posix: New file.
22485         * lib/sprintf.c: New file.
22486         * m4/sprintf-posix.m4: New file.
22487         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
22488         REPLACE_SPRINTF.
22489         * lib/stdio_.h (sprintf): New declaration.
22490         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
22491         REPLACE_SPRINTF.
22492
22493 2007-03-06  Bruno Haible  <bruno@clisp.org>
22494
22495         * modules/vsprintf-posix-tests: New file.
22496         * tests/test-vsprintf-posix.c: New file.
22497         * tests/test-sprintf-posix.h: New file.
22498
22499         * modules/vsprintf-posix: New file.
22500         * lib/vsprintf.c: New file.
22501         * m4/vsprintf-posix.m4: New file.
22502         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
22503         REPLACE_VSPRINTF.
22504         * lib/stdio_.h (vsprintf): New declaration.
22505         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
22506         REPLACE_VSPRINTF.
22507
22508 2007-03-06  Bruno Haible  <bruno@clisp.org>
22509
22510         * modules/vsnprintf (Depend-on): Remove minmax.
22511
22512 2007-03-06  Bruno Haible  <bruno@clisp.org>
22513
22514         * modules/snprintf-posix-tests: New file.
22515         * tests/test-snprintf-posix.c: New file.
22516
22517         * modules/snprintf-posix: New file.
22518         * m4/snprintf-posix.m4: New file.
22519         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
22520         gl_FUNC_SNPRINTF.
22521         (gl_FUNC_SNPRINTF): Invoke it.
22522         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
22523         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
22524         is set.
22525         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
22526
22527 2007-03-06  Bruno Haible  <bruno@clisp.org>
22528
22529         * modules/vsnprintf-posix-tests: New file.
22530         * tests/test-vsnprintf-posix.c: New file.
22531         * tests/test-snprintf-posix.h: New file.
22532
22533         * modules/vsnprintf-posix: New file.
22534         * m4/vsnprintf-posix.m4: New file.
22535         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
22536         gl_FUNC_VSNPRINTF.
22537         (gl_FUNC_VSNPRINTF): Invoke it.
22538         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
22539         * lib/stdio_.h (vsnprintf): Define as a replacement if
22540         REPLACE_VSNPRINTF is set.
22541         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
22542
22543 2007-03-06  Bruno Haible  <bruno@clisp.org>
22544
22545         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
22546         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
22547
22548 2007-03-06  Bruno Haible  <bruno@clisp.org>
22549
22550         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
22551         (asinl): Declare also if HAVE_DECL_ASINL is set.
22552         (atanl): Declare also if HAVE_DECL_ATANL is set.
22553         (ceill): Declare also if HAVE_DECL_CEILL is set.
22554         (cosl): Declare also if HAVE_DECL_COSL is set.
22555         (expl): Declare also if HAVE_DECL_EXPL is set.
22556         (floorl): Declare also if HAVE_DECL_FLOORL is set.
22557         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
22558         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
22559         (logl): Declare also if HAVE_DECL_LOGL is set.
22560         (sinl): Declare also if HAVE_DECL_SINL is set.
22561         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
22562         (tanl): Declare also if HAVE_DECL_TANL is set.
22563         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
22564         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
22565         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
22566         declaration of frexpl, ldexpl.
22567         * modules/printf-frexpl (Depends-on): Add math.
22568         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
22569
22570 2007-03-05  Bruno Haible  <bruno@clisp.org>
22571
22572         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
22573         frexpl and ldexpl are declared.
22574         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
22575
22576 2007-03-05  Bruno Haible  <bruno@clisp.org>
22577
22578         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
22579         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
22580
22581 2007-03-05  Bruno Haible  <bruno@clisp.org>
22582
22583         * lib/stdio_.h: Include <stddef.h>.
22584
22585 2007-03-05  Bruno Haible  <bruno@clisp.org>
22586
22587         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
22588
22589 2007-03-05  Bruno Haible  <bruno@clisp.org>
22590
22591         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
22592         NetBSD 4, from Ralf Wildenhues.
22593
22594 2007-03-04  Bruno Haible  <bruno@clisp.org>
22595
22596         * lib/vasprintf.h: Update #if logic for the case when the functions
22597         exist but are overridden.
22598
22599 2007-03-04  Bruno Haible  <bruno@clisp.org>
22600
22601         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
22602         implementations: glibc-2.4 and MacOS X 10.3.
22603         * tests/test-vasnprintf-posix.c (test_function): Test also the case
22604         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
22605         * tests/test-vasprintf-posix.c (test_function): Likewise.
22606
22607 2007-03-04  Bruno Haible  <bruno@clisp.org>
22608
22609         * modules/vasprintf-posix-tests: New file.
22610         * tests/test-vasprintf-posix.c: New file.
22611
22612         * modules/vasprintf-posix: New file.
22613         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
22614         defined.
22615         * m4/vasprintf-posix.m4: New file.
22616         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
22617         gl_FUNC_VASPRINTF.
22618         (gl_FUNC_VASPRINTF): Invoke it.
22619         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
22620         here.
22621         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
22622
22623 2007-03-04  Bruno Haible  <bruno@clisp.org>
22624
22625         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
22626         REPLACE_GETTIMEOFDAY.
22627         * modules/sys_time (Makefile.am): Likewise.
22628         * m4/sys_time_h.m4: Likewise.
22629         * m4/gettimeofday.m4: Likewise.
22630
22631 2007-03-04  Bruno Haible  <bruno@clisp.org>
22632
22633         * modules/vasnprintf-posix-tests: New file.
22634         * tests/test-vasnprintf-posix.c: New file.
22635
22636         * modules/vasnprintf-posix: New file.
22637         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
22638         printf-frexpl.h.
22639         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
22640         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
22641         REPLACE_VASNPRINTF is defined.
22642         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
22643         gl_FUNC_VASNPRINTF.
22644         (gl_FUNC_VASNPRINTF): Invoke it.
22645         * m4/vasnprintf-posix.m4: New file.
22646         * m4/printf.m4: New file.
22647
22648 2007-03-04  Bruno Haible  <bruno@clisp.org>
22649
22650         Compile progreloc.c only if --enable-relocatable is specified.
22651         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
22652         if --enable-relocatable was specified.
22653         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
22654         lib_SOURCES.
22655
22656 2007-03-04  Jim Meyering  <jim@meyering.net>
22657
22658         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
22659         Use it consistently, rather than enumerating errno constants.
22660
22661 2007-03-04  Bruno Haible  <bruno@clisp.org>
22662
22663         * modules/xvasprintf-tests: New file.
22664         * tests/test-xvasprintf.c: New file.
22665
22666         * modules/vasprintf-tests: New file.
22667         * tests/test-vasprintf.c: New file.
22668
22669         * modules/vasnprintf-tests: New file.
22670         * tests/test-vasnprintf.c: New file.
22671
22672         * modules/vsnprintf-tests: New file.
22673         * tests/test-vsnprintf.c: New file.
22674
22675         * modules/snprintf-tests: New file.
22676         * tests/test-snprintf.c: New file.
22677
22678 2007-03-04  Bruno Haible  <bruno@clisp.org>
22679
22680         Compile relocatable.c only if --enable-relocatable is specified.
22681         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
22682         gl_RELOCATABLE_LIBRARY.
22683         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
22684         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
22685         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
22686         gl_RELOCATABLE_LIBRARY.
22687         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
22688         (Makefile.am): Remove lib_SOURCES.
22689         * modules/relocatable-lib-lgpl (configure.ac): Invoke
22690         gl_RELOCATABLE_LIBRARY.
22691         (Makefile.am): Remove lib_SOURCES.
22692         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
22693         always.
22694         * modules/relocatable-prog-wrapper (configure.ac): Invoke
22695         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
22696
22697 2007-03-04  Bruno Haible  <bruno@clisp.org>
22698
22699         * modules/argmatch-tests: New file.
22700         * tests/test-argmatch.c: New file.
22701
22702         * tests/test-allocsa.c (main): Halve the number of loop runs.
22703
22704         * modules/alloca-opt-tests: New file.
22705         * tests/test-alloca-opt.c: New file.
22706
22707 2007-03-04  Jim Meyering  <jim@meyering.net>
22708
22709         Work around difference between Linux ACLs and Solaris 10 ZFS.
22710         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
22711         for EINVAL.
22712
22713 2007-03-03  Bruno Haible  <bruno@clisp.org>
22714
22715         * modules/relocatable-prog (Depends-on): Add back progreloc's
22716         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
22717
22718 2007-03-03  Bruno Haible  <bruno@clisp.org>
22719
22720         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
22721         * modules/relocatable-lib: New file.
22722
22723 2007-03-03  Bruno Haible  <bruno@clisp.org>
22724
22725         * modules/relocatable-prog: Renamed from modules/relocatable.
22726         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
22727
22728 2007-03-03  Bruno Haible  <bruno@clisp.org>
22729
22730         * modules/relocatable-script (Files): Add doc/relocatable.texi,
22731         m4/relocatable-lib.m4.
22732         (Depends-on): Remove 'relocatable'.
22733         (configure.ac): Add gl_RELOCATABLE_NOP.
22734
22735 2007-03-03  Bruno Haible  <bruno@clisp.org>
22736
22737         * modules/relocatable-prog-wrapper: New file.
22738         * modules/relocatable (Depends-on): Add it. Remove all other
22739         dependencies except progname.
22740         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
22741
22742         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
22743         (gl_FUNC_STRERROR): Nop.
22744         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
22745
22746         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
22747         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
22748
22749         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
22750         (gl_FUNC_READLINK): Update.
22751
22752         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
22753
22754 2007-03-03  Bruno Haible  <bruno@clisp.org>
22755
22756         * lib/xreadlink.c: Include <unistd.h> unconditionally.
22757         * modules/xreadlink (Depends-on): Add unistd.
22758         * modules/xreadlink-with-size (Depends-on): Likewise.
22759
22760 2007-03-03  Bruno Haible  <bruno@clisp.org>
22761
22762         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
22763         extracted from gt_FUNC_SETENV.
22764         (gt_FUNC_SETENV): Remove macro.
22765         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
22766         remove gt_FUNC_SETENV.
22767
22768 2007-03-03  Bruno Haible  <bruno@clisp.org>
22769
22770         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
22771         ENABLE_RELOCATABLE here.
22772         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
22773
22774 2007-03-03  Bruno Haible  <bruno@clisp.org>
22775
22776         * modules/rbtreehash-list-tests (Depends-on): Add progname.
22777         * tests/test-rbtreehash_list.c: Include progname.h.
22778         (main): Call set_program_name.
22779
22780         * modules/rbtree-oset-tests (Depends-on): Add progname.
22781         * tests/test-rbtree_oset.c: Include progname.h.
22782         (main): Call set_program_name.
22783
22784         * modules/rbtree-list-tests (Depends-on): Add progname.
22785         * tests/test-rbtree_list.c: Include progname.h.
22786         (main): Call set_program_name.
22787
22788         * modules/linked-list-tests (Depends-on): Add progname.
22789         * tests/test-linked_list.c: Include progname.h.
22790         (main): Call set_program_name.
22791
22792 2007-03-03  Bruno Haible  <bruno@clisp.org>
22793
22794         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
22795         All uses of __restrict changed to _Restrict_.
22796         * lib/glob_.h (__restrict): Remove macro.
22797
22798 2007-03-02  Bruno Haible  <bruno@clisp.org>
22799
22800         * modules/gettext (configure.ac): Require gettext infrastructure
22801         from version 0.16.1.
22802
22803 2007-03-02  Bruno Haible  <bruno@clisp.org>
22804
22805         * modules/linkedhash-list-tests (Depends-on): Add progname.
22806         * tests/test-linkedhash_list.c: Include progname.h.
22807         (main): Call set_program_name.
22808
22809         * modules/carray-list-tests (Depends-on): Add progname.
22810         * tests/test-carray_list.c: Include progname.h.
22811         (main): Call set_program_name.
22812
22813         * modules/avltreehash-list-tests (Depends-on): Add progname.
22814         * tests/test-avltreehash_list.c: Include progname.h.
22815         (main): Call set_program_name.
22816
22817         * modules/avltree-oset-tests (Depends-on): Add progname.
22818         * tests/test-avltree_oset.c: Include progname.h.
22819         (main): Call set_program_name.
22820
22821         * modules/avltree-list-tests (Depends-on): Add progname.
22822         * tests/test-avltree_list.c: Include progname.h.
22823         (main): Call set_program_name.
22824
22825         * modules/array-oset-tests (Depends-on): Add progname.
22826         * tests/test-array_oset.c: Include progname.h.
22827         (main): Call set_program_name.
22828
22829         * modules/array-list-tests (Depends-on): Add progname.
22830         * tests/test-array_list.c: Include progname.h.
22831         (main): Call set_program_name.
22832
22833         * modules/argp-tests (Depends-on): Add progname.
22834         * tests/test-argp.c: Include argp.h first. Include progname.h.
22835         (main): Call set_program_name.
22836
22837 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
22838
22839         * doc/gnulib-tool.texi (Initial import): Reword description of
22840         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
22841         limited effect even if defined after the first system include.
22842
22843 2007-03-01  Bruno Haible  <bruno@clisp.org>
22844
22845         * build-aux/config.libpath: Update to libtool-1.5.22.
22846         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22847
22848 2007-03-01  Bruno Haible  <bruno@clisp.org>
22849
22850         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
22851         foo_CFLAGS.
22852         Reported by Ralf Wildenhues.
22853
22854 2007-03-01  Bruno Haible  <bruno@clisp.org>
22855
22856         * build-aux/install-reloc: Remove object files left over by some
22857         compilers.
22858         Reported by Ralf Wildenhues.
22859
22860 2007-03-01  Bruno Haible  <bruno@clisp.org>
22861
22862         * build-aux/install-reloc: Break long lines.
22863
22864 2007-03-01  Bruno Haible  <bruno@clisp.org>
22865
22866         * doc/relocatable.texi: Document that it may not work on OpenBSD.
22867         Reported by Ralf Wildenhues.
22868
22869 2007-03-01  Bruno Haible  <bruno@clisp.org>
22870
22871         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
22872         include ordering constraints.
22873
22874 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
22875
22876         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
22877         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
22878         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
22879         as another example.
22880         * lib/time_.h: Fix misspelling.
22881         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
22882         Require gl_HEADER_TIME_H_DEFAULTS.
22883         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
22884         * m4/time_r.m4 (gl_TIME_R): Likewise.
22885         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
22886
22887 2007-03-01  Bruno Haible  <bruno@clisp.org>
22888
22889         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
22890         * m4/utimens.m4 (gl_UTIMENS): Likewise.
22891
22892 2007-03-01  Jim Meyering  <jim@meyering.net>
22893
22894         * modules/xreadlink (Maintainer): Add my name.
22895         * modules/xreadlink-with-size (Depends-on): Alphabetize.
22896
22897 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
22898             Bruno Haible  <bruno@clisp.org>
22899
22900         * build-aux/install-reloc: Compile also c-ctype.c.
22901         * build-aux/relocatable.sh.in: New file.
22902         * doc/relocatable.texi: New file.
22903         * doc/relocatable-maint.texi: New file.
22904         * doc/gnulib.texi: Include relocatable-maint.texi.
22905         * lib/progreloc.c: Include unistd.h unconditionally.
22906         * lib/relocwrapper.c: Include unistd.h unconditionally.
22907         Include c-ctype.h.
22908         (add_dotbin): Use c_tolower.
22909         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
22910         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
22911         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
22912         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
22913         to m4/relocatable-lib.m4.
22914         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
22915         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
22916         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
22917         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
22918         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
22919         * modules/relocatable: New file.
22920         * modules/relocatable-lib: New file.
22921         * modules/relocatable-script: New file.
22922
22923 2007-02-28  Bruno Haible  <bruno@clisp.org>
22924
22925         Import --enable-relocatable infrastructure.
22926         * build-aux/config.libpath: New file, from GNU gettext.
22927         * build-aux/install-reloc: New file, from GNU gettext.
22928         * build-aux/reloc-ldflags: New file, from GNU gettext.
22929         * lib/relocatable.h: New file, from GNU gettext.
22930         * lib/relocatable.c: New file, from GNU gettext.
22931         * lib/relocwrapper.c: New file, from GNU gettext.
22932         * m4/relocatable.m4: New file, from GNU gettext.
22933
22934 2007-02-28  Bruno Haible  <bruno@clisp.org>
22935
22936         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
22937
22938         * modules/xreadlink: New file, from GNU gettext with modifications.
22939         * lib/xreadlink.c: New file, from GNU gettext.
22940         * lib/xreadlink.h: Add comments.
22941         (xreadlink): New declaration.
22942
22943         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
22944         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
22945         lib/xreadlink-with-size.c.
22946         (configure.ac): Remove gl_XREADLINK invocation.
22947         (Makefile.am): Augment lib_SOURCES.
22948         * m4/xreadlink.m4: Remove file.
22949         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
22950         (xreadlink_with_size): Renamed from xreadink.
22951         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
22952         * modules/canonicalize (Depends-on): Replace xreadlink with
22953         xreadlink-with-size.
22954         * lib/canonicalize.c (canonicalize_filename_mode): Update.
22955
22956 2007-02-25  Jim Meyering  <jim@meyering.net>
22957
22958         * build-aux/announce-gen: When complaining about excess arguments,
22959         list them.
22960
22961 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
22962
22963         * README: Document signed integer overflow situation more
22964         accurately.
22965
22966 2007-02-25  Bruno Haible  <bruno@clisp.org>
22967
22968         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
22969         'a' or 'A' conversion.
22970
22971 2007-02-25  Bruno Haible  <bruno@clisp.org>
22972
22973         * modules/filename: Renamed from modules/pathname.
22974         (Files): Replace lib/pathname.h with lib/filename.h. Replace
22975         lib/concatpath.c with lib/concat-filename.c.
22976         (Makefile.am): Update.
22977         (Include): Replace pathname.h with filename.h.
22978         * lib/filename.h: Renamed from lib/pathname.h.
22979         (concatenated_filename): Renamed from concatenated_pathname.
22980         * lib/concat-filename.c: Renamed from lib/concatpath.c.
22981         (concatenated_filename): Renamed from concatenated_pathname.
22982         * lib/findprog.c: Include filename.h instead of pathname.h.
22983         (find_in_path): Update.
22984         * lib/javacomp.c: Include filename.h instead of pathname.h.
22985         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
22986         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
22987         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
22988         is_oldgcj_14_13_usable, is_javac_usable): Update.
22989         * lib/javaexec.c: Include filename.h instead of pathname.h.
22990         (execute_java_class): Update.
22991         * modules/findprog: Update.
22992         * modules/javacomp: Update.
22993         * modules/javaexec: Update.
22994         * MODULES.html.sh (File system functions): Add 'filename', remove
22995         'pathname'.
22996
22997 2007-02-25  Bruno Haible  <bruno@clisp.org>
22998
22999         * modules/printf-frexpl-tests: New file.
23000         * tests/test-printf-frexpl.c: New file.
23001
23002         * modules/printf-frexpl: New file.
23003         * lib/printf-frexpl.h: New file.
23004         * lib/printf-frexpl.c: New file.
23005         * m4/printf-frexpl.m4: New file.
23006
23007 2007-02-25  Bruno Haible  <bruno@clisp.org>
23008
23009         * modules/printf-frexp-tests: New file.
23010         * tests/test-printf-frexp.c: New file.
23011
23012         * modules/printf-frexp: New file.
23013         * lib/printf-frexp.h: New file.
23014         * lib/printf-frexp.c: New file.
23015         * m4/printf-frexp.m4: New file.
23016
23017 2007-02-25  Bruno Haible  <bruno@clisp.org>
23018
23019         Assume automake >= 1.10 for the tests.
23020         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
23021         * modules/arctwo-tests: Likewise.
23022         * modules/argp-tests: Likewise.
23023         * modules/avltree-list-tests: Likewise.
23024         * modules/avltree-oset-tests: Likewise.
23025         * modules/avltreehash-list-tests: Likewise.
23026         * modules/carray-list-tests: Likewise.
23027         * modules/crc-tests: Likewise.
23028         * modules/des-tests: Likewise.
23029         * modules/gc-arcfour-tests: Likewise.
23030         * modules/gc-arctwo-tests: Likewise.
23031         * modules/gc-des-tests: Likewise.
23032         * modules/gc-hmac-md5-tests: Likewise.
23033         * modules/gc-hmac-sha1-tests: Likewise.
23034         * modules/gc-md2-tests: Likewise.
23035         * modules/gc-md4-tests: Likewise.
23036         * modules/gc-md5-tests: Likewise.
23037         * modules/gc-pbkdf2-sha1-tests: Likewise.
23038         * modules/gc-rijndael-tests: Likewise.
23039         * modules/gc-sha1-tests: Likewise.
23040         * modules/gc-tests: Likewise.
23041         * modules/getaddrinfo-tests: Likewise.
23042         * modules/hmac-md5-tests: Likewise.
23043         * modules/hmac-sha1-tests: Likewise.
23044         * modules/linked-list-tests: Likewise.
23045         * modules/linkedhash-list-tests: Likewise.
23046         * modules/lock-tests: Likewise.
23047         * modules/md2-tests: Likewise.
23048         * modules/md4-tests: Likewise.
23049         * modules/md5-tests: Likewise.
23050         * modules/rbtree-list-tests: Likewise.
23051         * modules/rbtree-oset-tests: Likewise.
23052         * modules/rbtreehash-list-tests: Likewise.
23053         * modules/read-file-tests: Likewise.
23054         * modules/rijndael-tests: Likewise.
23055         * modules/stdint-tests: Likewise.
23056         * modules/tls-tests: Likewise.
23057
23058 2007-02-24  Bruno Haible  <bruno@clisp.org>
23059
23060         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
23061         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
23062         function; instead check whether isnan with a double argument links.
23063         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
23064         function; instead check whether isnan with a 'long double' argument
23065         links.
23066         Reported by Eric Blake <ebb9@byu.net>.
23067
23068 2007-02-24  Bruno Haible  <bruno@clisp.org>
23069
23070         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
23071         defined.
23072         * lib/isnanl.c: Remove all code. Just include isnan.c.
23073         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
23074
23075 2007-02-25  Jim Meyering  <jim@meyering.net>
23076
23077         Avoid conflicting types for 'unsetenv' on FreeBSD.
23078         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
23079         conflicting with FreeBSD's (5.0 and 6.1) function declaration
23080         in stdlib.h.
23081
23082 2007-02-24  Bruno Haible  <bruno@clisp.org>
23083
23084         * modules/isnanl-nolibm-tests: New file.
23085         * tests/test-isnanl.c: New file.
23086
23087         * modules/isnanl-nolibm: New file.
23088         * lib/isnanl.h: New file.
23089         * lib/isnanl.c: New file.
23090         * m4/isnanl.m4: New file.
23091
23092 2007-02-24  Bruno Haible  <bruno@clisp.org>
23093
23094         * modules/isnan-nolibm-tests: New file.
23095         * tests/test-isnan.c: New file.
23096
23097         * modules/isnan-nolibm: New file.
23098         * lib/isnan.h: New file.
23099         * lib/isnan.c: New file.
23100         * m4/isnan.m4: New file.
23101
23102 2007-02-24  Bruno Haible  <bruno@clisp.org>
23103
23104         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
23105         assume that an exponent fits in 20 bits.
23106
23107 2007-02-24  Jim Meyering  <jim@meyering.net>
23108
23109         * m4/regex.m4: Update the description of the configure-time option,
23110         --without-included-regex, to state accurately what the defaults are,
23111         and perhaps to give people an idea why using this option is risky.
23112
23113 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23114
23115         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
23116         loops on small arguments.  This attempts to avoid the problem
23117         Bruno Haible reported for AIX 4.3.2 in
23118         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
23119
23120 2007-02-23  Bruno Haible  <bruno@clisp.org>
23121
23122         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
23123         Needed for help2man.
23124
23125 2007-02-23  Karl Berry  <karl@gnu.org>
23126
23127         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
23128         exists, foo.h should be cvs-ignored, not committed.
23129
23130 2007-02-23  Eric Blake  <ebb9@byu.net>
23131
23132         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
23133         * lib/stat-time.h (includes): Likewise.
23134         * lib/utimecmp.c (includes): Likewise.
23135         * lib/utimens.h (includes): Likewise.
23136         * lib/getdate.y (includes): Also include "timespec.h" for use
23137         internal to the module.
23138         * modules/utimens (Depends-on): Revert yesterday's patch.
23139         * modules/nanosleep (Depends-on): Add missing dependency.
23140
23141 2007-02-22  Bruno Haible  <bruno@clisp.org>
23142
23143         * lib/glob.c: Don't include getlogin_r.h.
23144
23145 2007-02-22  Jim Meyering  <jim@meyering.net>
23146
23147         * modules/utimens (Depends-on): Add timespec, required for
23148         utimens.h's inclusion of timespec.h.
23149
23150 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
23151
23152         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
23153         long unreadable paths in GNU/Linux.  Problem reported by Andreas
23154         Schwab in
23155         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
23156         I'll try to think of a better way to fix the Solaris problem.
23157
23158         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
23159         like glibc; on Solaris 10, it fails with errno == EINVAL.
23160         POSIX says the behavior is unspecified if the first argument is NULL,
23161         so play it safe and never pass NULL to the system getcwd.
23162
23163 2007-02-21  Jim Meyering  <jim@meyering.net>
23164
23165         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
23166         of gettimeofday.  It would conflict with the one now always
23167         provided via sys_time_.h.  Reported by Matthew Woehlke, as
23168         an IRIX 6.5 build failure.
23169
23170 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
23171
23172         Minor fixups to port to Solaris 10 with Sun C 5.8.
23173         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
23174         * modules/getcwd (Depends-on): Add dirfd.
23175         * lib/putenv.c (putenv): #undef it.
23176         (rpl_putenv): New decl.
23177         (malloc, free): Include <stdlib.h> rather than prototyping separately.
23178
23179 2007-02-20  Bruno Haible  <bruno@clisp.org>
23180
23181         * modules/stdio-tests: New file.
23182         * tests/test-stdio.c: New file.
23183
23184         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
23185         (Depends-on): Add stdio.
23186         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
23187         (Include): Use <stdio.h> instead of vsnprintf.h.
23188         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
23189         HAVE_DECL_VSNPRINTF.
23190         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
23191
23192         * modules/snprintf (Files): Remove lib/snprintf.h.
23193         (Depends-on): Add stdio.
23194         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
23195         (Include): Use <stdio.h> instead of snprintf.h.
23196         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
23197         HAVE_DECL_SNPRINTF.
23198         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
23199         * lib/getaddrinfo.c: Likewise.
23200
23201         * modules/stdio: New file.
23202         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
23203         * lib/snprintf.h: Remove file.
23204         * lib/vsnprintf.h: Remove file.
23205         * lib/.cppi-disable: Remove snprintf.h.
23206         * m4/stdio_h.m4: New file.
23207         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
23208
23209 2007-02-20  Jim Meyering  <jim@meyering.net>
23210
23211         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
23212         used by e.g., mingw.  From Bruno Haible.
23213
23214 2007-02-19  Bruno Haible  <bruno@clisp.org>
23215
23216         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
23217         warnings.
23218         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23219
23220 2007-02-19  Bruno Haible  <bruno@clisp.org>
23221
23222         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
23223         from mingw users.
23224
23225 2007-02-19  Bruno Haible  <bruno@clisp.org>
23226
23227         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
23228         warnings.
23229         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
23230
23231 2007-02-19  Jim Meyering  <jim@meyering.net>
23232
23233         Don't use FD after a successful "fdopendir (fd)".
23234         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
23235         Reset it by calling dirfd on the just-obtained DIR*.
23236
23237         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
23238         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
23239
23240 2007-02-18  Bruno Haible  <bruno@clisp.org>
23241
23242         * lib/readlink.c: Include <unistd.h>.
23243         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
23244         HAVE_READLINK.
23245         * modules/readlink (Depends-on): Add unistd.
23246         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23247         (Include): Add <unistd.h>.
23248
23249         * lib/getlogin_r.h: Remove file.
23250         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
23251         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
23252         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
23253         HAVE_DECL_GETLOGIN_R.
23254         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
23255         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23256         (Include): Use <unistd.h> instead of getlogin_r.h.
23257
23258         * lib/getcwd.h: Remove file.
23259         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
23260         * lib/xgetcwd.c: Likewise.
23261         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
23262         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
23263         * modules/getcwd (Files): Remove lib/getcwd.h.
23264         (Depends-on): Add unistd.
23265         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23266         (Include): Use <unistd.h> instad of getcwd.h.
23267
23268         * lib/ftruncate.c: Include <unistd.h> first.
23269         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
23270         Set HAVE_FTRUNCATE.
23271         * modules/ftruncate (Depends-on): Add unistd.
23272         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23273
23274         * lib/fchdir.c: Include <unistd.h> first.
23275         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
23276         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
23277         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
23278         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23279         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
23280
23281         * lib/dup2.c: Include <unistd.h> first.
23282         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
23283         HAVE_DUP2.
23284         * modules/dup2 (Depends-on): Add unistd.
23285         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23286
23287         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
23288         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
23289         REPLACE_CHOWN. Don't define chown as a macro here.
23290         * modules/chown (Depends-on): Add unistd.
23291         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23292
23293         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
23294         Add definition for GL_LINK_WARNING.
23295         (chown, dup2): New declarations.
23296         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
23297         link warning.
23298         (ftruncate): New declaration.
23299         (getcwd): New declaration, taken from old getcwd.h.
23300         (getlogin_r): New declaration, taken from old getlogin_r.h.
23301         (readlink): New declaration.
23302         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
23303         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
23304         (gl_PREREQ_UNISTD): Remove macro.
23305         (gl_UNISTD_MODULE_INDICATOR): New macro.
23306         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
23307         many new variables. Don't set UNISTD_H.
23308         * modules/unistd (Description): Change.
23309         (Depends-on): Add link-warning.
23310         (configure.ac): Update.
23311         (Makefile.am): Create unistd.h always. Substitute many new variables
23312         into it.
23313
23314 2007-02-18  Bruno Haible  <bruno@clisp.org>
23315
23316         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
23317         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
23318         HAVE_GETSUBOPT.
23319         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
23320         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
23321         * lib/getsubopt.h: Remove file.
23322         * modules/getsubopt (Files): Remove lib/getsubopt.h.
23323         (Depends-on): Add stdlib.
23324         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23325         (Includes): Use <stdlib.h> instead of getsubopt.h.
23326         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
23327         Set HAVE_GETSUBOPT.
23328         * lib/getsubopt.c: Don't include getsubopt.h.
23329
23330 2007-02-18  Bruno Haible  <bruno@clisp.org>
23331
23332         * modules/fchdir (Depends-on): Add dup2.
23333
23334 2007-02-18  Bruno Haible  <bruno@clisp.org>
23335
23336         * lib/stdlib_.h: Handle glibc's special invocation convention
23337         specially.
23338
23339 2007-02-18  Bruno Haible  <bruno@clisp.org>
23340
23341         * modules/stdlib-tests: New file.
23342         * tests/test-stdlib.c: New file.
23343
23344         * modules/mkstemp (Files): Remove lib/mkstemp.h.
23345         (Depends-on): Add stdlib.
23346         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23347         (Includes): Use <stdlib.h> instead of mkstemp.h.
23348         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
23349         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
23350         * lib/mkstemp.c: Don't include mkstemp.h.
23351         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
23352         * lib/stdlib--.h: Don't include mkstemp.h.
23353
23354         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
23355         (Depends-on): Add stdlib.
23356         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23357         (Includes): Use <stdlib.h> instead of mkdtemp.h.
23358         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
23359         HAVE_MKDTEMP.
23360         * lib/mkdtemp.c: Don't include mkdtemp.h.
23361         * lib/clean-temp.c: Don't include mkdtemp.h.
23362
23363         * modules/exit (Files): Remove lib/exit.h.
23364         (Depends-on): Add stdlib.
23365         (Makefile.am): Remove lib_SOURCES.
23366         (Include): Use <stdlib.h> instead of exit.h.
23367         * lib/argmatch.c: Don't include exit.h.
23368         * lib/execute.c: Likewise.
23369         * lib/pagealign_alloc.c: Likewise.
23370         * lib/pipe.c: Likewise.
23371         * lib/wait-process.c: Likewise.
23372         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
23373         * lib/exitfail.c: Likewise.
23374         * lib/savewd.c: Likewise.
23375         * lib/xsetenv.c: Likewise.
23376
23377         * modules/stdlib: New file.
23378         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
23379         and extra comments about mkstemp().
23380         * lib/exit.h: Remove file.
23381         * lib/mkdtemp.h: Remove file.
23382         * lib/mkstemp.h: Remove file.
23383         * m4/stdlib_h.m4: New file.
23384         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
23385
23386 2007-02-18  Bruno Haible  <bruno@clisp.org>
23387
23388         * modules/math-tests: New file.
23389         * tests/test-math.c: New file.
23390
23391         * modules/math: New file.
23392         * modules/mathl (Files): Remove lib/mathl.h.
23393         (Depends-on): Add math.
23394         (Makefile.am): Don't mention mathl.h.
23395         (Include): Use <math.h> instead of mathl.h.
23396         * lib/math_.h: New file.
23397         * lib/mathl.h: Remove file.
23398         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
23399         mathl.h.
23400         * lib/asinl.c: Likewise.
23401         * lib/atanl.c: Likewise.
23402         * lib/ceill.c: Likewise.
23403         * lib/cosl.c: Likewise.
23404         * lib/expl.c: Likewise.
23405         * lib/floorl.c: Likewise.
23406         * lib/frexpl.c: Likewise.
23407         * lib/ldexpl.c: Likewise.
23408         * lib/logl.c: Likewise.
23409         * lib/sincosl.c: Likewise.
23410         * lib/sinl.c: Likewise.
23411         * lib/sqrtl.c: Likewise.
23412         * lib/tanl.c: Likewise.
23413         * lib/trigl.c: Likewise.
23414         * m4/math_h.m4: New file.
23415         * MODULES.html.sh (Mathematics): Add math.
23416
23417 2007-02-17  Bruno Haible  <bruno@clisp.org>
23418
23419         * modules/wctype-tests: New file.
23420         * tests/test-wctype.c: New file.
23421
23422         * modules/wchar-tests: New file.
23423         * tests/test-wchar.c: New file.
23424
23425         * modules/unistd-tests: New file.
23426         * tests/test-unistd.c: New file.
23427
23428         * modules/time-tests: New file.
23429         * tests/test-time.c: New file.
23430
23431         * modules/sysexits-tests: New file.
23432         * tests/test-sysexits.c: New file.
23433
23434         * modules/sys_time-tests: New file.
23435         * tests/test-sys_time.c: New file.
23436
23437         * modules/sys_stat-tests: New file.
23438         * tests/test-sys_stat.c: New file.
23439
23440         * modules/sys_socket-tests: New file.
23441         * tests/test-sys_socket.c: New file.
23442
23443         * modules/sys_select-tests: New file.
23444         * tests/test-sys_select.c: New file.
23445
23446         * modules/string-tests: New file.
23447         * tests/test-string.c: New file.
23448
23449         * modules/stdbool-tests: New file.
23450         * tests/test-stdbool.c: New file.
23451
23452         * modules/netinet_in-tests: New file.
23453         * tests/test-netinet_in.c: New file.
23454
23455         * modules/inttypes-tests: New file.
23456         * tests/test-inttypes.c: New file.
23457
23458         * modules/fcntl-tests: New file.
23459         * tests/test-fcntl.c: New file.
23460
23461         * modules/byteswap-tests: New file.
23462         * tests/test-byteswap.c: New file.
23463
23464         * modules/arpa_inet-tests: New file.
23465         * tests/test-arpa_inet.c: New file.
23466
23467 2007-02-17  Bruno Haible  <bruno@clisp.org>
23468
23469         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
23470         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
23471         if the corresponding module is not enabled. Emit link warnings if
23472         the function is used nevertheless.
23473         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
23474         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
23475         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
23476         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
23477         * modules/inttypes (Depends-on): Add link-warning.
23478         (Makefile.am): Copy the contents of build-aux/link-warning.h into
23479         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
23480         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
23481         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
23482         * modules/imaxdiv (configure.ac): Likewise.
23483         * modules/strtoimax (configure.ac): Likewise.
23484         * modules/strtoumax (configure.ac): Likewise.
23485
23486 2007-02-17  Bruno Haible  <bruno@clisp.org>
23487
23488         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
23489         gl_STRING_MODULE_INDICATOR_DEFAULTS.
23490         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
23491         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
23492
23493 2007-02-17  Bruno Haible  <bruno@clisp.org>
23494
23495         * modules/link-warning: New file.
23496         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
23497         * lib/string_.h (GL_LINK_WARNING): Remove definition.
23498         * modules/string (Depends-on): Add link-warning.
23499         (Makefile.am): Copy the contents of build-aux/link-warning.h into
23500         string.h.
23501         * MODULES.html.sh (Support for building libraries and executables): Add
23502         link-warning.
23503
23504 2007-02-17  Bruno Haible  <bruno@clisp.org>
23505
23506         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
23507         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
23508         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
23509         long lines.
23510
23511 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
23512             Bruno Haible  <bruno@clisp.org>
23513
23514         * modules/tmpfile: New file.
23515         * lib/tmpfile.c: New file.
23516         * m4/tmpfile.m4: New file.
23517         * MODULES.html.sh (func_all_modules): New section "Input/output".
23518
23519 2007-02-15  Bruno Haible  <bruno@clisp.org>
23520
23521         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
23522         (supports_delete_on_close): New function.
23523         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
23524
23525 2007-02-14  Bruno Haible  <bruno@clisp.org>
23526
23527         * modules/mbspcasecmp-tests: New file.
23528         * tests/test-mbspcasecmp.sh: New file.
23529         * tests/test-mbspcasecmp.c: New file.
23530
23531         New module mbspcasecmp.
23532         * modules/mbspcasecmp: New file.
23533         * lib/mbspcasecmp.c: New file.
23534         * lib/string_.h (strncasecmp): Change warning message.
23535         (mbspcasecmp): New declaration.
23536         * m4/mbspcasecmp.m4: New file.
23537         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23538         GNULIB_MBSPCASECMP.
23539         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
23540         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
23541
23542 2007-02-14  Bruno Haible  <bruno@clisp.org>
23543
23544         * modules/mbsncasecmp-tests: New file.
23545         * tests/test-mbsncasecmp.sh: New file.
23546         * tests/test-mbsncasecmp.c: New file.
23547
23548         New module mbsncasecmp.
23549         * modules/mbsncasecmp: New file.
23550         * lib/mbsncasecmp.c: New file.
23551         * lib/string_.h (mbsncasecmp): New declaration.
23552         * m4/mbsncasecmp.m4: New file.
23553         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23554         GNULIB_MBSNCASECMP.
23555         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
23556         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
23557
23558 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
23559
23560         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
23561         Verify that it doesn't overlap with our flags.
23562         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
23563         do not have the desired effect in multibyte locales; instead, use
23564         mbscasecmp.
23565         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
23566         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
23567         we don't require GNU fnmatch ourselves (if our users require it, they
23568         should do so explicitly).
23569
23570         Fix regex code so it doesn't rely on strcasecmp.
23571         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
23572         Otherwise, include gnulib's langinfo.h.
23573         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
23574         undesirable behavior in non-C locales.  Instead, rely on localecharset.
23575         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
23576         * modules/regex (FILES): Remove m4/codeset.m4.
23577         (Depends-on): Add localcharset.  Remove strcase.
23578
23579 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23580
23581         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
23582         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23583
23584 2007-02-13  Bruno Haible  <bruno@clisp.org>
23585
23586         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
23587         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23588
23589 2007-02-12  Bruno Haible  <bruno@clisp.org>
23590
23591         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
23592         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
23593         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
23594         time warning rather than a link error.
23595
23596 2007-02-12  Bruno Haible  <bruno@clisp.org>
23597
23598         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
23599         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23600         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23601
23602 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23603
23604         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
23605         args, not 2.
23606
23607 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23608
23609         New module 'time', so that apps can include <time.h> as per
23610         POSIX and GNU instead of separate include files like time_r.h
23611         and timegm.h.  This implementation tries out a simpler approach
23612         for replacing decls in standard include files (as compared to
23613         the string module), somewhat as an experiment.
23614
23615         * config/srclist.txt: Comment out mktime.c for now.
23616         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
23617         since it doesn't apply any more.  Use generic wording instead.
23618         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
23619         'time'.
23620         * lib/time_.h, m4/time_h.m4, modules/time: New files.
23621         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
23622         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
23623         Don't include <sys/types.h>; no longer needed since we assume C89.
23624         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
23625         * lib/strftime.c: Likewise.
23626         * lib/time_r.c: Likewise.
23627         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
23628         * lib/nanosleep.c: Include <time.h> first, to check interface.
23629         * lib/strptime.c: Likewise.
23630         * lib/time_r.c: Likewise.
23631         * lib/timegm.c: Likewise.
23632         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
23633         needed.
23634         * lib/timegm.c: Don't include timegm.h; no longer needed.
23635         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
23636         time.h now handles any problems in that area.
23637         (struct timespec, nanosleep): Remove; time.h now arranges for these.
23638         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
23639         that time.h defines struct timespec.
23640         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
23641         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
23642         handles that.
23643         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
23644         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
23645         needed.  Set REPLACE_LOCALTIME.
23646         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
23647         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
23648         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
23649         nanosleep; time_h.m4 now does that.  Don't require
23650         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
23651         module handles this now.
23652         * modules/getdate (Depends-on): Remove timespec.  Add time.
23653         * modules/nanosleep (Depends-on): Likewise.
23654         * modules/stat-time (Depends-on): Likewise.
23655         * modules/nanosleep (Include): Include time.h, not timespec.h.
23656         * modules/strptime (Files): Remove lib/strptime.h.
23657         (Depends-on): Add extensions, time.
23658         (Include): Include time.h, not strptime.h.
23659         * modules/time_r (Files): Remove lib/time_r.h.
23660         (Depends-on): Add time.
23661         (Include): Include time.h, not time_r.h.
23662         * modules/timegm: Likewise.
23663         * modules/timespec (Description): Now does timespec-related decls
23664         of our own, instead of struct timespec itself.
23665         (Depends-on): Add time; remove extensions.
23666         (Maintainer): Add self.
23667         * modules/utimecmp (Depends-on): Add time; remove timespec.
23668         * modules/utimens (Depends-on): Likewise.
23669         * modules/xnanosleep (Depends-on): Likewise.
23670
23671 2007-02-11  Bruno Haible  <bruno@clisp.org>
23672
23673         * lib/c-strstr.c: Include allocsa.h.
23674         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
23675         * lib/c-strcasestr.c: Include allocsa.h.
23676         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
23677         * lib/strcasestr.c: Include allocsa.h.
23678         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
23679         * lib/mbsstr.c: Include allocsa.h.
23680         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
23681         allocsa/freesa instead of malloc/free.
23682         * lib/mbscasestr.c: Include allocsa.h.
23683         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
23684         allocsa/freesa instead of malloc/free.
23685         * modules/c-strstr (Depends-on): Add allocsa.
23686         * modules/c-strcasestr (Depends-on): Likewise.
23687         * modules/strcasestr (Depends-on): Likewise.
23688         * modules/mbsstr (Depends-on): Likewise.
23689         * modules/mbscasestr (Depends-on): Likewise.
23690
23691 2007-02-11  Bruno Haible  <bruno@clisp.org>
23692
23693         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
23694
23695         * modules/mbsspn-tests: New file.
23696         * tests/test-mbsspn.sh: New file.
23697         * tests/test-mbsspn.c: New file.
23698
23699 2007-02-11  Bruno Haible  <bruno@clisp.org>
23700
23701         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
23702
23703         * modules/mbspbrk-tests: New file.
23704         * tests/test-mbspbrk.sh: New file.
23705         * tests/test-mbspbrk.c: New file.
23706
23707 2007-02-11  Bruno Haible  <bruno@clisp.org>
23708
23709         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
23710         unneeded cast.
23711
23712         * modules/mbscspn-tests: New file.
23713         * tests/test-mbscspn.sh: New file.
23714         * tests/test-mbscspn.c: New file.
23715
23716 2007-02-11  Bruno Haible  <bruno@clisp.org>
23717
23718         * modules/mbscasecmp-tests: New file.
23719         * tests/test-mbscasecmp.sh: New file.
23720         * tests/test-mbscasecmp.c: New file.
23721
23722 2007-02-11  Bruno Haible  <bruno@clisp.org>
23723
23724         Ensure O(n) worst-case complexity of mbscasestr.
23725         * lib/mbscasestr.c: Include stdbool.h.
23726         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
23727         functions.
23728         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
23729         the bookkeeping indicates that it's worth it.
23730         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
23731
23732         * modules/mbscasestr-tests: New file.
23733         * tests/test-mbscasestr1.c: New file.
23734         * tests/test-mbscasestr2.sh: New file.
23735         * tests/test-mbscasestr2.c: New file.
23736         * tests/test-mbscasestr3.sh: New file.
23737         * tests/test-mbscasestr3.c: New file.
23738         * tests/test-mbscasestr4.sh: New file.
23739         * tests/test-mbscasestr4.c: New file.
23740         * m4/locale-tr.m4: New file.
23741
23742 2007-02-11  Bruno Haible  <bruno@clisp.org>
23743
23744         Ensure O(n) worst-case complexity of mbsstr.
23745         * lib/mbsstr.c: Include stdbool.h.
23746         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
23747         functions.
23748         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
23749         bookkeeping indicates that it's worth it.
23750         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
23751
23752         * modules/mbsstr-tests: New file.
23753         * tests/test-mbsstr1.c: New file.
23754         * tests/test-mbsstr2.sh: New file.
23755         * tests/test-mbsstr2.c: New file.
23756         * tests/test-mbsstr3.sh: New file.
23757         * tests/test-mbsstr3.c: New file.
23758         * m4/locale-fr.m4: New file.
23759
23760 2007-02-11  Bruno Haible  <bruno@clisp.org>
23761
23762         * lib/mbsrchr.c (mbsrchr): Fix bug.
23763
23764         * modules/mbsrchr-tests: New file.
23765         * tests/test-mbsrchr.sh: New file.
23766         * tests/test-mbsrchr.c: New file.
23767
23768 2007-02-11  Bruno Haible  <bruno@clisp.org>
23769
23770         * lib/mbschr.c (mbschr): Fix bug.
23771
23772         * modules/mbschr-tests: New file.
23773         * tests/test-mbschr.sh: New file.
23774         * tests/test-mbschr.c: New file.
23775         * m4/locale-zh.m4: New file.
23776
23777 2007-02-11  Bruno Haible  <bruno@clisp.org>
23778
23779         Support for copying multibyte string iterators.
23780         * lib/mbiter.h: Include <string.h>.
23781         (mbiter_multi_copy): New function.
23782         (mbi_copy): New macro.
23783         * lib/mbuiter.h: Include <string.h>.
23784         (mbuiter_multi_copy): New function.
23785         (mbui_copy): New macro.
23786
23787 2007-02-11  Bruno Haible  <bruno@clisp.org>
23788
23789         New module mbslen.
23790         * modules/mbslen: New file.
23791         * lib/mbslen.c: New file.
23792         * lib/string_.h (mbslen): New declaration.
23793         * m4/mbslen.m4: New file.
23794         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23795         GNULIB_MBSLEN.
23796         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
23797         * MODULES.html.sh (Internationalization functions): Add mbslen.
23798
23799 2007-02-11  Bruno Haible  <bruno@clisp.org>
23800
23801         Ensure O(n) worst-case complexity of strcasestr substitute.
23802         * lib/strcasestr.c: Include stdbool.h.
23803         (knuth_morris_pratt): New function.
23804         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
23805         bookkeeping indicates that it's worth it.
23806         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
23807
23808         * modules/strcasestr-tests: New file.
23809         * tests/test-strcasestr.c: New file.
23810
23811 2007-02-11  Bruno Haible  <bruno@clisp.org>
23812
23813         Ensure O(n) worst-case complexity of c_strcasestr.
23814         * lib/c-strcasestr.c: Include stdbool.h, string.h.
23815         (knuth_morris_pratt): New function.
23816         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
23817         the bookkeeping indicates that it's worth it.
23818         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
23819
23820         * modules/c-strcasestr-tests: New file.
23821         * tests/test-c-strcasestr.c: New file.
23822
23823 2007-02-11  Bruno Haible  <bruno@clisp.org>
23824
23825         Ensure O(n) worst-case complexity of c_strstr.
23826         * lib/c-strstr.c: Include stdbool.h, string.h.
23827         (knuth_morris_pratt): New function.
23828         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
23829         bookkeeping indicates that it's worth it.
23830         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
23831
23832         * lib/c-strstr.c: Complete rewrite for maintainability.
23833
23834         * modules/c-strstr-tests: New file.
23835         * tests/test-c-strstr.c: New file.
23836
23837 2007-02-11  Bruno Haible  <bruno@clisp.org>
23838
23839         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
23840         5.2.1 and earlier, whereby \055 was treated just like the range
23841         delimiter '-'.
23842         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
23843
23844 2007-02-08  Bruno Haible  <bruno@clisp.org>
23845
23846         * modules/regex (Depends-on): Add stdbool.
23847         Reported by Dalibor Topic <robilad@kaffe.org>.
23848
23849 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
23850
23851         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
23852         Prefer returning from main to exiting from it.
23853         Remove unnecessary parens after sizeof.
23854
23855 2007-02-05  Bruno Haible  <bruno@clisp.org>
23856
23857         New module mbssep.
23858         * modules/mbssep: New file.
23859         * lib/mbssep.c: New file.
23860         * lib/string_.h (strsep): Add a conditional link warning.
23861         (mbssep): New declaration.
23862         * m4/mbssep.m4: New file.
23863         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23864         GNULIB_MBSSEP.
23865         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
23866         * MODULES.html.sh (Internationalization functions): Add mbssep.
23867
23868 2007-02-05  Bruno Haible  <bruno@clisp.org>
23869
23870         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
23871         Optimize search in case of 1 delimiter.
23872
23873 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
23874
23875         * lib/acl.h: Include sys/types.h before sys/acl.h.
23876
23877 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
23878
23879         Merge upstream fix for glibc bugzilla #3957:
23880
23881         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
23882
23883         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
23884         bit for RE_HAT_LISTS_NOT_NEWLINE.
23885         (build_charclass_op): Remove bogus comment.
23886
23887 2007-02-05  Simon Josefsson  <simon@josefsson.org>
23888
23889         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
23890
23891 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
23892
23893         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
23894         * lib/memmem.c [!defined _LIBC]: Include config.h.
23895
23896 2007-02-04  Bruno Haible  <bruno@clisp.org>
23897
23898         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
23899         warning message.
23900
23901 2007-02-04  Bruno Haible  <bruno@clisp.org>
23902
23903         New module mbstok_r.
23904         * modules/mbstok_r: New file.
23905         * lib/mbstok_r.c: New file.
23906         * lib/string_.h (strtok_r): Change argument names to match the
23907         comments. Add a conditional link warning.
23908         (mbstok_r): New declaration.
23909         * m4/mbstok_r.m4: New file.
23910         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23911         GNULIB_MBSTOK_R.
23912         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
23913         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
23914
23915 2007-02-04  Bruno Haible  <bruno@clisp.org>
23916
23917         New module mbsspn.
23918         * modules/mbsspn: New file.
23919         * lib/mbsspn.c: New file.
23920         * lib/string_.h (strspn): Add a conditional link warning.
23921         (mbsspn): New declaration.
23922         * m4/mbsspn.m4: New file.
23923         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23924         GNULIB_MBSSPN.
23925         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
23926         * MODULES.html.sh (Internationalization functions): Add mbsspn.
23927
23928 2007-02-04  Bruno Haible  <bruno@clisp.org>
23929
23930         New module mbspbrk.
23931         * modules/mbspbrk: New file.
23932         * lib/mbspbrk.c: New file.
23933         * lib/string_.h (strpbrk): Add a conditional link warning.
23934         (mbspbrk): New declaration.
23935         * m4/mbspbrk.m4: New file.
23936         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23937         GNULIB_MBSPBRK.
23938         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
23939         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
23940
23941 2007-02-04  Bruno Haible  <bruno@clisp.org>
23942
23943         New module mbscspn.
23944         * modules/mbscspn: New file.
23945         * lib/mbscspn.c: New file.
23946         * lib/string_.h (strcspn): Add a conditional link warning.
23947         (mbscspn): New declaration.
23948         * m4/mbscspn.m4: New file.
23949         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23950         GNULIB_MBSCSPN.
23951         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
23952         * MODULES.html.sh (Internationalization functions): Add mbscspn.
23953
23954 2007-02-04  Bruno Haible  <bruno@clisp.org>
23955
23956         New module mbscasestr, reduced goal of strcasestr.
23957         * modules/mbscasestr: New file.
23958         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
23959         (mbscasestr): Renamed from strcasestr.
23960         * lib/strcasestr.c: Don't include mbuiter.h.
23961         (strcasestr): Remove support for multibyte locales.
23962         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
23963         Change the conditional link warning.
23964         (mbscasestr): New declaration.
23965         * m4/mbscasestr.m4: New file.
23966         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
23967         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
23968         REPLACE_STRCASESTR.
23969         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
23970         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23971         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
23972         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
23973         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
23974         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
23975         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
23976         (Depends-on): Remove mbuiter.
23977         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
23978
23979 2007-02-04  Bruno Haible  <bruno@clisp.org>
23980
23981         Simplify handling of strncasecmp.
23982         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
23983         the conditional link warning.
23984         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23985         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
23986         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
23987         * modules/strcase (configure.ac): Don't invoke
23988         gl_STRING_MODULE_INDICATOR.
23989         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
23990
23991 2007-02-04  Bruno Haible  <bruno@clisp.org>
23992
23993         New module mbscasecmp, reduced goal of strcasecmp.
23994         * modules/mbscasecmp: New file.
23995         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
23996         (mbscasecmp): Renamed from strcasecmp.
23997         * lib/strcasecmp.c: Don't include mbuiter.h.
23998         (strcasecmp): Remove support for multibyte locales.
23999         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
24000         Change the conditional link warning.
24001         (mbscasecmp): New declaration.
24002         * m4/mbscasecmp.m4: New file.
24003         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
24004         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
24005         REPLACE_STRCASECMP.
24006         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
24007         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24008         GNULIB_MBSCASECMP.
24009         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
24010         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
24011         * modules/strcase (Files): Remove m4/mbrtowc.m4.
24012         (Depends-on): Remove mbuiter.
24013         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
24014
24015 2007-02-04  Bruno Haible  <bruno@clisp.org>
24016
24017         New module mbsstr. Remove module strstr.
24018         * modules/mbsstr: New file.
24019         * modules/strstr: Remove file.
24020         * lib/mbsstr.c: Renamed from lib/strstr.c.
24021         (mbsstr): Renamed from strstr.
24022         * lib/string_.h (strstr): Remove declaration. Change the conditional
24023         link warning.
24024         (mbsstr): New declaration.
24025         * m4/mbsstr.m4: New file.
24026         * m4/strstr.m4: Remove file.
24027         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24028         REPLACE_STRSTR.
24029         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
24030         Don't initialize GNULIB_STRSTR.
24031         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
24032         substitute GNULIB_STRSTR and REPLACE_STRSTR.
24033         * MODULES.html.sh (Internationalization functions): Add mbsstr.
24034         (Support for systems lacking ANSI C 89): Remove strstr.
24035
24036 2007-02-04  Bruno Haible  <bruno@clisp.org>
24037
24038         New module mbsrchr.
24039         * modules/mbsrchr: New file.
24040         * lib/mbsrchr.c: New file.
24041         * lib/string_.h (strrchr): Add a conditional link warning.
24042         (mbsrchr): New declaration.
24043         * m4/mbsrchr.m4: New file.
24044         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24045         GNULIB_MBSRCHR.
24046         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
24047         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
24048
24049 2007-02-04  Bruno Haible  <bruno@clisp.org>
24050
24051         New module mbschr.
24052         * modules/mbschr: New file.
24053         * lib/mbschr.c: New file.
24054         * lib/string_.h (strchr): Add a conditional link warning.
24055         (mbschr): New declaration.
24056         * m4/mbschr.m4: New file.
24057         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24058         GNULIB_MBSCHR.
24059         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
24060         * MODULES.html.sh (Internationalization functions): Add mbschr.
24061
24062 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
24063
24064         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
24065
24066         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
24067
24068 2007-02-04  Bruno Haible  <bruno@clisp.org>
24069
24070         New module description section 'configure.ac-early'.
24071         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
24072         (func_get_autoconf_early_snippet): New function.
24073         (func_import, func_create_testdir): Use it. Remove special cases for
24074         modules 'extensions' and 'lock'.
24075         * modules/extensions (configure.ac-early): Require
24076         gl_USE_SYSTEM_EXTENSIONS.
24077         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
24078
24079 2007-02-04  Bruno Haible  <bruno@clisp.org>
24080
24081         Make use of gcj-4.3's -fsource and -ftarget option.
24082         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
24083         and if so try the options -fsource and -ftarget.
24084         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
24085         source_version, ftarget_option, target_version arguments.
24086         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
24087         (is_envjavac_oldgcj_14_14_usable): Renamed from
24088         is_envjavac_gcj_14_14_usable.
24089         (is_envjavac_oldgcj_14_13_usable): Renamed from
24090         is_envjavac_gcj_14_13_usable.
24091         (is_gcj_present): Update.
24092         (is_gcj_43, is_gcj43_usable): New functions.
24093         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
24094         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
24095         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
24096         try the options -fsource and -ftarget.
24097
24098 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
24099
24100         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
24101         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
24102         larger value.
24103
24104 2007-02-03  Jim Meyering  <jim@meyering.net>
24105
24106         Give tools a better chance to allocate space for very large buffers.
24107         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
24108
24109         Make pwd and readlink work also when run with an unreadable parent dir
24110         on systems with openat support.
24111         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
24112         provided getcwd function, even when we have openat support.
24113         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
24114
24115 2007-02-02  Bruno Haible  <bruno@clisp.org>
24116
24117         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
24118         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
24119         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
24120         portability problems if one of these functions is only used on specific
24121         platforms.
24122         Reported by Paul Eggert.
24123
24124 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
24125
24126         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
24127         is causing more trouble than it's curing.
24128         * lib/regex_internal.h (__mempcpy): Remove.
24129         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
24130         (and make the code a tad smaller to boot).
24131         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
24132
24133 2007-02-02  Jim Meyering  <jim@meyering.net>
24134
24135         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
24136         section, not in the Makefile.am: one.
24137
24138 2007-02-02  Eric Blake  <ebb9@byu.net>
24139
24140         * lib/strchrnul.c: Always include config.h first.
24141
24142         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
24143         gnulib strstr is not necessary here.
24144
24145 2007-02-02  Simon Josefsson  <simon@josefsson.org>
24146
24147         * m4/socklen.m4: Fix typo.
24148
24149 2007-02-02  Eric Blake  <ebb9@byu.net>
24150
24151         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
24152         * modules/netinet_in (Makefile.am): Likewise.
24153
24154 2007-02-01  Bruno Haible  <bruno@clisp.org>
24155
24156         * lib/string_.h (GL_LINK_WARNING): New macro.
24157         (strcasecmp, strstr, strcasestr): If provided by the system,
24158         conditionally define as a macro that leads to a warning instead of to
24159         an error.
24160         (strncasecmp): Conditionally define as a macro that leads to a warning.
24161
24162 2007-02-01  Karl Berry  <karl@gnu.org>
24163
24164         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
24165
24166 2007-02-01  Bruno Haible  <bruno@clisp.org>
24167
24168         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
24169         renamings.
24170
24171 2007-02-01  Eric Blake  <ebb9@byu.net>
24172
24173         * modules/regex (Depends-on): Revert dependence on mempcpy.
24174         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
24175         module's definition of mempcpy.
24176         Reported by Paul Eggert.
24177
24178 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
24179
24180         * lib/string_.h: If the gnulib module XYZ is not present, undefine
24181         the symbol XYZ before redefining it.  This fixes a problem with
24182         programs that don't use XYZ, when compiled on systems that define
24183         XYZ to something else.
24184
24185 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
24186
24187         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
24188         occurs when "mkdir -m foo" creates a setgid directory that is (1)
24189         writeable to group or other and (2) is intended to have a special
24190         mode bit that is set or cleared.  In such a case, the directory
24191         should be neither group- nor other-writeable until the special
24192         mode bits are right.
24193
24194 2007-01-31  Eric Blake  <ebb9@byu.net>
24195
24196         * modules/mountlist (Depends-on): Add strstr.
24197
24198         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
24199         bug.
24200         * modules/string (Makefile.am): Remove redundant replacement.
24201         * modules/regex (Depends-on): Add mempcpy.
24202
24203 2007-01-31  Bruno Haible  <bruno@clisp.org>
24204
24205         New module description field 'Link'.
24206         * gnulib-tool (func_usage): Document --extract-link-directive.
24207         (sed_extract_prog): Recognize 'Link' directive.
24208         (func_get_link_directive): New function.
24209         (func_import): Show summary of link directives.
24210         Handle --extract-link-directive option.
24211         * modules/acl (Link): New section.
24212         * modules/clock-time (Link): New section.
24213         * modules/euidaccess (Link): New section.
24214         * modules/gettext (Link): New section.
24215         * modules/iconv (Link): New section.
24216         * modules/lock (Link): New section.
24217         * modules/nanosleep (Link): New section.
24218         * modules/readline (Link): New section.
24219
24220 2007-01-27  Bruno Haible  <bruno@clisp.org>
24221
24222         Enforce the use of gnulib modules for unportable <string.h> functions.
24223         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
24224         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
24225         (gl_HEADER_STRING_H_BODY): Require it.
24226         * lib/string_.h: If the gnulib module XYZ is not present, redefine
24227         the symbol XYZ to one that gives a link error.
24228         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
24229         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
24230         * modules/mempcpy (configure.ac): Likewise.
24231         * modules/memrchr (configure.ac): Likewise.
24232         * modules/stpcpy (configure.ac): Likewise.
24233         * modules/stpncpy (configure.ac): Likewise.
24234         * modules/strcase (configure.ac): Likewise.
24235         * modules/strcasestr (configure.ac): Likewise.
24236         * modules/strchrnul (configure.ac): Likewise.
24237         * modules/strdup (configure.ac): Likewise.
24238         * modules/strndup (configure.ac): Likewise.
24239         * modules/strnlen (configure.ac): Likewise.
24240         * modules/strpbrk (configure.ac): Likewise.
24241         * modules/strsep (configure.ac): Likewise.
24242         * modules/strstr (configure.ac): Likewise.
24243         * modules/strtok_r (configure.ac): Likewise.
24244
24245 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
24246
24247         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
24248
24249 2007-01-30  Jim Meyering  <jim@meyering.net>
24250
24251         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
24252
24253 2007-01-29  Bruno Haible  <bruno@clisp.org>
24254
24255         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
24256         * lib/execute.c: Likewise.
24257         * lib/pipe.c: Likewise.
24258         * lib/printf-args.h: Likewise.
24259         * lib/printf-args.c: Likewise.
24260         * lib/printf-parse.c: Likewise.
24261         * lib/vasnprintf.c: Likewise.
24262
24263 2007-01-29  Eric Blake  <ebb9@byu.net>
24264
24265         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
24266         declaration.
24267
24268 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
24269
24270         * lib/strptime.h (strptime): Use 'restrict' for args where
24271         POSIX requires this.
24272         * lib/strptime.c (strptime): Likewise.
24273         Change license notice from LGPL to GPL, since gnulib-tool will
24274         change this as needed.
24275         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
24276         defined.
24277         Include "strptime.h" first, to check interface.
24278         Do not #undef _LIBC and _NL_CURRENT.
24279         Do not include <stdlib.h>; no longer needed.
24280         Include "time_r.h" and declare ptime_locale_status
24281         only if _LIBC is not defined.
24282         (__P): Remove unused macro.
24283         (match_string): Bring back glibc version, but use it only if _LIBC
24284         is defined.
24285         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
24286         Remove unnecessary assertion and abort() call.
24287         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
24288         * m4/strptime.m4: Fix serial number comment.
24289         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
24290         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
24291         (Depends-on): Add time_r.
24292
24293 2007-01-29  Bruno Haible  <bruno@clisp.org>
24294
24295         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24296         strptime.
24297         * modules/strptime (Depends-on): Add stdbool.
24298         * lib/strptime.h: Include <time.h> always. Add comments.
24299
24300 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
24301
24302         * modules/strptime: New file.
24303         * lib/strptime.h: New file.
24304         * lib/strptime.c: New file.
24305         * m4/strptime.m4: New file.
24306
24307 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
24308
24309         * MODULES.html.sh: New module mpsort.
24310         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
24311
24312         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
24313         a circularity problem with HP-UX ia64 reported by Bob Proulx in
24314         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
24315         All uses changed.
24316         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
24317         All uses changed.
24318         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
24319         to _Restrict_.
24320         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
24321         the parameter matches the prototype.
24322
24323 2007-01-28  Jim Meyering  <jim@meyering.net>
24324
24325         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
24326         sys/time.h here, reverting that part of the previous patch:
24327         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
24328
24329 2007-01-28  Bruno Haible  <bruno@clisp.org>
24330
24331         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
24332         value of $(SYS_TIME_H).
24333         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
24334         remove it conditionally, too. [added by Jim Meyering]
24335         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
24336         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
24337         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
24338         GETTIMEOFDAY_REPLACEMENT to 1.
24339
24340 2007-01-28  Bruno Haible  <bruno@clisp.org>
24341
24342         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
24343         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
24344         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
24345         Set UNISTD_H instead of UNISTD_H2.
24346         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
24347
24348 2007-01-28  Bruno Haible  <bruno@clisp.org>
24349
24350         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
24351         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
24352
24353 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24354
24355         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
24356         (func_create_testdir): Ensure C locale for `grep' and `tr'
24357         character ranges.
24358         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
24359         ACLOCAL_AMFLAGS parsing state machine.
24360
24361 2007-01-27  Bruno Haible  <bruno@clisp.org>
24362
24363         * modules/unistr/base: Update.
24364
24365 2007-01-27  Bruno Haible  <bruno@clisp.org>
24366
24367         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
24368         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
24369         * modules/unistr/u32-mbtouc-unsafe: Renamed from
24370         modules/unistr/u32-mbtouc.
24371         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
24372         * lib/unistr.h: Update.
24373         * lib/linebreak.c: Update.
24374         * modules/unistr/u32-mbtouc: Renamed from
24375         modules/unistr/u32-mbtouc-safe.
24376         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
24377         * lib/unistr.h: Update.
24378         * lib/unistr/u32-to-u8.c: Update.
24379         * lib/unistr/u32-to-u16.c: Update.
24380
24381 2007-01-27  Bruno Haible  <bruno@clisp.org>
24382
24383         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
24384         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
24385         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
24386         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
24387         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
24388         * modules/unistr/u16-mbtouc-unsafe: Renamed from
24389         modules/unistr/u16-mbtouc.
24390         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
24391         * lib/unistr.h: Update.
24392         * lib/linebreak.c: Update.
24393         * modules/linebreak: Update.
24394         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
24395         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
24396         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
24397         * modules/unistr/u16-mbtouc: Renamed from
24398         modules/unistr/u16-mbtouc-safe.
24399         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
24400         * lib/unistr.h: Update.
24401         * lib/unistr/u16-to-u8.c: Update.
24402         * modules/unistr/u16-to-u8: Update.
24403         * lib/unistr/u16-to-u32.c: Update.
24404         * modules/unistr/u16-to-u32: Update.
24405
24406 2007-01-27  Bruno Haible  <bruno@clisp.org>
24407
24408         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
24409         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
24410         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
24411         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
24412         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
24413         * modules/unistr/u8-mbtouc-unsafe: Renamed from
24414         modules/unistr/u8-mbtouc.
24415         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
24416         * lib/unistr.h: Update.
24417         * lib/striconveh.c: Update.
24418         * modules/striconveh: Update.
24419         * lib/linebreak.c: Update.
24420         * modules/linebreak: Update.
24421         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
24422         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
24423         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
24424         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
24425         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
24426         * lib/unistr.h: Update.
24427         * lib/striconveh.c: Update.
24428         * modules/striconveh: Update.
24429         * lib/unistr/u8-to-u16.c: Update.
24430         * modules/unistr/u8-to-u16: Update.
24431         * lib/unistr/u8-to-u32.c: Update.
24432         * modules/unistr/u8-to-u32: Update.
24433
24434 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24435
24436         Sync from Libtool.
24437         * lib/argz.c: Do not include strings.h nor memory.h, include
24438         string.h unconditionally.  Patch by Simon Josefsson.
24439
24440 2007-01-27  Bruno Haible  <bruno@clisp.org>
24441
24442         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
24443         from gl_HEADER_STRING_H_BODY.
24444         (gl_HEADER_STRING_H_BODY): Require it.
24445         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
24446         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
24447         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
24448         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
24449         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24450         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
24451         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24452         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
24453         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
24454         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
24455         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
24456         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
24457         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
24458         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24459         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
24460
24461 2007-01-27  Bruno Haible  <bruno@clisp.org>
24462
24463         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
24464         check_PROGRAMS into noinst_PROGRAMS.
24465         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
24466         check_PROGRAMS in this case.
24467         (func_import): Set for_test to false.
24468         (func_create_testdir): Set for_test to true.
24469
24470 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
24471             Bruno Haible  <bruno@clisp.org>
24472
24473         * modules/strcasestr (Files): Remove lib/strcasestr.h.
24474         (Depends-on): Add string.
24475         (Includes): Use <string.h> instead of strcasestr.h.
24476         * modules/string (Makefile.am): Also substitute the value of
24477         REPLACE_STRCASESTR.
24478         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
24479         assume strcasestr is declared in <string.h> not <strings.h>. Also
24480         set REPLACE_STRCASESTR.
24481         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
24482         REPLACE_STRCASESTR.
24483         * lib/strcasestr.h: Remove file.
24484         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
24485         * lib/string_.h (strcasestr): New declaration.
24486
24487 2007-01-27  Bruno Haible  <bruno@clisp.org>
24488
24489         * lib/string_.h: Use 'extern'.
24490
24491 2007-01-27  Jim Meyering  <jim@meyering.net>
24492
24493         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
24494         of set-but-not-used local, "q".
24495
24496         * lib/mempcpy.c: Include <config.h> before <string.h>.
24497         This fixes a compilation error on HP-UX, due to the system's
24498         "restrict"-using mempcpy prototype.
24499
24500 2007-01-26  Bruno Haible  <bruno@clisp.org>
24501
24502         Small optimization.
24503         * lib/javacomp.c: Include c-strstr.h.
24504          (is_envjavac_gcj): Use c_strstr instead of strstr.
24505         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
24506
24507 2007-01-26  Bruno Haible  <bruno@clisp.org>
24508
24509         * MODULES.html.sh (Unicode string functions): Add the new modules.
24510
24511         * modules/uniconv/u32-strconv-to-locale: New file.
24512         * lib/uniconv/u32-strconv-to-locale.c: New file.
24513
24514         * modules/uniconv/u16-strconv-to-locale: New file.
24515         * lib/uniconv/u16-strconv-to-locale.c: New file.
24516
24517         * modules/uniconv/u8-strconv-to-locale: New file.
24518         * lib/uniconv/u8-strconv-to-locale.c: New file.
24519
24520         * modules/uniconv/u32-strconv-from-locale: New file.
24521         * lib/uniconv/u32-strconv-from-locale.c: New file.
24522
24523         * modules/uniconv/u16-strconv-from-locale: New file.
24524         * lib/uniconv/u16-strconv-from-locale.c: New file.
24525
24526         * modules/uniconv/u8-strconv-from-locale: New file.
24527         * lib/uniconv/u8-strconv-from-locale.c: New file.
24528
24529         * modules/uniconv/u32-strconv-to-enc: New file.
24530         * lib/uniconv/u32-strconv-to-enc.c: New file.
24531         * modules/uniconv/u32-strconv-to-enc-tests: New file.
24532         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
24533
24534         * modules/uniconv/u16-strconv-to-enc: New file.
24535         * lib/uniconv/u16-strconv-to-enc.c: New file.
24536         * lib/uniconv/u-strconv-to-enc.h: New file.
24537         * modules/uniconv/u16-strconv-to-enc-tests: New file.
24538         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
24539
24540         * modules/uniconv/u8-strconv-to-enc: New file.
24541         * lib/uniconv/u8-strconv-to-enc.c: New file.
24542         * modules/uniconv/u8-strconv-to-enc-tests: New file.
24543         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
24544
24545         * modules/uniconv/u32-strconv-from-enc: New file.
24546         * lib/uniconv/u32-strconv-from-enc.c: New file.
24547         * modules/uniconv/u32-strconv-from-enc-tests: New file.
24548         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
24549
24550         * modules/uniconv/u16-strconv-from-enc: New file.
24551         * lib/uniconv/u16-strconv-from-enc.c: New file.
24552         * modules/uniconv/u16-strconv-from-enc-tests: New file.
24553         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
24554
24555         * modules/uniconv/u8-strconv-from-enc: New file.
24556         * lib/uniconv/u8-strconv-from-enc.c: New file.
24557         * lib/uniconv/u-strconv-from-enc.h: New file.
24558         * modules/uniconv/u8-strconv-from-enc-tests: New file.
24559         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
24560
24561         * modules/uniconv/u32-conv-from-enc: New file.
24562         * lib/uniconv/u32-conv-from-enc.c: New file.
24563         * modules/uniconv/u32-conv-from-enc-tests: New file.
24564         * tests/uniconv/test-u32-conv-from-enc.c: New file.
24565
24566         * modules/uniconv/u16-conv-from-enc: New file.
24567         * lib/uniconv/u16-conv-from-enc.c: New file.
24568         * lib/uniconv/u-conv-from-enc.h: New file.
24569         * modules/uniconv/u16-conv-from-enc-tests: New file.
24570         * tests/uniconv/test-u16-conv-from-enc.c: New file.
24571
24572         * modules/uniconv/u8-conv-from-enc: New file.
24573         * lib/uniconv/u8-conv-from-enc.c: New file.
24574         * modules/uniconv/u8-conv-from-enc-tests: New file.
24575         * tests/uniconv/test-u8-conv-from-enc.c: New file.
24576
24577         * modules/uniconv/base: New file.
24578         * lib/uniconv.h: New file.
24579
24580 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
24581
24582         * doc/gnulib-tool.texi (Initial import): Update to match current
24583         behavior with strdup module.
24584         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
24585         * lib/memmem.h: Remove; all uses removed.  This is now done
24586         by <string.h>.
24587         * lib/mempcpy.h: Likewise.
24588         * lib/memrchr.h: Likewise.
24589         * lib/stpcpy.h: Likewise.
24590         * lib/stpncpy.h: Likewise.
24591         * lib/strcase.h: Likewise.
24592         * lib/strchrnul.h: Likewise.
24593         * lib/strdup.h: Likewise.
24594         * lib/strndup.h: Likewise.
24595         * lib/strnlen.h: Likewise.
24596         * lib/strpbrk.h: Likewise.
24597         * lib/strsep.h: Likewise.
24598         * lib/strstr.h: Likewise.
24599         * lib/strtok_r.h: Likewise.
24600         * lib/string_.h: New file.
24601         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
24602         Rely on <string.h> instead.
24603         * lib/canon-host.c: Likewise.
24604         * lib/chdir-long.c: Likewise.
24605         * lib/concatpath.c: Likewise.
24606         * lib/exclude.c: Likewise.
24607         * lib/fchdir.c: Likewise.
24608         * lib/getaddrinfo.c: Likewise.
24609         * lib/getcwd.c: Likewise.
24610         * lib/getsubopt.c: Likewise.
24611         * lib/glob.c: Likewise.
24612         * lib/hard-locale.c: Likewise.
24613         * lib/iconvme.c: Likewise.
24614         * lib/javacomp.c: Likewise.
24615         * lib/mempcpy.c: Likewise.
24616         * lib/memrchr.c: Likewise.
24617         * lib/regex_internal.h: Likewise.
24618         * lib/stpncpy.c: Likewise.
24619         * lib/strcasecmp.c: Likewise.
24620         * lib/strchrnul.c: Likewise.
24621         * lib/strdup.c: Likewise.
24622         * lib/striconv.c: Likewise.
24623         * lib/striconveh.c: Likewise.
24624         * lib/striconveha.c: Likewise.
24625         * lib/strncasecmp.c: Likewise.
24626         * lib/strndup.c: Likewise.
24627         * lib/strnlen.c: Likewise.
24628         * lib/strsep.c: Likewise.
24629         * lib/strstr.c: Likewise.
24630         * lib/strtok_r.c: Likewise.
24631         * lib/userspec.c: Likewise.
24632         * lib/w32spawn.h: Likewise.
24633         * lib/xstrndup.c: Likewise.
24634         * lib/mountlist.c (strstr): Remove decl.
24635         * m4/string_h.m4: New file.
24636         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
24637         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
24638         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
24639         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
24640         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
24641         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
24642         Set REPLACE_STRCASECMP if necessary.
24643         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
24644         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
24645         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
24646         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
24647         HAVE_DECL_STRDUP if necessary.
24648         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
24649         since gl_FUNC_STRNDUP does that now.
24650         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
24651         Check for decl here...
24652         (gl_PREREQ_STRNLEN): ... not here.
24653         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
24654         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
24655         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
24656         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
24657         necessary.
24658         * modules/string: New file.
24659         * modules/memmem (Files): Remove special-purpose include file.
24660         (Depends-on): Add string.
24661         (Include): Include <string.h>, not the removed file.
24662         * modules/mempcpy: Likewise.
24663         * modules/memrchr: Likewise.
24664         * modules/stpcpy: Likewise.
24665         * modules/stpncpy: Likewise.
24666         * modules/strcase: Likewise.
24667         * modules/strchrnul: Likewise.
24668         * modules/strdup: Likewise.
24669         * modules/strndup: Likewise.
24670         * modules/strnlen: Likewise.
24671         * modules/strpbrk: Likewise.
24672         * modules/strsep: Likewise.
24673         * modules/strstr: Likewise.
24674         * modules/strtok_r: Likewise.
24675         * tests/test-dirname.c: Don't include "strdup.h", since
24676         <string.h> now suffices.
24677         * tests/test-memmem.c: Don't include "memmem.h", since
24678         <string.h> now suffices.
24679
24680 2007-01-25  Bruno Haible  <bruno@clisp.org>
24681
24682         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
24683         *resultp is 0.
24684
24685         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
24686         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
24687         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
24688         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
24689
24690         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
24691         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
24692         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
24693         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
24694         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
24695         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
24696
24697 2007-01-24  Bruno Haible  <bruno@clisp.org>
24698
24699         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
24700         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
24701         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
24702         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
24703         gl_FUNC_FTS_CORE.
24704         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
24705         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
24706         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
24707         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
24708         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
24709         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
24710         gl_FUNC_FCHOWNAT.
24711         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
24712         gl_FUNC_STRFTIME.
24713         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
24714         Reported by Ralf Wildenhues.
24715
24716 2007-01-24  Bruno Haible  <bruno@clisp.org>
24717
24718         Drop AC_REQUIRE calls that are redundant with the module dependencies.
24719         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
24720         gl_GETADDRINFO.
24721         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
24722         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
24723         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
24724
24725 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
24726
24727         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
24728         Don't use 'exit'; just return from 'main'.
24729         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
24730
24731         * lib/fnmatch_.h: Readjust white space and comments to match
24732         glibc, to avoid spurious diffs.
24733
24734 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24735
24736         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
24737         2004-12-01 change by Jakub Jelinek, since this code won't compile
24738         if !LIBC.  Problem reported by Bob Proulx.
24739
24740 2007-01-23  Bruno Haible  <bruno@clisp.org>
24741
24742         * lib/striconveh.c: Include c-strcaseeq.h.
24743         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
24744         * modules/striconveh (Depends-on): Add c-strcaseeq.
24745
24746 2007-01-23  Bruno Haible  <bruno@clisp.org>
24747
24748         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
24749
24750         * modules/c-strcaseeq: New file.
24751         * lib/c-strcaseeq.h: New file.
24752
24753         * modules/streq: New file.
24754         * lib/streq.h: New file.
24755
24756 2007-01-23  Bruno Haible  <bruno@clisp.org>
24757
24758         * modules/striconveha-tests: New file.
24759         * tests/test-striconveha.c: New file.
24760
24761         * lib/striconveha.h: Include <stdbool.h>.
24762         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
24763         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
24764         (mem_iconveha_notranslit): Renamed from mem_iconveha.
24765         (mem_iconveha): New function.
24766         (str_iconveha_notranslit): Renamed from str_iconveha.
24767         (str_iconveha): New function.
24768         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
24769         c-strcase.
24770
24771 2007-01-23  Bruno Haible  <bruno@clisp.org>
24772
24773         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
24774         encodings without forgiving before trying any encoding with handler.
24775         (str_iconveha): Try all encodings without forgiving before trying any
24776         encoding with handler.
24777
24778 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24779
24780         Import the following changes from libc.
24781
24782         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
24783
24784         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
24785
24786         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
24787
24788         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
24789         normal_bracket label.
24790
24791         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
24792
24793         [BZ #361]
24794         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
24795         to normal_bracket after fetching the next character.
24796
24797 2007-01-22  Bruno Haible  <bruno@clisp.org>
24798
24799         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
24800         argument.
24801         * lib/striconveh.c (iconv_carefully_1): New function.
24802         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
24803         argument.
24804         (str_cd_iconveh): Update.
24805         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
24806         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
24807         * tests/test-striconveh.c (MAGIC): New macro.
24808         (new_offsets): New function.
24809         (main): Test call with and without offsets.
24810
24811 2007-01-22  Bruno Haible  <bruno@clisp.org>
24812
24813         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
24814         * modules/sys_select (Makefile.am): Likewise.
24815         * modules/sys_socket (Makefile.am): Likewise.
24816         * modules/sys_time (Makefile.am): Likewise.
24817
24818 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
24819
24820         * modules/gettimeofday (License): Change from GPL to LGPL, since
24821         gettimeofday is a library function.
24822
24823 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24824
24825         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
24826
24827 2007-01-21  Bruno Haible  <bruno@clisp.org>
24828
24829         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
24830
24831 2007-01-21  Bruno Haible  <bruno@clisp.org>
24832
24833         * modules/striconveha: New file.
24834         * lib/striconveha.h: New file.
24835         * lib/striconveha.c: New file.
24836         * MODULES.html.sh (Internationalization functions): Add striconveha.
24837         * lib/striconv.c (str_iconv): Optimize the case of an empty input
24838         string.
24839         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
24840
24841 2007-01-21  Bruno Haible  <bruno@clisp.org>
24842
24843         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
24844         * lib/striconveh.c (str_iconveh): Likewise.
24845
24846 2007-01-21  Bruno Haible  <bruno@clisp.org>
24847
24848         * lib/striconveh.h (mem_iconveh): New declaration.
24849         * lib/striconveh.c (mem_iconveh): New function.
24850         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
24851
24852 2007-01-21  Bruno Haible  <bruno@clisp.org>
24853
24854         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
24855
24856         * lib/striconveh.h (mem_cd_iconveh): Change specification.
24857         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
24858         original result buffer.
24859         (str_cd_iconveh): Update.
24860         * tests/test-striconveh.c (main): Update.
24861
24862         * lib/striconv.h (mem_cd_iconv): Change specification.
24863         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
24864         result buffer.
24865         (str_cd_iconv): Update.
24866         * tests/test-striconv.c (main): Update.
24867
24868 2007-01-21  Bruno Haible  <bruno@clisp.org>
24869
24870         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
24871
24872 2007-01-20  Jim Meyering  <jim@meyering.net>
24873
24874         * lib/userspec.c (parse_with_separator): If a user or group string
24875         starts with "+", skip the corresponding name-to-ID look-up, since
24876         such a look-up must fail: user and group names may not include "+".
24877
24878 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
24879
24880         * lib/poll.c: Include sys/time.h and time.h unconditionally,
24881         since we now assume the sys_time module.
24882         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
24883         check for sys/time.h; no longer needed.
24884         * modules/poll (Depends-on): Depend on sys_time.
24885
24886 2007-01-18  Bruno Haible  <bruno@clisp.org>
24887
24888         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
24889         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
24890
24891         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
24892         gettimeofday.
24893
24894         * tests/test-gettimeofday.c: Include <time.h>.
24895         (dummy): Remove variable.
24896
24897         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
24898         gl_HEADER_SYS_TIME_H.
24899         (gl_HEADER_SYS_TIME_H): New macro.
24900
24901         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
24902         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
24903         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
24904         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
24905         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
24906         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
24907         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
24908         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
24909         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
24910         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
24911         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
24912
24913         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
24914         last change; it caused a compilation error when cross-compiling to
24915         Cygwin.
24916
24917 2007-01-18  Jim Meyering  <jim@meyering.net>
24918
24919         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
24920         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
24921         than the race-prone "test -d sys || mkdir sys".
24922         (configure.ac): Use AC_PROG_MKDIR_P.
24923         * modules/sys_select: Likewise.
24924         * modules/sys_socket: Likewise.
24925         * modules/sys_time: Likewise.
24926
24927 2007-01-18  Eric Blake  <ebb9@byu.net>
24928
24929         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
24930         replace gettimeofday.
24931         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
24932         name, to avoid infinite recursion.
24933
24934 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
24935
24936         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
24937         module sys_time.
24938         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
24939         assume timespec.h defines struct timeval.
24940         * lib/settime.c: Likewise.
24941         * lib/utimens.c: Likewise.
24942         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
24943         since we now assume the gettimeofday module.
24944         * lib/tempname.c (__gen_tempname): Likewise.
24945         * lib/gettimeofday.h: Remove.
24946         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
24947         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
24948         Include <time.h>, for 'time()'.
24949         (localtime_buffer_addr): Also use this workaround if
24950         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
24951         to simplify the uses.  All uses changed.
24952         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
24953         that #undef is inside {}, and 'const' follows type name consistently.
24954         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
24955         (gettimeofday): Do not use the maximum possible value for
24956         tv->tv_usec, since that might break usages other than ls.c.
24957         Instead, we'll leave ls.c alone.  This undoes today's patch
24958         by Bruno.  Add a compile-time warning for 1s-clock resolution;
24959         we've never observed the problem but might as well keep the
24960         canary.
24961         * lib/nanosleep.c: Include timespec.h first, for interface check.
24962         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
24963         now assume the sys_time module.
24964         * lib/tempname.c: Likewise.
24965         * lib/timespec.h: Likewise.
24966         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
24967         needed.
24968         * lib/strftime.c: Likewise.
24969         * lib/timespec.h: Likewise.
24970         * lib/posixtm.c: Include posixtm.h first, for interface check.
24971         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
24972         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
24973         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
24974         * lib/sys_time_.h: New file.
24975         * lib/timespec.h (struct timespec): Use long int, not long.
24976         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
24977         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
24978         Remove obsolescent call to AC_HEADER_TIME.
24979         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24980         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24981         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
24982         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
24983         Likewise.
24984         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
24985         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
24986         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
24987         into the sys_time module.  Check for gettimeofday just once.
24988         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
24989         for gettimeofday signature to just check the signature.  Merely
24990         compile it, since linking doesn't test signature.  Improve test for
24991         whether gettimeofday.o is actually needed.
24992         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
24993         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
24994         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
24995         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
24996         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
24997         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
24998         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
24999         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
25000         than worrying about sys/time.h.
25001         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
25002         Don't bother worrying about TIME_WITH_SYS_TIME.
25003         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
25004         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
25005         * m4/sys_time_h.m4: New file.
25006         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
25007         Don't include sys/time.h.  Return from main rather than exiting.
25008         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
25009         all uses changed.
25010         * modules/gethrxtime (Depends-on): Add sys_time.
25011         * modules/gettime (Depends-on): Likewise.
25012         * modules/gettimeofday (Depends-on): Likewise.
25013         * modules/nanosleep (Depends-on): Likewise.
25014         * modules/settime (Depends-on): Likewise.
25015         * modules/tempname (Depends-on): Likewise.
25016         * modules/utimens (Depends-on): Likewise.
25017         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
25018         (Include:) Change back to <sys/time.h>.
25019         (Maintainer:) Add self.
25020         * modules/sys_time: New file.
25021         * modules/tempname (Depends-on): Add gettimeofday.
25022         * tests/test-gettimeofday.c: Include <sys/time.h>
25023         rather than gettimeofday.h.
25024
25025 2007-01-17  Bruno Haible  <bruno@clisp.org>
25026
25027         * gnulib-tool (func_get_license): Revert last patch. Instead, let
25028         the license default to GPL.
25029         (func_create_testdir): Don't complain if a module is LGPL and its
25030         tests module depends on GPLed modules.
25031
25032 2007-01-17  Bruno Haible  <bruno@clisp.org>
25033
25034         * lib/gettimeofday.c (gettimeofday): Add code for the case
25035         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
25036         maximum possible value for tv->tv_usec, rather than the minimum one.
25037
25038 2005-10-08  Martin Lambers  <marlam@marlam.de>
25039 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
25040 2007-01-16  Bruno Haible  <bruno@clisp.org>
25041
25042         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
25043         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
25044         gl_FUNC_GETTIMEOFDAY.
25045         (Include): Add gettimeofday.h.
25046         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
25047         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
25048         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
25049         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
25050         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
25051         * lib/gettimeofday.h: New file.
25052         * lib/gettimeofday.c: Include <sys/timeb.h>.
25053         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
25054         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25055         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
25056         fall back on time().
25057
25058         * tests/test-gettimeofday.c: New file.
25059         * modules/gettimeofday-tests: New file.
25060
25061 2007-01-16  Eric Blake  <ebb9@byu.net>
25062
25063         * modules/fnmatch (Depends-on): Depend on wchar.
25064         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
25065         * m4/fnmatch.m4: Likewise.
25066         * modules/mbchar (Makefile.am): Assume <wchar.h>.
25067         * m4/mbchar.m4: Likewise.
25068         * modules/mbswidth (Depends-on): Depend on wchar.
25069         * lib/mbswidth.c: Assume <wchar.h>.
25070         * m4/mbswidth.m4: Likewise.
25071         * modules/quotearg (Depends-on): Depend on wchar.
25072         * lib/quotearg.c: Assume <wchar.h>.
25073         * m4/quotearg.m4: Likewise.
25074         * modules/regex (Depends-on): Depend on wchar.
25075         * lib/regex_internal.h: Assume <wchar.h>.
25076         * m4/regex.m4: Likewise.
25077         * modules/stdint (Depends-on): Depend on wchar.
25078         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
25079         * m4/stdint.m4: Likewise.
25080         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
25081         * modules/strftime (Depends-on): Depend on wchar.
25082         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
25083         * modules/strtol (Depends-on): Depend on wchar.
25084         * lib/strtol.c: Assume <wchar.h>.
25085         * modules/wcwidth (Depends-on): Depend on wchar.
25086         * lib/wcwidth.h: Assume <wchar.h>.
25087         * m4/wcwidth.m4: Likewise.
25088
25089 2007-01-16  Bruno Haible  <bruno@clisp.org>
25090
25091         * modules/csharpexec-script: New, created from...
25092         * modules/csharpexec: ... this.
25093
25094 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
25095
25096         * modules/javaexec-script: New, created from...
25097         * modules/javaexec: ... this.
25098
25099 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25100
25101         * modules/poll (Dependencies): Add sys_select.
25102
25103 2007-01-15  Jim Meyering  <jim@meyering.net>
25104
25105         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
25106         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
25107         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
25108         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
25109
25110 2007-01-15  Bruno Haible  <bruno@clisp.org>
25111
25112         * modules/striconveh: New file.
25113         * lib/striconveh.h: New file.
25114         * lib/striconveh.c: New file.
25115         * MODULES.html.sh (Internationalization functions): Add striconveh.
25116
25117         * modules/striconveh-tests: New file.
25118         * tests/test-striconveh.c: New file.
25119
25120 2007-01-15  Bruno Haible  <bruno@clisp.org>
25121
25122         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
25123         not from GNU libiconv or GNU libc.
25124
25125 2007-01-15  Bruno Haible  <bruno@clisp.org>
25126
25127         * doc/gnulib-intro.texi (Copyright): Explain the different license
25128         terms for module descriptions, autoconf macros, tests, documentation.
25129
25130 2007-01-14  Bruno Haible  <bruno@clisp.org>
25131
25132         * modules/striconv-tests: New file.
25133         * tests/test-striconv.c: New file.
25134
25135 2007-01-14  Bruno Haible  <bruno@clisp.org>
25136
25137         * modules/iconv-tests: New file.
25138         * tests/test-iconv.c: New file.
25139
25140 2007-01-14  Bruno Haible  <bruno@clisp.org>
25141
25142         * gnulib-tool (func_get_license): For test modules, use the license of
25143         the main module.
25144
25145 2007-01-14  Bruno Haible  <bruno@clisp.org>
25146
25147         * modules/iconv (Include): Clarify that <iconv.h> can only be included
25148         if iconv is found to exist.
25149
25150 2007-01-14  Bruno Haible  <bruno@clisp.org>
25151
25152         * modules/c-ctype-tests: New file.
25153         * tests/test-c-ctype.c: New file.
25154
25155 2007-01-14  Bruno Haible  <bruno@clisp.org>
25156
25157         * modules/binary-io-tests: New file.
25158         * tests/test-binary-io.sh: New file.
25159         * tests/test-binary-io.c: New file.
25160
25161 2007-01-14  Bruno Haible  <bruno@clisp.org>
25162
25163         * modules/array-oset-tests: New file.
25164         * tests/test-array_oset.c: New file.
25165
25166 2007-01-14  Bruno Haible  <bruno@clisp.org>
25167
25168         * modules/array-list-tests: New file.
25169         * tests/test-array_list.c: New file.
25170
25171 2007-01-14  Bruno Haible  <bruno@clisp.org>
25172
25173         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
25174         and make.
25175         Reported by Simon Josefsson in
25176         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
25177
25178 2007-01-14  Bruno Haible  <bruno@clisp.org>
25179
25180         * modules/allocsa-tests: New file.
25181         * tests/test-allocsa.c: New file.
25182
25183 2007-01-14  Bruno Haible  <bruno@clisp.org>
25184
25185         * modules/fchdir (Depends-on): Add absolute-header.
25186         * modules/unistd (Depends-on): Likewise.
25187
25188 2006-12-30  Bruno Haible  <bruno@clisp.org>
25189
25190         * modules/fchdir: New file.
25191         * modules/unistd (Files): Add lib/unistd_.h.
25192         (Makefile.am): Generate unistd.h from unistd_.h.
25193         * lib/fchdir.c: New file.
25194         * lib/dirent_.h: New file.
25195         * lib/unistd_.h: New file.
25196         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
25197         * m4/fchdir.m4: New file.
25198         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
25199         (gl_HEADER_UNISTD): Invoke it.
25200         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
25201         function.
25202         * lib/backupfile.c (opendir, closedir): Undefine.
25203         * lib/chown.c (open, close): Undefine.
25204         * lib/clean-temp.c (open, close): Undefine.
25205         * lib/copy-file.c (open, close): Undefine.
25206         * lib/execute.c (open, close): Undefine.
25207         * lib/fsusage.c (open, close): Undefine.
25208         * lib/gc-gnulib.c (open, close): Undefine.
25209         * lib/getcwd.c (opendir, closedir): Undefine.
25210         * lib/glob.c (opendir, closedir): Undefine.
25211         * lib/javacomp.c (open, close): Undefine.
25212         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
25213         * lib/openat-proc.c (open, close): Undefine.
25214         * lib/pagealign_alloc.c (open, close): Undefine.
25215         * lib/pipe.c (open, close): Undefine.
25216         * lib/progreloc.c (open, close): Undefine.
25217         * lib/savedir.c (opendir, closedir): Undefine.
25218         * lib/utime.c (open, close): Undefine.
25219         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
25220
25221 2007-01-10  Bruno Haible  <bruno@clisp.org>
25222
25223         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
25224
25225 2007-01-12  Eric Blake  <ebb9@byu.net>
25226
25227         Provide a robust <wchar.h>.  Further simplifications are now
25228         possible in other modules, but not included here.
25229         * modules/wchar: New module.
25230         * m4/wchar.m4: New file.
25231         * lib/wchar_.h: Likewise.
25232         * modules/mbchar (Depends-on): Depend on wchar, as the first use
25233         of the new module.
25234         * MODULES.html.sh (Extended multibyte and wide character utilities):
25235         New section.
25236
25237 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
25238
25239         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
25240         to a reasonable default for memory allocation.
25241         (xreadlink): Don't allocate a huge buffer, to work around a buggy
25242         file system that reports garbage st_size values for symlinks.
25243         Problem reported by Liyang Hu.
25244
25245 2007-01-11  Simon Josefsson  <simon@josefsson.org>
25246
25247         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
25248         Emacs .#* auto-save files).
25249
25250 2007-01-11  Bruno Haible  <bruno@clisp.org>
25251
25252         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
25253         directory.
25254
25255 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
25256
25257         Use @...@ consistently in lib/wctype_.h.
25258         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
25259         on it being set to 1 or 0.
25260         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
25261         go back to AC_SUBSTing it.
25262         * modules/wctype (Makefile.am): Undo previous change.
25263
25264 2007-01-10  Eric Blake  <ebb9@byu.net>
25265
25266         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
25267         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
25268         * modules/wctype (Makefile.am): Likewise.
25269         Reported by Chris McGuire.
25270
25271 2007-01-10  Jim Meyering  <jim@meyering.net>
25272
25273         fts.c: a small readability/maintainability improvement
25274         * lib/fts.c (fts_read): Make this code slightly more readable and
25275         maintainable by hoisting the "sp->fts_cur = p" assignments to
25276         immediately follow the statements that set P.  Derived from
25277         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
25278
25279 2007-01-10  Eric Blake  <ebb9@byu.net>
25280
25281         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
25282         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
25283         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25284         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
25285         Reported by Chris McGuire.
25286
25287 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25288
25289         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
25290         in sed script.
25291
25292 2007-01-09  Bruno Haible  <bruno@clisp.org>
25293
25294         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
25295         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
25296         variables.
25297         (func_module): Use them.
25298
25299 2007-01-09  Bruno Haible  <bruno@clisp.org>
25300
25301         * modules/unistr/base: New file.
25302         * lib/unistr.h: New file.
25303
25304         * modules/unistr/u8-to-u16: New file.
25305         * lib/unistr/u8-to-u16.c: New file.
25306
25307         * modules/unistr/u8-to-u32: New file.
25308         * lib/unistr/u8-to-u32.c: New file.
25309
25310         * modules/unistr/u16-to-u8: New file.
25311         * lib/unistr/u16-to-u8.c: New file.
25312
25313         * modules/unistr/u16-to-u32: New file.
25314         * lib/unistr/u16-to-u32.c: New file.
25315
25316         * modules/unistr/u32-to-u8: New file.
25317         * lib/unistr/u32-to-u8.c: New file.
25318
25319         * modules/unistr/u32-to-u16: New file.
25320         * lib/unistr/u32-to-u16.c: New file.
25321
25322         * modules/unistr/u8-check: New file.
25323         * modules/unistr/u16-check: New file.
25324         * modules/unistr/u32-check: New file.
25325         * lib/unistr/u8-check.c: New file.
25326         * lib/unistr/u16-check.c: New file.
25327         * lib/unistr/u32-check.c: New file.
25328
25329         * modules/unistr/u8-chr: New file.
25330         * modules/unistr/u16-chr: New file.
25331         * modules/unistr/u32-chr: New file.
25332         * lib/unistr/u8-chr.c: New file.
25333         * lib/unistr/u16-chr.c: New file.
25334         * lib/unistr/u32-chr.c: New file.
25335
25336         * modules/unistr/u8-cmp: New file.
25337         * modules/unistr/u16-cmp: New file.
25338         * modules/unistr/u32-cmp: New file.
25339         * lib/unistr/u8-cmp.c: New file.
25340         * lib/unistr/u16-cmp.c: New file.
25341         * lib/unistr/u32-cmp.c: New file.
25342
25343         * modules/unistr/u8-cpy: New file.
25344         * modules/unistr/u16-cpy: New file.
25345         * modules/unistr/u32-cpy: New file.
25346         * lib/unistr/u8-cpy.c: New file.
25347         * lib/unistr/u16-cpy.c: New file.
25348         * lib/unistr/u32-cpy.c: New file.
25349         * lib/unistr/u-cpy.h: New file.
25350
25351         * modules/unistr/u8-cpy-alloc: New file.
25352         * modules/unistr/u16-cpy-alloc: New file.
25353         * modules/unistr/u32-cpy-alloc: New file.
25354         * lib/unistr/u8-cpy-alloc.c: New file.
25355         * lib/unistr/u16-cpy-alloc.c: New file.
25356         * lib/unistr/u32-cpy-alloc.c: New file.
25357         * lib/unistr/u-cpy-alloc.h: New file.
25358
25359         * modules/unistr/u8-endswith: New file.
25360         * modules/unistr/u16-endswith: New file.
25361         * modules/unistr/u32-endswith: New file.
25362         * lib/unistr/u8-endswith.c: New file.
25363         * lib/unistr/u16-endswith.c: New file.
25364         * lib/unistr/u32-endswith.c: New file.
25365         * lib/unistr/u-endswith.h: New file.
25366
25367         * modules/unistr/u8-mblen: New file.
25368         * modules/unistr/u16-mblen: New file.
25369         * modules/unistr/u32-mblen: New file.
25370         * lib/unistr/u8-mblen.c: New file.
25371         * lib/unistr/u16-mblen.c: New file.
25372         * lib/unistr/u32-mblen.c: New file.
25373
25374         * modules/unistr/u8-mbtouc: New file.
25375         * modules/unistr/u16-mbtouc: New file.
25376         * modules/unistr/u32-mbtouc: New file.
25377         * lib/unistr/u8-mbtouc.c: New file.
25378         * lib/unistr/u16-mbtouc.c: New file.
25379         * lib/unistr/u32-mbtouc.c: New file.
25380
25381         * modules/unistr/u8-mbtouc-safe: New file.
25382         * modules/unistr/u16-mbtouc-safe: New file.
25383         * modules/unistr/u32-mbtouc-safe: New file.
25384         * lib/unistr/u8-mbtouc-safe.c: New file.
25385         * lib/unistr/u16-mbtouc-safe.c: New file.
25386         * lib/unistr/u32-mbtouc-safe.c: New file.
25387
25388         * modules/unistr/u8-move: New file.
25389         * modules/unistr/u16-move: New file.
25390         * modules/unistr/u32-move: New file.
25391         * lib/unistr/u8-move.c: New file.
25392         * lib/unistr/u16-move.c: New file.
25393         * lib/unistr/u32-move.c: New file.
25394         * lib/unistr/u-move.h: New file.
25395
25396         * modules/unistr/u8-next: New file.
25397         * modules/unistr/u16-next: New file.
25398         * modules/unistr/u32-next: New file.
25399         * lib/unistr/u8-next.c: New file.
25400         * lib/unistr/u16-next.c: New file.
25401         * lib/unistr/u32-next.c: New file.
25402
25403         * modules/unistr/u8-prev: New file.
25404         * modules/unistr/u16-prev: New file.
25405         * modules/unistr/u32-prev: New file.
25406         * lib/unistr/u8-prev.c: New file.
25407         * lib/unistr/u16-prev.c: New file.
25408         * lib/unistr/u32-prev.c: New file.
25409
25410         * modules/unistr/u8-set: New file.
25411         * modules/unistr/u16-set: New file.
25412         * modules/unistr/u32-set: New file.
25413         * lib/unistr/u8-set.c: New file.
25414         * lib/unistr/u16-set.c: New file.
25415         * lib/unistr/u32-set.c: New file.
25416         * lib/unistr/u-set.h: New file.
25417
25418         * modules/unistr/u8-startswith: New file.
25419         * modules/unistr/u16-startswith: New file.
25420         * modules/unistr/u32-startswith: New file.
25421         * lib/unistr/u8-startswith.c: New file.
25422         * lib/unistr/u16-startswith.c: New file.
25423         * lib/unistr/u32-startswith.c: New file.
25424         * lib/unistr/u-startswith.h: New file.
25425
25426         * modules/unistr/u8-stpcpy: New file.
25427         * modules/unistr/u16-stpcpy: New file.
25428         * modules/unistr/u32-stpcpy: New file.
25429         * lib/unistr/u8-stpcpy.c: New file.
25430         * lib/unistr/u16-stpcpy.c: New file.
25431         * lib/unistr/u32-stpcpy.c: New file.
25432         * lib/unistr/u-stpcpy.h: New file.
25433
25434         * modules/unistr/u8-stpncpy: New file.
25435         * modules/unistr/u16-stpncpy: New file.
25436         * modules/unistr/u32-stpncpy: New file.
25437         * lib/unistr/u8-stpncpy.c: New file.
25438         * lib/unistr/u16-stpncpy.c: New file.
25439         * lib/unistr/u32-stpncpy.c: New file.
25440         * lib/unistr/u-stpncpy.h: New file.
25441
25442         * modules/unistr/u8-strcat: New file.
25443         * modules/unistr/u16-strcat: New file.
25444         * modules/unistr/u32-strcat: New file.
25445         * lib/unistr/u8-strcat.c: New file.
25446         * lib/unistr/u16-strcat.c: New file.
25447         * lib/unistr/u32-strcat.c: New file.
25448         * lib/unistr/u-strcat.h: New file.
25449
25450         * modules/unistr/u8-strchr: New file.
25451         * modules/unistr/u16-strchr: New file.
25452         * modules/unistr/u32-strchr: New file.
25453         * lib/unistr/u8-strchr.c: New file.
25454         * lib/unistr/u16-strchr.c: New file.
25455         * lib/unistr/u32-strchr.c: New file.
25456
25457         * modules/unistr/u8-strcmp: New file.
25458         * modules/unistr/u16-strcmp: New file.
25459         * modules/unistr/u32-strcmp: New file.
25460         * lib/unistr/u8-strcmp.c: New file.
25461         * lib/unistr/u16-strcmp.c: New file.
25462         * lib/unistr/u32-strcmp.c: New file.
25463
25464         * modules/unistr/u8-strcpy: New file.
25465         * modules/unistr/u16-strcpy: New file.
25466         * modules/unistr/u32-strcpy: New file.
25467         * lib/unistr/u8-strcpy.c: New file.
25468         * lib/unistr/u16-strcpy.c: New file.
25469         * lib/unistr/u32-strcpy.c: New file.
25470         * lib/unistr/u-strcpy.h: New file.
25471
25472         * modules/unistr/u8-strcspn: New file.
25473         * modules/unistr/u16-strcspn: New file.
25474         * modules/unistr/u32-strcspn: New file.
25475         * lib/unistr/u8-strcspn.c: New file.
25476         * lib/unistr/u16-strcspn.c: New file.
25477         * lib/unistr/u32-strcspn.c: New file.
25478         * lib/unistr/u-strcspn.h: New file.
25479
25480         * modules/unistr/u8-strdup: New file.
25481         * modules/unistr/u16-strdup: New file.
25482         * modules/unistr/u32-strdup: New file.
25483         * lib/unistr/u8-strdup.c: New file.
25484         * lib/unistr/u16-strdup.c: New file.
25485         * lib/unistr/u32-strdup.c: New file.
25486         * lib/unistr/u-strdup.h: New file.
25487
25488         * modules/unistr/u8-strlen: New file.
25489         * modules/unistr/u16-strlen: New file.
25490         * modules/unistr/u32-strlen: New file.
25491         * lib/unistr/u8-strlen.c: New file.
25492         * lib/unistr/u16-strlen.c: New file.
25493         * lib/unistr/u32-strlen.c: New file.
25494         * lib/unistr/u-strlen.h: New file.
25495
25496         * modules/unistr/u8-strmblen: New file.
25497         * modules/unistr/u16-strmblen: New file.
25498         * modules/unistr/u32-strmblen: New file.
25499         * lib/unistr/u8-strmblen.c: New file.
25500         * lib/unistr/u16-strmblen.c: New file.
25501         * lib/unistr/u32-strmblen.c: New file.
25502
25503         * modules/unistr/u8-strmbtouc: New file.
25504         * modules/unistr/u16-strmbtouc: New file.
25505         * modules/unistr/u32-strmbtouc: New file.
25506         * lib/unistr/u8-strmbtouc.c: New file.
25507         * lib/unistr/u16-strmbtouc.c: New file.
25508         * lib/unistr/u32-strmbtouc.c: New file.
25509
25510         * modules/unistr/u8-strncat: New file.
25511         * modules/unistr/u16-strncat: New file.
25512         * modules/unistr/u32-strncat: New file.
25513         * lib/unistr/u8-strncat.c: New file.
25514         * lib/unistr/u16-strncat.c: New file.
25515         * lib/unistr/u32-strncat.c: New file.
25516         * lib/unistr/u-strncat.h: New file.
25517
25518         * modules/unistr/u8-strncmp: New file.
25519         * modules/unistr/u16-strncmp: New file.
25520         * modules/unistr/u32-strncmp: New file.
25521         * lib/unistr/u8-strncmp.c: New file.
25522         * lib/unistr/u16-strncmp.c: New file.
25523         * lib/unistr/u32-strncmp.c: New file.
25524
25525         * modules/unistr/u8-strncpy: New file.
25526         * modules/unistr/u16-strncpy: New file.
25527         * modules/unistr/u32-strncpy: New file.
25528         * lib/unistr/u8-strncpy.c: New file.
25529         * lib/unistr/u16-strncpy.c: New file.
25530         * lib/unistr/u32-strncpy.c: New file.
25531         * lib/unistr/u-strncpy.h: New file.
25532
25533         * modules/unistr/u8-strnlen: New file.
25534         * modules/unistr/u16-strnlen: New file.
25535         * modules/unistr/u32-strnlen: New file.
25536         * lib/unistr/u8-strnlen.c: New file.
25537         * lib/unistr/u16-strnlen.c: New file.
25538         * lib/unistr/u32-strnlen.c: New file.
25539         * lib/unistr/u-strnlen.h: New file.
25540
25541         * modules/unistr/u8-strpbrk: New file.
25542         * modules/unistr/u16-strpbrk: New file.
25543         * modules/unistr/u32-strpbrk: New file.
25544         * lib/unistr/u8-strpbrk.c: New file.
25545         * lib/unistr/u16-strpbrk.c: New file.
25546         * lib/unistr/u32-strpbrk.c: New file.
25547         * lib/unistr/u-strpbrk.h: New file.
25548
25549         * modules/unistr/u8-strrchr: New file.
25550         * modules/unistr/u16-strrchr: New file.
25551         * modules/unistr/u32-strrchr: New file.
25552         * lib/unistr/u8-strrchr.c: New file.
25553         * lib/unistr/u16-strrchr.c: New file.
25554         * lib/unistr/u32-strrchr.c: New file.
25555
25556         * modules/unistr/u8-strspn: New file.
25557         * modules/unistr/u16-strspn: New file.
25558         * modules/unistr/u32-strspn: New file.
25559         * lib/unistr/u8-strspn.c: New file.
25560         * lib/unistr/u16-strspn.c: New file.
25561         * lib/unistr/u32-strspn.c: New file.
25562         * lib/unistr/u-strspn.h: New file.
25563
25564         * modules/unistr/u8-strstr: New file.
25565         * modules/unistr/u16-strstr: New file.
25566         * modules/unistr/u32-strstr: New file.
25567         * lib/unistr/u8-strstr.c: New file.
25568         * lib/unistr/u16-strstr.c: New file.
25569         * lib/unistr/u32-strstr.c: New file.
25570         * lib/unistr/u-strstr.h: New file.
25571
25572         * modules/unistr/u8-strtok: New file.
25573         * modules/unistr/u16-strtok: New file.
25574         * modules/unistr/u32-strtok: New file.
25575         * lib/unistr/u8-strtok.c: New file.
25576         * lib/unistr/u16-strtok.c: New file.
25577         * lib/unistr/u32-strtok.c: New file.
25578         * lib/unistr/u-strtok.h: New file.
25579
25580         * modules/unistr/u8-uctomb: New file.
25581         * modules/unistr/u16-uctomb: New file.
25582         * modules/unistr/u32-uctomb: New file.
25583         * lib/unistr/u8-uctomb.c: New file.
25584         * lib/unistr/u16-uctomb.c: New file.
25585         * lib/unistr/u32-uctomb.c: New file.
25586
25587         * MODULES.html.sh (Unicode string functions): Add the new modules.
25588
25589 2007-01-08  Bruno Haible  <bruno@clisp.org>
25590
25591         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
25592         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
25593         subdirectories.
25594
25595 2007-01-08  Karl Berry  <karl@gnu.org>
25596
25597         * doc/error.texi: mention that main() fns must set program_name
25598         when progname is used.
25599
25600 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
25601
25602         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
25603         WCTYPE_H is empty, for the benefit of builds from non-distclean
25604         directories.  Problem reported by Eric Blake in
25605         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
25606
25607 2007-01-08  Bruno Haible  <bruno@clisp.org>
25608
25609         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
25610         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
25611         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
25612         PROVIDE_CANONICALIZE_FILENAME_MODE.
25613         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
25614
25615 2007-01-08  Bruno Haible  <bruno@clisp.org>
25616
25617         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
25618         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
25619         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
25620         * lib/fts.c: Likewise.
25621         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
25622
25623 2006-12-25  Bruno Haible  <bruno@clisp.org>
25624
25625         * modules/utf8-ucs4-safe: New file.
25626         * lib/utf8-ucs4-safe.h: New file.
25627         * lib/unistr/utf8-ucs4-safe.c: New file.
25628
25629         * modules/utf16-ucs4-safe: New file.
25630         * lib/utf16-ucs4-safe.h: New file.
25631         * lib/unistr/utf16-ucs4-safe.c: New file.
25632
25633         * MODULES.html.sh (Unicode string functions): Add the new modules.
25634
25635 2007-01-08  Bruno Haible  <bruno@clisp.org>
25636
25637         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
25638         (Depends-on): Add unitypes.
25639         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
25640         (u8_mbtouc_aux): Move out to separate file.
25641         (u8_mbtouc): Use ucs4_t, uint8_t types.
25642         * lib/unistr/utf8-ucs4.c: New file.
25643
25644         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
25645         (Depends-on): Add unitypes.
25646         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
25647         (u16_mbtouc_aux): Move out to separate file.
25648         (u16_mbtouc): Use ucs4_t, uint16_t types.
25649         * lib/unistr/utf16-ucs4.c: New file.
25650
25651         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
25652         (Depends-on): Add unitypes.
25653         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
25654         (u8_uctomb_aux): Move out to separate file.
25655         (u8_uctomb): Use ucs4_t, uint8_t types.
25656         * lib/unistr/ucs4-utf8.c: New file.
25657
25658         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
25659         (Depends-on): Add unitypes.
25660         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
25661         (u16_uctomb_aux): Move out to separate file.
25662         (u16_uctomb): Use ucs4_t, uint16_t types.
25663         * lib/unistr/ucs4-utf16.c: New file.
25664
25665 2006-12-25  Bruno Haible  <bruno@clisp.org>
25666
25667         * modules/unitypes: New file.
25668         * lib/unitypes.h: New file.
25669         * MODULES.html.sh (func_all_modules): New section "Unicode string
25670         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
25671         this section. Add unitypes.
25672
25673 2007-01-08  Bruno Haible  <bruno@clisp.org>
25674
25675         Avoid variable names that conflict with those from libtool.
25676         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
25677         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
25678         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
25679         library_names_spec to acl_library_names_spec, hardcode_* to
25680         acl_hardcode_*.
25681         Reported by Ralf Wildenhues.
25682
25683 2007-01-08  Bruno Haible  <bruno@clisp.org>
25684
25685         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
25686         definition.
25687         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
25688         definition.
25689         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
25690         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
25691         definition.
25692         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
25693         definition.
25694         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
25695         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
25696         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
25697         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
25698         definition.
25699         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
25700         definition.
25701         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
25702         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
25703         GC_USE_<algorithm>.
25704         * lib/gc-libgcrypt.c: Likewise.
25705         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
25706         * modules/gc-arctwo (configure.ac): Likewise.
25707         * modules/gc-des (configure.ac): Likewise.
25708         * modules/gc-hmac-md5 (configure.ac): Likewise.
25709         * modules/gc-hmac-sha1 (configure.ac): Likewise.
25710         * modules/gc-md2 (configure.ac): Likewise.
25711         * modules/gc-md4 (configure.ac): Likewise.
25712         * modules/gc-md5 (configure.ac): Likewise.
25713         * modules/gc-random (configure.ac): Likewise.
25714         * modules/gc-rijndael (configure.ac): Likewise.
25715         * modules/gc-sha1 (configure.ac): Likewise.
25716
25717 2007-01-08  Bruno Haible  <bruno@clisp.org>
25718
25719         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
25720         macro definition.
25721         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
25722         definition.
25723         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
25724         definition.
25725         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
25726         * modules/fcntl-safer (configure.ac): Likewise.
25727         * modules/fopen-safer (configure.ac): Likewise.
25728         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
25729         GNULIB_FWRITEERROR macro definition.
25730
25731 2007-01-08  Bruno Haible  <bruno@clisp.org>
25732
25733         * m4/gnulib-common.m4: New file.
25734         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
25735         (func_get_filelist): Add m4/gnulib-common.m4.
25736
25737 2007-01-08  Bruno Haible  <bruno@clisp.org>
25738
25739         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
25740         command.
25741
25742 2007-01-08  Jim Meyering  <jim@meyering.net>
25743
25744         Use a more robust test for a "can't happen" condition.
25745         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
25746         narrowed the st_size value.  Presuming the "can't happen" condition
25747         is true, that narrowing could conceivably convert an invalid st_size
25748         value into a valid one.  Instead, use a change based on Matthew
25749         Woehlke's original patch.
25750
25751         Slight readability improvement: use an assert-like macro
25752         in place of literal "abort ()" uses.
25753         * lib/fts.c (fts_assert): Define.
25754         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
25755         Use this macro instead of a bare 'abort'.
25756
25757 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
25758
25759         Don't worry about using IRIX 5.3's wctype.h broken definitions;
25760         simply work around them.
25761         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
25762         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
25763         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
25764         declaring.
25765         Don't bother to define as macros, since the standard doesn't require it.
25766         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
25767         longer worry about IRIX 5.3.
25768         (HAVE_WCTYPE_CTMP_BUG): Remove.
25769
25770 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
25771
25772         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
25773         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
25774         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
25775         Problems reported by Georg Schwarz for IRIX 5.3.
25776
25777         * gnulib-tool (autoconf_minversion): Take the maximum version number
25778         found, not the minimum.  Problem reported by James Youngman.
25779
25780 2007-01-03  Karl Berry  <karl@gnu.org>
25781
25782         * doc/error.texi: new file, explaining interaction with progname.
25783         * doc/gnulib.texi: include it.  Update copyright.
25784
25785 2007-01-03  Simon Josefsson  <simon@josefsson.org>
25786
25787         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
25788         AC_CANONICAL_HOST, to improve autobuild outputs.
25789
25790 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
25791             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
25792
25793         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
25794         sockets, server sockets, and other file descriptors.  Count errors
25795         to compute the return value.  Reorder the code a bit to be easier
25796         to follow.  Don't set event bits that were not requested (except
25797         POLLERR and POLLHUP).
25798
25799 2007-01-01  Bruno Haible  <bruno@clisp.org>
25800
25801         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
25802
25803 2007-01-03  Jim Meyering  <jim@meyering.net>
25804
25805         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
25806
25807 2007-01-02  Bruno Haible  <bruno@clisp.org>
25808
25809         * modules/settime (Include): Require timespec.h.
25810         * modules/nanosleep (Include): Likewise.
25811
25812 2007-01-01  Bruno Haible  <bruno@clisp.org>
25813
25814         * gnulib-tool (func_emit_copyright_notice): Bump year.
25815         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
25816
25817 2007-01-01  Bruno Haible  <bruno@clisp.org>
25818
25819         Improve support for OpenBSD.
25820         * build-aux/config.rpath (libname_spec): Export.
25821         (library_names_spec): New variable. Export.
25822         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
25823         library_names_spec from the config.rpath output. Locate shared library
25824         through the name pattern in library_names_spec.
25825
25826 2007-01-01  Eric Blake  <ebb9@byu.net>
25827
25828         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
25829
25830 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
25831
25832         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
25833         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
25834         assume the C locale, and avoid an "eval" that could cause trouble.
25835         Problem with SORT reported by Bob Proulx.
25836
25837         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
25838         Define.  Trivial patch from Henning Nielsen Lund, originally
25839         sent to bug-grep@gnu.org today.
25840
25841 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25842
25843         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
25844         struct stat.  Problem reported by Henning Nielsen Lund.
25845         * lib/acl.c: Include acl.h first, to check interface.  Don't
25846         bother to include sys/types.h and sys/stat.h again.
25847
25848 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
25849
25850         Import the following change from libc; problem reported by
25851         Sven Verdoolaege.
25852
25853         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
25854
25855         [BZ #1373]
25856         * lib/argp.h: Remove __NTH for __argp_usage inline function.
25857
25858 2006-12-28  Jim Meyering  <jim@meyering.net>
25859
25860         * build-aux/announce-gen: Do not assume that the package
25861         builds any of tar.gz, tar.bz2, and .xdelta files.
25862         Suggestion from Simon Josefsson.
25863
25864 2006-12-28  Simon Josefsson  <simon@josefsson.org>
25865
25866         * modules/announce-gen: New file.
25867
25868 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25869
25870         * lib/mbchar.h: Just include <wctype.h>; the wctype module
25871         handles its gotchas now.
25872         * lib/mbswidth.c: Likewise.
25873         * lib/wcwidth.h: Likewise.
25874         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
25875         and iswcntrl; the wctype module does this stuff now.
25876         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
25877         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25878         * modules/mbchar (Depends-on): Add wctype.
25879         * modules/mbswidth (Depends-on): Likewise.
25880         * modules/wcwidth (Depends-on): Likewise.
25881
25882 2006-12-27  Eric Blake  <ebb9@byu.net>
25883
25884         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
25885         module uses more than what <wctype.h> is required to provide.
25886
25887 2006-12-26  Eric Blake  <ebb9@byu.net>
25888
25889         * gnulib-tool (sed_extract_prog): Avoid space-tab.
25890
25891 2006-12-26  Eric Blake  <ebb9@byu.net>
25892
25893         * modules/absolute-header: New module.
25894         * modules/fcntl (Depends-on): Depend on it.
25895         * modules/inttypes (Depends-on): Likewise.
25896         * modules/stdint (Depends-on): Likewise.
25897         * modules/sys_stat (Depends-on): Likewise.
25898         * modules/wctype (Depends-on): Likewise.
25899         * MODULES.html.sh (Support for building libraries and
25900         executables): Document it.
25901
25902 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
25903
25904         * gnulib-tool (SED): Remove, undoing previous change.
25905         The problem was that it broke coreutils on Solaris, because
25906         "sed --posix" leaked into a makefile.
25907         (sed): New alias, if 'alias' and GNU sed.
25908
25909 2006-12-24  Jim Meyering  <jim@meyering.net>
25910
25911         Work around an fchownat bug in glibc-2.4:
25912         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
25913         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
25914         in spite of the -P option.
25915         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
25916         New macros.
25917         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
25918         * modules/openat (Files): Add lib/fchownat.c.
25919         * lib/openat.c (fchownat): Don't define here.  Move to...
25920         * lib/fchownat.c: ...this new file.
25921
25922 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
25923
25924         Fix bug reported by Bruno Haible in
25925         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
25926         where quotearg.c didn't compile on Mac OS X 10.2 because it
25927         lacks <wchar.h> and wint_t.
25928         * lib/wctype_.h (__wctype_wint_t): New type.
25929         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
25930         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
25931         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
25932         Arg is now of type __wctype_wint_t, not wint_t.
25933         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
25934         substitute HAVE_WINT_T.
25935         * modules/wctype (Files): Add m4/wint_t.m4.
25936         (wctype.h): Substitute HAVE_WINT_T.
25937
25938 2006-12-23  Bruno Haible  <bruno@clisp.org>
25939
25940         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
25941
25942 2006-12-23  Bruno Haible  <bruno@clisp.org>
25943
25944         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
25945         S_ISLNK.
25946         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
25947         mingw.
25948
25949 2006-12-22  Bruno Haible  <bruno@clisp.org>
25950
25951         * lib/copy-file.c: Include acl.h.
25952         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
25953         Close the file descriptors only after being done with copy_acl.
25954         * modules/copy-file (Depends-on): Add acl.
25955
25956 2006-12-22  Bruno Haible  <bruno@clisp.org>
25957
25958         * gnulib-tool (SED): New variable.
25959         Use $SED instead of sed everywhere.
25960
25961 2006-12-22  Bruno Haible  <bruno@clisp.org>
25962
25963         * modules/no-c++: New file.
25964         * m4/no-c++.m4: New file.
25965         * MODULES.html.sh (Support for building libraries and executables):
25966         Add no-c++.
25967
25968 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
25969
25970         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
25971         Include <limits.h>, and use its INT_MAX to rewrite the
25972         j loop so that it does not overflow 'int'.  Problem reported by
25973         Ralf Wildenhues in
25974         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
25975         Play it safe by shifting left by 1 rather than multiplying by 2,
25976         as GCC is less likely to optimize this away when the value
25977         is signed (when it assumes overflow leads to undefined behavior).
25978         Also, don't assume time_t uses two's complement.
25979
25980 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
25981
25982         * MODULES.html.sh: New module wctype.
25983         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
25984         * lib/fnmatch.c: Don't bother to include <wchar.h> before
25985         <wctype.h>, since the new wctype module should fix this.
25986         * lib/quotearg.c: Include <wctype.h> unconditionally, since
25987         the wctype module should arrange for it.
25988         * lib/regex_internal.h: Likewise.
25989         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
25990         since the wctype module should handle this now.
25991         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
25992         * modules/fnmatch (Depends-on): Add wctype.
25993         * modules/quotearg (Depends-on): Likewise.
25994         * modules/regex (Depends-on): Likewise.
25995
25996 2006-12-19  Bruno Haible  <bruno@clisp.org>
25997
25998         * lib/strdup.h [C++]: Wrap definitions in extern "C".
25999         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
26000
26001 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26002
26003         * modules/savewd (Depends-on): Fix dependency on fcntl.
26004
26005 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26006
26007         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
26008         conforms to C99, rather than relying on the user's environment
26009         setting of STDINT_H.
26010
26011 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26012         and Eric Blake  <ebb9@byu.net>
26013
26014         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
26015         This is more consistent with the other defines here.
26016         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
26017         Port to z/OS.  Problem reported by Paul Gilmartin.
26018         Change local vars to use gl_ prefix rather than ac_.
26019         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
26020         with other defines.
26021         * modules/double-slash-root: New module.
26022         * modules/dirname (Files): Remove m4/double-slash-root.m4.
26023         (Depends-on): Add double-slash-root.
26024         * MODULES.html.sh (File system functions): Mention new module.
26025
26026 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
26027
26028         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
26029         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
26030         This is for the benefit of gzip, which doesn't do i18n.
26031
26032 2006-12-12  Jim Meyering  <jim@meyering.net>
26033
26034         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
26035         Reported by Andreas Schwab <schwab@suse.de>.
26036
26037 2006-12-12  Bruno Haible  <bruno@clisp.org>
26038
26039         Merge these changes.
26040         2006-09-05  Bruno Haible  <bruno@clisp.org>
26041         * lib/iconvme.c (iconv_string): No need to save and restore errno when
26042         iconv_alloc succeeded.
26043         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
26044         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
26045         test for " && dest " at the end - dest is always != NULL there. Call
26046         iconv with 4xNULL arguments initially, to reset the state. Call iconv
26047         with 2xNULL arguments, also to flush the state storage. Handle the
26048         IRIX iconv behaviour. Realloc the final result, to throw away unused
26049         memory.
26050
26051 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
26052
26053         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
26054         and fchmodat unconditionally, since glibc 2.4 has them.
26055         Problem reported by Arkadiusz Miskiewicz.
26056
26057 2006-12-10  Bruno Haible  <bruno@clisp.org>
26058
26059         * gnulib-tool (func_import): Show the include files only for those
26060         modules that are copied and specified.
26061         Reported by Karl Berry.
26062
26063 2006-12-08  Jim Meyering  <jim@meyering.net>
26064
26065         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
26066         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
26067
26068         * build-aux/announce-gen: Add two new options, both optional:
26069         --bootstrap-tools=TOOL_LIST
26070               a comma-separated list of tools, e.g.,
26071               autoconf,automake,bison,gnulib
26072         --gnulib-snapshot-date=DATE
26073               if gnulib is in the bootstrap tool list,
26074               then report this as the snapshot date.
26075               If not specified, use the current date/time.
26076               If you specify a date here, be sure it's UTC.
26077
26078 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26079
26080         * tests/test-argp-2.sh: Fix test to match actual output.
26081         (func_compare): Fix sed script to be portable.
26082
26083 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
26084
26085         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
26086         workaround for this case.  It is not autoconfigured now; offhand
26087         it's hard to see how to autoconfigure it.
26088
26089 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
26090
26091         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
26092         a directory that is about to be chowned.  Such a directory's
26093         initial file permissions should permit the owner only and this
26094         should not be changed until after the chown, since the group and
26095         other bits would be incorrect if they granted permission before
26096         the chown.
26097
26098         Fix porting problem for iswctype reported by Georg Schwarz in:
26099         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
26100         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
26101         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
26102         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
26103         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
26104
26105 2006-12-03  Jim Meyering  <jim@meyering.net>
26106
26107         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
26108         p->fts_statp may not yet be defined.
26109         (fts_read): Instead, set it in the caller, once p->fts_statp is
26110         sure to be defined, and corresponds to a top-level directory.
26111         This bug made du -x fail.  Here's the coreutils test case:
26112         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
26113         Reported by Mike Frysinger.
26114
26115 2006-12-01  Jim Meyering  <jim@meyering.net>
26116
26117         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
26118         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
26119         Reported by Simon Josefsson.
26120
26121 2006-11-30  Jim Meyering  <jim@meyering.net>
26122
26123         * m4/warning.m4: Use the all-permissive copyright notice
26124         recommended by RMS (rather than LGPL).
26125         * m4/vararrays.m4: Likewise.
26126         * m4/flexmember.m4: Likewise.
26127
26128 2006-11-29  Bruno Haible  <bruno@clisp.org>
26129
26130         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
26131         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
26132         using +=.
26133         Reported by Simon Josefsson <simon@josefsson.org>.
26134
26135 2006-11-28  James Youngman <jay@gnu.org>
26136
26137         * README: Advise users that they might find the bug-gnulib@gnu.org
26138         and autotools-announce@gnu.org mailing lists useful.
26139
26140 2006-11-28  Bruno Haible  <bruno@clisp.org>
26141
26142         * m4/ptrdiff_max.m4: Remove file.
26143
26144 2006-11-21  Bruno Haible  <bruno@clisp.org>
26145
26146         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
26147         _AC_COMPUTE_INT.
26148         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
26149         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
26150         _AC_COMPUTE_INT.
26151         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
26152         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
26153         _AC_COMPUTE_INT.
26154         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
26155
26156 2006-11-28  Jim Meyering  <jim@meyering.net>
26157
26158         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
26159         warning from "gcc -Wshadow" about shadowing the builtin.
26160
26161 2006-11-27  Bruno Haible  <bruno@clisp.org>
26162
26163         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
26164         _AC_COMPUTE_INT.
26165         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
26166
26167 2006-11-27  Bruno Haible  <bruno@clisp.org>
26168             Paul Eggert  <eggert@cs.ucla.edu>
26169
26170         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
26171
26172 2006-11-26  Bruno Haible  <bruno@clisp.org>
26173
26174         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
26175         noinst_LTLIBRARIES.
26176
26177 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
26178             Bruno Haible  <bruno@clisp.org>
26179
26180         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
26181         if compiling with "gcc -ansi".
26182
26183 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
26184
26185         Fix some incompatibilities with gcc -ansi -pedantic.
26186         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
26187         if compiling pedantically with GCC, unless it's C99 or later.
26188         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
26189         it mishandles gcc -ansi -pedantic as well.
26190         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
26191         if gcc -pedantic.
26192         * lib/regexec.c (check_node_accept_bytes): Don't use auto
26193         initializers for struct if -pedantic, unless it's C99 or later.
26194
26195 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
26196
26197         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
26198         Don't close an fd more than once. Identical atimes indicate
26199         success, not failure.
26200
26201 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
26202
26203         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
26204
26205 2006-11-23  Jim Meyering  <jim@meyering.net>
26206
26207         * build-aux/announce-gen: New file.  From coreutils.
26208
26209 2006-11-22  Jim Meyering  <jim@meyering.net>
26210
26211         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
26212         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
26213         (fts_read): Use a temporary to narrow the overused st_size member
26214         before using it in a switch statement.  Reported by Matthew Woehlke.
26215
26216         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
26217         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26218
26219 2006-11-20  Bruno Haible  <bruno@clisp.org>
26220
26221         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
26222         changequote instead of pairs of brackets.
26223         Reported by Andreas Schwab <schwab@suse.de>.
26224
26225 2006-11-21  Jim Meyering  <jim@meyering.net>
26226
26227         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
26228         so as to remain compatible with older compilers.
26229         Patch from Michael Deutschmann.
26230
26231 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
26232
26233         * MODULES.html.sh (File system functions): Add openat.
26234
26235         * lib/openat.h (rpl_fstatat): New macro, if
26236         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
26237         (fstatat): Define to rpl_fstatat under the same conditions,
26238         unless COMPILING_FSTATAT.
26239         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
26240         seems to have the bug.
26241         * lib/fstatat.c: New file.
26242         * modules/openat (Files): Add it.
26243
26244 2006-11-20  Bruno Haible  <bruno@clisp.org>
26245
26246         * Makefile: New file.
26247
26248 2006-11-20  Jim Meyering  <jim@meyering.net>
26249
26250         The beginnings of syntax-related checks for gnulib.
26251         * lib/Makefile: New file.
26252         * lib/t-idcache: New script.  Ensure that the two halves of
26253         idcache.c stay in sync.
26254
26255         * lib/idcache.c: Adjust comments in user- and group- portions to
26256         be more accurate, and to be consistent with one another.
26257
26258 2006-11-20  Jim Meyering  <jim@meyering.net>
26259
26260         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
26261         continue using the flexible array member (thus, this module performs
26262         half as many malloc calls), with the addition that...
26263         (getgroup, getuser): Consistently record a non-match via an empty
26264         "name" string, and map an empty string match to a NULL return value.
26265         * modules/idcache (Depends-on): Re-add flexmember.
26266
26267         * lib/idcache.c (getuser): Remove all uses of the register keyword.
26268         (getuidbyname, getgroup, getgidbyname): Likewise.
26269
26270         Use cleaner syntax: NULL rather than 0.
26271         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
26272
26273 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
26274
26275         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
26276         It mishandled the case where the group was missing.
26277         Problem reported by Greg Schafer.
26278         * modules/idcache: Likewise.
26279
26280 2006-11-18  Jim Meyering  <jim@meyering.net>
26281
26282         * check-module (%exempt_header): Add exception for some
26283         conditionally-included headers.
26284
26285         * modules/i-ring (Depends-on): Add verify.
26286         (License): Change to LGPL.
26287
26288 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
26289
26290         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
26291         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
26292         and inttostr.h.  Use snprintf rather than uinttostr, so that
26293         LGPLed code doesn't depend on GPLed.
26294
26295 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
26296
26297         * modules/inline (License): Change from GPL to LGPL.
26298
26299 2006-11-17  Jim Meyering  <jim@meyering.net>
26300
26301         * modules/d-type (License): Switch to LGPL.
26302
26303 2006-11-15  Bruno Haible  <bruno@clisp.org>
26304
26305         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
26306
26307 2006-11-15  Eric Blake  <ebb9@byu.net>
26308
26309         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
26310         the module dependency.
26311
26312 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26313             Bruno Haible  <bruno@clisp.org>
26314
26315         * gnulib-tool (func_create_testdir): Add license consistency check.
26316
26317 2006-11-15  Eric Blake  <ebb9@byu.net>
26318
26319         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
26320         random "(cached)" in configure output.
26321
26322 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26323
26324         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
26325         test for conforming inttypes.h is both announced and cached.
26326
26327         * MODULES.html.sh (seen_modules, seen_files): New variables.
26328         (func_module): Rewrite to use a few less gnulib-tool and sed
26329         invocations.  Avoid a couple of quadratic algorithms for ...
26330         (missed_modules, missed_files): ... these, with ...
26331         (func_append, func_tmpdir): ... these new functions, from
26332         gnulib-tool.  Analogously, install traps for cleanup.
26333
26334         * tests/test-gc.c (main): Remove unused variables.
26335         * tests/test-read-file.c: Include stdlib.h, for 'free'.
26336
26337 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
26338
26339         * modules/inttostr (License): Change to LGPL.
26340
26341 2006-11-14  Eric Blake  <ebb9@byu.net>
26342
26343         * modules/tempname (License): Change to LGPL.
26344
26345 2006-11-14  Eric Blake  <ebb9@byu.net>
26346
26347         * doc/functions.texi (Function Portability): *printf functions on
26348         Cygwin now understand all POSIX size specifiers.
26349
26350 2006-11-14  Bruno Haible  <bruno@clisp.org>
26351
26352         * modules/c-ctype (License): Change to LGPL.
26353
26354 2006-11-12  Bruno Haible  <bruno@clisp.org>
26355
26356         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26357         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
26358         for GNOME libraries, for which the include files are installed in
26359         subdirectories of $prefix/include.
26360
26361 2006-11-12  Bruno Haible  <bruno@clisp.org>
26362
26363         * m4/lib-link.m4: Require at least autoconf-2.54.
26364         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
26365         name to underscores for the --with option.
26366
26367 2006-11-13  Bruno Haible  <bruno@clisp.org>
26368
26369         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
26370         the tests directory.
26371         Reported by Ralf Wildenhues.
26372
26373 2006-11-13  Bruno Haible  <bruno@clisp.org>
26374
26375         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
26376         (func_emit_initmacro_end): Undo the override here.
26377         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
26378         Works around the famous automake error in coreutils.
26379
26380 2006-11-13  Eric Blake  <ebb9@byu.net>
26381
26382         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
26383         element, not its node.
26384
26385 2006-11-12  Bruno Haible  <bruno@clisp.org>
26386
26387         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
26388         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
26389
26390 2006-11-12  Bruno Haible  <bruno@clisp.org>
26391
26392         * gnulib-tool: New option --local-symlink.
26393         (func_usage): Document it.
26394         (lsymbolic): New variable.
26395         (func_import, func_create_testdir): If --symlink was not specified,
26396         test whether --local-symlink was specified and the file comes from
26397         the local_gnulib_dir.
26398
26399 2006-11-12  Bruno Haible  <bruno@clisp.org>
26400
26401         * gnulib-tool (func_ln): New function.
26402         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
26403
26404 2006-11-12  Bruno Haible  <bruno@clisp.org>
26405
26406         Finish support for source files in subdirectories.
26407         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
26408         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
26409         AUTOMAKE_OPTIONS.
26410         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
26411
26412 2006-11-12  Bruno Haible  <bruno@clisp.org>
26413
26414         * gnulib-tool (func_get_automake_snippet): Synthesize also an
26415         EXTRA_lib_SOURCES augmentation.
26416         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
26417
26418 2006-11-12  Jim Meyering  <jim@meyering.net>
26419
26420         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
26421         file descriptors.  This also averts a failure on systems with
26422         native openat support when a traversed directory lacks "x" access.
26423         * lib/fts_.h: Include "i-ring.h"
26424         (struct FTS) [fts_fd_ring]: New member.
26425         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
26426         (FCHDIR): Add parentheses.
26427         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
26428         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
26429         When descending, rather than simply closing the previous
26430         fts_cwd_fd value, push that file descriptor onto the ring.
26431         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
26432         (fts_open): Initialize the new fd_ring member.
26433         (fts_close): Clear the ring.
26434         (fts_safe_changedir): When possible, use our new fd_ring to skip
26435         the diropen and fstat and dev/ino comparison that would normally
26436         accompany a virtual `chdir ("..")'.
26437
26438         * modules/fts (Depends-on): Add i-ring.
26439         * modules/i-ring: New module.
26440         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
26441         * m4/i-ring.m4: New file.
26442
26443 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26444
26445         * gnulib-tool (func_create_testdir): Fix replacement of
26446         `build-aux' in configure.ac.  Run autotools in gltests
26447         subdirectory.
26448         (func_create_testdir, func_create_megatestdir, test): There is
26449         no need for '--force' in most autotool invocations in a new
26450         tree.  Actually fail the whole test if any of the tools, or the
26451         configure or make stages fail.
26452
26453         Sync from Automake.
26454         * build-aux/gnupload: Revert last change.  Add pointer to upload
26455         instructions of the GNU Maintenance Instructions.
26456         Suggestion by Karl Berry.
26457
26458 2006-11-10  Jim Meyering  <jim@meyering.net>
26459
26460         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
26461
26462 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
26463
26464         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
26465         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
26466         (bind_textdomain_codeset) [! ENABLE_NLS]:
26467         Evaluate all the arguments.  That way, callers get compatible behavior
26468         if the arguments have side effects.  Also, it avoids some GCC
26469         diagnostics in some cases; Joel E. Denny reported problems when Bison
26470         was configured with --enable-gcc-warnigs.
26471
26472 2006-11-10  Jim Meyering  <jim@meyering.net>
26473
26474         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
26475         relevant options in CFLAGS (like -O, -fno-inline) are taken into
26476         account.
26477
26478 2006-11-10  Jim Meyering  <jim@meyering.net>
26479
26480         * modules/inline: New file/module.
26481         * modules/xalloc (Files): Remove m4/inline.m4.
26482         (Depends-on): Add inline, instead.
26483         * modules/oset: Likewise.
26484         * modules/list: Likewise.
26485
26486 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
26487
26488         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
26489         Problem reported by Matthew Woehlke.
26490
26491 2006-11-09  Bruno Haible  <bruno@clisp.org>
26492
26493         * lib/tempname.c (gen_tempname): Remove variant that invokes
26494         __gen_tempname.
26495         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
26496         __gen_tempname.
26497
26498 2006-11-08  Bruno Haible  <bruno@clisp.org>
26499
26500         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
26501         to 'yes' instead of 'cross-compiling'.
26502
26503 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
26504
26505         * lib/quotearg.h (quotearg_free): New decl.
26506         * lib/quotearg.c (quotearg_free): New function.
26507         (slot0, nslots, slotvec0, slotvec):
26508         Now file-scope so that quotearg_free can get at them.
26509
26510 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26511
26512         Sync from Automake.
26513         * build-aux/gnupload: Add missing 'gnu' to example URL.
26514         Report by Karl Berry.
26515
26516 2006-11-08  Bruno Haible  <bruno@clisp.org>
26517
26518         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
26519         Suggested by Paul Eggert.
26520
26521 2006-11-08  Jim Meyering  <jim@meyering.net>
26522
26523         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
26524         It's already included if !_LIBC.
26525         (fts_safe_changedir): Add a comment.
26526
26527 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
26528
26529         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
26530         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
26531         Matthew Woehlke.
26532
26533         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
26534         definitions up, to avoid colliding with change below.
26535         (static_inline) [HAVE_INLINE]: New macro.
26536         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
26537         Provide extern decls when !HAVE_INLINE.  Do not define unless
26538         static_inline is defined, either by us or by xmalloc.c.  Use
26539         static_inline rather than static inline.
26540         (XCALLOC): Optimize sizeof(T) = 1 case.
26541         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
26542
26543 2006-11-07  Bruno Haible  <bruno@clisp.org>
26544
26545         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
26546         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
26547         AC_C_INLINE.
26548         * modules/xalloc (Files): Add m4/inline.m4.
26549
26550 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26551
26552         * README: Fix typo.
26553         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
26554         (Miscellanous Notes): ...from this.
26555
26556 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
26557
26558         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
26559         Mention that offsetof should be used instead of sizeof.
26560         From Bruno Haible.
26561
26562 2006-11-07  Bruno Haible  <bruno@clisp.org>
26563
26564         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
26565
26566 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
26567
26568         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
26569         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
26570         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
26571         (gl_tree_add_before, gl_tree_add_after):
26572         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
26573         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
26574         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
26575         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
26576         (gl_linked_add_after, gl_linked_add_at): Likewise.
26577         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
26578         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
26579         (gl_tree_add_before, gl_tree_add_after): Likewise.
26580         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
26581         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
26582         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
26583
26584 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26585
26586         * lib/gl_oset.h: Use C comment style, not C++ comment style.
26587
26588 2006-11-06  Bruno Haible  <bruno@clisp.org>
26589
26590         * m4/inline.m4: New file.
26591         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
26592         * modules/list (Files): Add m4/inline.m4.
26593         * modules/oset (Files): Likewise.
26594
26595 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
26596
26597         * lib/idcache.c: Include <stddef.h>, for offsetof.
26598         (struct userid.name): Change from char * to a flexible array member.
26599         All uses changed.
26600         * modules/idcache (Depends-on): Add flexmember.
26601
26602         * MODULES.html.sh (Core language properties): New module flexmember.
26603         * modules/flexmember, m4/flexmember.m4: New files.
26604
26605         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
26606         inline functions that are identical with the old xnmalloc_inline,
26607         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
26608         that we can avoid some unnecessary integer multiplications and
26609         divisions in the common case where the element size is known at
26610         compile time.
26611         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
26612         needed.
26613         (xnboundedmalloc): Remove.
26614         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
26615         arguments, for consistency with rest of this header.
26616         (xcharalloc): Rewrite using XNMALLOC.
26617         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
26618         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
26619         versions have been moved to lib/xalloc.h and renamed to be the
26620         non-*_inline versions.
26621         (xmalloc, xrealloc): Implement without reference to the xnmalloc
26622         and xnrealloc functions, since those functions are now inline and
26623         now call us.
26624         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
26625         renaming described above.
26626         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
26627         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
26628         captures the dependency in AC_C_INLINE.
26629
26630         New module canonicalize-lgpl, proposed by Charles Wilson in
26631         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
26632         with a few small changes afterwards.
26633         * MODULES.html.sh (File system functions): New module
26634         canonicalize-lgpl.
26635         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
26636         and canonicalize_file_name.
26637         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
26638         * modules/canonicalize-lgpl: New files.
26639
26640 2006-11-05  Bruno Haible  <bruno@clisp.org>
26641
26642         * gnulib-tool (func_import, func_create_testdir): Create directories
26643         also for files in subdirectories of lib/.
26644
26645 2006-11-05  Bruno Haible  <bruno@clisp.org>
26646
26647         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
26648         ANSI C compliant.
26649
26650 2006-11-03  Bruno Haible  <bruno@clisp.org>
26651
26652         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
26653         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
26654         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
26655         (xnboundedmalloc): New inline function.
26656         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
26657         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
26658         xmalloc.
26659         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
26660         xmalloc.
26661         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
26662         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
26663         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
26664         xmalloc.
26665         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
26666         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
26667         xmalloc.
26668         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
26669         gl_tree_add_after): Use XMALLOC instead of xmalloc.
26670         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
26671         xmalloc.
26672         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
26673         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
26674         gl_tree_add_after): Use XMALLOC instead of xmalloc.
26675         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
26676         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
26677         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
26678         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
26679
26680 2006-11-03  Bruno Haible  <bruno@clisp.org>
26681
26682         * lib/c-ctype.h [C++]: Define functions without name mangling.
26683         * lib/fwriteerror.h [C++]: Likewise.
26684         * lib/gcd.h [C++]: Likewise.
26685         * lib/linebreak.h [C++]: Likewise.
26686
26687 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
26688
26689         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
26690         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
26691         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
26692         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
26693         Check for functions and headers just once.
26694         Check for declaration of canonicalize_file_name.
26695         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
26696
26697 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
26698
26699         * gnulib-tool (func_import): Fix typo in actioncmd.
26700
26701 2006-11-02  Bruno Haible  <bruno@clisp.org>
26702
26703         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
26704         newline sequence in the Makefile.am snippet as a space, like "make"
26705         does.
26706         Reported by Roger Persson <perrog@gmail.com>.
26707
26708 2006-11-01  Bruno Haible  <bruno@clisp.org>
26709
26710         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
26711         already declared in <string.h>.
26712         * lib/strcase.h (strncasecmp): Don't declare it if yes.
26713
26714 2006-11-01  Bruno Haible  <bruno@clisp.org>
26715
26716         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
26717         * lib/strcase.h: Include <string.h>.
26718         (strcasecmp): Define to rpl_strcasecmp here.
26719
26720 2006-11-01  Bruno Haible  <bruno@clisp.org>
26721
26722         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
26723
26724 2006-11-01  Eric Blake  <ebb9@byu.net>
26725
26726         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
26727
26728         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
26729
26730 2006-10-29  Bruno Haible  <bruno@clisp.org>
26731
26732         Make it compile in C++ mode.
26733         * lib/full-write.c (full_rw): Add a cast.
26734
26735 2006-11-01  Bruno Haible  <bruno@clisp.org>
26736
26737         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
26738         be POSIX compliant.
26739         Reported by Roger Persson <perrog@gmail.com>.
26740
26741 2006-11-01  Eric Blake  <ebb9@byu.net>
26742
26743         * lib/getopt_.h: Fix comments.
26744
26745 2006-10-31  Eric Blake  <ebb9@byu.net>
26746
26747         * modules/tmpdir (Depends-on): Add sys_stat.
26748         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
26749         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
26750         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
26751         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
26752         tempname.
26753
26754 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
26755
26756         Avoid some C++ diagnostics reported by Bruno Haible.
26757         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
26758         xmalloc.
26759         (quotearg_alloc): Use xcharalloc rather than xmalloc.
26760         (struct slotvec): Move to top level.
26761         (quotearg_n_options): Rewrite to avoid xmalloc.
26762         * lib/xalloc.h (xcharalloc): New function.
26763         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
26764         [defined __cplusplus]: Add function template that provides result
26765         type propagation.  This part of the change is from Bruno Haible.
26766
26767 2006-10-29  Bruno Haible  <bruno@clisp.org>
26768
26769         Make it compile in C++ mode.
26770         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
26771         * lib/strnlen1.c (strnlen1): Cast memchr result.
26772         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
26773         * lib/clean-temp.c (string_equals, string_hash): Add casts.
26774         (create_temp_dir): Rename local variable 'template'.
26775         (compile_csharp_using_sscli): Add cast.
26776         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
26777         * lib/findprog.c (find_in_path): Likewise.
26778         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
26779         * lib/wait-process.c (register_slave_subprocess): Likewise.
26780
26781 2006-10-22  Bruno Haible  <bruno@clisp.org>
26782
26783         * modules/tsearch: New file.
26784         * lib/tsearch.h: New file.
26785         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
26786         * m4/tsearch.m4: New file.
26787         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
26788
26789 2006-10-29  Eric Blake  <ebb9@byu.net>
26790
26791         * lib/arcfour.c: Assume config.h.
26792         * lib/arctwo.c: Likewise.
26793         * lib/base64.c: Likewise.
26794         * lib/check-version.c: Likewise.
26795         * lib/crc.c: Likewise.
26796         * lib/des.c: Likewise.
26797         * lib/gc-gnulib.c: Likewise.
26798         * lib/gc-libgcrypt.c: Likewise.
26799         * lib/gc-pbkdf2-sha1.c: Likewise.
26800         * lib/getaddrinfo.c: Likewise.
26801         * lib/getdelim.c: Likewise.
26802         * lib/getline.c: Likewise.
26803         * lib/hmac-md5.c: Likewise.
26804         * lib/hmac-sha1.c: Likewise.
26805         * lib/iconvme.c: Likewise.
26806         * lib/md2.c: Likewise.
26807         * lib/md4.c: Likewise.
26808         * lib/memxor.c: Likewise.
26809         * lib/read-file.c: Likewise.
26810         * lib/readline.c: Likewise.
26811         * lib/rijndael-alg-fst.c: Likewise.
26812         * lib/rijndael-api-fst.c: Likewise.
26813         * lib/xgetdomainname.c: Likewise.
26814
26815 2006-10-28  Eric Blake  <ebb9@byu.net>
26816
26817         * lib/xstrndup.c: Assume config.h.
26818
26819 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
26820
26821         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
26822         stat-macros.h is now for our own macros, whereas stat_h is for
26823         macros in the <sys/stat.h> name space.
26824         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
26825         (STAT_MACROS_H): Remove.
26826         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
26827         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
26828         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
26829         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
26830         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
26831         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
26832         Move these macros to ...
26833         * lib/stat_.h: here.  Don't include stat-macros.h.
26834         * lib/canonicalize.c: Don't include stat-macros.h.
26835         * lib/chown.c: Likewise.
26836         * lib/euidaccess.c: Likewise.
26837         * lib/file-type.c: Likewise.
26838         * lib/filemode.c: Likewise.
26839         * lib/glob.c: Likewise.
26840         * lib/isapipe.c: Likewise.
26841         * lib/lchown.c: Likewise.
26842         * lib/lstat.c: Likewise.
26843         * lib/mkdir-p.c: Likewise.
26844         * lib/rmdir.c: Likewise.
26845         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
26846         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
26847         unless mkdir isn't declared, to speed up 'configure'.
26848         Always create sys/stat.h, since it's unlikely any real sys/stat.h
26849         would define all the S_* symbols.
26850         * modules/canonicalize (Depends-on):
26851         Depend on sys_stat, not stat-macros.
26852         * modules/chown: Likewise.
26853         * modules/euidaccess: Likewise.
26854         * modules/filemode: Likewise.
26855         * modules/file-type: Likewise.
26856         * modules/glob: Likewise.
26857         * modules/isapipe: Likewise.
26858         * modules/lchown: Likewise.
26859         * modules/lstat: Likewise.
26860         * modules/mkancesdirs: Likewise.
26861         * modules/rmdir: Likewise.
26862         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
26863         * modules/modechange: Likewise.
26864         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
26865         (configure.ac): Remove gl_STAT_MACROS.
26866         * modules/sys_stat (Depends-on): Remove stat-macros.
26867
26868 2006-10-27  Bruno Haible  <bruno@clisp.org>
26869
26870         * m4/signed.m4: Remove file.
26871         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
26872         invocation.
26873         * modules/vasnprintf (Files): Remove m4/signed.m4.
26874
26875 2006-10-27  Bruno Haible  <bruno@clisp.org>
26876
26877         Update to GNU gettext 0.16.
26878         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
26879         m4/inttypes-h.m4, m4/signed.m4.
26880         * m4/gettext.m4: Update to GNU gettext 0.16.
26881         * m4/intl.m4: New file, from GNU gettext.
26882         * m4/intldir.m4: New file, from GNU gettext.
26883         * config/srclist.txt: Update
26884
26885 2006-10-27  Eric Blake  <ebb9@byu.net>
26886
26887         * MODULES.html.sh: Document tempname.
26888         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
26889         dependencies.
26890         (Files): Move lib/tempname.c...
26891         * modules/tempname: ...to this new module.
26892         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
26893         (gl_PREREQ_TEMPNAME): Move...
26894         * m4/tempname.m4: ...to this new file.
26895         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
26896         * modules/sys_stat (Depends-on): Add stat-macros.
26897         * lib/stat_.h (includes): Pick up stat macros.
26898         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
26899         if stat macros are broken.
26900         * lib/tempname.c (includes): No need to include "stat-macros.h".
26901         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
26902         (direxists, __path_search) [!_LIBC]: Don't compile these in
26903         gnulib; the tmpdir module covers that.
26904         * lib/tempname.h: New file.
26905
26906 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
26907
26908         * COPYING: Explain how gnulib-tool converts licence headers.
26909         Almost all wording by Eric Blake.
26910
26911 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
26912
26913         * lib/mbchar.h (is_basic_table): Make read-only.
26914         * lib/mbchar.c (is_basic_table): Likewise.
26915         Reported by John Darrington.
26916
26917 2006-10-25  Bruno Haible  <bruno@clisp.org>
26918
26919         * lib/progname.h (set_program_name): Undefine before defining.
26920
26921 2006-10-25  Bruno Haible  <bruno@clisp.org>
26922
26923         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
26924         false for non-gcc C++ compilers.
26925         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
26926
26927 2006-10-24  Bruno Haible  <bruno@clisp.org>
26928
26929         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
26930         iconv implementations like Irix iconv.
26931
26932 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
26933
26934         * modules/vararrays: New file.
26935         * m4/vararrays.m4: New file, taken from diffutils.
26936         * MODULES.html.sh: New module vararrays.
26937
26938 2006-10-24  Karl Berry  <karl@gnu.org>
26939
26940         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
26941         Don't call GNU Unix.
26942
26943 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26944
26945         * users.txt: Add Libtool.
26946
26947         Sync from Libtool:
26948
26949         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
26950
26951         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
26952         to gnulib's policy of including config.h unconditionally.
26953
26954 2006-10-24  Bruno Haible  <bruno@clisp.org>
26955
26956         * modules/wcwidth (Files): Add m4/wint_t.m4.
26957         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
26958         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
26959
26960 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
26961
26962         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
26963         to pacify GCC with some -W flags enabled.  Problem reported by
26964         Bruno Haible.
26965
26966 2006-10-24  Jim Meyering  <jim@meyering.net>
26967
26968         * MODULES.html.sh: Remove uinttostr.  It's not a module.
26969         Reported by Karl Berry.
26970
26971 2006-10-23  Bruno Haible  <bruno@clisp.org>
26972
26973         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
26974
26975 2006-10-24  Bruno Haible  <bruno@clisp.org>
26976
26977         * lib/gl_list.h: Use C comment style, not C++ comment style.
26978
26979 2006-10-23  Eric Blake  <ebb9@byu.net>
26980
26981         * lib/getaddrinfo.c (includes): Add missing include.
26982
26983 2006-10-23  Bruno Haible  <bruno@clisp.org>
26984             Paul Eggert  <eggert@cs.ucla.edu>
26985
26986         Ability to rename obstack_free.
26987         * lib/obstack.h (__obstack_free): New macro. Declare instead of
26988         obstack_free.
26989         (obstack_free): Invoke the __obstack_free macro.
26990         * lib/obstack.c (obstack_free): Use __obstack_free macro.
26991
26992 2006-10-23  Bruno Haible  <bruno@clisp.org>
26993             Paul Eggert  <eggert@cs.ucla.edu>
26994
26995         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
26996         __argc, __argv from the declaration. (They are defined as macros on
26997         mingw.)
26998
26999 2006-10-22  Bruno Haible  <bruno@clisp.org>
27000
27001         * doc/gnulib-intro.texi: New file.
27002         * doc/gnulib.texi: Include it.
27003
27004 2006-10-21  Bruno Haible  <bruno@clisp.org>
27005
27006         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
27007         "Introduction", "Miscellanous Notes", "Particular Modules".
27008
27009 2006-10-21  Bruno Haible  <bruno@clisp.org>
27010
27011         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27012         Change mostlyclean-local rule to avoid sh syntax error from bash
27013         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
27014
27015 2006-10-23  Jim Meyering  <jim@meyering.net>
27016
27017         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
27018         in place of snprintf.
27019
27020         * modules/inttostr (Files): Add lib/uinttostr.c.
27021         * lib/uinttostr.c (inttostr): New file/function.
27022         * lib/inttostr.h (uinttostr): Declare.
27023         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
27024         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
27025         Add uinttostr.
27026         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
27027
27028 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
27029
27030         * lib/canonicalize.c (ELOOP): Define if not already defined.
27031         Problem reported by Bruno Haible in
27032         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
27033
27034 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
27035
27036         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
27037         Problem reported by Perry Smith and Ville Laurikari.
27038
27039         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
27040         uses.
27041
27042 2006-10-19  Bruno Haible  <bruno@clisp.org>
27043
27044         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
27045         for mingw.
27046
27047 2006-10-19  Bruno Haible  <bruno@clisp.org>
27048
27049         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
27050         Needed for mingw.
27051
27052 2006-10-19  Bruno Haible  <bruno@clisp.org>
27053
27054         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
27055
27056 2006-10-19  Bruno Haible  <bruno@clisp.org>
27057
27058         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
27059         it.
27060
27061 2006-10-19  Bruno Haible  <bruno@clisp.org>
27062
27063         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
27064         invocation.
27065
27066 2006-10-19  Bruno Haible  <bruno@clisp.org>
27067
27068         * gnulib-tool (func_create_testdir): Don't include ftruncate and
27069         mountlist by default.
27070
27071 2006-10-16  Bruno Haible  <bruno@clisp.org>
27072
27073         * lib/c-strstr.c: Include c-strstr.h.
27074
27075 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
27076
27077         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
27078         in a slash.
27079
27080 2006-10-18  Bruno Haible  <bruno@clisp.org>
27081
27082         * lib/lock.h [C++]: Wrap definitions in extern "C".
27083
27084 2006-10-18  Bruno Haible  <bruno@clisp.org>
27085
27086         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
27087         gl_LIBOBJS list.
27088
27089 2006-10-18  Bruno Haible  <bruno@clisp.org>
27090
27091         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
27092
27093 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
27094
27095         * lib/xstrtol.h: Include gettext.h.
27096         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
27097         Problem reported by Eric Blake.
27098         * modules/xstrtol (Depends-on): Add gettext-h.
27099
27100 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
27101
27102         * lib/strftime.c (advance): New macro.
27103         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
27104         incomplete type, so you can't add 0 to it.  Problem and patch
27105         reported by Eelco Dolstra for dietlibc.
27106
27107 2006-10-18  Jim Meyering  <jim@meyering.net>
27108
27109         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
27110         type for a local, and rename it: s/up/user_proc/.
27111
27112 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
27113
27114         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
27115         READ_UTMP_USER_PROCESS.
27116         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
27117
27118 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
27119
27120         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
27121         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
27122
27123 2006-10-17  Eric Blake  <ebb9@byu.net>
27124
27125         * lib/sigprocmask.c (sigprocmask): Fix typo.
27126
27127         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
27128
27129         * modules/clean-temp (Makefile.am): Don't add to make output...
27130         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
27131         config.h.
27132
27133 2006-10-17  Bruno Haible  <bruno@clisp.org>
27134
27135         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
27136         differently if DEFAULT_TEXT_DOMAIN is set.
27137
27138 2006-10-16  Bruno Haible  <bruno@clisp.org>
27139
27140         * lib/clean-temp.c: Include fwriteerror.h.
27141
27142 2006-10-16  Bruno Haible  <bruno@clisp.org>
27143
27144         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
27145
27146 2006-10-16  Bruno Haible  <bruno@clisp.org>
27147
27148         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
27149         * lib/sigprocmask.h: Include <sys/types.h>.
27150         (sigset_t): Use the system's definition if present.
27151
27152 2006-10-17  Eric Blake  <ebb9@byu.net>
27153
27154         * lib/xvasprintf.c (includes): Assume config.h.
27155         * lib/xasprintf.c (includes): Likewise.
27156
27157 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
27158
27159         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
27160         at least as wide as intmax_t.
27161
27162 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
27163
27164         (Imported from Automake.)
27165         * build-aux/gnupload: Update to version 1.1 of directive file.
27166
27167 2006-10-16  Eric Blake  <ebb9@byu.net>
27168
27169         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
27170         match Automake 1.10a.
27171
27172 2006-10-14  Bruno Haible  <bruno@clisp.org>
27173
27174         * modules/sigprocmask: New file.
27175         * lib/sigprocmask.h: New file.
27176         * lib/sigprocmask.c: New file.
27177         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
27178         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
27179         request sigprocmask.o.
27180         (gl_PREREQ_SIGPROCMASK): New macro.
27181         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
27182         (Depends-on): Add sigprocmask.
27183         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
27184         gt_SIGNALBLOCKING. Test for 'raise' only once.
27185         * lib/fatal-signal.c: Include sigprocmask.h.
27186         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
27187         unblock_fatal_signals): Define always.
27188         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27189         sigprocmask.
27190
27191 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
27192
27193         Sync from Automake.
27194         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
27195         which incorrectly sets the mode of an existing destination
27196         directory.  In some cases the unpatched install-sh could do the
27197         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
27198         system.  We hope this is rare in practice, but it's clearly worth
27199         fixing.  Problem reported by Alex Unleashed in
27200         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
27201         Also, don't bother to check for -m bugs unless we're using -m;
27202         suggested by Stepan Kasal.
27203
27204 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27205
27206         Sync from Automake.
27207         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
27208         `-c' flag, so they appear at the same position as in %FASTDEP%
27209         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
27210         which ignores unknown options only after the first non-option.
27211         Bug report against M4 by Nelson H. F. Beebe.
27212
27213 2006-10-13  Jim Meyering  <jim@meyering.net>
27214
27215         Fix a bug in yesterday's change.
27216         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
27217         p->fts_statp->st_dev would be used uninitialized.
27218         Ensures that we always call fts_stat on the very first entry.
27219         Miklos Szeredi reported that find -xdev stopped working.
27220
27221 2006-10-12  Bruno Haible  <bruno@clisp.org>
27222
27223         * gnulib-tool (func_get_automake_snippet): Append an automatically
27224         computed EXTRA_DIST augmentation.
27225         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
27226         * modules/alloca-opt (Makefile.am): Likewise.
27227         * modules/allocsa (Makefile.am): Likewise.
27228         * modules/arcfour (Makefile.am): Likewise.
27229         * modules/arctwo (Makefile.am): Likewise.
27230         * modules/argmatch (Makefile.am): Likewise.
27231         * modules/argz (Makefile.am): Likewise.
27232         * modules/atexit (Makefile.am): Likewise.
27233         * modules/backupfile (Makefile.am): Likewise.
27234         * modules/byteswap (Makefile.am): Likewise.
27235         * modules/c-strtod (Makefile.am): Likewise.
27236         * modules/c-strtold (Makefile.am): Likewise.
27237         * modules/calloc (Makefile.am): Likewise.
27238         * modules/canon-host (Makefile.am): Likewise.
27239         * modules/canonicalize (Makefile.am): Likewise.
27240         * modules/chdir-long (Makefile.am): Likewise.
27241         * modules/chdir-safer (Makefile.am): Likewise.
27242         * modules/check-version (Makefile.am): Likewise.
27243         * modules/chown (Makefile.am): Likewise.
27244         * modules/cloexec (Makefile.am): Likewise.
27245         * modules/close-stream (Makefile.am): Likewise.
27246         * modules/closeout (Makefile.am): Likewise.
27247         * modules/crc (Makefile.am): Likewise.
27248         * modules/csharpexec (Makefile.am): Likewise.
27249         * modules/cycle-check (Makefile.am): Likewise.
27250         * modules/des (Makefile.am): Likewise.
27251         * modules/dev-ino (Makefile.am): Likewise.
27252         * modules/dirfd (Makefile.am): Likewise.
27253         * modules/dirname (Makefile.am): Likewise.
27254         * modules/dup2 (Makefile.am): Likewise.
27255         * modules/eealloc (Makefile.am): Likewise.
27256         * modules/error (Makefile.am): Likewise.
27257         * modules/euidaccess (Makefile.am): Likewise.
27258         * modules/exclude (Makefile.am): Likewise.
27259         * modules/exitfail (Makefile.am): Likewise.
27260         * modules/fcntl-safer (Makefile.am): Likewise.
27261         * modules/fcntl (Makefile.am): Likewise.
27262         * modules/file-type (Makefile.am): Likewise.
27263         * modules/fileblocks (Makefile.am): Likewise.
27264         * modules/filemode (Makefile.am): Likewise.
27265         * modules/filenamecat (Makefile.am): Likewise.
27266         * modules/fnmatch (Makefile.am): Likewise.
27267         * modules/fopen-safer (Makefile.am): Likewise.
27268         * modules/fpending (Makefile.am): Likewise.
27269         * modules/fprintftime (Makefile.am): Likewise.
27270         * modules/free (Makefile.am): Likewise.
27271         * modules/fsusage (Makefile.am): Likewise.
27272         * modules/ftruncate (Makefile.am): Likewise.
27273         * modules/fts (Makefile.am): Likewise.
27274         * modules/gc-arcfour (Makefile.am): Likewise.
27275         * modules/gc-des (Makefile.am): Likewise.
27276         * modules/gc-hmac-md5 (Makefile.am): Likewise.
27277         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
27278         * modules/gc-md4 (Makefile.am): Likewise.
27279         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
27280         * modules/gc-sha1 (Makefile.am): Likewise.
27281         * modules/gc (Makefile.am): Likewise.
27282         * modules/getaddrinfo (Makefile.am): Likewise.
27283         * modules/getcwd (Makefile.am): Likewise.
27284         * modules/getdelim (Makefile.am): Likewise.
27285         * modules/getdomainname (Makefile.am): Likewise.
27286         * modules/getgroups (Makefile.am): Likewise.
27287         * modules/gethostname (Makefile.am): Likewise.
27288         * modules/gethrxtime (Makefile.am): Likewise.
27289         * modules/getline (Makefile.am): Likewise.
27290         * modules/getloadavg (Makefile.am): Likewise.
27291         * modules/getlogin_r (Makefile.am): Likewise.
27292         * modules/getndelim2 (Makefile.am): Likewise.
27293         * modules/getopt (Makefile.am): Likewise.
27294         * modules/getpagesize (Makefile.am): Likewise.
27295         * modules/getpass-gnu (Makefile.am): Likewise.
27296         * modules/getpass (Makefile.am): Likewise.
27297         * modules/getsubopt (Makefile.am): Likewise.
27298         * modules/gettime (Makefile.am): Likewise.
27299         * modules/gettimeofday (Makefile.am): Likewise.
27300         * modules/getugroups (Makefile.am): Likewise.
27301         * modules/getusershell (Makefile.am): Likewise.
27302         * modules/glob (Makefile.am): Likewise.
27303         * modules/group-member (Makefile.am): Likewise.
27304         * modules/hard-locale (Makefile.am): Likewise.
27305         * modules/hash (Makefile.am): Likewise.
27306         * modules/hmac-md5 (Makefile.am): Likewise.
27307         * modules/hmac-sha1 (Makefile.am): Likewise.
27308         * modules/human (Makefile.am): Likewise.
27309         * modules/idcache (Makefile.am): Likewise.
27310         * modules/imaxabs (Makefile.am): Likewise.
27311         * modules/imaxdiv (Makefile.am): Likewise.
27312         * modules/inet_ntop (Makefile.am): Likewise.
27313         * modules/inet_pton (Makefile.am): Likewise.
27314         * modules/intprops (Makefile.am): Likewise.
27315         * modules/inttostr (Makefile.am): Likewise.
27316         * modules/inttypes (Makefile.am): Likewise.
27317         * modules/isapipe (Makefile.am): Likewise.
27318         * modules/javaversion (Makefile.am): Likewise.
27319         * modules/lchmod (Makefile.am): Likewise.
27320         * modules/lchown (Makefile.am): Likewise.
27321         * modules/localcharset (Makefile.am): Likewise.
27322         * modules/long-options (Makefile.am): Likewise.
27323         * modules/lstat (Makefile.am): Likewise.
27324         * modules/malloc (Makefile.am): Likewise.
27325         * modules/mathl (Makefile.am): Likewise.
27326         * modules/mbchar (Makefile.am): Likewise.
27327         * modules/md2 (Makefile.am): Likewise.
27328         * modules/md4 (Makefile.am): Likewise.
27329         * modules/md5 (Makefile.am): Likewise.
27330         * modules/memcasecmp (Makefile.am): Likewise.
27331         * modules/memchr (Makefile.am): Likewise.
27332         * modules/memcmp (Makefile.am): Likewise.
27333         * modules/memcoll (Makefile.am): Likewise.
27334         * modules/memcpy (Makefile.am): Likewise.
27335         * modules/memmem (Makefile.am): Likewise.
27336         * modules/memmove (Makefile.am): Likewise.
27337         * modules/mempcpy (Makefile.am): Likewise.
27338         * modules/memrchr (Makefile.am): Likewise.
27339         * modules/memset (Makefile.am): Likewise.
27340         * modules/memxor (Makefile.am): Likewise.
27341         * modules/mkancesdirs (Makefile.am): Likewise.
27342         * modules/mkdir-p (Makefile.am): Likewise.
27343         * modules/mkdir (Makefile.am): Likewise.
27344         * modules/mkdtemp (Makefile.am): Likewise.
27345         * modules/mkstemp (Makefile.am): Likewise.
27346         * modules/mktime (Makefile.am): Likewise.
27347         * modules/modechange (Makefile.am): Likewise.
27348         * modules/mountlist (Makefile.am): Likewise.
27349         * modules/nanosleep (Makefile.am): Likewise.
27350         * modules/obstack (Makefile.am): Likewise.
27351         * modules/openat (Makefile.am): Likewise.
27352         * modules/pagealign_alloc (Makefile.am): Likewise.
27353         * modules/pathmax (Makefile.am): Likewise.
27354         * modules/physmem (Makefile.am): Likewise.
27355         * modules/poll (Makefile.am): Likewise.
27356         * modules/posixtm (Makefile.am): Likewise.
27357         * modules/posixver (Makefile.am): Likewise.
27358         * modules/putenv (Makefile.am): Likewise.
27359         * modules/quote (Makefile.am): Likewise.
27360         * modules/quotearg (Makefile.am): Likewise.
27361         * modules/raise (Makefile.am): Likewise.
27362         * modules/read-file (Makefile.am): Likewise.
27363         * modules/readline (Makefile.am): Likewise.
27364         * modules/readlink (Makefile.am): Likewise.
27365         * modules/readtokens (Makefile.am): Likewise.
27366         * modules/readutmp (Makefile.am): Likewise.
27367         * modules/realloc (Makefile.am): Likewise.
27368         * modules/regex (Makefile.am): Likewise.
27369         * modules/rename-dest-slash (Makefile.am): Likewise.
27370         * modules/rename (Makefile.am): Likewise.
27371         * modules/rijndael (Makefile.am): Likewise.
27372         * modules/rmdir (Makefile.am): Likewise.
27373         * modules/rpmatch (Makefile.am): Likewise.
27374         * modules/safe-read (Makefile.am): Likewise.
27375         * modules/safe-write (Makefile.am): Likewise.
27376         * modules/same-inode (Makefile.am): Likewise.
27377         * modules/same (Makefile.am): Likewise.
27378         * modules/save-cwd (Makefile.am): Likewise.
27379         * modules/savedir (Makefile.am): Likewise.
27380         * modules/setenv (Makefile.am): Likewise.
27381         * modules/settime (Makefile.am): Likewise.
27382         * modules/sha1 (Makefile.am): Likewise.
27383         * modules/sig2str (Makefile.am): Likewise.
27384         * modules/snprintf (Makefile.am): Likewise.
27385         * modules/stat-macros (Makefile.am): Likewise.
27386         * modules/stat-time (Makefile.am): Likewise.
27387         * modules/stdbool (Makefile.am): Likewise.
27388         * modules/stdint (Makefile.am): Likewise.
27389         * modules/stdlib-safer (Makefile.am): Likewise.
27390         * modules/stpcpy (Makefile.am): Likewise.
27391         * modules/stpncpy (Makefile.am): Likewise.
27392         * modules/strcase (Makefile.am): Likewise.
27393         * modules/strcasestr (Makefile.am): Likewise.
27394         * modules/strchrnul (Makefile.am): Likewise.
27395         * modules/strcspn (Makefile.am): Likewise.
27396         * modules/strdup (Makefile.am): Likewise.
27397         * modules/strerror (Makefile.am): Likewise.
27398         * modules/strftime (Makefile.am): Likewise.
27399         * modules/strndup (Makefile.am): Likewise.
27400         * modules/strnlen (Makefile.am): Likewise.
27401         * modules/strpbrk (Makefile.am): Likewise.
27402         * modules/strsep (Makefile.am): Likewise.
27403         * modules/strstr (Makefile.am): Likewise.
27404         * modules/strtod (Makefile.am): Likewise.
27405         * modules/strtoimax (Makefile.am): Likewise.
27406         * modules/strtok_r (Makefile.am): Likewise.
27407         * modules/strtol (Makefile.am): Likewise.
27408         * modules/strtoll (Makefile.am): Likewise.
27409         * modules/strtoul (Makefile.am): Likewise.
27410         * modules/strtoull (Makefile.am): Likewise.
27411         * modules/strtoumax (Makefile.am): Likewise.
27412         * modules/strverscmp (Makefile.am): Likewise.
27413         * modules/sys_socket (Makefile.am): Likewise.
27414         * modules/sys_stat (Makefile.am): Likewise.
27415         * modules/sysexits (Makefile.am): Likewise.
27416         * modules/time_r (Makefile.am): Likewise.
27417         * modules/timegm (Makefile.am): Likewise.
27418         * modules/timespec (Makefile.am): Likewise.
27419         * modules/tmpfile-safer (Makefile.am): Likewise.
27420         * modules/trim (Makefile.am): Likewise.
27421         * modules/unistd-safer (Makefile.am): Likewise.
27422         * modules/unlinkdir (Makefile.am): Likewise.
27423         * modules/unlocked-io (Makefile.am): Likewise.
27424         * modules/userspec (Makefile.am): Likewise.
27425         * modules/utime (Makefile.am): Likewise.
27426         * modules/utimecmp (Makefile.am): Likewise.
27427         * modules/utimens (Makefile.am): Likewise.
27428         * modules/vasnprintf (Makefile.am): Likewise.
27429         * modules/vasprintf (Makefile.am): Likewise.
27430         * modules/vsnprintf (Makefile.am): Likewise.
27431         * modules/xalloc (Makefile.am): Likewise.
27432         * modules/xgetcwd (Makefile.am): Likewise.
27433         * modules/xnanosleep (Makefile.am): Likewise.
27434         * modules/xreadlink (Makefile.am): Likewise.
27435         * modules/xstrtod (Makefile.am): Likewise.
27436         * modules/xstrtol (Makefile.am): Likewise.
27437         * modules/xstrtold (Makefile.am): Likewise.
27438         * modules/yesno (Makefile.am): Likewise.
27439         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
27440
27441 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
27442
27443         * modules/error (Makefile.am): Distribute files through
27444         EXTRA_DIST, not lib_SOURCES.
27445
27446 2006-10-12  Eric Blake  <ebb9@byu.net>
27447
27448         * modules/error (Makefile.am): Distribute files in /lib.
27449         * modules/obstack (Makefile.am): Likewise.
27450
27451 2006-10-12  Bruno Haible  <bruno@clisp.org>
27452
27453         * modules/acl (Makefile.am): Distribute all files in lib/ through
27454         EXTRA_DIST.
27455         * modules/arcfour (Makefile.am): Likewise.
27456         * modules/arctwo (Makefile.am): Likewise.
27457         * modules/argmatch (Makefile.am): Likewise.
27458         * modules/argz (Makefile.am): Likewise.
27459         * modules/atexit (Makefile.am): Likewise.
27460         * modules/backupfile (Makefile.am): Likewise.
27461         * modules/c-strtod (Makefile.am): Likewise.
27462         * modules/c-strtold (Makefile.am): Likewise.
27463         * modules/calloc (Makefile.am): Likewise.
27464         * modules/canon-host (Makefile.am): Likewise.
27465         * modules/canonicalize (Makefile.am): Likewise.
27466         * modules/chdir-long (Makefile.am): Likewise.
27467         * modules/chdir-safer (Makefile.am): Likewise.
27468         * modules/check-version (Makefile.am): Likewise.
27469         * modules/chown (Makefile.am): Likewise.
27470         * modules/cloexec (Makefile.am): Likewise.
27471         * modules/close-stream (Makefile.am): Likewise.
27472         * modules/closeout (Makefile.am): Likewise.
27473         * modules/crc (Makefile.am): Likewise.
27474         * modules/cycle-check (Makefile.am): Likewise.
27475         * modules/des (Makefile.am): Likewise.
27476         * modules/dirfd (Makefile.am): Likewise.
27477         * modules/dirname (Makefile.am): Likewise.
27478         * modules/dup2 (Makefile.am): Likewise.
27479         * modules/euidaccess (Makefile.am): Likewise.
27480         * modules/exclude (Makefile.am): Likewise.
27481         * modules/exitfail (Makefile.am): Likewise.
27482         * modules/fcntl-safer (Makefile.am): Likewise.
27483         * modules/file-type (Makefile.am): Likewise.
27484         * modules/fileblocks (Makefile.am): Likewise.
27485         * modules/filemode (Makefile.am): Likewise.
27486         * modules/filenamecat (Makefile.am): Likewise.
27487         * modules/fnmatch (Makefile.am): Likewise.
27488         * modules/fopen-safer (Makefile.am): Likewise.
27489         * modules/fpending (Makefile.am): Likewise.
27490         * modules/fprintftime (Makefile.am): Likewise.
27491         * modules/free (Makefile.am): Likewise.
27492         * modules/fsusage (Makefile.am): Likewise.
27493         * modules/ftruncate (Makefile.am): Likewise.
27494         * modules/fts (Makefile.am): Likewise.
27495         * modules/gc (Makefile.am): Likewise.
27496         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
27497         * modules/getaddrinfo (Makefile.am): Likewise.
27498         * modules/getcwd (Makefile.am): Likewise.
27499         * modules/getdelim (Makefile.am): Likewise.
27500         * modules/getdomainname (Makefile.am): Likewise.
27501         * modules/getgroups (Makefile.am): Likewise.
27502         * modules/gethostname (Makefile.am): Likewise.
27503         * modules/gethrxtime (Makefile.am): Likewise.
27504         * modules/getline (Makefile.am): Likewise.
27505         * modules/getloadavg (Makefile.am): Likewise.
27506         * modules/getlogin_r (Makefile.am): Likewise.
27507         * modules/getopt (Makefile.am): Likewise.
27508         * modules/getpass (Makefile.am): Likewise.
27509         * modules/getpass-gnu (Makefile.am): Likewise.
27510         * modules/getsubopt (Makefile.am): Likewise.
27511         * modules/gettime (Makefile.am): Likewise.
27512         * modules/gettimeofday (Makefile.am): Likewise.
27513         * modules/getugroups (Makefile.am): Likewise.
27514         * modules/getusershell (Makefile.am): Likewise.
27515         * modules/glob (Makefile.am): Likewise.
27516         * modules/group-member (Makefile.am): Likewise.
27517         * modules/hard-locale (Makefile.am): Likewise.
27518         * modules/hash (Makefile.am): Likewise.
27519         * modules/hmac-md5 (Makefile.am): Likewise.
27520         * modules/hmac-sha1 (Makefile.am): Likewise.
27521         * modules/human (Makefile.am): Likewise.
27522         * modules/idcache (Makefile.am): Likewise.
27523         * modules/imaxabs (Makefile.am): Likewise.
27524         * modules/imaxdiv (Makefile.am): Likewise.
27525         * modules/inet_ntop (Makefile.am): Likewise.
27526         * modules/inet_pton (Makefile.am): Likewise.
27527         * modules/inttostr (Makefile.am): Likewise.
27528         * modules/isapipe (Makefile.am): Likewise.
27529         * modules/lchown (Makefile.am): Likewise.
27530         * modules/long-options (Makefile.am): Likewise.
27531         * modules/lstat (Makefile.am): Likewise.
27532         * modules/malloc (Makefile.am): Likewise.
27533         * modules/mathl (Makefile.am): Likewise.
27534         * modules/mbchar (Makefile.am): Likewise.
27535         * modules/md2 (Makefile.am): Likewise.
27536         * modules/md4 (Makefile.am): Likewise.
27537         * modules/md5 (Makefile.am): Likewise.
27538         * modules/memcasecmp (Makefile.am): Likewise.
27539         * modules/memchr (Makefile.am): Likewise.
27540         * modules/memcmp (Makefile.am): Likewise.
27541         * modules/memcoll (Makefile.am): Likewise.
27542         * modules/memcpy (Makefile.am): Likewise.
27543         * modules/memmem (Makefile.am): Likewise.
27544         * modules/memmove (Makefile.am): Likewise.
27545         * modules/mempcpy (Makefile.am): Likewise.
27546         * modules/memrchr (Makefile.am): Likewise.
27547         * modules/memset (Makefile.am): Likewise.
27548         * modules/memxor (Makefile.am): Likewise.
27549         * modules/mkancesdirs (Makefile.am): Likewise.
27550         * modules/mkdir (Makefile.am): Likewise.
27551         * modules/mkdir-p (Makefile.am): Likewise.
27552         * modules/mkdtemp (Makefile.am): Likewise.
27553         * modules/mkstemp (Makefile.am): Likewise.
27554         * modules/mktime (Makefile.am): Likewise.
27555         * modules/modechange (Makefile.am): Likewise.
27556         * modules/mountlist (Makefile.am): Likewise.
27557         * modules/nanosleep (Makefile.am): Likewise.
27558         * modules/openat (Makefile.am): Likewise.
27559         * modules/pagealign_alloc (Makefile.am): Likewise.
27560         * modules/physmem (Makefile.am): Likewise.
27561         * modules/poll (Makefile.am): Likewise.
27562         * modules/posixtm (Makefile.am): Likewise.
27563         * modules/posixver (Makefile.am): Likewise.
27564         * modules/putenv (Makefile.am): Likewise.
27565         * modules/quote (Makefile.am): Likewise.
27566         * modules/quotearg (Makefile.am): Likewise.
27567         * modules/raise (Makefile.am): Likewise.
27568         * modules/read-file (Makefile.am): Likewise.
27569         * modules/readline (Makefile.am): Likewise.
27570         * modules/readlink (Makefile.am): Likewise.
27571         * modules/readtokens (Makefile.am): Likewise.
27572         * modules/readutmp (Makefile.am): Likewise.
27573         * modules/realloc (Makefile.am): Likewise.
27574         * modules/regex (Makefile.am): Likewise.
27575         * modules/rename (Makefile.am): Likewise.
27576         * modules/rename-dest-slash (Makefile.am): Likewise.
27577         * modules/rijndael (Makefile.am): Likewise.
27578         * modules/rmdir (Makefile.am): Likewise.
27579         * modules/rpmatch (Makefile.am): Likewise.
27580         * modules/safe-read (Makefile.am): Likewise.
27581         * modules/safe-write (Makefile.am): Likewise.
27582         * modules/same (Makefile.am): Likewise.
27583         * modules/save-cwd (Makefile.am): Likewise.
27584         * modules/savedir (Makefile.am): Likewise.
27585         * modules/setenv (Makefile.am): Likewise.
27586         * modules/settime (Makefile.am): Likewise.
27587         * modules/sha1 (Makefile.am): Likewise.
27588         * modules/sig2str (Makefile.am): Likewise.
27589         * modules/snprintf (Makefile.am): Likewise.
27590         * modules/stdlib-safer (Makefile.am): Likewise.
27591         * modules/stpcpy (Makefile.am): Likewise.
27592         * modules/stpncpy (Makefile.am): Likewise.
27593         * modules/strcase (Makefile.am): Likewise.
27594         * modules/strcasestr (Makefile.am): Likewise.
27595         * modules/strchrnul (Makefile.am): Likewise.
27596         * modules/strcspn (Makefile.am): Likewise.
27597         * modules/strdup (Makefile.am): Likewise.
27598         * modules/strerror (Makefile.am): Likewise.
27599         * modules/strftime (Makefile.am): Likewise.
27600         * modules/strndup (Makefile.am): Likewise.
27601         * modules/strnlen (Makefile.am): Likewise.
27602         * modules/strpbrk (Makefile.am): Likewise.
27603         * modules/strsep (Makefile.am): Likewise.
27604         * modules/strstr (Makefile.am): Likewise.
27605         * modules/strtod (Makefile.am): Likewise.
27606         * modules/strtoimax (Makefile.am): Likewise.
27607         * modules/strtok_r (Makefile.am): Likewise.
27608         * modules/strtol (Makefile.am): Likewise.
27609         * modules/strtoll (Makefile.am): Likewise.
27610         * modules/strtoul (Makefile.am): Likewise.
27611         * modules/strtoull (Makefile.am): Likewise.
27612         * modules/strtoumax (Makefile.am): Likewise.
27613         * modules/strverscmp (Makefile.am): Likewise.
27614         * modules/time_r (Makefile.am): Likewise.
27615         * modules/timegm (Makefile.am): Likewise.
27616         * modules/tmpfile-safer (Makefile.am): Likewise.
27617         * modules/unistd-safer (Makefile.am): Likewise.
27618         * modules/unlinkdir (Makefile.am): Likewise.
27619         * modules/userspec (Makefile.am): Likewise.
27620         * modules/utime (Makefile.am): Likewise.
27621         * modules/utimecmp (Makefile.am): Likewise.
27622         * modules/utimens (Makefile.am): Likewise.
27623         * modules/vasnprintf (Makefile.am): Likewise.
27624         * modules/vasprintf (Makefile.am): Likewise.
27625         * modules/vsnprintf (Makefile.am): Likewise.
27626         * modules/xalloc (Makefile.am): Likewise.
27627         * modules/xgetcwd (Makefile.am): Likewise.
27628         * modules/xnanosleep (Makefile.am): Likewise.
27629         * modules/xreadlink (Makefile.am): Likewise.
27630         * modules/xstrtod (Makefile.am): Likewise.
27631         * modules/xstrtol (Makefile.am): Likewise.
27632         * modules/xstrtold (Makefile.am): Likewise.
27633         * modules/yesno (Makefile.am): Likewise.
27634
27635 2006-10-12  Jim Meyering  <jim@meyering.net>
27636
27637         * m4/getloadavg.m4: Revert the change below.
27638
27639         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
27640         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
27641         fail with a symlink, which is what coreutils' ./bootstrap now
27642         creates by default.
27643
27644 2006-10-12  Bruno Haible  <bruno@clisp.org>
27645
27646         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
27647         mingw.
27648         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
27649         MSVC and mingw explicitly.
27650
27651 2006-10-11  Simon Josefsson  <jas@extundo.com>
27652             Bruno Haible  <bruno@clisp.org>
27653
27654         Add support for multiple gnulib-tool invocations in the scope of a
27655         single configure.ac file.
27656         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
27657         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
27658         with the same contents as the _LIBADD variable.
27659         (func_emit_initmacro_start, func_emit_initmacro_end,
27660         func_emit_initmacro_done): New functions.
27661         (func_import, func_create_testdir): Invoke them. Allow the identifiers
27662         gl_LIBOBJS and gl_LTLIBOBJS.
27663
27664 2006-10-11  Bruno Haible  <bruno@clisp.org>
27665
27666         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
27667         (func_create_testdir): Don't create po/Makefile.am, don't invoke
27668         autoreconf. Instead, invoke autopoint explicitly but move back the
27669         *.m4 files from gnulib.
27670
27671 2006-10-11  Bruno Haible  <bruno@clisp.org>
27672
27673         * gnulib-tool (func_usage): Make module names after --create-testdir
27674         optional.
27675         (func_create_testdir): If no module was specified, use nearly all
27676         modules.
27677
27678 2006-10-12  Jim Meyering  <jim@meyering.net>
27679
27680         Big performance improvement for fts-based tools that use FTS_NOSTAT.
27681         Avoid spurious inode-mismatch problems on non-POSIX file systems.
27682         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
27683         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
27684         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
27685         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
27686         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
27687         (fts_set_stat_required): New function.
27688         (fts_open): Defer the calls to fts_stat, if possible or requested.
27689         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
27690         into fts_stat itself.
27691         (fts_read): Perform any required (deferred) fts_stat call.
27692         (fts_build): Likewise, for the directory we're about to open and read.
27693         In the readdir loop, carefully decide whether each entry will require
27694         an eventual call to fts_stat, using dirent.d_type info if available.
27695         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
27696         a command line argument into this function.  Update all callers.
27697         Map a return value of FTS_DOT to FTS_D for a command line argument.
27698         * modules/fts (Depends-on): Add d-type.  Alphabetize.
27699         Thanks to Miklos Szeredi for his tenacity and for the initial
27700         bug report about "find" failing on a FUSE-based file system.
27701
27702         * lib/fts.c (fts_open): Use consistent indentation.
27703
27704 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
27705
27706         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
27707         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
27708         reported by Jim Meyering.  All uses of cache variables renamed
27709         to match Autoconf's.
27710         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
27711         the other one.
27712
27713         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
27714         Fix misspelling in diagnostic.
27715
27716 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
27717
27718         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
27719         defined.  Problem reported by Matthew Woehlke.
27720
27721         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
27722         Add support for Tandem NonStop R series.
27723         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
27724         Use new macro.
27725
27726         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
27727         (has_trailing_slash): Omit size arg; all callers changed.
27728         Omit 'inline', since it doesn't help performance and we'd
27729         need to configure it.
27730         Don't count //, ///, etc. as having a trailing slash.
27731         As a side effect, this removes a C99ism reported by Matthew Woehlke.
27732         (rpl_rename_dest_slash): On failure, use rename's errno rather
27733         than (in some cases) an incorrect or junk errno.
27734         Simplify code by removing need to compute length; this does
27735         cause it to make two passes instead of one over the file name,
27736         but it's worth it.
27737
27738         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
27739         change, since Autoconf's version may no longer be appropriate now
27740         that we are using CVS Autoconf's version.  Add support for Tandem.
27741
27742 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
27743             Bruno Haible  <bruno@clisp.org>
27744
27745         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
27746         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
27747         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
27748         gl_AC_TYPE_LONG_LONG.
27749
27750         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
27751         instead of HAVE_LONG_LONG.
27752         * lib/printf-args.c (printf_fetchargs): Likewise.
27753         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
27754         * lib/vasnprintf.c (VASNPRINTF): Likewise.
27755         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
27756         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
27757         gl_AC_TYPE_LONG_LONG.
27758
27759 2006-10-11  Bruno Haible  <bruno@clisp.org>
27760
27761         * m4/longlong.m4: Add comments.
27762         * m4/ulonglong.m4: Likewise.
27763
27764 2006-10-10  Bruno Haible  <bruno@clisp.org>
27765
27766         Make it possible to #define stpcpy, strdup to aliases.
27767         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
27768         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
27769
27770 2006-10-10  Bruno Haible  <bruno@clisp.org>
27771
27772         Make it possible to #define gcd to an alias.
27773         * lib/gcd.c: Include config.h.
27774
27775 2006-10-10  Bruno Haible  <bruno@clisp.org>
27776
27777         Make it possible to #define c_isascii to an alias.
27778         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
27779         defined. Undefine the macros before defining them, to avoid gcc
27780         warnings.
27781         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
27782         define NO_C_CTYPE_MACROS early.
27783
27784 2006-10-10  Bruno Haible  <bruno@clisp.org>
27785
27786         Make it possible to #define set_program_name to an alias.
27787         * lib/progname.c: Don't undefine set_program_name; instead, undefine
27788         ENABLE_RELOCATABLE early.
27789
27790 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
27791
27792         Port to Tandem NSK OSS, which has 64-bit signed int but at most
27793         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
27794         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
27795         More generally, don't assume that 64-bit signed int is available
27796         if unsigned int is, and vice versa.
27797         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
27798         unsigned symbols, not on their signed counterparts.
27799         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
27800         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
27801         (UINT64_C, UINTMAX_C):
27802         Likewise.
27803         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
27804         unsigned counterparts.
27805         (Have_long_long, Unsigned): New macros.
27806         (Int): Renamed from INT.
27807         (strtoimax): Use the new macros.
27808         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
27809         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
27810         * modules/inttypes (inttypes.h): Substitute
27811         HAVE_UNSIGNED_LONG_LONG_INT.
27812         * modules/stdint (stdint.h): Likewise.
27813         (Files): Add m4/ulonglong.m4.
27814
27815 2006-10-10  Bruno Haible  <bruno@clisp.org>
27816
27817         Fix a gcc -Wshadow warning.
27818         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
27819         to 'bucket'.
27820         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
27821         gl_linked_indexof_from_to): Likewise.
27822         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
27823         Likewise.
27824         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
27825         Likewise.
27826         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
27827         Reported by Eric Blake.
27828
27829 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
27830
27831         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
27832         for NetBSD.  Problem reported by Bruno Haible.
27833
27834 2006-10-09  Jim Meyering  <jim@meyering.net>
27835
27836         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
27837         Patch from Bruno Haible.
27838
27839 2006-10-09  Jim Meyering  <jim@meyering.net>
27840
27841         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
27842         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
27843         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
27844
27845 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
27846
27847         Don't include <config.h> twice; this doesn't work in some cases,
27848         e.g., when config.h has "#define intmax_t long long int" and
27849         we include <config.h>, <inttypes.h>, <config.h> in that order.
27850         Problem reported by Matthew Woehlke in:
27851         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
27852         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
27853         * lib/fts-cycle.c: Don't include config.h.
27854         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
27855         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
27856         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
27857         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
27858         inttypes.h.
27859         * lib/xstrtoumax.c: Likewise.
27860         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
27861         __strtol and the like, so that this module is more like its siblings.
27862         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
27863         Remove; no longer needed now that we assume gnulib inttypes.h.
27864
27865 2006-10-08  Bruno Haible  <bruno@clisp.org>
27866
27867         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
27868         option.
27869
27870 2006-10-07  Jim Meyering  <jim@meyering.net>
27871
27872         * modules/inttypes (inttypes.h): Revert what seems to have been
27873         an inadvertent part of today's change: use "|", not "/" in the
27874         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
27875
27876 2006-10-07  Bruno Haible  <bruno@clisp.org>
27877
27878         * modules/sublist: New file.
27879
27880 2006-10-07  Bruno Haible  <bruno@clisp.org>
27881
27882         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
27883         * modules/argz (argz.h): Likewise.
27884         * modules/arpa_inet (arpa/inet.h): Likewise.
27885         * modules/byteswap (byteswap.h): Likewise.
27886         * modules/configmake (configmake.h): Likewise.
27887         * modules/fcntl (fcntl.h): Likewise.
27888         * modules/fnmatch (fnmatch.h): Likewise.
27889         * modules/getopt (getopt.h): Likewise.
27890         * modules/glob (glob.h): Likewise.
27891         * modules/inttypes (inttypes.h): Likewise.
27892         * modules/netinet_in (netinet/in.h): Likewise.
27893         * modules/poll (poll.h): Likewise.
27894         * modules/stdbool (stdbool.h): Likewise.
27895         * modules/stdint (stdint.h): Likewise.
27896         * modules/sys_select (sys/select.h): Likewise.
27897         * modules/sys_socket (sys/socket.h): Likewise.
27898         * modules/sys_stat (sys/stat.h): Likewise.
27899         * modules/sysexits (sysexits.h): Likewise.
27900         * modules/unistd (unistd.h): Likewise.
27901         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27902         Add a "DO NOT EDIT" comment to the generated file.
27903         (func_import): Likewise for gnulib-comp.m4.
27904
27905 2006-10-07  Bruno Haible  <bruno@clisp.org>
27906
27907         * lib/gl_sublist.h: New file.
27908         * lib/gl_sublist.c: New file.
27909
27910 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
27911
27912         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
27913         name (relative to the original working directory) and the file
27914         name component (relative to the temporary working directory).  All
27915         callers changed.
27916         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
27917         * lib/mkdir-p.c (make_dir_parents): Likewise.
27918         * lib/mkdir-p.h (make_dir_parents): Likewise.
27919
27920 2006-10-06  Eric Blake  <ebb9@byu.net>
27921
27922         Define several macros for use by the clean-temp module.
27923         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
27924         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
27925         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
27926
27927         * lib/clean-temp.h (close_stream_temp): New declaration.
27928         * lib/clean-temp.c (includes): Pull in headers according to what
27929         other modules are in use.
27930         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
27931
27932 2006-10-06  Bruno Haible  <bruno@clisp.org>
27933
27934         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
27935         instead of fopen, fwriteerror.
27936
27937 2006-10-06  Bruno Haible  <bruno@clisp.org>
27938
27939         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
27940         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
27941         int.
27942         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
27943         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
27944         Return an error indicator.
27945         Suggested by Eric Blake.
27946
27947 2006-10-06  Bruno Haible  <bruno@clisp.org>
27948
27949         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
27950         Reported by Eric Blake.
27951
27952 2006-10-06  Bruno Haible  <bruno@clisp.org>
27953
27954         * modules/closeout (Description): Mention stderr too.
27955
27956 2006-10-06  Bruno Haible  <bruno@clisp.org>
27957         and Paul Eggert  <eggert@cs.ucla.edu>
27958
27959         * lib/closeout.c (close_stdout): Also close stderr.
27960         * lib/closeout.h: Update comment.
27961
27962 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27963
27964         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
27965         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
27966         * lib/dirchownmod.c: Include lchown.h.
27967         * lib/lchown.c: Don't include files that lchown.h now includes.
27968         Don't declare chown, since lchown.h now does that.
27969         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
27970         (lchown): Define to rpl_chown if lchown is declared but
27971         does not exist.  Declare using a prototype if lchown is not
27972         declared.  Add a copyright notice.
27973         * lib/mkstemp.h: Include <unistd.h>.
27974         * lib/openat.c: Include lchown.h.
27975
27976         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
27977         we now test for that separately.
27978         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
27979         rather than O_NOFOLLOW, when testing whether it's possible to
27980         avoid a race condition reliably.
27981         * lib/savewd.c (savewd_chdir): Likewise.
27982
27983         Remove macros that are no longer needed now that stdint.h is
27984         reliable.
27985         * lib/fsusage.c (UINTMAX_MAX): Remove.
27986         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
27987         * lib/utimecmp.c (SIZE_MAX): Remove.
27988
27989         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
27990
27991         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
27992         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
27993         O_NOATIME works.
27994
27995 2006-10-05  Bruno Haible  <bruno@clisp.org>
27996
27997         * lib/gl_list.h (gl_sortedlist_search_from_to,
27998         gl_sortedlist_indexof_from_to): New declarations.
27999         (gl_list_implementation): New fields sortedlist_search_from_to,
28000         sortedlist_indexof_from_to.
28001         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
28002         inline functions.
28003         * lib/gl_list.c (gl_sortedlist_search_from_to,
28004         gl_sortedlist_indexof_from_to): New functions.
28005         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
28006         function.
28007         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
28008         (gl_array_sortedlist_search_from_to): New function.
28009         (gl_array_list_implementation): Update.
28010         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
28011         function.
28012         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
28013         (gl_carray_sortedlist_search_from_to): New function.
28014         (gl_carray_list_implementation): Update.
28015         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
28016         gl_linked_sortedlist_indexof_from_to): New functions.
28017         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
28018         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
28019         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
28020         gl_tree_sortedlist_indexof_from_to): New functions.
28021         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
28022         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
28023         Update.
28024         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
28025         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
28026         Update.
28027
28028 2006-10-05  Bruno Haible  <bruno@clisp.org>
28029
28030         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
28031         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
28032         (struct gl_list_implementation): Add fields search_from_to,
28033         indexof_from_to. Remove fields search, indexof.
28034         (gl_list_search): Use the search_from_to method.
28035         (gl_list_search_from, gl_list_search_from_to): New functions.
28036         (gl_list_indexof): Use the indexof_from_to method.
28037         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
28038         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
28039         (gl_list_search_from, gl_list_search_from_to): New functions.
28040         (gl_list_indexof): Use the indexof_from_to method.
28041         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
28042         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
28043         gl_array_indexof. Add start_index, end_index arguments.
28044         (gl_array_search_from_to): Renamed from gl_array_search. Add
28045         start_index, end_index arguments.
28046         (gl_array_remove, gl_array_list_implementation): Update.
28047         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
28048         gl_carray_indexof. Add start_index, end_index arguments.
28049         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
28050         start_index, end_index arguments.
28051         (gl_carray_remove, gl_carray_list_implementation): Update.
28052         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
28053         gl_linked_search. Add start_index, end_index arguments.
28054         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
28055         start_index, end_index arguments.
28056         (gl_linked_remove): Update.
28057         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
28058         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
28059         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
28060         field to 'size_t'.
28061         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
28062         gl_tree_search. Add start_index, end_index arguments.
28063         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
28064         start_index, end_index arguments.
28065         (gl_tree_remove): Update.
28066         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
28067         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
28068         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
28069         function.
28070         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
28071         gl_tree_search. Add start_index, end_index arguments.
28072         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
28073         start_index, end_index arguments.
28074         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
28075         Update.
28076         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
28077
28078 2006-10-05  Bruno Haible  <bruno@clisp.org>
28079
28080         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
28081
28082         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
28083         fwriteerror_temp): New declarations.
28084         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
28085         (descriptors): New variable.
28086         (cleanup): First, close the descriptors.
28087         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
28088         fclose_temp, fwriteerror_temp): New functions.
28089
28090 2006-10-04  Jim Meyering  <jim@meyering.net>
28091
28092         * lib/fts.c (fts_open): Tiny comment change.
28093
28094 2006-10-04  Bruno Haible  <bruno@clisp.org>
28095
28096         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
28097         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
28098         gl_LOCK_BODY.
28099         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
28100         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
28101         gl_LOCK_EARLY_BODY.
28102         (gl_LOCK): Require gl_LOCK_BODY.
28103
28104 2006-10-04  Bruno Haible  <bruno@clisp.org>
28105
28106         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
28107         (gl_oset_search_atleast): New declaration.
28108         (struct gl_oset_implementation): Add field 'search_atleast'.
28109         (gl_oset_search_atleast): New inline function.
28110         * lib/gl_oset.c (gl_oset_search_atleast): New function.
28111         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
28112         (gl_array_oset_implementation): Update.
28113         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
28114         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
28115         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
28116
28117 2006-10-04  Bruno Haible  <bruno@clisp.org>
28118
28119         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
28120
28121 2006-10-03  Bruno Haible  <bruno@clisp.org>
28122
28123         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
28124         from gl_avltreehash_list_implementation.
28125
28126 2006-10-03  Bruno Haible  <bruno@clisp.org>
28127
28128         * lib/gl_oset.c (gl_oset_add): Fix return type.
28129
28130 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
28131
28132         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
28133
28134 2006-10-02  Eric Blake  <ebb9@byu.net>
28135
28136         * modules/strnlen (Depends-on): Add extensions.
28137
28138 2006-10-02  Eric Blake  <ebb9@byu.net>
28139
28140         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
28141         definition in 2.60+.
28142
28143 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
28144
28145         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
28146         checks.
28147
28148 2006-10-02  Bruno Haible  <bruno@clisp.org>
28149
28150         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
28151         to the AUTOMAKE_OPTIONS.
28152         Reported by Jim Meyering.
28153
28154 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
28155
28156         Work around bug in Solaris 10 /proc file system:
28157         /proc/self/fd/NNN/.. isn't the parent directory of
28158         the directory whose file descriptor is NNN.  This needs to
28159         be worked around at run time, not compile time, since a
28160         program might be built on Solaris 8, where things work, and
28161         run on Solaris 10.
28162         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
28163         to use the following interface instead:
28164         (OPENAT_BUFFER_SIZE): New macro.
28165         (openat_proc_name): New function.
28166         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
28167         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
28168         Likewise.
28169         * lib/openat-proc.c: New file.
28170         * modules/openat (Files): Add lib/openat-proc.c.
28171         (Depends-on): Add same-inode, stdbool.
28172         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
28173
28174 2006-09-29  Bruno Haible  <bruno@clisp.org>
28175
28176         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
28177         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
28178         argument. Set stdout_closed before testing for ferror, not after.
28179         (fwriteerror, fwriteerror_no_ebadf): New functions.
28180
28181 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28182
28183         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
28184
28185 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
28186
28187         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
28188         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
28189
28190 2006-09-28  Jim Meyering  <jim@meyering.net>
28191
28192         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
28193         Include <unistd.h>.
28194
28195 2006-09-28  Bruno Haible  <bruno@clisp.org>
28196
28197         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
28198         * modules/linkedhash-list (Depends-on): Likewise.
28199         * modules/rbtreehash-list (Depends-on): Likewise.
28200
28201 2006-09-28  Bruno Haible  <bruno@clisp.org>
28202
28203         * lib/strndup.h: Simplify the redefinition of strndup.
28204         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
28205         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
28206
28207 2006-09-28  Bruno Haible  <bruno@clisp.org>
28208
28209         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
28210         * lib/gl_linkedhash_list.c: Likewise.
28211         * lib/gl_rbtreehash_list.c: Likewise.
28212
28213 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
28214
28215         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
28216         getaddrinfo.
28217
28218         * lib/__fpending.h: Don't include <stdio_ext.h> unless
28219         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
28220         it causes <stdio_ext.h> to cause a compile-time error.
28221         Problem reported by Nelson H. F. Beebe.
28222         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
28223         of HAVE_DECL___PENDING.
28224
28225         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
28226         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
28227         declaration.
28228
28229 2006-09-27  Jim Meyering  <jim@meyering.net>
28230
28231         This file could end up with a definition for a function
28232         named __strndup, rather than rpl_strndup on a system with
28233         incomplete weak_alias support.
28234         * lib/strndup.c (strndup): Rename from __strndup.
28235         Remove #defines that used to map __strndup to strndup.
28236         Don't use K&R prototypes.
28237         Remove LIBC-related code, since this file is not sync'd with glibc.
28238         * lib/strndup.h: Revamp, accordingly.
28239         * m4/strndup.m4: Modernize.
28240
28241 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
28242
28243         * modules/savewd (Depends-on): Add 'raise'.
28244         * lib/savewd.c: Include <signal.h>, for 'raise'.
28245
28246 2006-09-26  Jim Meyering  <jim@meyering.net>
28247
28248         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
28249         when we detect Darwin 8.7.0's acl_get_file bug.
28250         Rearrange to perform the new (below) run-test while $LIBS
28251         contains any acl-related library.  Set USE_ACL at the end.
28252         (gl_ACL_GET_FILE): New function.
28253
28254 2006-09-26  Eric Blake  <ebb9@byu.net>
28255
28256         * lib/verror.c: Include <config.h> unconditionally.
28257
28258 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
28259
28260         * modules/clock-time (Maintainer): Add self.
28261         * modules/getlogin_r (Depends-on): Add extensions.
28262
28263 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28264
28265         * modules/clock-time: New module.
28266         * modules/nanosleep (Depends-on): Add clock-time.
28267         * modules/gethrxtime (Depends-on): Likewise.
28268         * modules/gettime (Depends-on): Likewise.
28269         * modules/settime (Depends-on): Likewise.
28270
28271         * modules/fts-lgpl: Depend on openat.
28272         * modules/mkancesdirs: Depend on savewd.
28273         * modules/mkdir-p: Likewise.
28274
28275 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28276
28277         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
28278
28279         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
28280         `gl_have_arbitrary_file_name_length_limit' to
28281         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
28282         actually works between configure runs.
28283
28284 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28285             Bruno Haible  <bruno@clisp.org>
28286
28287         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
28288
28289 2006-09-25  Jim Meyering  <jim@meyering.net>
28290
28291         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
28292         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
28293
28294 2006-09-25  Eric Blake  <ebb9@byu.net>
28295
28296         * gnulib-tool (func_import, func_create_testdir): Fix typos in
28297         exec's in 2006-09-18 patch when shuffling fds.
28298
28299 2006-09-25  Bruno Haible  <bruno@clisp.org>
28300
28301         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
28302         Reported by Jim Meyering.
28303
28304 2006-09-24  Jim Meyering  <jim@meyering.net>
28305
28306         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
28307         compare a pointer against a literal "0".  That caused failures with
28308         at least HP-UX's hpcc.
28309
28310 2006-09-22  Simon Josefsson  <jas@extundo.com>
28311
28312         * modules/gc-sha1:
28313         * modules/gc-md4:
28314         * modules/gc-hmac-sha1:
28315         * modules/gc-hmac-md5:
28316         * modules/gc-des:
28317         * modules/gc-arcfour: Distribute more files.
28318
28319 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28320
28321         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
28322         (gl_linked_iterator_from_to): Initialize struct completely.
28323         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
28324         (gl_tree_iterator_from_to): Likewise
28325         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
28326         * lib/gl_array_list.c [lint] (gl_array_iterator)
28327         (gl_array_iterator_from_to): Likewise.
28328         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
28329         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
28330         (gl_carray_iterator_from_to): Likewise.
28331
28332         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
28333         * lib/md4.c (md4_process_block): Remove unused variable.
28334         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
28335         parentheses for clarity.
28336
28337 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28338
28339         * modules/bison-i18n (Depends-on): Add gettext.
28340
28341 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28342
28343         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
28344         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
28345         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
28346         also add missing comma that caused broken test.
28347         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
28348         stdlib.h, for `abort'.
28349         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
28350         variables.
28351         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
28352         include unistd.h if present, for `rmdir'.
28353         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
28354         variables.
28355         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
28356         in the process include standard headers for prototypes.
28357         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
28358         gets declared on GNU/Linux.
28359         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
28360         unistd.h, for `rmdir'.
28361         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
28362
28363         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
28364         always true.
28365         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
28366
28367         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
28368
28369 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28370
28371         * gnulib-tool (func_version): Create output all at once.  This
28372         may help avoid triggering unnecessary SIGPIPEs, and at any
28373         rate it doesn't hurt.
28374
28375 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28376             Bruno Haible  <bruno@clisp.org>
28377
28378         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
28379         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
28380         * m4/signed.m4 (bh_C_SIGNED): Likewise.
28381
28382         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
28383         (gl_FUNC_VASPRINTF): Invoke it.
28384
28385 2006-09-22  Bruno Haible  <bruno@clisp.org>
28386
28387         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
28388         getloadavg.c as first argument.
28389
28390 2006-09-22  Bruno Haible  <bruno@clisp.org>
28391
28392         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
28393         at the beginning of the gl_INIT macro.
28394         * modules/getloadavg (configure.ac): Pass $gl_source_base to
28395         gl_GETLOADAVG.
28396
28397 2006-09-22  Bruno Haible  <bruno@clisp.org>
28398
28399         * gnulib-tool (func_create_megatestdir): Don't include the config-h
28400         module.
28401         Suggested by Ralf Wildenhues.
28402
28403 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
28404
28405         Import this patch from libc:
28406
28407         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
28408
28409         * lib/regex_internal.c (re_string_reconstruct): Handle
28410         offset < pstr->valid_raw_len && pstr->offsets_needed case.
28411         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
28412         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
28413         re_string_context_at.
28414
28415         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
28416         now requires it.
28417         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
28418         gl_REGEX now does it for us.
28419         (gl_REGEX): Add test taken from
28420         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
28421
28422         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
28423         Check that large offsets work.  Modernize Autoconf usages.
28424         Prefer "yes" to mean a good thing rather than a bad.
28425         Don't put "#define mkstemp" in config.h, as this might interfere
28426         with standard system headers that "#define mkstemp mkstemp64".
28427
28428         * modules/mkstemp (Depends-on): Add extensions, so that
28429         mkstemp is visible on some platforms.
28430         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
28431         (Include): Change to "mkstemp.h" from <stdlib.h>.
28432         (Files): Add mkstemp.h.
28433
28434         * lib/mkstemp.h: New file, since some standard headers
28435         #define mkstemp.
28436         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
28437         Include "mkstemp.h".
28438         Make the _LIBC code resemble glibc original more,
28439         e.g., use K&R style.
28440         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
28441         (mkstemp): Remove, since mkstemp.h does this for us.
28442         * lib/stdlib--.h: Include mkstemp.h.
28443
28444         Import this patch from libc:
28445
28446         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
28447
28448         * lib/tempname.c (__gen_tempname): Change attempts_min
28449         into a macro.  Use preprocessor to decide how to initialize
28450         attempts [Coverity CID 67].
28451
28452 2006-09-20  Bruno Haible  <bruno@clisp.org>
28453
28454         * lib/mkdtemp.c: Import from libc.
28455         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
28456                 * sysdeps/posix/tempname.c (__gen_tempname): Change
28457                 attempts_min into a macro.  Use preprocessor to decide how to
28458                 initialize attempts [Coverity CID 67].
28459         2001-11-27  Paul Eggert  <eggert@twinsun.com>
28460                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
28461                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
28462
28463 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28464
28465         * gnulib-tool (func_exit): New function, to allow to pass the
28466         exit status portably through the trap.  Use everywhere.
28467         (--help, --version): Signal a write error.
28468         (trap): catch SIGPIPE, for write errors.
28469         Exit at the end of the trap, with the correct exit status.
28470
28471 2006-09-19  Karl Berry  <karl@gnu.org>
28472
28473         * doc/gnulib.texi: note about the license texinfo files.
28474
28475 2006-09-19  Eric Blake  <ebb9@byu.net>
28476
28477         * gnulib-tool: Avoid space-tab.
28478
28479 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
28480
28481         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
28482         that prevented coreutils 6.1 from building.  Problem reported
28483         by Petter Reinholdtsen.
28484
28485 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
28486
28487         * gnulib-tool (avoidlist): Fix typo that broke options like
28488         --avoid=lock that are used by coreutils bootstrap.
28489
28490 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
28491
28492         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
28493         more systematically.
28494
28495 2006-09-18  Jim Meyering  <jim@meyering.net>
28496
28497         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
28498
28499 2006-09-18  Bruno Haible  <bruno@clisp.org>
28500
28501         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
28502
28503 2006-09-18  Bruno Haible  <bruno@clisp.org>
28504
28505         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
28506         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
28507         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
28508         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
28509         * m4/gettext.m4: Require autoconf >= 2.52.
28510         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
28511         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
28512         of gl_cv_header_inttypes_h.
28513
28514 2006-09-18  Bruno Haible  <bruno@clisp.org>
28515
28516         * lib/javaversion.c: Include configmake.h.
28517
28518 2006-09-18  Bruno Haible  <bruno@clisp.org>
28519
28520         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
28521         avoid that the while loops be executed in a subshell.
28522
28523 2006-09-18  Bruno Haible  <bruno@clisp.org>
28524
28525         * MODULES.html.sh (func_module): Break long lines.
28526         Suggested by Bruce Korb <bkorb@gnu.org>.
28527
28528 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28529
28530         Speed up by a factor of 1.12.
28531         * gnulib-tool (nl): New variable.
28532         (func_import): Rewrite include directive extraction to only read each
28533         directive once.
28534
28535 2006-09-17  Bruno Haible  <bruno@clisp.org>
28536
28537         * modules/javaversion (Makefile.am): Remove DEFS setting.
28538         (Depends-on): Add configmake, for PKGDATADIR definition.
28539
28540 2006-09-17  Bruno Haible  <bruno@clisp.org>
28541
28542         * gnulib-tool (func_create_testdir): Rewrite all files at once.
28543
28544 2006-09-17  Bruno Haible  <bruno@clisp.org>
28545
28546         * gnulib-tool (func_append): New function, stolen from libtool.m4.
28547         (func_modules_transitive_closure, func_modules_add_dummy,
28548         func_modules_to_filelist, func_import, func_create_testdir,
28549         func_create_megatestdir, ...): Use it wherever possible.
28550         Suggested by Ralf Wildenhues.
28551
28552 2006-09-16  Karl Berry  <karl@gnu.org>
28553
28554         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
28555         to avoid sectioning errors.
28556         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
28557         [ifinfo]: blank line after @center-ed titles.
28558         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
28559         Spell FSF address consistently with others.
28560         (These changes approved by rms.)
28561
28562 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28563
28564         Speed up by a factor of 1.61.
28565         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
28566         already checked module names again.
28567
28568 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28569
28570         Speed up by a factor of 1.13.
28571         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
28572         for new_files, and the input to func_add_or_update.
28573
28574 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28575
28576         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
28577         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
28578
28579 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28580
28581         * modules/mkancesdirs (Depends-on): Add fcntl.
28582         * modules/savewd: New file.
28583         * MODULES.html.sh (File system functions): Add savewd.
28584
28585         * modules/configmake (Makefile.am): Add support for the
28586         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
28587
28588 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28589
28590         * m4/savewd.m4: New file.
28591
28592 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28593
28594         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
28595         (dirchownmod): New arg FD.  All callers changed.
28596         Use FD rather than opening the directory ourself, as opening is
28597         now the caller's responsibility.
28598         * lib/dirchownmod.h: Likewise.
28599         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
28600         hosts that require <sys/types.h> before <sys/stat.h>.  Include
28601         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
28602         (test_dir): Remove.
28603         (mkancesdirs): Return length of prefix of FILE that has already
28604         been made, or -2 if there is a child doing the work.  Redo
28605         algorithm so that it is O(N) rather than O(N**2).  Optimize away
28606         ".", and treat ".." specially since it might stray back into
28607         already-created areas.  Use a subprocess if necessary.  New arg
28608         WD; all users changed.  MAKE_DIR function should now return 1
28609         if it creates a directory that is not readable.  Return -2 if
28610         a child process is spun off.
28611         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
28612         Adjust signature to match code.
28613         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
28614         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
28615         all users changed.
28616         * lib/savewd.c, lib/savewd.h: New files.
28617
28618 2006-09-15  Jim Meyering  <jim@meyering.net>
28619
28620         * modules/rename-dest-slash: New module.
28621         * MODULES.html.sh (posix_compat): Add it here.
28622
28623         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
28624
28625 2006-09-15  Jim Meyering  <jim@meyering.net>
28626
28627         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
28628         file.
28629
28630         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
28631
28632 2006-09-15  Jim Meyering  <jim@meyering.net>
28633
28634         * lib/rename-dest-slash.c (has_trailing_slash): Use
28635         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
28636         (rpl_rename_dest_slash): Perform the cheaper trailing slash
28637         test before testing whether SRC is a directory.
28638         Suggestions from Bruno Haible.
28639
28640         Avoid a warning about an unused variable.
28641         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
28642         into the #ifdef block where it's used.
28643
28644         * lib/rename-dest-slash.c: New file.
28645
28646 2006-09-14  Bruno Haible  <bruno@clisp.org>
28647
28648         * lib/allocsa.c: Include <config.h> unconditionally.
28649         * lib/asnprintf.c: Likewise.
28650         * lib/asprintf.c: Likewise.
28651         * lib/c-strcasecmp.c: Likewise.
28652         * lib/c-strcasestr.c: Likewise.
28653         * lib/c-strncasecmp.c: Likewise.
28654         * lib/c-strstr.c: Likewise.
28655         * lib/classpath.c: Likewise.
28656         * lib/clean-temp.c: Likewise.
28657         * lib/concatpath.c: Likewise.
28658         * lib/copy-file.c: Likewise.
28659         * lib/csharpcomp.c: Likewise.
28660         * lib/csharpexec.c: Likewise.
28661         * lib/execute.c: Likewise.
28662         * lib/fatal-signal.c: Likewise.
28663         * lib/findprog.c: Likewise.
28664         * lib/fwriteerror.c: Likewise.
28665         * lib/gl_array_list.c: Likewise.
28666         * lib/gl_array_oset.c: Likewise.
28667         * lib/gl_avltree_list.c: Likewise.
28668         * lib/gl_avltree_oset.c: Likewise.
28669         * lib/gl_avltreehash_list.c: Likewise.
28670         * lib/gl_carray_list.c: Likewise.
28671         * lib/gl_linked_list.c: Likewise.
28672         * lib/gl_linkedhash_list.c: Likewise.
28673         * lib/gl_list.c: Likewise.
28674         * lib/gl_oset.c: Likewise.
28675         * lib/gl_rbtree_list.c: Likewise.
28676         * lib/gl_rbtree_oset.c: Likewise.
28677         * lib/gl_rbtreehash_list.c: Likewise.
28678         * lib/imaxabs.c: Likewise.
28679         * lib/imaxdiv.c: Likewise.
28680         * lib/javacomp.c: Likewise.
28681         * lib/javaexec.c: Likewise.
28682         * lib/javaversion.c: Likewise.
28683         * lib/linebreak.c: Likewise.
28684         * lib/localcharset.c: Likewise.
28685         * lib/lock.c: Likewise.
28686         * lib/mbchar.c: Likewise.
28687         * lib/mbswidth.c: Likewise.
28688         * lib/mkdtemp.c: Likewise.
28689         * lib/pipe.c: Likewise.
28690         * lib/printf-args.c: Likewise.
28691         * lib/printf-parse.c: Likewise.
28692         * lib/progname.c: Likewise.
28693         * lib/progreloc.c: Likewise.
28694         * lib/readlink.c: Likewise.
28695         * lib/sh-quote.c: Likewise.
28696         * lib/stpcpy.c: Likewise.
28697         * lib/stpncpy.c: Likewise.
28698         * lib/strcasecmp.c: Likewise.
28699         * lib/strcasestr.c: Likewise.
28700         * lib/strcspn.c: Likewise.
28701         * lib/striconv.c: Likewise.
28702         * lib/strncasecmp.c: Likewise.
28703         * lib/strnlen1.c: Likewise.
28704         * lib/strstr.c: Likewise.
28705         * lib/strtok_r.c: Likewise.
28706         * lib/tls.c: Likewise.
28707         * lib/tmpdir.c: Likewise.
28708         * lib/unicodeio.c: Likewise.
28709         * lib/unsetenv.c: Likewise.
28710         * lib/vasnprintf.c: Likewise.
28711         * lib/vasprintf.c: Likewise.
28712         * lib/wait-process.c: Likewise.
28713         * lib/xallocsa.c: Likewise.
28714         * lib/xsetenv.c: Likewise.
28715         * lib/xstriconv.c: Likewise.
28716
28717 2006-09-13  Simon Josefsson  <jas@extundo.com>
28718
28719         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
28720         that internally, suggested by Ralf Wildenhues
28721         <Ralf.Wildenhues@gmx.de>.
28722
28723 2006-09-13  Simon Josefsson  <jas@extundo.com>
28724
28725         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
28726         @LIBOBJS@.
28727         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28728
28729 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28730
28731         * lib/_fpending.c: Include <config.h> unconditionally, since we no
28732         longer worry about uses that don't define HAVE_CONFIG_H.
28733         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
28734         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
28735         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
28736         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
28737         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
28738         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
28739         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
28740         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
28741         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
28742         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
28743         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
28744         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
28745         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
28746         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
28747         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
28748         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
28749         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
28750         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
28751         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
28752         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
28753         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
28754         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
28755         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
28756         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
28757         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
28758         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
28759         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
28760         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
28761         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
28762         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
28763         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
28764         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
28765         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
28766         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
28767         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
28768         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
28769         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
28770         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
28771         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
28772         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
28773         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
28774         Likewise.
28775
28776 2006-09-13  Eric Blake  <ebb9@byu.net>
28777
28778         * lib/getopt.c: Fix typo in last commit.
28779
28780 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
28781
28782         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
28783         dgettext.
28784
28785 2006-09-12  Jim Meyering  <jim@meyering.net>
28786
28787         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
28788         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
28789         Reported by Nelson H. F. Beebe.
28790
28791 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
28792
28793         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
28794         program_invocation_name and program_invocation_short_name are
28795         initialized.
28796         * lib/argp-namefrob.h: Move declarations of program_invocation_name
28797         and program_invocation_short_name to argp.h, so they are visible
28798         to user programs.
28799         * lib/argp.h: Likewise
28800
28801 2006-09-10  Bruno Haible  <bruno@clisp.org>
28802
28803         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
28804         m4/inttypes_h.m4, m4/uintmax_t.m4.
28805
28806 2006-09-10  Bruno Haible  <bruno@clisp.org>
28807
28808         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
28809         gl_AC_TYPE_UINTMAX_T.
28810
28811 2006-09-10  Bruno Haible  <bruno@clisp.org>
28812
28813         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
28814
28815 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
28816
28817         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
28818         convention.  Text proposed by Bruno Haible.
28819         (struct argp_option): Document the use of N_() wrappers.
28820
28821         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
28822         '\v', and translate the two parts separately, instead of feeding
28823         the whole string to gettext.  This allows to exclude
28824         '\v' from the strings visible to the translator by writing doc
28825         strings as N_("..") "\v" N_("..").
28826
28827 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
28828
28829         * config/srclist.txt: Undo latest change; the bug was fixed.
28830
28831 2006-09-09  Bruno Haible  <bruno@clisp.org>
28832
28833         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
28834         assignments if building a library without libtool.
28835         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
28836         in func_emit_lib_Makefile_am.
28837         (func_import): When building a static library libfoo.a, arrange to
28838         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
28839         (func_create_testdir): Likewise.
28840         * modules/gc (configure.ac, Makefile.am): If building statically,
28841         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
28842         * modules/iconvme (configure.ac, Makefile.am): Likewise.
28843         * modules/striconv (configure.ac, Makefile.am): Likewise.
28844         Based on a suggestion by Ralf Wildenhues.
28845
28846 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28847
28848         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
28849         Check for unistd.h too, since Autoconf doesn't assume POSIX.
28850         Also:
28851
28852         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28853         Add year_2050_test to catch glibc bug 2821
28854         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
28855
28856         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
28857         Prefer #ifdef to #if.
28858
28859         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
28860         Return from 'main' instead of calling 'exit'.
28861
28862 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28863
28864         * lib/mktime.c (guess_time_tm): Fix bug where mktime
28865         returned the maximum time_t value rather than (time_t) -1.
28866         Problem originally reported by William Bardwell
28867         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
28868
28869         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
28870         Moved to here ...
28871         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
28872         ... from here.
28873
28874 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28875
28876         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
28877         2821 is fixed.
28878
28879 2006-09-08  Jim Meyering  <jim@meyering.net>
28880
28881         Don't make generated files read-only.  That would bother too many
28882         people.  However, do retain the ability to work when targets are
28883         read-only: remove the destination and temporary files before writing
28884         them (when generated via sed or echo), or by using the -f option for
28885         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
28886         * modules/alloca-opt, modules/argz, modules/arpa_inet:
28887         * modules/byteswap, modules/configmake, modules/fcntl:
28888         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
28889         * modules/localcharset, modules/netinet_in, modules/poll:
28890         * modules/stdbool, modules/stdint, modules/sys_select:
28891         * modules/sys_socket, modules/sys_stat, modules/sysexits:
28892
28893 2006-09-08  Jim Meyering  <jim@meyering.net>
28894
28895         Avoid new build failure on FreeBSD 6.0.
28896         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
28897         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
28898         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
28899
28900 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28901
28902         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
28903
28904 2006-09-07  Jim Meyering  <jim@meyering.net>
28905
28906         Fix global typo in last change: use chmod u-w, not chmod u-x.
28907         Spotted by Paul Eggert and Bruce Korb.
28908         * modules/alloca-opt, modules/argz, modules/arpa_inet:
28909         * modules/byteswap, modules/configmake, modules/fcntl:
28910         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
28911         * modules/localcharset, modules/netinet_in, modules/poll:
28912         * modules/stdbool, modules/stdint, modules/sys_select:
28913         * modules/sys_socket, modules/sys_stat, modules/sysexits:
28914
28915 2006-09-06  Jim Meyering  <jim@meyering.net>
28916
28917         Make generated files be read-only.
28918         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
28919         Ensure that each generated file is now read-only.
28920         * modules/argz: Likewise.
28921         * modules/arpa_inet: Likewise.
28922         * modules/byteswap: Likewise.
28923         * modules/configmake: Likewise.
28924         * modules/fcntl: Likewise.
28925         * modules/fnmatch: Likewise.
28926         * modules/getopt: Likewise.
28927         * modules/glob: Likewise.
28928         * modules/inttypes: Likewise.
28929         * modules/netinet_in: Likewise.
28930         * modules/poll: Likewise.
28931         * modules/stdbool: Likewise.
28932         * modules/stdint: Likewise.
28933         * modules/sys_select: Likewise.
28934         * modules/sys_socket: Likewise.
28935         * modules/sys_stat: Likewise.
28936         * modules/sysexits: Likewise.
28937         * modules/localcharset: Same as above, but continue using temporary
28938         file named "t-$@" (why different?) rather than the "$@-t" used
28939         everywhere else.
28940
28941         * modules/sysexits (Makefile.am): Replace literal occurrences
28942         of "sysexit.h" more readable, and more consistent, "$@".
28943
28944 2006-09-06  Bruno Haible  <bruno@clisp.org>
28945
28946         * modules/striconv: New file.
28947         * modules/xstriconv: New file.
28948         * MODULES.html.sh (Internationalization functions): Add striconv,
28949         xstriconv.
28950
28951 2006-09-06  Bruno Haible  <bruno@clisp.org>
28952
28953         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
28954         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
28955         not using libtool correctly.
28956
28957 2006-09-06  Bruno Haible  <bruno@clisp.org>
28958
28959         * lib/striconv.h: New file.
28960         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
28961         iconvstring.c.
28962         * lib/xstriconv.h: New file.
28963         * lib/xstriconv.c: New file.
28964
28965 2006-09-06  Bruno Haible  <bruno@clisp.org>
28966
28967         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
28968         lib_..._LDFLAGS.
28969
28970 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28971
28972         * lib/argz_.h: Sync from Libtool.
28973
28974         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
28975                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28976
28977         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
28978
28979 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
28980
28981         * modules/trim: New file.
28982
28983 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
28984
28985         * lib/trim.h: New file.
28986         * lib/trim.c: New file.
28987
28988 2006-09-05  Bruno Haible  <bruno@clisp.org>
28989
28990         * MODULES.html.sh (String handling): Add trim.
28991
28992 2006-09-04  Karl Berry  <karl@gnu.org>
28993
28994         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
28995         until next release.
28996
28997 2006-09-03  Bruno Haible  <bruno@clisp.org>
28998
28999         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
29000         correctly.
29001
29002 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29003
29004         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
29005         not gl_GETLOADAVG.  Omit unneeded semicolons.
29006         Problems reported by Ralf Wildenhues in
29007         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
29008         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
29009         at the end, which is the usual gnulib style.
29010
29011         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
29012         of doing all the work ourselves.
29013         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
29014         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
29015
29016 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29017
29018         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
29019         Problem reported by Ralf Wildenhues in
29020         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
29021
29022         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
29023         HAVE_STRUCT_STATFS_F_FSTYPENAME.
29024
29025 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29026
29027         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
29028         yesterday's patch by changing test -n to test -z.
29029
29030 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29031
29032         * modules/getloadavg (Files): Add m4/getloadavg.m4.
29033         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
29034         the former is now obsolescent.
29035
29036         * modules/chdir-long (Depends-on): Add fcntl.
29037
29038 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29039
29040         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
29041         obsolescent, and programs should use gnulib instead.
29042         * m4/getloadavg.m4: New file, with contents taken from Autoconf
29043         but with prefixes changed.
29044
29045 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29046
29047         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
29048         or stdbool.h, because they might not exist while configuring.
29049
29050         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
29051         Don't include unistd.h or limits.h; not needed, since chdir-long.h
29052         does that for us.
29053         (O_DIRECTORY): Remove.
29054
29055 2006-08-31  Eric Blake  <ebb9@byu.net>
29056
29057         * gnulib-tool: Don't let emacs change spaces to TAB.
29058
29059 2006-08-31  Bruno Haible  <bruno@clisp.org>
29060
29061         * gnulib-tool: When calling func_import more than once, do it in a
29062         subshell.
29063         Reported by Eric Blake <ebb9@byu.net>.
29064
29065 2006-08-31  Bruno Haible  <bruno@clisp.org>
29066
29067         * gnulib-tool (nl): Remove variable.
29068         (sed_transform_lib_file): Use more robust test for config-h module.
29069         (func_import): Fix typo in 2006-08-25 patch.
29070
29071 2006-08-31  Bruno Haible  <bruno@clisp.org>
29072
29073         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
29074         specified, augment Makefile.am variables instead of assigning them.
29075
29076 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29077
29078         Work around a bug in both the Linux and SunOS 64-bit kernels:
29079         nanosleep mishandles sleeps for longer than 2**31 seconds.
29080         Problem reported by Frank v Waveren in
29081         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
29082         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
29083         Check for nanosleep bug.
29084         (LIB_NANOSLEEP): Append clock_gettime library if needed.
29085
29086 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29087
29088         Work around a bug in both the Linux and SunOS 64-bit kernels:
29089         nanosleep mishandles sleeps for longer than 2**31 seconds.
29090         Problem reported by Frank v Waveren in
29091         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
29092         * lib/nanosleep.c (BILLION): New constant.
29093         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
29094         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
29095         implementation.
29096
29097 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29098
29099         * modules/nanosleep (Depends-on): Add gettime.
29100
29101 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29102         and Simon Josefsson  <jas@extundo.com>
29103         and Oskar Liljeblad  <oskar@osk.mine.nu>
29104
29105         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
29106         * gnulib-tool (func_import): New license type 'unmodifiable license
29107         text'.
29108         * modules/fdl: Use it.  Longer description.
29109         * module/gpl, module/lgpl: New files.
29110
29111 2006-08-30  Jim Meyering  <jim@meyering.net>
29112
29113         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
29114         shadowing the parameter.
29115
29116 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29117
29118         Sync from Libtool:
29119
29120         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29121
29122         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
29123         sharing with gnulib.  Report by Eric Blake.
29124
29125 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29126
29127         * modules/isapipe: New file.
29128         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
29129
29130 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29131
29132         * modules/configmake (Makefile.am): Add a comment, and omit
29133         the CONFIGMAKE_ prefix from generated macro names.  Suggested
29134         by Bruno Haible.
29135
29136 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29137
29138         * m4/isapipe.m4: New file.
29139
29140 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29141
29142         * lib/isapipe.c, lib/isapipe.h: New files.
29143
29144 2006-08-29  Jim Meyering  <jim@meyering.net>
29145
29146         * modules/configmake (Makefile.am): Make configmake.h depend on
29147         Makefile.  Otherwise, a stale configmake.h could hang around.
29148
29149 2006-08-29  Eric Blake  <ebb9@byu.net>
29150
29151         * lib/error.c (error_at_line, print_errno_message): Match libc, after
29152         resolution of upstream bug 3044.
29153
29154 2006-08-29  Bruno Haible  <bruno@clisp.org>
29155
29156         * modules/localcharset (Depends-on): Add configmake.
29157         (Makefile.am): Remove setting of LIBDIR through DEFS.
29158
29159 2006-08-29  Bruno Haible  <bruno@clisp.org>
29160
29161         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
29162         defined.
29163
29164 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
29165
29166         * modules/fcntl: New file.
29167         * modules/chdir-safer (Depends-on): Add fcntl.
29168         * modules/fts: Likewise.
29169         * modules/mkdir-p: Likewise.
29170
29171         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
29172         This undoes the most recent change, since we're now addressing the
29173         problem in a different way.
29174
29175         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
29176         into output, since the output might be called Makefile.am even
29177         if $makefile_name is something different.
29178         (func_import): Use $makefile_am rather than
29179         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
29180         empty.
29181
29182         * modules/inttypes (Files): Add m4/inttypes-h.m4.
29183
29184 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
29185
29186         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
29187         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
29188         recent change to stdint.m4, since we're now addressing the problem in a
29189         different way.
29190
29191 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
29192
29193         * m4/fcntl_h.m4: New file.
29194
29195 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
29196
29197         * lib/fcntl_.h: New file.
29198         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
29199         the fcntl module.
29200         * lib/dirchownmod.c: Likewise.
29201         * lib/fts.c: Likewise.
29202
29203         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
29204         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
29205         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
29206         just before including <inttypes.h>, to avoid circular inclusion.
29207
29208 2006-08-28  Jim Meyering  <jim@meyering.net>
29209
29210         * doc/visibility.texi: Actually read and correct the grammar of the
29211         sentence affected by yesterday's change.
29212
29213 2006-08-28  Eric Blake  <ebb9@byu.net>
29214
29215         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
29216         needs wrapper.
29217
29218 2006-08-28  Eric Blake  <ebb9@byu.net>
29219
29220         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
29221
29222 2006-08-28  Eric Blake  <ebb9@byu.net>
29223
29224         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
29225
29226 2006-08-28  Bruno Haible  <bruno@clisp.org>
29227
29228         * modules/c-strstr: New file, from GNU gettext.
29229         * MODULES.html.sh (String handling): Add c-strstr.
29230
29231 2006-08-28  Bruno Haible  <bruno@clisp.org>
29232
29233         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
29234         macros.
29235         Reported by Eric Blake.
29236
29237 2006-08-28  Bruno Haible  <bruno@clisp.org>
29238
29239         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
29240         (VASNPRINTF): Return a string of length > INT_MAX without failing.
29241         * lib/vasprintf.c: Include errno.h, limits.h.
29242         (EOVERFLOW): New fallback definition.
29243         (vasprintf): Test here whether the string length is > INT_MAX.
29244         * lib/vsnprintf.c: Include errno.h, limits.h.
29245         (EOVERFLOW): New fallback definition.
29246         (vsnprintf): Fix bug when generated string was too long for the buffer.
29247         Test here whether the string length is > INT_MAX.
29248
29249 2006-08-28  Bruno Haible  <bruno@clisp.org>
29250
29251         * lib/inttypes_.h (SCNX*): Remove definitions.
29252         Reported by Eric Blake.
29253
29254 2006-08-28  Bruno Haible  <bruno@clisp.org>
29255
29256         * lib/c-strstr.h: New file, from GNU gettext.
29257         * lib/c-strstr.c: New file, from GNU gettext.
29258
29259 2006-08-28  Bruno Haible  <bruno@clisp.org>
29260
29261         * gnulib-tool: Reorder some statements.
29262
29263 2006-08-28  Bruno Haible  <bruno@clisp.org>
29264
29265         * gnulib-tool: New option --makefile-name.
29266         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
29267         $makefile_name.
29268         (func_import): Write $makefile_name to the cache file, and read it from
29269         there unless explicitly specified. Use $makefile_name as file name
29270         instead of Makefile.am. Adjust the recommendations accordingly.
29271
29272 2006-08-28  Bruno Haible  <bruno@clisp.org>
29273
29274         * gnulib-tool (func_verify_module): Check against misapplying patch.
29275
29276 2006-08-28  Bruno Haible  <bruno@clisp.org>
29277
29278         * gnulib-tool (func_relativize, func_relconcat): New functions.
29279         Give an error if --local-dir is given with --update.
29280         Remove trailing slashes from $local_gnulib_dir.
29281         (func_import): Store the relativized $local_gnulib_dir in
29282         gnulib-cache.m4, and read it from there if not specified explicitly.
29283
29284 2006-08-28  Bruno Haible  <bruno@clisp.org>
29285
29286         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
29287         is the current directory. Respect also $local_gnulib_dir.
29288
29289 2006-08-28  Bruno Haible  <bruno@clisp.org>
29290             Simon Josefsson  <jas@extundo.com>
29291
29292         BeOS portability.
29293         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
29294
29295 2006-08-27  Jim Meyering  <jim@meyering.net>
29296
29297         * doc/visibility.texi: Remove duplicate word: "pointer".
29298
29299 2006-08-26  Bruno Haible  <bruno@clisp.org>
29300
29301         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
29302         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
29303         (Makefile.am): Create inttypes.h from inttypes_.h.
29304         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
29305
29306         * modules/imaxabs: New file.
29307
29308         * modules/imaxdiv: New file.
29309
29310 2006-08-26  Bruno Haible  <bruno@clisp.org>
29311
29312         * m4/inttypes.m4: New file.
29313         * m4/_inttypes_h.m4: Remove file.
29314         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
29315         PRI_MACROS_BROKEN.
29316         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
29317
29318         * m4/imaxabs.m4: New file.
29319
29320         * m4/imaxdiv.m4: New file.
29321
29322 2006-08-26  Bruno Haible  <bruno@clisp.org>
29323
29324         * lib/inttypes_.h: New file.
29325         * lib/inttypes.h: Remove file.
29326         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
29327
29328         * lib/imaxabs.c: New file.
29329
29330         * lib/imaxdiv.c: New file.
29331
29332 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29333
29334         New config-h module, so that "make" output needn't be cluttered
29335         by -DHAVE_CONFIG_H.
29336         * MODULES.html.sh (Support for building libraries and executables):
29337         Add config-h.
29338         * modules/config-h: New file.
29339         * gnulib-tool (nl, sed_transform_lib_file): New vars.
29340         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
29341         the config-h module is used.
29342
29343         New configmake module, so that "make" output needn't be cluttered
29344         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
29345         * MODULES.html.sh (Support for building libraries and executables):
29346         Add configmake.
29347         * modules/configmake: New file.
29348
29349 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29350
29351         * m4/config-h.m4: New file.
29352
29353 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29354
29355         * config/srclist.txt: Add elisp-comp.
29356
29357 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29358
29359         * MODULES.html.sh (Support for building libraries and executables):
29360         Add elisp-comp.
29361         * build-aux/elisp-comp: New file.
29362         * modules/elisp-comp: New file.
29363
29364 2006-08-24  Bruno Haible  <bruno@clisp.org>
29365
29366         * gnulib-tool (func_create_testdir): Use non-default values of
29367         sourcebase and m4base.
29368
29369 2006-08-24  Bruno Haible  <bruno@clisp.org>
29370
29371         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
29372         HTML structure.
29373
29374 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29375
29376         * modules/openat (Depends-on): Add lchown.
29377
29378 2006-08-23  Bruno Haible  <bruno@clisp.org>
29379
29380         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
29381         of gl_LOCK_EARLY instead of gl_LOCK.
29382
29383 2006-08-23  Bruno Haible  <bruno@clisp.org>
29384
29385         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
29386         on OSF/1 to no.
29387         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
29388
29389 2006-08-23  Bruno Haible  <bruno@clisp.org>
29390
29391         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
29392         as unusable.
29393
29394         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
29395         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
29396         (gl_LOCK): New macro.
29397
29398 2006-08-22  Simon Josefsson  <jas@extundo.com>
29399
29400         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
29401         to md5 module.
29402
29403 2006-08-22  Simon Josefsson  <jas@extundo.com>
29404
29405         * MODULES.html.sh: Add "Support for maintaining and release
29406         projects".
29407
29408         * build-aux/gnupload: New file, from coreutils.
29409
29410 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
29411
29412         Avoid the need for AC_LIBSOURCES in m4 macros.
29413         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
29414         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
29415         * modules/check-version (EXTRA_DIST): Add check-version.h.
29416         * modules/crc (EXTRA_DIST): Add crc.h.
29417         * modules/des (EXTRA_DIST): Add des.h.
29418         * modules/gc (EXTRA_DIST): Add gc.h.
29419         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
29420         * modules/getline (EXTRA_DIST): Add getline.h.
29421         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
29422         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
29423         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
29424         * modules/md2 (EXTRA_DIST): Add md2.h.
29425         * modules/md4 (EXTRA_DIST): Add md4.h.
29426         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
29427         * modules/read-file (EXTRA_DIST): Add read-file.h.
29428         * modules/readline (EXTRA_DIST): Add readline.h.
29429         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
29430         rijndael-api-fst.h.
29431
29432 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
29433
29434         * m4/rijndael.m4 (gl_ARCFOUR):
29435         * m4/arctwo.m4 (gl_ARCTWO):
29436         * m4/check-version.m4 (gl_CHECK_VERSION):
29437         * m4/crc.m4 (gl_CRC):
29438         * m4/des.m4 (gl_DES):
29439         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
29440         * m4/gc.m4 (gl_GC):
29441         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
29442         * m4/getline.m4 (gl_FUNC_GETLINE):
29443         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
29444         * m4/hmac-md5.m4 (gl_HMAC_MD5):
29445         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
29446         * m4/md2.m4 (gl_MD2):
29447         * m4/md4.m4 (gl_MD4):
29448         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
29449         * m4/read-file.m4 (gl_FUNC_READ_FILE):
29450         * m4/readline.m4 (gl_FUNC_READLINE):
29451         * m4/rijndael.m4 (gl_RIJNDAEL):
29452         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
29453         to get the necessary .h files and whatnot.
29454
29455 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
29456
29457         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
29458         gnulib rather than the other way around.
29459         * config/srclistvars.sh (COREUTILS): Remove.
29460
29461 2006-08-22  Jim Meyering  <jim@meyering.net>
29462
29463         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
29464
29465         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
29466
29467 2006-08-22  Eric Blake  <ebb9@byu.net>
29468
29469         * modules/regexprops-generic: New file.
29470         * MODULES.html.sh (Support for building documentation): List it.
29471
29472 2006-08-22  Eric Blake  <ebb9@byu.net>
29473
29474         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
29475         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
29476         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
29477         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
29478
29479 2006-08-22  Bruno Haible  <bruno@clisp.org>
29480
29481         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
29482         and lib_LTLIBRARIES like the other lib_* variables.
29483
29484 2006-08-22  Bruno Haible  <bruno@clisp.org>
29485
29486         * build-aux/x-to-1.in: New file, from GNU gettext.
29487
29488 2006-08-22  Bruno Haible  <bruno@clisp.org>
29489
29490         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
29491         <utmpx.h> exists.
29492
29493 2006-08-22  Bruno Haible  <bruno@clisp.org>
29494
29495         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
29496         <utmpx.h> exists.
29497
29498 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
29499
29500         BeOS portability.
29501         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
29502         exist.
29503         Problem reported by Bruno Haible.
29504
29505 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
29506
29507         Avoid the need for AC_LIBSOURCES in m4 macros.
29508         * modules/acl (EXTRA_DIST): Add acl.h.
29509         * modules/argmatch (Files): Add m4/argmatch.m4.
29510         (configure.ac): Add gl_ARGMATCH.
29511         (EXTRA_DIST): Renamed from lib_SOURCES, for
29512         consistency with the other modules.  Remove argmatch.c.
29513         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
29514         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
29515         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
29516         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
29517         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
29518         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
29519         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
29520         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
29521         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
29522         * modules/closeout (EXTRA_DIST): Add closeout.h.
29523         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
29524         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
29525         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
29526         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
29527         dirname.h; remove basename.c and stripslash.c.
29528         * modules/exclude (EXTRA_DIST): Add exclude.h.
29529         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
29530         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
29531         * modules/file-type (EXTRA_DIST): Add file-type.h.
29532         * modules/filemode (EXTRA_DIST): Add filemode.h.
29533         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
29534         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
29535         * modules/fpending (EXTRA_DIST): Add __fpending.h.
29536         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
29537         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
29538         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
29539         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
29540         * modules/getdate (EXTRA_DIST): Add getdate.c.
29541         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
29542         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
29543         * modules/getpass (EXTRA_DIST): Add getpass.h.
29544         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
29545         * modules/group-member (EXTRA_DIST): Add group-member.h.
29546         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
29547         * modules/hash (EXTRA_DIST): Add hash.h.
29548         * modules/human (EXTRA_DIST): Add human.h.
29549         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
29550         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
29551         * modules/lchown (EXTRA_DIST): Add lchown.h.
29552         * modules/long-options (EXTRA_DIST): Add long-options.h.
29553         * modules/lstat (EXTRA_DIST): Add lstat.h.
29554         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
29555         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
29556         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
29557         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
29558         * modules/memxor (EXTRA_DIST): Add memxor.h.
29559         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
29560         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
29561         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
29562         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
29563         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
29564         * modules/physmem (EXTRA_DIST): Add physmem.h.
29565         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
29566         * modules/posixver (EXTRA_DIST): Add posixver.h.
29567         * modules/quote (EXTRA_DIST): Add quote.h.
29568         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
29569         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
29570         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
29571         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
29572         regex_internal.h regexec.c.
29573         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
29574         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
29575         * modules/same (EXTRA_DIST): Add same.h.
29576         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
29577         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
29578         * modules/savedir (EXTRA_DIST): Add savedir.h.
29579         * modules/sha1 (EXTRA_DIST): Add sha1.h.
29580         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
29581         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
29582         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
29583         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
29584         * modules/strdup (EXTRA_DIST): Add strdup.h.
29585         * modules/strftime (EXTRA_DIST): Add strftime.h.
29586         * modules/strndup (EXTRA_DIST): Add strndup.h.
29587         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
29588         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
29589         * modules/time_r (EXTRA_DIST): Add time_r.h.
29590         * modules/timespec (EXTRA_DIST): Add timespec.h.
29591         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
29592         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
29593         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
29594         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
29595         * modules/userspec (EXTRA_DIST): Add userspec.h.
29596         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
29597         * modules/utimens (EXTRA_DIST): Add utimens.h.
29598         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
29599         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
29600         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
29601         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
29602         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
29603         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
29604         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
29605         * modules/yesno (EXTRA_DIST): Add yesno.h.
29606
29607 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
29608
29609         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
29610
29611         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
29612         * m4/dev-ino.m4, same-inode.m4: Remove.
29613
29614         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
29615         * m4/acl.m4 (AC_FUNC_ACL):
29616         * m4/backupfile.m4 (gl_BACKUPFILE):
29617         * m4/c-strtod.m4 (gl_C99_STRTOLD):
29618         * m4/canon-host.m4 (gl_CANON_HOST):
29619         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
29620         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
29621         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
29622         * m4/cloexec.m4 (gl_CLOEXEC):
29623         * m4/close-stream.m4 (gl_CLOSE_STREAM):
29624         * m4/closeout.m4 (gl_CLOSEOUT):
29625         * m4/dirfd.m4 (gl_FUNC_DIRFD):
29626         * m4/dirname.m4 (gl_DIRNAME):
29627         * m4/exclude.m4 (gl_EXCLUDE):
29628         * m4/exitfail.m4 (gl_EXITFAIL):
29629         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
29630         * m4/file-type.m4 (gl_FILE_TYPE):
29631         * m4/filemode.m4 (gl_FILEMODE):
29632         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
29633         * m4/fpending.m4 (gl_FUNC_FPENDING):
29634         * m4/fprintftime.m4 (gl_FPRINTFTIME):
29635         * m4/fts.m4 (gl_FUNC_FTS):
29636         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
29637         * m4/getdate.m4 (gl_GETDATE):
29638         * m4/gethrxtime.m4 (gl_GETHRXTIME):
29639         * m4/getpagesize.m4 (gl_GETPAGESIZE):
29640         * m4/getpass.m4 (gl_FUNC_GETPASS):
29641         * m4/gettime.m4 (gl_GETTIME):
29642         * m4/getugroups.m4 (gl_GETUGROUPS):
29643         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
29644         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
29645         * m4/hard-locale.m4 (gl_HARD_LOCALE):
29646         * m4/hash.m4 (gl_HASH):
29647         * m4/idcache.m4 (gl_IDCACHE):
29648         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
29649         * m4/lchown.m4 (gl_FUNC_LCHOWN):
29650         * m4/long-options.m4 (gl_LONG_OPTIONS):
29651         * m4/lstat.m4 (gl_FUNC_LSTAT):
29652         * m4/md5.m4 (gl_MD5):
29653         * m4/memcasecmp.m4 (gl_MEMCASECMP):
29654         * m4/memcoll.m4 (gl_MEMCOLL):
29655         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
29656         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
29657         * m4/memxor.m4 (gl_MEMXOR):
29658         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
29659         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
29660         * m4/modechange.m4 (gl_MODECHANGE):
29661         * m4/mountlist.m4 (gl_MOUNTLIST):
29662         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
29663         * m4/openat.m4 (gl_FUNC_OPENAT):
29664         * m4/pathmax.m4 (gl_PATHMAX):
29665         * m4/physmem.m4 (gl_PHYSMEM):
29666         * m4/posixtm.m4 (gl_POSIXTM):
29667         * m4/posixver.m4 (gl_POSIXVER):
29668         * m4/quote.m4 (gl_QUOTE):
29669         * m4/quotearg.m4 (gl_QUOTEARG):
29670         * m4/readtokens.m4 (gl_READTOKENS):
29671         * m4/readutmp.m4 (gl_READUTMP):
29672         * m4/regex.m4 (gl_REGEX):
29673         * m4/safe-read.m4 (gl_SAFE_READ):
29674         * m4/safe-write.m4 (gl_SAFE_WRITE):
29675         * m4/same.m4 (gl_SAME):
29676         * m4/save-cwd.m4 (gl_SAVE_CWD):
29677         * m4/savedir.m4 (gl_SAVEDIR):
29678         * m4/settime.m4 (gl_SETTIME):
29679         * m4/sha1.m4 (gl_SHA1):
29680         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
29681         * m4/stat-macros.m4 (gl_STAT_MACROS):
29682         * m4/stat-time.m4 (gl_STAT_TIME):
29683         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
29684         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
29685         * m4/strdup.m4 (gl_FUNC_STRDUP):
29686         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
29687         * m4/strndup.m4 (gl_FUNC_STRNDUP):
29688         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
29689         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
29690         * m4/time_r.m4 (gl_TIME_R):
29691         * m4/timespec.m4 (gl_TIMESPEC):
29692         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
29693         * m4/unlinkdir.m4 (gl_UNLINKDIR):
29694         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
29695         * m4/userspec.m4 (gl_USERSPEC):
29696         * m4/utimecmp.m4 (gl_UTIMECMP):
29697         * m4/utimens.m4 (gl_UTIMENS):
29698         * m4/xalloc.m4 (gl_XALLOC):
29699         * m4/xgetcwd.m4 (gl_XGETCWD):
29700         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
29701         * m4/xreadlink.m4 (gl_XREADLINK):
29702         * m4/xstrtod.m4 (gl_XSTRTOD):
29703         * m4/yesno.m4 (gl_YESNO):
29704         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
29705         to get the necessary .h files and whatnot.
29706
29707 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
29708             Bruno Haible  <bruno@clisp.org>
29709
29710         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
29711         /bin/sh understanding of '!' conditional negation.
29712
29713 2006-08-21  Jim Meyering  <jim@meyering.net>
29714
29715         * modules/openat (Depends-on): Really alphabetize.
29716
29717         * modules/acl (Depends-on): Add error and quote.
29718
29719         * check-module (find_included_lib_files): Add at-func.c to the
29720         ok-to-include-more-than-once white list.
29721
29722         * modules/openat (Depends-on): Add lstat.  Alphabetize.
29723
29724 2006-08-21  Bruno Haible  <bruno@clisp.org>
29725
29726         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29727         Emit a pkgdata_DATA variable only if some snippets add contents to it.
29728         Reported by Martin Lambers <marlam@marlam.de>.
29729
29730 2006-08-21  Bruno Haible  <bruno@clisp.org>
29731
29732         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
29733         specify an installation location, don't emit a noinst_LIBRARIES or
29734         noinst_LTLIBRARIES assignment.
29735
29736 2006-08-21  Bruno Haible  <bruno@clisp.org>
29737
29738         BeOS portability.
29739         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
29740         BeOS has mbrtowc() but no <wctype.h>.
29741
29742 2006-08-21  Bruno Haible  <bruno@clisp.org>
29743
29744         BeOS portability.
29745         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
29746         exist.
29747
29748 2006-08-21  Bruno Haible  <bruno@clisp.org>
29749
29750         BeOS portability.
29751         * lib/mbchar.h: Include <wctype.h> only if it exists.
29752
29753 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29754
29755         Remove files that are no longer needed by their respective modules.
29756         * m4/obstack.m4: Remove.
29757         * m4/strerror_r.m4: Remove.
29758         * m4/uint32_t.m4: Remove.
29759         * m4/uintptr_t.m4: Remove.
29760         * m4/ullong_max.m4: Remove.
29761         * m4/xstrtoimax.m4: Remove.
29762         * m4/xstrtoumax.m4: Remove.
29763
29764         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
29765         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
29766         dependencies now capture this.
29767
29768         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
29769         Do not use AC_LIBSOURCES, since gnulib modules now do this.
29770         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
29771         * m4/human.m4 (gl_HUMAN): Likewise.
29772         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
29773         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
29774
29775         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
29776
29777         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
29778         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
29779         stdint.
29780         * m4/human.m4 (gl_HUMAN): Likewise.
29781         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
29782         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
29783         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
29784         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
29785         * m4/xstrtol (gl_XSTRTOL): Likewise.
29786
29787         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
29788         AC_TYPE_LONG_LONG_INT.
29789         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
29790         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
29791         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
29792         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
29793
29794         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
29795         on stdbool.
29796
29797         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
29798         (gl_PREREQ_XSTRTOUL): Remove.
29799
29800         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
29801
29802         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
29803         mode.
29804
29805 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29806
29807         Add and change modules to make it easier for coreutils to use
29808         gnulib-tool.
29809         * modules/backupfile (Files): Remove m4/d-ino.m4.
29810         (Depends-on): Add d-ino.
29811         * modules/cycle-check (Depends-on): Add stdint.
29812         (lib_SOURCES): Add cycle-check.h.
29813         * modules/d-ino: New module.
29814         * modules/d-type: New module.
29815         * modules/error (Files): Remove m4/strerror_r.m4.
29816         * modules/filemode (Files): Add m4/st_dm_mode.m4.
29817         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
29818         m4/inttypes_h.m4, m4/uintmax_t.m4.
29819         (Depends-on): Add stdint.
29820         (lib_SOURCES): Add fsusage.h.
29821         * modules/getcwd (Files): Remove d-ino.m4.
29822         (Depends-on): Add d-ino.
29823         * modules/getndelim2 (Depends-on): Add stdint.
29824         * modules/glob (Files): Remove m4/d-type.m4.
29825         (Depends-on): Add d-type.
29826         * modules/host-os: New module.
29827         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
29828         m4/inttypes_h.m4, m4/uintmax_t.m4.
29829         * Depends-on: Add stdint.
29830         (lib_SOURCES): Add human.h.
29831         * modules/inttostr (Files): Remove m4/intmax_t.m4,
29832         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
29833         m4/uintmax_t.m4, m4/ulonglong.m4.
29834         (Depends-on): Add stdint.
29835         (EXTRA_DIST): Add inttostr.h.
29836         * modules/lchmod: New module.
29837         * modules/link-follow: New module.
29838         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
29839         (Depends-on): Add lchmod.
29840         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
29841         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
29842         (Depends-on): Add stdint.
29843         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
29844         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
29845         (Depends-on): Add stdint.
29846         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
29847         * modules/perl: New module.
29848         * modules/regex (Depends-on): Add stdint.
29849         * modules/rmdir-errno: New module.
29850         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
29851         m4/intmax_t.m4.
29852         (Depends-on): Add stdint.
29853         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
29854         m4/uintmax_t.m4.
29855         (Depends-on): Add stdint.
29856         * modules/unlink-busy: New module.
29857         * modules/utimecmp (Depends-on): Add stdint.
29858         * modules/uptime: New module.
29859         * modules/winsz-ioctl: New module.
29860         * modules/winsz-termios: New module.
29861         * modules/xnanosleep (Depends-on): Add nanosleep.
29862         * modules/ullong_max: Remove.
29863         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
29864         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
29865         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
29866         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
29867         (Depends-on): Add inttypes.
29868         (lib_SOURCES): Add xstrtol.h.
29869         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
29870         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
29871         * MODULES.html.sh: Move 'assert' into the assert section.
29872         Move 'dummy' into the linking section.
29873         Remove ullong_max.
29874         Add section for compatibility checks for POSIX:2001 functions,
29875         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
29876         winsz-ioctl, and winsz-termios into it.
29877         Add lchmod.
29878         Add top-level Misc section and put host-os, perl, and uptime
29879         into it.
29880
29881 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29882
29883         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
29884         now assume the stdint module.  Do not include inttypes.h.
29885         * lib/fsusage.h: Likewise.
29886         * lib/getndelim2.c: Likewise.
29887         * lib/human.h: Likewise.
29888         * lib/inttostr.h: Likewise.
29889         * lib/obstack.c: Likewise.
29890         * lib/regex_internal.h: Likewise.
29891         * lib/tempname.c: Likewise.
29892         * lib/utimecmp.c: Likewise.
29893         * lib/xstrtol.h: Likewise.
29894
29895         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
29896
29897         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
29898         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
29899         * lib/xtime.h: Likewise.
29900
29901 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29902
29903         * modules/openat (Files): Add lib/fchmodat.c.
29904         Fixes problem reported by Jay Youngman.
29905
29906 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29907
29908         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
29909         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
29910
29911 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
29912             Bruno Haible  <bruno@clisp.org>
29913
29914         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
29915         and is a script that invokes bison. Tighten the code. Add comments.
29916
29917 2006-08-18  Jim Meyering  <jim@meyering.net>
29918
29919         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
29920         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
29921         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
29922         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
29923
29924 2006-08-18  Bruno Haible  <bruno@clisp.org>
29925
29926         * modules/bison-i18n: New file.
29927         * MODULES.html.sh (Internationalization functions): Add it.
29928
29929 2006-08-18  Bruno Haible  <bruno@clisp.org>
29930
29931         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
29932         sys/statvfs.h. When getmntinfo was found, check its declaration and
29933         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
29934
29935 2006-08-18  Bruno Haible  <bruno@clisp.org>
29936
29937         * m4/bison-i18n.m4: New file, from bison.
29938
29939 2006-08-18  Bruno Haible  <bruno@clisp.org>
29940
29941         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
29942         (ME_DUMMY): Treat "kernfs" as a dummy.
29943         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
29944
29945 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
29946
29947         Update from coreutils.
29948
29949         2006-08-15  Jim Meyering  <jim@meyering.net>
29950
29951         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
29952
29953         2006-01-17  Jim Meyering  <jim@meyering.net>
29954
29955         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
29956
29957         2006-01-11  Jim Meyering  <jim@meyering.net>
29958
29959         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
29960         Check for the lchmod function.
29961
29962 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
29963
29964         Update from coreutils.
29965
29966         * lib/__fpending.h: Add copyright notice.
29967         * lib/fprintftime.h: Likewise.
29968         * lib/savedir.c: Use (C) in copyright notice.
29969         * lib/savedir.h: Likewise.
29970
29971         2006-08-15  Jim Meyering  <jim@meyering.net>
29972
29973         * lib/at-func.c: New file, with the logic of all emulated at-functions.
29974         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
29975         in support of the EXPECTED_ERRNO macro.
29976         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
29977         definitions.  Instead, define the appropriate symbols and include
29978         "at-func.c".
29979         * lib/mkdirat.c (mkdirat): Likewise.
29980         * lib/fchmodat.c (fchmodat): Likewise.
29981         (ENOSYS): Remove definition.
29982         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
29983         it.  Don't include "unistd--.h" -- it wasn't ever used.
29984
29985         2006-01-17  Jim Meyering  <jim@meyering.net>
29986
29987         Rewrite fts.c not to change the current working directory,
29988         by using openat, fstatat, fdopendir, etc..
29989
29990         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
29991         (HAVE_OPENAT_SUPPORT): Define.
29992         [_LIBC] (fchdir): Don't undef or define; no longer used.
29993         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
29994         Now, this `function' always succeeds, and consumes its file descriptor
29995         parameter -- so callers must not close such FDs.  Update callers.
29996         (diropen_fd, opendirat, cwd_advance_fd): New functions.
29997         (diropen): Add parameter, SP.  Adjust all callers.
29998         Implement using diropen_fd, rather than open.
29999         (fts_open): Initialize new member, fts_cwd_fd.
30000         Remove fts_rft-setting code.
30001         (fts_close): Close fts_cwd_fd, if necessary.
30002         (__opendir2): Define in terms of opendir or opendirat,
30003         depending on whether the FST_NOCHDIR flag is set.
30004         (fts_build): Since fts_safe_changedir consumes its FD, and since
30005         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
30006         and close the dup'd file descriptor upon failure.
30007         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
30008         (fts_safe_changedir): Tweak semantics to reflect that this function
30009         now calls cwd_advance_fd and hence consumes its FD argument.
30010         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
30011         [struct FTS] (fts_rft): Remove now-unused member.
30012         [struct FTS] (fts_cycle.state): Improve comment.
30013
30014         * lib/openat.c (openat_needs_fchdir): New function.
30015         * lib/openat.h (openat_needs_fchdir): Declare it.
30016
30017 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
30018
30019         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
30020         Problem and fix reported by Pádraig Brady in
30021         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
30022
30023 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30024
30025         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
30026
30027 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30028
30029         * lib/memcoll.c (memcoll): Optimize for the common case where the
30030         arguments are bytewise equal.
30031
30032 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30033
30034         * doc/regexprops-generic.texi: Add a copyright notice.
30035
30036 2006-08-15  Bruno Haible  <bruno@clisp.org>
30037
30038         * modules/tmpdir (License): Change to LGPL.
30039
30040 2006-08-15  Bruno Haible  <bruno@clisp.org>
30041
30042         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
30043         module.
30044
30045 2006-08-14  Simon Josefsson  <jas@extundo.com>
30046
30047         * config/srclist.txt: Add gnupload.
30048
30049 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30050
30051         Change copyright notice from LGPL 2 to GPL 2, since that's the
30052         standard form used in the gnulib repository.
30053         * tests/test-lock.c: Likewise.
30054         * tests/test-stdint.c: Likewise.
30055         * tests/test-tls.c: Likewise.
30056
30057         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
30058         prelude-manager.  User shorter URLs for GNU projects, without '?'.
30059         Add copyright notice.
30060
30061         * check-module: Add copyright notice.  Output a copyright
30062         notice if "--version" is specified.
30063         * modules/COPYING: New file.
30064         * tests/test-getaddrinfo.c: Add copyright notice.
30065         * tests/test-verify.c: Likewise.
30066
30067 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30068
30069         Change copyright notice from LGPL 2 to GPL 2, since that's the
30070         standard form used in the gnulib repository.
30071         * lib/lock.c: LGPL -> GPL.
30072         * lib/lock.h: Likewise.
30073         * lib/strnlen1.c: Likewise.
30074         * lib/strnlen1.h: Likewise.
30075         * lib/tls.c: Likewise.
30076         * lib/tls.h: Likewise.
30077         * lib/tmpdir.c: Likewise.
30078
30079         * lib/TODO: Remove; this belongs only in coreutils.
30080
30081 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30082
30083         Add copyright notices to long-enough files that lack them, since
30084         otherwise the files aren't clearly free.  Use the same notice that
30085         getdate.texi already uses.
30086         * doc/alloca-opt.texi: Add copyright notice.
30087         * doc/alloca.texi: Likewise.
30088         * doc/ctime.texi: Likewise.
30089         * doc/functions.texi: Likewise.
30090         * doc/gcd.texi: Likewise.
30091         * doc/gnulib-tool.texi: Likewise.
30092         * doc/inet_ntoa.texi: Likewise.
30093         * doc/visibility.texi: Likewise.
30094
30095         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
30096         * doc/quote.texi: Add copyright notice.
30097
30098         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
30099         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
30100         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
30101         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
30102         is now obsolete, and give a pointer to the Sun list.
30103         Add copyright notice.
30104
30105 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30106
30107         * config/srclistvars.sh: Add copyright notice.
30108
30109 2006-08-14  Eric Blake  <ebb9@byu.net>
30110
30111         Import the following change from libc:
30112
30113         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
30114
30115         Upstream bug 2997.
30116         * lib/misc/error.c: Add space between program name and message if file
30117         name is missing.
30118
30119 2006-08-12  Karl Berry  <karl@gnu.org>
30120
30121         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
30122         remove, these originate in gnulib now.
30123
30124 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30125
30126         * doc/Makefile (standards.info standards.html standards.dvi):
30127         Also depend on make-stds.texi.
30128
30129 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
30130
30131         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
30132         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
30133
30134         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
30135         in wchar_t.  Problem reported by Eric Blake.
30136
30137         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
30138         LEN is smaller than SIZE.  Suggested by Bruno Haible.
30139         Also, help the compiler to keep LEN in a register.
30140
30141 2006-08-11  Eric Blake  <ebb9@byu.net>
30142
30143         * users.txt: Sort.  Add tar.
30144
30145 2006-08-11  Bruno Haible  <bruno@clisp.org>
30146
30147         * users.txt: New file.
30148
30149 2006-08-11  Bruno Haible  <bruno@clisp.org>
30150
30151         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
30152         before <wchar.h>. Needed for OSF/1 and BSD/OS.
30153
30154 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30155
30156         * modules/snprintf (Depends-on): Remove minmax.
30157         (Maintainer): Add self and Bruno.
30158
30159 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30160
30161         * lib/.cppi-disable: Add snprintf.h, socket_.h.
30162         * lib/snprintf.c: Include <errno.h> and <limits.h>.
30163         (EOVERFLOW): Define if the system does not.
30164         Do not include "minmax.h"; it wasn't used.
30165         (snprintf): Don't assume size_t promotes to an unsigned type.
30166         Fix bug when generated string was too long for the buffer: the
30167         buffer's contents are supposed to be the initial prefix of the
30168         output.  Don't assume vasnprintf returns EOVERFLOW if the size
30169         exceeds INT_MAX; do the check ourselves.
30170
30171         Import the following changes from libc:
30172
30173         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
30174
30175         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
30176         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
30177         set wc to the byte which couldn't be converted.
30178         (re_string_reconstruct): Don't clear valid_raw_len before calling
30179         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
30180         tip_context using re_string_context_at.
30181
30182         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
30183
30184         * lib/posix/regex.h: g++ still cannot handled [restrict].
30185
30186         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
30187
30188         * lib/posix/regex.h: Remove special handling for VMS.
30189
30190 2006-08-10  Jim Meyering  <jim@meyering.net>
30191
30192         * modules/same-inode: New module.
30193         * modules/dev-ino: New module.
30194         * modules/cycle-check: Depend on these modules, rather than simply
30195         including their .h files.
30196         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
30197         required via m4/cycle-check.m4.
30198         * modules/same: Depend on new same-inode module, rather than
30199         including same-inode.h.
30200         * modules/chdir-safer: New file.
30201
30202         * modules/chown (Depends-on): Add stat-macros.
30203
30204 2006-08-10  Jim Meyering  <jim@meyering.net>
30205
30206         * m4/cycle-check.m4: New file.
30207         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
30208         * m4/dev-ino.m4, m4/same-inode.m4: New files.
30209
30210 2006-08-10  Eric Blake  <ebb9@byu.net>
30211
30212         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
30213         in from original proposal.
30214
30215 2006-08-10  Eric Blake  <ebb9@byu.net>
30216         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30217
30218         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
30219         namespace.
30220
30221 2006-08-10  Bruno Haible  <bruno@clisp.org>
30222
30223         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
30224         as well.
30225
30226 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
30227
30228         Sync from coreutils.
30229
30230         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
30231
30232         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
30233         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
30234
30235 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
30236
30237         * modules/restrict: Remove; no longer needed now that we assume
30238         Autoconf 2.59 or later.
30239         * MODULES.html.sh: Remove 'restrict'.
30240         * modules/argp (Depends-on): Remove 'restrict'.
30241         * modules/base64 (Depends-on): Likewise.
30242         * modules/gc (Depends-on): Likewise.
30243         * modules/getaddrinfo (Depends-on): Likewise.
30244         * modules/glob (Depends-on): Likewise.
30245         * modules/inet_ntop (Depends-on): Likewise.
30246         * modules/inet_pton (Depends-on): Likewise.
30247         * modules/memxor (Depends-on): Likewise.
30248         * modules/regex (Depends-on): Likewise.
30249         * modules/strtok_r (Depends-on): Likewise.
30250         * modules/time_r (Depends-on): Likewise.
30251
30252 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
30253
30254         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
30255         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
30256         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
30257         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
30258         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
30259         * m4/memxor.m4 (gl_MEMXOR): Likewise.
30260         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
30261         gl_C_RESTRICT replaced by AC_C_RESTRICT.
30262
30263         Merge from coreutils.
30264         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
30265         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
30266         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
30267         * m4/time_r.m4 (gl_TIME_R): Likewise.
30268
30269 2006-08-09  Karl Berry  <karl@gnu.org>
30270
30271         * config/srclist.txt: no more gettext-tools, per Bruno.
30272
30273 2006-08-08  Eric Blake  <ebb9@byu.net>
30274
30275         * modules/verror: New module.
30276         * MODULES.html.sh: Document it.
30277
30278 2006-08-08  Eric Blake  <ebb9@byu.net>
30279
30280         * lib/verror.h, lib/verror.c: New files.
30281
30282 2006-08-08  Eric Blake  <ebb9@byu.net>
30283
30284         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
30285         verror_at_line output complies with GNU Coding Standards even when
30286         file is NULL.
30287
30288 2006-08-07  Bruno Haible  <bruno@clisp.org>
30289
30290         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
30291         versions of AIX.
30292         Reported by Ralf Wildenhues.
30293
30294 2006-08-07  Bruno Haible  <bruno@clisp.org>
30295
30296         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
30297         in an AC_DEFUN. Needed so that the autoconf snippets can use
30298         AC_REQUIRE.
30299
30300 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30301
30302         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30303         Initialize pkgdata_DATA.
30304         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
30305         overriding it.
30306
30307 2006-08-06  Eric Blake  <ebb9@byu.net>
30308
30309         * lib/error.h: Fold in some upstream changes from glibc.
30310         * lib/error.c: Likewise.
30311
30312 2006-08-04  Bruno Haible  <bruno@clisp.org>
30313
30314         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30315         Make the mostlyclean-local rule depend on mostlyclean-generic.
30316         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
30317
30318 2006-07-31  Bruno Haible  <bruno@clisp.org>
30319
30320         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
30321         <stdlib.h>, <string.h>.
30322
30323 2006-07-30  Bruno Haible  <bruno@clisp.org>
30324
30325         * modules/readlink (License): Change to LGPL.
30326
30327 2006-07-30  Bruno Haible  <bruno@clisp.org>
30328
30329         * modules/javaversion (Makefile.am): Distribute javaversion.java and
30330         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
30331         set PKGDATADIR to point to it.
30332
30333 2006-07-30  Bruno Haible  <bruno@clisp.org>
30334
30335         * modules/csharpexec (configure.ac): Comment out macro invocation.
30336         * modules/javaexec (configure.ac): Likewise.
30337         * modules/javacomp-script (configure.ac): Likewise.
30338
30339         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
30340
30341 2006-07-30  Bruno Haible  <bruno@clisp.org>
30342
30343         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
30344         linked-list.
30345
30346 2006-07-30  Bruno Haible  <bruno@clisp.org>
30347
30348         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
30349
30350 2006-07-30  Bruno Haible  <bruno@clisp.org>
30351
30352         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30353         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
30354         get removed.
30355
30356 2006-07-29  Bruno Haible  <bruno@clisp.org>
30357
30358         Make it possible for gnulib-tool to work with locally modified or
30359         augmented gnulib repositories.
30360         * gnulib-tool (func_usage): Document --local-dir option.
30361         (local_gnulib_dir): New variable.
30362         Handle --local-dir option.
30363         (func_lookup_file): New function.
30364         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
30365         (func_get_description, func_get_filelist, func_get_description,
30366         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
30367         func_get_automake_snippet, func_get_include_directive,
30368         func_get_license, func_get_maintainer): Use func_lookup_file.
30369         (func_import, func_create_testdir): Use func_lookup_file.
30370
30371 2006-07-29  Bruno Haible  <bruno@clisp.org>
30372
30373         * modules/setenv (Depends-on): Add unistd.
30374
30375 2006-07-29  Bruno Haible  <bruno@clisp.org>
30376
30377         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
30378
30379 2006-07-29  Bruno Haible  <bruno@clisp.org>
30380
30381         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
30382
30383 2006-07-29  Bruno Haible  <bruno@clisp.org>
30384
30385         * gnulib-tool (import, update): If there is no Makefile.am, look at
30386         aclocal.m4, instead of bailing out.
30387
30388 2006-07-29  Bruno Haible  <bruno@clisp.org>
30389
30390         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
30391         Categorize the options by when they are useful.
30392
30393 2006-07-29  Bruno Haible  <bruno@clisp.org>
30394
30395         * gnulib-tool (func_usage): Document option --no-libtool.
30396         Handle option --no-libtool.
30397         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
30398         for changed semantics of $libtool variable.
30399         (func_import): Likewise. If libtool is not used, show this through
30400         an option --no-libtool.
30401         (func_create_testdir): Update.
30402
30403 2006-07-29  Bruno Haible  <bruno@clisp.org>
30404
30405         * gnulib-tool (func_import): Extend error message about missing
30406         --doc-base.
30407
30408 2006-07-29  Bruno Haible  <bruno@clisp.org>
30409
30410         * gnulib-tool (func_import): Don't create the $docbase directory if
30411         there is no file to store there.
30412
30413 2006-07-29  Bruno Haible  <bruno@clisp.org>
30414
30415         * gnulib-tool (autoconf_minversion): If a --dir option is given and
30416         relevant, look for configure.ac there, not in the current directory.
30417         Also use a simple search for AC_PREREQ, not "autoconf --trace".
30418
30419 2006-07-29  Bruno Haible  <bruno@clisp.org>
30420
30421         * gnulib-tool (SORT): New variable.
30422         (func_usage): Undocument --assume-autoconf option.
30423         Remove --assume-autoconf option handling.
30424         (autoconf_minversion): Determine from the contents of configure.ac.
30425         (func_import): Remove autoconf_minversion handling.
30426         Suggested by Eric Blake.
30427
30428 2006-07-29  Bruno Haible  <bruno@clisp.org>
30429
30430         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
30431
30432 2006-07-29  Bruno Haible  <bruno@clisp.org>
30433
30434         * config/srclist.txt (*setenv.[ch]): Remove rules.
30435
30436 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30437
30438         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
30439
30440 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30441
30442         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
30443         arpa/inet.h.
30444
30445 2006-07-28  Simon Josefsson  <jas@extundo.com>
30446
30447         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
30448         * modules/inet_pton (Depends-on): Likewise.
30449
30450 2006-07-28  Simon Josefsson  <jas@extundo.com>
30451
30452         * m4/netinet_in_h.m4: New file.
30453
30454 2006-07-28  Simon Josefsson  <jas@extundo.com>
30455
30456         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
30457         #include's.
30458
30459 2006-07-28  Simon Josefsson  <jas@extundo.com>
30460
30461         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
30462         #include's.
30463
30464 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
30465
30466         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
30467         setgid on directories only if they set these bits.
30468         * lib/modechange.h: Remove obsolete comment about masks.
30469
30470 2006-07-28  Eric Blake  <ebb9@byu.net>
30471
30472         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
30473         macro expansion.
30474
30475 2006-07-28  Bruno Haible  <bruno@clisp.org>
30476
30477         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
30478
30479 2006-07-28  Bruno Haible  <bruno@clisp.org>
30480
30481         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
30482
30483 2006-07-28  Bruno Haible  <bruno@clisp.org>
30484
30485         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
30486         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
30487         Define fallbacks.
30488         Avoids link error on FreeBSD 4.x.
30489         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30490
30491         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
30492         encoding.
30493         * lib/mbswidth.c (iswcntrl): Likewise.
30494
30495 2006-07-27  Bruno Haible  <bruno@clisp.org>
30496
30497         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
30498         test.
30499
30500 2006-07-27  Bruno Haible  <bruno@clisp.org>
30501
30502         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
30503         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
30504         defined.
30505
30506 2006-07-26  Eric Blake  <ebb9@byu.net>
30507
30508         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
30509
30510 2006-07-26  Eric Blake  <ebb9@byu.net>
30511
30512         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
30513         like mingw that lack mkstemp.
30514         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
30515         avoid compilation warning on mingw.
30516
30517 2006-07-26  Bruno Haible  <bruno@clisp.org>
30518
30519         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
30520         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
30521         INT_FAST*_MIN, INTPTR_MIN.
30522
30523 2006-07-25  Bruno Haible  <bruno@clisp.org>
30524
30525         * modules/version-etc (Depends-on): Add stdarg.
30526
30527 2006-07-25  Bruno Haible  <bruno@clisp.org>
30528
30529         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
30530         complex commands.
30531
30532 2006-07-25  Bruno Haible  <bruno@clisp.org>
30533
30534         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
30535         defined in <stdarg.h> or config.h.
30536
30537 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
30538
30539         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
30540         (gl_STDIO_SAFER): Remove.
30541
30542 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
30543
30544         * MODULES.html.sh (File stream based Input/Output):
30545         Add fopen-safer, tmpfile-safer; remove stdio-safer.
30546         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
30547         * modules/fopen-safer, modules/tmpfile-safer: New files.
30548         * modules/stdio-safer: Remove.
30549
30550 2006-07-24  Bruno Haible  <bruno@clisp.org>
30551
30552         * modules/tmpdir: New file.
30553         * MODULES.html.sh (File system functions): Add it.
30554
30555 2006-07-24  Bruno Haible  <bruno@clisp.org>
30556
30557         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
30558         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
30559
30560 2006-07-24  Bruno Haible  <bruno@clisp.org>
30561
30562         * modules/clean-temp: New file.
30563
30564 2006-07-24  Bruno Haible  <bruno@clisp.org>
30565
30566         * m4/tmpdir.m4: New file, from GNU gettext.
30567
30568 2006-07-24  Bruno Haible  <bruno@clisp.org>
30569
30570         * lib/tmpdir.h: New file, from GNU gettext.
30571         * lib/tmpdir.c: New file, from GNU gettext.
30572
30573 2006-07-24  Bruno Haible  <bruno@clisp.org>
30574
30575         * lib/clean-temp.h: New file, from GNU gettext.
30576         * lib/clean-temp.c: New file, from GNU gettext.
30577
30578 2006-07-23  Eric Blake  <ebb9@byu.net>
30579
30580         * modules/stdio-safer (Files): Add tmpfile-safer.c.
30581         (Depends-on): Add binary-io.
30582
30583 2006-07-23  Eric Blake  <ebb9@byu.net>
30584
30585         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
30586
30587 2006-07-23  Eric Blake  <ebb9@byu.net>
30588
30589         * lib/tmpfile-safer.c: New file.
30590         * lib/stdio-safer.h (fopen_safer): Add prototype.
30591         * lib/stdio--.h (tmpfile): Make safer.
30592
30593 2006-07-23  Bruno Haible  <bruno@clisp.org>
30594
30595         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
30596         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
30597         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
30598         gl_linked_remove_at): Use it.
30599
30600 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30601         and Simon Josefsson <jas@extundo.com>
30602
30603         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
30604
30605         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
30606
30607 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
30608
30609         * modules/close-stream: New file.
30610         * modules/closeout (Description): Make it clear that it exits
30611         with a diagnostic on error.
30612         (Depends-on): Add close-stream.  Remove fpending, stdbool.
30613         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
30614
30615 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
30616
30617         * m4/close-stream.m4: New file.
30618
30619 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
30620
30621         * lib/close-stream.c, lib/close-stream.h: New files.
30622
30623 2006-07-22  Bruno Haible  <bruno@clisp.org>
30624
30625         Merge from GNU gettext 0.15.
30626
30627         2006-05-01  Bruno Haible  <bruno@clisp.org>
30628
30629                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
30630
30631         2006-07-22  Bruno Haible  <bruno@clisp.org>
30632
30633                 * modules/javaversion: New file.
30634                 * MODULES.html.sh (Java): Add javaversion.
30635
30636         2006-03-12  Bruno Haible  <bruno@clisp.org>
30637
30638                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
30639
30640         2005-12-04  Bruno Haible  <bruno@clisp.org>
30641
30642                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
30643                 (untested).
30644
30645         2006-06-21  Bruno Haible  <bruno@clisp.org>
30646
30647                 Avoid warnings from recent versions of mcs.
30648                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
30649                 -o, -L, -r any more. Use options documented since mcs-1.0
30650                 instead. Similarly for -g.
30651
30652         2005-12-04  Bruno Haible  <bruno@clisp.org>
30653
30654                 * build-aux/csharpcomp.sh.in: Suffix for resources is
30655                 .resources, not .resource.
30656
30657         2005-07-09  Bruno Haible  <bruno@clisp.org>
30658
30659                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
30660                 add a .dll suffix.
30661                 Reported by Mark Junker <mjscod@gmx.de>.
30662
30663         2006-07-22  Bruno Haible  <bruno@clisp.org>
30664
30665                 * modules/gettext: Upgrade to gettext-0.15.
30666                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
30667                 m4/visibility.m4.
30668                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
30669
30670 2006-07-22  Bruno Haible  <bruno@clisp.org>
30671
30672         Merge from GNU gettext 0.15.
30673
30674         2006-03-25  Bruno Haible  <bruno@clisp.org>
30675
30676                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
30677
30678         2006-07-21  Bruno Haible  <bruno@clisp.org>
30679
30680                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
30681                 "1.1".
30682
30683         2006-05-09  Bruno Haible  <bruno@clisp.org>
30684
30685                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
30686                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
30687                 for the conftestver execution.
30688
30689         2006-05-01  Bruno Haible  <bruno@clisp.org>
30690
30691                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
30692                 optional target-version argument. Verify that the compiler
30693                 groks source of the specified source-version, or add -source
30694                 option as necessary. Verify that the compiler produces
30695                 bytecode in the specified target-version, or add -target and
30696                 -source options as necessary. Make the result of the test
30697                 available as variable CONF_JAVAC. Also log error output in
30698                 config.log.
30699
30700         2006-03-11  Bruno Haible  <bruno@clisp.org>
30701
30702                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
30703
30704         2006-05-09  Bruno Haible  <bruno@clisp.org>
30705
30706                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
30707                 CLASSPATH_SEPARATOR to a semicolon.
30708
30709         2006-03-12  Bruno Haible  <bruno@clisp.org>
30710
30711                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
30712                 available as variable CONF_JAVA, for subsequent autoconf
30713                 tests. Also log error output in config.log.
30714
30715         2006-07-19  Bruno Haible  <bruno@clisp.org>
30716
30717                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
30718                 that getline works on glibc2 systems. Needed to avoid trouble
30719                 in relocatable.c.
30720                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
30721
30722         2005-12-04  Bruno Haible  <bruno@clisp.org>
30723
30724                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
30725                 launcher (untested).
30726
30727         2005-12-04  Bruno Haible  <bruno@clisp.org>
30728
30729                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
30730
30731         2006-07-22  Bruno Haible  <bruno@clisp.org>
30732
30733                 * gettext.m4: Update from GNU gettext-0.15.
30734                 * nls.m4: Likewise.
30735                 * po.m4: Likewise.
30736                 * inttypes-pri.m4: Likewise.
30737                 * inttypes-h.m4: Renamed from inttypes.m4.
30738                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
30739
30740 2006-07-22  Bruno Haible  <bruno@clisp.org>
30741
30742         Merge from GNU gettext 0.15.
30743
30744         2005-07-05  Bruno Haible  <bruno@clisp.org>
30745
30746                 * printf-args.c (printf_fetchargs): Work around broken
30747                 definition of wint_t on mingw.
30748
30749         2005-02-12  Bruno Haible  <bruno@clisp.org>
30750
30751                 * xallocsa.h: Add extern "C" for C++.
30752
30753         2006-05-17  Bruno Haible  <bruno@clisp.org>
30754
30755                 Cygwin portability.
30756                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
30757
30758         2006-04-30  Bruno Haible  <bruno@clisp.org>
30759
30760                 * progreloc.c: Include <mach-o/dyld.h> if available.
30761                 (find_executable): Use _NSGetExecutablePath when possible.
30762
30763         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
30764
30765                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
30766                 function.
30767
30768         2005-12-29  Bruno Haible  <bruno@clisp.org>
30769
30770                 * progreloc.c (set_program_name_and_installdir): Fix
30771                 compilation error.
30772
30773         2005-12-04  Bruno Haible  <bruno@clisp.org>
30774
30775                 Cygwin portability.
30776                 * progreloc.c: Include <windows.h> also on Cygwin.
30777                 (find_executable): Add support for Cygwin.
30778                 (set_program_name_and_installdir): Handle also platforms with
30779                 nonempty EXEEXT.
30780
30781         2006-07-11  Bruno Haible  <bruno@clisp.org>
30782
30783                 * javacomp.c: Fix a comment.
30784                 Reported by Jim Meyering.
30785
30786         2006-04-30  Bruno Haible  <bruno@clisp.org>
30787
30788                 * javacomp.h (compile_java_class): Add source_version,
30789                 target_version arguments.
30790                 * javacomp.c: Rewritten to choose only a compiler that
30791                 respects the specified source_version and target_version.
30792
30793         2006-06-27  Bruno Haible  <bruno@clisp.org>
30794
30795                 Assume correct S_ISDIR macro.
30796                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
30797
30798         2006-07-22  Bruno Haible  <bruno@clisp.org>
30799
30800                 * javaversion.h: New file, from GNU gettext.
30801                 * javaversion.c: New file, from GNU gettext.
30802                 * javaversion.java: New file, from GNU gettext.
30803                 * javaversion.class: New file, from GNU gettext.
30804
30805         2006-05-17  Bruno Haible  <bruno@clisp.org>
30806
30807                 Cygwin portability.
30808                 * javaexec.c (execute_java_class): Test for jview program
30809                 also on Cygwin.
30810
30811         2006-04-09  Bruno Haible  <bruno@clisp.org>
30812
30813                 * fatal-signal.c: Don't include string.h.
30814                 (at_fatal_signal): Use a copying loop instead of memcpy.
30815
30816         2005-12-04  Bruno Haible  <bruno@clisp.org>
30817
30818                 * csharpexec.c: Add support for 'clix' launcher (untested).
30819                 (execute_csharp_using_sscli): New function.
30820                 (execute_csharp_program): Call it.
30821
30822         2006-06-21  Bruno Haible  <bruno@clisp.org>
30823
30824                 Avoid warnings from recent versions of mcs.
30825                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
30826                 -o, -L, -r any more. Use options documented since mcs-1.0
30827                 instead. Similarly for -g.
30828
30829         2005-07-09  Bruno Haible  <bruno@clisp.org>
30830
30831                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
30832                 add a .dll suffix.
30833                 Reported by Mark Junker <mjscod@gmx.de>.
30834
30835         2006-06-17  Bruno Haible  <bruno@clisp.org>
30836
30837                 * config.charset: Update for NetBSD 3.0.
30838
30839         2006-05-17  Bruno Haible  <bruno@clisp.org>
30840
30841                 Cygwin portability.
30842                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
30843
30844         2006-05-16  Bruno Haible  <bruno@clisp.org>
30845
30846                 * localcharset.c [CYGWIN]: Include <windows.h>.
30847                 (get_charset_aliases): For Cygwin, return the same CPxxx
30848                 aliases list as under WIN32.
30849                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
30850                 the environment variables. Fall back to GetACP().
30851
30852         2006-04-05  Bruno Haible  <bruno@clisp.org>
30853
30854                 * config.charset: Update Juan Manuel Guerrero's address.
30855
30856         2005-02-12  Bruno Haible  <bruno@clisp.org>
30857
30858                 * allocsa.h: Add extern "C" for C++.
30859
30860         2005-02-10  Bruno Haible  <bruno@clisp.org>
30861
30862                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
30863                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
30864
30865         2006-07-22  Bruno Haible  <bruno@clisp.org>
30866
30867                 * gettext.h: Update to GNU gettext-0.15.
30868
30869 2006-07-22  Bruno Haible  <bruno@clisp.org>
30870
30871         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
30872         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
30873         lib-prefix.m4, longdouble.m4, ssize_t.m4.
30874
30875 2006-07-21  Eric Blake  <ebb9@byu.net>
30876
30877         * modules/stdlib-safer: New file.
30878         * MODULES.html.sh (File stream based Input/Output): Add
30879         stdlib-safer.
30880
30881 2006-07-21  Eric Blake  <ebb9@byu.net>
30882
30883         * lib/stdlib-safer.h: New file from coreutils, required by
30884         stdlib--.h.
30885
30886 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
30887
30888         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
30889
30890 2006-07-20  Bruno Haible  <bruno@clisp.org>
30891
30892         * gnulib-tool: Recognize new option --assume-autoconf.
30893         (autoconf_minversion): New variable.
30894         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
30895
30896 2006-07-20  Bruno Haible  <bruno@clisp.org>
30897
30898         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
30899
30900 2006-07-19  Derek R. Price  <derek@ximbiot.com>
30901
30902         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
30903         Reindent and repaginate.
30904
30905 2006-07-19  Derek Price  <derek@ximbiot.com>
30906
30907         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
30908         Correct grammar.
30909
30910 2006-07-17  Bruno Haible  <bruno@clisp.org>
30911
30912         * modules/list: New file.
30913         * modules/array-list: New file.
30914         * modules/carray-list, modules/carray-list-tests: New files.
30915         * modules/linked-list, modules/linked-list-tests: New files.
30916         * modules/avltree-list, modules/avltree-list-tests: New files.
30917         * modules/rbtree-list, modules/rbtree-list-tests: New files.
30918         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
30919         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
30920         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
30921         * modules/oset: New file.
30922         * modules/array-oset: New file.
30923         * modules/avltree-oset, modules/avltree-oset-tests: New files.
30924         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
30925         * tests/test-carray_list.c: New file.
30926         * tests/test-linked_list.c: New file.
30927         * tests/test-avltree_list.c: New file.
30928         * tests/test-rbtree_list.c: New file.
30929         * tests/test-linkedhash_list.c: New file.
30930         * tests/test-avltreehash_list.c: New file.
30931         * tests/test-rbtreehash_list.c: New file.
30932         * tests/test-avltree_oset.c: New file.
30933         * tests/test-rbtree_oset.c: New file.
30934         * MODULES.html.sh (Container data structures): New section.
30935
30936 2006-07-17  Bruno Haible  <bruno@clisp.org>
30937
30938         * m4/gl_list.m4: New file.
30939
30940 2006-07-17  Bruno Haible  <bruno@clisp.org>
30941
30942         * lib/gl_list.h: New file.
30943         * lib/gl_list.c: New file.
30944         * lib/gl_array_list.h: New file.
30945         * lib/gl_array_list.c: New file.
30946         * lib/gl_carray_list.h: New file.
30947         * lib/gl_carray_list.c: New file.
30948         * lib/gl_linked_list.h: New file.
30949         * lib/gl_linked_list.c: New file.
30950         * lib/gl_anylinked_list1.h: New file.
30951         * lib/gl_anylinked_list2.h: New file.
30952         * lib/gl_avltree_list.h: New file.
30953         * lib/gl_avltree_list.c: New file.
30954         * lib/gl_anyavltree_list1.h: New file.
30955         * lib/gl_anyavltree_list2.h: New file.
30956         * lib/gl_rbtree_list.h: New file.
30957         * lib/gl_rbtree_list.c: New file.
30958         * lib/gl_anyrbtree_list1.h: New file.
30959         * lib/gl_anyrbtree_list2.h: New file.
30960         * lib/gl_anytree_list1.h: New file.
30961         * lib/gl_anytree_list2.h: New file.
30962         * lib/gl_linkedhash_list.h: New file.
30963         * lib/gl_linkedhash_list.c: New file.
30964         * lib/gl_anyhash_list1.h: New file.
30965         * lib/gl_anyhash_list2.h: New file.
30966         * lib/gl_avltreehash_list.h: New file.
30967         * lib/gl_avltreehash_list.c: New file.
30968         * lib/gl_rbtreehash_list.h: New file.
30969         * lib/gl_rbtreehash_list.c: New file.
30970         * lib/gl_anytreehash_list1.h: New file.
30971         * lib/gl_anytreehash_list2.h: New file.
30972
30973         * lib/gl_oset.h: New file.
30974         * lib/gl_oset.c: New file.
30975         * lib/gl_array_oset.h: New file.
30976         * lib/gl_array_oset.c: New file.
30977         * lib/gl_avltree_oset.h: New file.
30978         * lib/gl_avltree_oset.c: New file.
30979         * lib/gl_rbtree_oset.h: New file.
30980         * lib/gl_rbtree_oset.c: New file.
30981         * lib/gl_anytree_oset.h: New file.
30982
30983 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
30984
30985         * m4/mkancesdirs.m4: New file.
30986         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
30987         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
30988         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
30989         it.
30990
30991 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
30992
30993         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
30994         * lib/mkancesdirs.h: New files.
30995         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
30996         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
30997         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
30998         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
30999         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
31000         callers changed.  Revamp internals significantly, by not
31001         attempting to create directories that are temporarily more
31002         permissive than the final results.  Do not attempt to use
31003         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
31004         This removes some race conditions, fixes some bugs, and simplifies
31005         things.  Use new dirchownmod function to do owner and mode changes.
31006         * lib/mkdir-p.h: Likewise.
31007         * lib/modechange.c (octal_to_mode): New function.
31008         (struct mode_change): New member mentioned.
31009         (make_node_op_equals): New arg mentioned.  All callers changed.
31010         (mode_compile): Keep track of which mode bits the user has explicitly
31011         mentioned.
31012         (mode_adjust): New arg DIR, so that we implement the X op correctly.
31013         New arg PMODE_BITS, to keep track of which mode bits the user
31014         mentioned; it treats S_ISUID and S_ISGID speciall.
31015         All callers changed.
31016         * lib/modechange.h: Likewise.
31017
31018 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
31019
31020         * MODULES.html.sh: Add mkancestors.
31021         * modules/mkancesdirs: New module.
31022         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
31023         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
31024         The chdir-safer and afs files are now orphans; I'll remove them
31025         unless someone speaks up.
31026         Add lib/dirchownmod.c, lib/dirchownmod.h.
31027         (Depends-on): Remove alloca, chown, save-cwd, dirname.
31028         Add lchown, mkancesdirs.
31029         (Maintainer): Add self.
31030
31031 2006-07-15  Karl Berry  <karl@gnu.org>
31032
31033         * gnulib-tool: help message wording/arrangement.
31034
31035 2006-07-14  Simon Josefsson  <jas@extundo.com>
31036
31037         * doc/gnulib.texi (Libtool and Windows): New section.
31038
31039 2006-07-12  Simon Josefsson  <jas@extundo.com>
31040
31041         * modules/gendocs (License): Fix license, approved by Karl.
31042
31043 2006-07-12  Eric Blake  <ebb9@byu.net>
31044
31045         * MODULES.html.sh: Add gendocs.
31046
31047 2006-07-11  Eric Blake  <ebb9@byu.net>
31048
31049         * modules/fdl: New module, to install doc/fdl.texi.
31050         * MODULES.html.sh: Add new section for documentation modules.
31051         * gnulib-tool: Avoid space-tab.
31052         (--doc-base): New option, to manage files from doc.
31053
31054 2006-07-11  Eric Blake  <ebb9@byu.net>
31055
31056         * m4/absolute-header.m4: Fix comments to match recent change.
31057
31058 2006-07-11  Eric Blake  <ebb9@byu.net>
31059
31060         * gnulib-tool: List --doc-base before --tests-base.
31061
31062 2006-07-11  Derek R. Price  <derek@ximbiot.com>
31063
31064         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
31065
31066 2006-07-11  Bruno Haible  <bruno@clisp.org>
31067
31068         * README: Mention where to put documentation.
31069
31070 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31071
31072         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
31073
31074 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
31075
31076         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
31077         to stdint.m4.
31078
31079 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
31080
31081         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
31082         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
31083         "no/such/file/stdint.h" when there is no such file, so that
31084         the resulting C code can be parsed by dodgy compilers.
31085         Problems reported by Bob Proulx.
31086
31087 2006-07-10  Derek R. Price  <derek@ximbiot.com>
31088
31089         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
31090         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
31091         macros into the GNU _D_EXACT_NAMLEN.
31092         * lib/savedir.c:  Likewise.
31093         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
31094
31095 2006-07-10  Derek R. Price  <derek@ximbiot.com>
31096         and Paul Eggert  <eggert@cs.ucla.edu>
31097
31098         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
31099         * m4/savedir.m4:
31100         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
31101         macros into the GNU _D_EXACT_NAMLEN.
31102
31103 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31104
31105         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
31106         around the absolute name, to work around a problem with the HP-UX
31107         11.23 native C compiler, reported by Bob Proulx.
31108
31109 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31110
31111         * doc/maintain.texi, make-stds.texi: Sync from
31112         <http://savannah.gnu.org/projects/gnustandards>.
31113
31114 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31115
31116         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
31117
31118 2006-07-09  Jim Meyering  <jim@meyering.net>
31119
31120         * m4/glob.m4: Remove a doubled word in a comment.
31121
31122 2006-07-09  Jim Meyering  <jim@meyering.net>
31123
31124         * lib/argp-pv.c: Remove a doubled word in a comment.
31125         * lib/check-version.c (check_version): Likewise.
31126         * lib/javacomp.c (compile_java_class): Likewise.
31127
31128 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
31129
31130         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
31131         for the benefit of people using Autoconf 2.60.  If you want to
31132         support older Autoconf versions you can copy m4/onceonly_2_57.m4
31133         (or m4/onceonly.m4, if pre-2.57) manually.
31134
31135 2006-07-08  Jim Meyering  <jim@meyering.net>
31136
31137         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
31138         comment.
31139         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
31140         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
31141         comment.
31142
31143 2006-07-08  Jim Meyering  <jim@meyering.net>
31144
31145         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
31146
31147 2006-07-07  Simon Josefsson  <jas@extundo.com>
31148
31149         * tests/test-crc.c: Change expected crc value, the test vector
31150         were probably computed using the old broken crc.c?
31151
31152 2006-07-06  Simon Josefsson  <jas@extundo.com>
31153
31154         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
31155         now the canonical place for the M4 file).
31156
31157         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
31158         from the sys_socket dependency now.
31159
31160         * modules/inet_pton (Files): Ditto.
31161
31162         * modules/inet_ntop (Files): Ditto.
31163
31164 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
31165
31166         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
31167         not gl_PREREQ_GETUSERSHELL.
31168
31169 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31170
31171         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
31172         with only one argument, for Autoconf 2.60.
31173         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
31174         expand to nothing, so add a shell command to avoid syntax error.
31175         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
31176
31177 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31178
31179         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
31180
31181 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31182
31183         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
31184         no longer needed.  Check for isblank decl.
31185         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
31186         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
31187         of existence.
31188
31189 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31190
31191         * lib/getloadavg.c: Use __VMS, not VMS.
31192         * lib/getopt.c: Likewise.
31193         * lib/getpagesize.h: Likewise.
31194         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
31195         and probably does not work.
31196
31197 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31198
31199         * lib/.cppi-disable: Add wcwidth.
31200         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
31201         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
31202         (ISGRAPH): Remove.  All uses changed to isgraph.
31203         (FOLD) [!defined _LIBC]: Remove special case.
31204         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
31205         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
31206         HAVE_ISBLANK.
31207         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
31208         case.
31209
31210 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
31211
31212         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
31213         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
31214         brackets.  Other minor changes to suppress some compiler
31215         warnings.
31216
31217 2006-07-06  Derek R. Price  <derek@ximbiot.com>
31218         and Paul Eggert  <eggert@cs.ucla.edu>
31219
31220         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
31221         of invoking obsolescent AC_HEADER_DIRENT macro.
31222         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
31223         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
31224         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
31225         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
31226         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
31227         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
31228         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
31229         * m4/readdir.m4: Remove; no longer needed.
31230
31231 2006-07-06  Derek R. Price  <derek@ximbiot.com>
31232         and Paul Eggert  <eggert@cs.ucla.edu>
31233
31234         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
31235         Don't worry about this obsolete case any more.
31236         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
31237         directories.
31238         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
31239         worry about this obsolete case any more.
31240         * lib/fts.c: Likewise.
31241         * lib/getcwd.c: Likewise.
31242         * lib/glob.h: Likewise.
31243         * lib/savedir.c: Likewise.
31244
31245 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
31246
31247         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
31248         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
31249         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
31250         needed.
31251         All uses removed.
31252         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
31253         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
31254         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
31255         needed.
31256         * m4/getdate.m4 (gl_GETDATE): Likewise.
31257         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
31258         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
31259         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
31260         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
31261         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
31262         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
31263         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
31264         needed.
31265
31266 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
31267
31268         * lib/memcasecmp.c: Include <limits.h>.
31269         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
31270         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
31271         Don't assume isdigit succeeds only on '0' through '9'.
31272
31273 2006-07-05  Eric Blake  <ebb9@byu.net>
31274
31275         * modules/getaddrinfo (Depends-on): Add snprintf.
31276
31277 2006-07-05  Eric Blake  <ebb9@byu.net>
31278
31279         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
31280         to avoid 'header present but could not be compiled' on cygwin.
31281
31282 2006-07-05  Eric Blake  <ebb9@byu.net>
31283
31284         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
31285         missing from netdb.h.
31286         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
31287
31288 2006-07-05  Derek R. Price  <derek@ximbiot.com>
31289
31290         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
31291         no longer needed.
31292         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
31293         * m4/getdate.m4 (gl_GETDATE): Likewise.
31294         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
31295         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
31296         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
31297         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
31298         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
31299
31300 2006-07-05  Derek R. Price  <derek@ximbiot.com>
31301
31302         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
31303         All uses of is_space replaced by isspace.
31304         * lib/exit.h: Don't talk about STDC_HEADERS.
31305         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
31306         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
31307         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
31308         replaced by isprint etc.
31309         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
31310         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
31311         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
31312         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
31313         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
31314         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
31315
31316 2006-07-05  Bruno Haible  <bruno@clisp.org>
31317
31318         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
31319         the function exists, before testing against AIX.
31320         Reported by Martin Lambers <marlam@marlam.de>.
31321
31322 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
31323
31324         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
31325         From Mark D. Baushke.
31326
31327 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
31328
31329         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
31330         to the absolute name, not just one, to bypass Sun C 5.8's
31331         "warning: #include of /usr/include/... may be non-portable".
31332
31333 2006-07-04  Eric Blake  <ebb9@byu.net>
31334
31335         * modules/dirname-tests: New test module.
31336         * tests/test-dirname.c: New file, replacing dirname.c
31337         TEST_DIRNAME section that was recently deleted.
31338
31339 2006-07-04  Bruno Haible  <bruno@clisp.org>
31340
31341         Assume ANSI C header files and <ctype.h> functions.
31342         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
31343         (mbsnwidth): Use isprint, iscntrl instead.
31344
31345 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
31346
31347         Merge from coreutils.
31348         * MODULES.html.sh: Add xstrtold.
31349         * modules/xstrtold: New file.
31350         * modules/cycle-check (Files): Add lib/same-inode.h.
31351         * modules/dirname (Files): Add m4/double-slash-root.m4.
31352         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
31353         * modules/mkdir-p (Files): Add lib/same-inode.h.
31354         * modules/same (Files): Add lib/same-inode.h.
31355
31356 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
31357
31358         * m4/absolute-header.m4: Renamed from full-header-path.m4.
31359         This is to keep the terminology clean; POSIX talks about
31360         "absolute pathnames", not "full pathnames", but the GNU
31361         Coding Standards say to use "path" for something else;
31362         so use "absolute" to keep both sides happy.
31363         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
31364         Set gl_absolute_header, not gl_full_header_path.
31365         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
31366         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
31367         All uses changed.
31368
31369         Merge from coreutils.
31370
31371         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
31372
31373         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
31374         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
31375         want to require the building of c-strtod.o.
31376         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
31377         needs -lm directly.
31378         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
31379
31380         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
31381
31382         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
31383         --as-needed option if available.  Problem reported by Albert Chin in
31384         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
31385         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
31386         cc merely issues a bunch of annoying warnings for --as-needed
31387         (this problem was reported by Bob Proulx).  Also, try linking with
31388         -lm to detect a bug in binutils 2.16 (this problem was reported
31389         by Ralf Wildenhues).
31390
31391         2006-06-18  Jim Meyering  <jim@meyering.net>
31392
31393         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
31394         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
31395         macro.
31396         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
31397         also check for glibc-2.4's abort-inducing bug.
31398
31399         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
31400         Low-probability clean-up should be to use rmdir to get rid of
31401         the just-created directory, not unlink.
31402
31403         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
31404         configure fail, and request a bug report to inform us about it.
31405         Add a comment that, barring reports to the contrary, in 2007 we'll
31406         assume ftruncate is universally available.
31407
31408         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
31409
31410         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
31411
31412         2006-03-12  Jim Meyering  <jim@meyering.net>
31413
31414         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
31415         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
31416         * m4/same.m4 (gl_SAME): Likewise.
31417         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
31418
31419         2006-03-11  Eric Blake  <ebb9@byu.net>
31420
31421         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
31422         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
31423         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
31424         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
31425
31426 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
31427
31428         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
31429         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
31430         reported by Mark D. Baushke, one in
31431         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
31432
31433         Merge from coreutils.
31434
31435         * lib/.cppi-disable: Add stdint_.h.
31436         * lib/.cvsignore: Add stdint.h.
31437
31438         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
31439
31440         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
31441         both double and long double versions.
31442         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
31443         * lib/xstrtold.c: New file.
31444         * lib/xstrtod.h (xstrtold): New decl.
31445
31446         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
31447
31448         * lib/filemode.c (setst): Remove.
31449         (strmode): Rewrite to avoid setst.  This makes the code shorter,
31450         (arguably) clearer, and the generated code is a bit smaller on my
31451         Debian GNU/Linux stable x86 host.
31452
31453         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
31454
31455         * lib/filemode.c: Include "filemode.h" first, to test the interface.
31456         Assume that filemode.h includes sys/types.h and sys/stat.h.
31457         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
31458         (ftypelet): Reorder to put common cases first, for efficiency.
31459         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
31460         to do 'M'.
31461         (strmode): Renamed from mode_string, and now stores 12 bytes instead
31462         of 10, for compatibility with FreeBSD.  All callers changed.
31463         (filemodestring): Now stores 12 bytes instead of 10, and sets file
31464         types that can't be deduced solely from st_mode.  First arg is now a
31465         const pointer.
31466         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
31467         (strmode): Renamed from mode_string.
31468         (filemodestring): New decl.
31469         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
31470         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
31471         needed.
31472         (S_ISPORT, S_ISWHT): New macros, if not already defined.
31473
31474         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
31475
31476         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
31477         fsusage.h now does that.  Include fsusage.h first, to test interface.
31478         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
31479         at most one method (the old code could have generated decls that
31480         didn't conform to C89, not that this was ever exercised).
31481         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
31482
31483         2006-03-19  Jim Meyering  <jim@meyering.net>
31484
31485         Work even in a chroot where d_ino values for entries in "/"
31486         don't match the stat.st_ino values for the same names.
31487         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
31488         number, iterate through all entries again, using lstat instead.
31489         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
31490         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
31491
31492         * lib/getcwd.c (__getcwd): Clarify a comment.
31493         Use memcpy in place of a call to strcpy.
31494
31495         2006-03-12  Jim Meyering  <jim@meyering.net>
31496
31497         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
31498         matches that of the current directory (which we're about to chdir ".."
31499         out of), then save the dev-ino of the parent, instead.
31500
31501         * lib/same-inode.h (SAME_INODE): New file/macro.
31502         * lib/chdir-safer.c (SAME_INODE): Remove definition.
31503         Include "same-inode.h", instead.
31504         * lib/same.c: Likewise.
31505         * lib/cycle-check.h: Include "same-inode.h".
31506         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
31507         * lib/cycle-check.c (SAME_INODE): Remove definition.
31508         * lib/root-dev-ino.h: Include "same-inode.h".
31509
31510         2006-03-11  Eric Blake  <ebb9@byu.net>
31511
31512         * lib/same.c (same_name): s/base_name/last_component/
31513         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
31514         * lib/filenamecat.c (file_name_concat): Likewise.
31515
31516         2006-03-11  Eric Blake  <ebb9@byu.net>,
31517                     Paul Eggert  <eggert@cs.ucla.edu>
31518
31519         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
31520         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
31521         drive prefix.
31522         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
31523         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
31524         (last_component): New method.
31525         * lib/dirname.c (dir_len): Determine when drive letters need a
31526         subsequent slash.  Preserve // when it is special.
31527         (dir_name): Don't append dot when drive letter is absolute.
31528         [TEST_DIRNAME]: Move into a full-blown gnulib test.
31529         * lib/basename.c (base_name): New semantics - malloc the result.
31530         Preserve // when it is special.  Preserve relative files that look
31531         like drive letters.
31532         (base_len): Preserve // when it is special.
31533         (last_component): New method, similar to old base_name semantics.
31534         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
31535         base_name.  Strip redundant slashes from ///.
31536
31537 2006-07-03  Jim Meyering  <jim@meyering.net>
31538
31539         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
31540         macro is used before the first cycle_check call.
31541
31542 2006-07-03  Eric Blake  <ebb9@byu.net>
31543
31544         * modules/dirname (Depends-on): Add xstrndup.
31545
31546 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
31547
31548         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
31549         test cases, so that config.log is a bit easier to follow.
31550
31551 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
31552
31553         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
31554         both are 64 bits, since this seems to be the tradition, and this
31555         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
31556         we ever run into a host that prefers long long to long in this
31557         case, we'll need another configure-time test.  Problem reported by
31558         Jim Meyering.
31559
31560 2006-07-02  Eric Blake  <ebb9@byu.net>
31561
31562         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
31563
31564 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
31565
31566         * modules/inttypes (Depends-on): No longer depends on stdint.
31567         * modules/stdint (Description): Say more about assumptions.
31568         Say that the fast types might differ.  Say macros are used.
31569         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
31570         (Makefile.am): Revise list of substituted symbols to match
31571         new stdint.m4.
31572         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
31573         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
31574         * tests/test-stdint.c (verify_same_types)
31575         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
31576         the code conforms to C99/C89.
31577         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
31578         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
31579
31580 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
31581
31582         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
31583         but fix a bug, by requiring at least 64 bits.
31584         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
31585         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
31586         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
31587         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
31588
31589         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
31590         changes.  Make 2.59 a prerequisite.  Check and substitute for
31591         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
31592         inttypes.h.  Do not use special include files; just use the
31593         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
31594         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
31595         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
31596         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
31597         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
31598         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
31599         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
31600         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
31601         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
31602         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
31603         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
31604         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
31605         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
31606         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
31607         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
31608         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
31609         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
31610         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
31611         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
31612         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
31613         WINT_MAX.  Check for C99 conformance more strictly, by detecting
31614         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
31615         not check for things that C99 does not require, e.g., int8_t.  If
31616         a test isn't needed unless <stdint.h> isn't working, and is
31617         unlikely to be needed for any other reason, then don't do it
31618         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
31619         size_t, since we assume C89 freestanding at least.  Do not check
31620         for sig_atomic_t, wchar_t, or wint_t, since the code now does
31621         the right thing even if the types are not defined.  Instead use:
31622         (gl_STDINT_TYPE_PROPERTIES): New macro.
31623         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
31624         testing whether <sys/types.h> clashes, as Autoconf does this for
31625         us now.  All uses removed.
31626         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
31627         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
31628         (gl_CHECK_TYPE_SAME):
31629         Remove; no longer needed.
31630         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
31631         exists, since we'll return 0 anyway in that case.
31632         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
31633
31634 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
31635
31636         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
31637         possible collision with system files.
31638         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
31639         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
31640         WCHAR_MIN and WCHAR_MAX in this case.
31641         (<stddef.h>): Do not include; no longer needed.
31642         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
31643         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
31644         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
31645         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
31646         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
31647         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
31648         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
31649         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
31650         !defined(__c99))]: Include in this case too, since it's harmless
31651         now.
31652         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
31653         dangerous to do so.
31654         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
31655         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
31656         (_STDINT_MIN, _STDINT_MAX): New macros.
31657         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
31658         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
31659         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
31660         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
31661         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
31662         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
31663         macros, not typedefs; this simplifies things quite a bit.
31664         Use long int for all types narrower than int64_t.
31665         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
31666         Define in terms of long long int or int64_t or long int,
31667         not int64_t or int32_t.  This saves some compile-time testing.
31668         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
31669         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
31670         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
31671         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
31672         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
31673         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
31674         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
31675         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
31676         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
31677         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
31678         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
31679         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
31680         undef any previous version and define our own version, for
31681         simplicity and consistency with the new macros for types.
31682         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
31683         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
31684         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
31685         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
31686         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
31687         @WINT_T_SUFFIX@ to keep things simple here.
31688         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
31689         Simplify by assuming typical 8/16/32/64 host, since we're
31690         already doing that elsewhere anyway.
31691         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
31692         and assume long long int is 64 bits if available.  This
31693         speeds up 'configure'.
31694
31695 2006-07-01  Eric Blake  <ebb9@byu.net>
31696
31697         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
31698         Reported by Andreas Buening.
31699
31700 2006-07-01  Eric Blake  <ebb9@byu.net>
31701
31702         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
31703
31704 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
31705
31706         * lib/getaddrinfo.c: fixed typo
31707
31708 2006-06-29  Jim Meyering  <jim@meyering.net>
31709
31710         * modules/strftime (Maintainer): Add my name, since with the
31711         FPRINTFTIME changes strftime.c has forked from glibc.
31712
31713 2006-06-29  Eric Blake  <ebb9@byu.net>
31714
31715         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
31716
31717 2006-06-29  Eric Blake  <ebb9@byu.net>
31718
31719         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
31720
31721 2006-06-29  Eric Blake  <ebb9@byu.net>
31722
31723         * lib/stat_.h: New file.
31724
31725 2006-06-29  Eric Blake  <ebb9@byu.net>
31726
31727         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
31728         unused static function.
31729
31730 2006-06-29  Eric Blake  <ebb9@byu.net>
31731
31732         * doc/functions.texi (Function Portability): Document missing lstat
31733         on mingw.
31734
31735 2006-06-29  Eric Blake  <ebb9@byu.net>
31736
31737         * MODULES.html.sh: Add sys_stat.
31738         * modules/sys_stat: New module.
31739         * modules/mkstemp (Depends-on): Add sys_stat.
31740
31741 2006-06-29  Derek R. Price  <derek@ximbiot.com>
31742
31743         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
31744
31745 2006-06-29  Derek R. Price  <derek@ximbiot.com>
31746
31747         * m4/c-bs-a.m4: Removed.
31748
31749 2006-06-29  Derek R. Price  <derek@ximbiot.com>
31750
31751         * lib/strftime.c: Assume strftime() exists.
31752
31753 2006-06-29  Derek Price  <derek@ximbiot.com>
31754
31755         * modules/c-bs-a: Removed - \a is C89.
31756         * MODULES.html.sh: Remove c-bs-a.
31757
31758 2006-06-29  Bruno Haible  <bruno@clisp.org>
31759
31760         * modules/wcwidth (License): Change to LGPL.
31761
31762 2006-06-28  Simon Josefsson  <jas@extundo.com>
31763
31764         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
31765         on _WIN32.
31766
31767         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
31768         getnameinfo.
31769
31770 2006-06-28  Simon Josefsson  <jas@extundo.com>
31771
31772         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
31773
31774 2006-06-28  Simon Josefsson  <jas@extundo.com>
31775
31776         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
31777         functions there.  It will succeed on Windows XP, but on Windows
31778         2000 and (presumably) earlier, it will fail, and use the internal
31779         re-implementation.
31780         (use_win32_p): New function.
31781         (getaddrinfo): Use strtoul on servname, to support numeric ports.
31782         Support AI_NUMERICSERV to disable getservbyname.
31783         (getnameinfo): New function, only supports
31784         NI_NUMERICHOST|NI_NUMERICSERV for now.
31785
31786         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
31787         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
31788         getnameinfo.
31789
31790 2006-06-28  Eric Blake  <ebb9@byu.net>
31791
31792         * modules/wcwidth: New file.
31793         * modules/mbchar (Depends-on): Add wcwidth.
31794         * modules/mbswidth (Depends-on): Add wcwidth.
31795         * MODULES.html.sh: Add wcwidth.
31796
31797 2006-06-28  Eric Blake  <ebb9@byu.net>
31798
31799         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
31800         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
31801
31802 2006-06-28  Eric Blake  <ebb9@byu.net>
31803
31804         * lib/xvasprintf.h: Fix comments.
31805
31806 2006-06-28  Eric Blake  <ebb9@byu.net>
31807
31808         * lib/mbchar.h (wcwidth): Include wcwidth.h.
31809         * lib/mbswidth.c (wcwidth): Move from here...
31810         * lib/wcwidth.h: ...to this new file.
31811
31812 2006-06-28  Derek R. Price  <derek@ximbiot.com>
31813
31814         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
31815
31816         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
31817         it's obsolete.
31818         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
31819
31820 2006-06-28  Derek R. Price  <derek@ximbiot.com>
31821
31822         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
31823         Autoconf 2.60 says this stuff was obsolete.
31824
31825 2006-06-28  Bruno Haible  <bruno@clisp.org>
31826
31827         * modules/wcwidth (Files): Add m4/wchar_t.m4.
31828
31829 2006-06-28  Bruno Haible  <bruno@clisp.org>
31830
31831         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
31832         gt_TYPE_WCHAR_T.
31833
31834 2006-06-28  Bruno Haible  <bruno@clisp.org>
31835
31836         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
31837         declaration for wcwidth.
31838         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
31839
31840 2006-06-28  Bruno Haible  <bruno@clisp.org>
31841
31842         * lib/mkdtemp.c [MINGW]: Include <io.h>.
31843         (mkdir): Define using _mkdir.
31844
31845 2006-06-28  Bruno Haible  <bruno@clisp.org>
31846
31847         * lib/getaddrinfo.h: Fix POSIX URL.
31848         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
31849         _WIN32.
31850         (use_win32_p): Make static.
31851         (getaddrinfo): Reject service name if it is empty or does not consist
31852         solely of decimal digits, or if its value is > 65535.
31853         (getnameinfo): Remove useless casts.
31854
31855 2006-06-27  Simon Josefsson  <jas@extundo.com>
31856
31857         * modules/sys_select: New file, suggested by Bruno Haible, Paul
31858         Eggert and Martin Lambers.
31859
31860 2006-06-27  Simon Josefsson  <jas@extundo.com>
31861
31862         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
31863         Eggert and Martin Lambers.
31864
31865 2006-06-27  Bruno Haible  <bruno@clisp.org>
31866
31867         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
31868         result to 0, not to empty.
31869         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
31870
31871 2006-06-27  Bruno Haible  <bruno@clisp.org>
31872
31873         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
31874
31875 2006-06-26  Simon Josefsson  <jas@extundo.com>
31876
31877         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
31878         present.
31879
31880 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
31881
31882         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
31883         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
31884         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
31885
31886 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
31887
31888         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
31889
31890 2006-06-26  Bruno Haible  <bruno@clisp.org>
31891
31892         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
31893
31894 2006-06-26  Bruno Haible  <bruno@clisp.org>
31895
31896         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
31897
31898 2006-06-26  Bruno Haible  <bruno@clisp.org>
31899
31900         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
31901         SGI C compiler in pre-C99 mode.
31902         Suggested by Mark D. Baushke and Larry Jones.
31903
31904 2006-06-26  Bruno Haible  <bruno@clisp.org>
31905
31906         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
31907         WCHAR_MAX.
31908         Reported by Mark D. Baushke and Larry Jones.
31909
31910 2006-06-26  Bruno Haible  <bruno@clisp.org>
31911
31912         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
31913         in pre-C99 mode.
31914         Suggested by Mark D. Baushke and Larry Jones.
31915
31916 2006-06-23  Simon Josefsson  <jas@extundo.com>
31917             Bruno Haible  <bruno@clisp.org>
31918
31919         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
31920         Emit mostlyclean-local rule.
31921         (func_emit_tests_Makefile_am): Likewise.
31922         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
31923
31924 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
31925
31926         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
31927
31928 2006-06-23  Bruno Haible  <bruno@clisp.org>
31929
31930         * tests/test-stdint.c: Update to match ISO C 99 Technical
31931         Corrigendum 1.
31932
31933 2006-06-23  Bruno Haible  <bruno@clisp.org>
31934
31935         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
31936
31937 2006-06-23  Bruno Haible  <bruno@clisp.org>
31938
31939         * lib/stdint_.h: Treat IRIX like OpenBSD.
31940
31941 2006-06-23  Bruno Haible  <bruno@clisp.org>
31942
31943         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
31944         ISO C 99 Technical Corrigendum 1.
31945
31946 2006-06-22  Simon Josefsson  <jas@extundo.com>
31947
31948         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
31949         MinGW.
31950
31951 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
31952
31953         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
31954         needed.  Some compiler complained about some of them.  Problem reported
31955         by Larry Jones in
31956         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
31957
31958 2006-06-21  Simon Josefsson  <jas@extundo.com>
31959
31960         * tests/test-getaddrinfo.c: New file.
31961
31962         * modules/getaddrinfo-tests: New file.
31963
31964         * MODULES.html.sh: Add inet_pton.
31965
31966         * modules/inet_pton: New file.
31967
31968 2006-06-21  Simon Josefsson  <jas@extundo.com>
31969
31970         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
31971         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
31972         of using the (limited) gnulib implementation on Windows XP.
31973
31974         * m4/inet_pton.m4: New file.
31975
31976 2006-06-21  Simon Josefsson  <jas@extundo.com>
31977
31978         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
31979         variable.
31980
31981         * lib/socket_.h: Don't define WINVER.
31982
31983         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
31984         slightly modified to work in gnulib.
31985
31986 2006-06-21  Simon Josefsson  <jas@extundo.com>
31987
31988         * doc/gnulib.texi (Windows sockets): Add.
31989
31990 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
31991
31992         * lib/read-file.c (fread_file): Start with buffer allocation of
31993         0 bytes rather than 1 byte; this simplifies the code.
31994         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
31995         code to free buffer and save/restore errno.
31996         (internal_read_file): Remove unused local.
31997
31998 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
31999
32000         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
32001         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
32002         Problem reported by Denis Excoffier in
32003         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
32004
32005 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32006
32007         * modules/sys_socket, modules/socklen: Include sys/types since
32008         FreeBSD 4.x's sys/socket.h needs it.
32009
32010 2006-06-19  Simon Josefsson  <jas@extundo.com>
32011
32012         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
32013
32014 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
32015
32016         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
32017
32018 2006-06-19  Bruno Haible  <bruno@clisp.org>
32019
32020         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
32021         and FULL_PATH_INTTYPES_H in angle brackets.
32022         Reported by Mark D. Baushke <mdb@gnu.org>.
32023
32024 2006-06-17  Eric Blake  <ebb9@byu.net>
32025
32026         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
32027         errno.
32028
32029 2006-06-17  Bruno Haible  <bruno@clisp.org>
32030
32031         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
32032         <sys/inttypes.h>.
32033
32034 2006-06-17  Bruno Haible  <bruno@clisp.org>
32035
32036         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
32037         whether errno is declared. Assume <errno.h> declares errno.
32038
32039 2006-06-17  Bruno Haible  <bruno@clisp.org>
32040
32041         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
32042
32043 2006-06-17  Bruno Haible  <bruno@clisp.org>
32044
32045         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
32046         problem on Solaris 2.5.1.
32047
32048 2006-06-16  Eric Blake  <ebb9@byu.net>
32049
32050         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
32051         * lib/unicodeio.c [!defined errno]: Likewise.
32052         * lib/strtol.c [!defined errno]: Likewise.
32053         * lib/strtod.c [!defined errno]: Likewise.
32054
32055 2006-06-15  Eric Blake  <ebb9@byu.net>
32056
32057         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
32058
32059 2006-06-15  Eric Blake  <ebb9@byu.net>
32060
32061         * config/srclist.txt (ssize_t.m4): Lose sync.
32062
32063 2006-06-15  Bruno Haible  <bruno@clisp.org>
32064
32065         * modules/stdint (Files): Include m4/full-header-path.m4,
32066         m4/size_max.m4, m4/wchar_t.m4.
32067         (Makefile.am): Many more substitutions.
32068         * modules/stdint-tests: New file.
32069         * tests/test-stdint.c: New file.
32070
32071 2006-06-15  Bruno Haible  <bruno@clisp.org>
32072
32073         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
32074         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
32075         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
32076         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
32077         gl_CHECK_TYPE_SAME): New macros.
32078
32079 2006-06-15  Bruno Haible  <bruno@clisp.org>
32080
32081         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
32082
32083 2006-06-15  Bruno Haible  <bruno@clisp.org>
32084
32085         * lib/stdint_.h: Rewritten to be fully auto-configured.
32086         Fixes bug on HP-UX/IA64.
32087
32088 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
32089
32090         * lib/getdate.y (__attribute__): Don't define if already defined.
32091         Problem reported by Larry Jones.
32092         * lib/utimens.c (__attribute__): Likewise.
32093
32094 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
32095
32096         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
32097         reported by Andreas Schwab.
32098
32099 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32100             Bruno Haible  <bruno@clisp.org>
32101
32102         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
32103         check for the declaration of strnlen and a run test that exposes the
32104         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
32105         rpl_strndup.
32106
32107 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32108             Bruno Haible  <bruno@clisp.org>
32109
32110         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
32111
32112 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32113
32114         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
32115         compile test, for Tru64 4.0D.
32116
32117 2006-05-28  Karl Berry  <karl@gnu.org>
32118
32119         * config/srclist.txt (printf-args.c): lose sync.
32120
32121 2006-05-26  Martin Lambers  <marlam@marlam.de>
32122
32123         * lib/getpass.c: Updates the test for the native W32 API, and adds
32124         missing includes, thus fixing compilation warnings.
32125
32126 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32127
32128         * lib/exclude.c (exclude_fnmatch): New function.
32129         (excluded_file_name): Call exclude_fnmatch.
32130         * lib/exclude.h (excluded_file_name): New prototype
32131
32132 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
32133
32134         * lib/tempname.c (small_open, large_open): New macros.
32135         (__open, __open64) [!_LIBC]: Remove.
32136         (__gen_tempname): Use small_open and large_open instead of __open
32137         and __open64.  This fixes a portability bug on HP-UX 11.11i
32138         reported by Simon Wing-Tang in
32139         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
32140
32141 2006-05-24  Bruno Haible  <bruno@clisp.org>
32142
32143         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
32144         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
32145         Reported by Thorsten Maerz <torte@netztorte.de> via
32146         Aaron Stone <aaron@serendipity.cx>.
32147
32148 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
32149
32150         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
32151         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
32152         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
32153         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
32154         not really conditional on the cache.
32155         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
32156
32157 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
32158
32159         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
32160         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
32161         (my_usleep): Don't mishandle maximum value.
32162
32163 2006-05-19  Jim Meyering  <jim@meyering.net>
32164
32165         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
32166
32167 2006-05-17  Bruno Haible  <bruno@clisp.org>
32168
32169         Cygwin portability.
32170         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
32171
32172 2006-05-17  Bruno Haible  <bruno@clisp.org>
32173
32174         * lib/stdint_.h: Fix recognition of Cygwin.
32175
32176 2006-05-15  Bruno Haible  <bruno@clisp.org>
32177
32178         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
32179         on libtool patch by Ralf Wildenhues.
32180
32181 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
32182
32183         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
32184         test for C99 conformance; (bool) 0.5 is an integer constant
32185         expression, but (bool) -0.5 is not.  Problem reported by Fedor
32186         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
32187
32188 2006-05-11  Simon Josefsson  <jas@extundo.com>
32189
32190         * m4/xvasprintf.m4: Fix obvious typo.
32191
32192 2006-05-11  Jim Meyering  <jim@meyering.net>
32193
32194         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
32195         James Lemley.
32196
32197 2006-05-10  Simon Josefsson  <jas@extundo.com>
32198
32199         * lib/md4.c: Typo fix, update copyright years.
32200         (K1, K2): Don't use L because it turn computations into 64-bit on
32201         64-bit platforms.
32202
32203 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
32204
32205         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
32206         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
32207         unwanted sign propagation, e.g., on hosts with 64-bit int.
32208         There still are some problems with reeelly weird theoretical hosts
32209         (e.g., 33-bit int) but it's not worth worrying about now.
32210         * lib/sha1.c (rol): Likewise.
32211         (K1, K2, K3, K4): Remove unnecessary L suffix.
32212
32213 2006-05-10  Bruno Haible  <bruno@clisp.org>
32214
32215         * lib/des.c: Cast to avoid warnings.
32216
32217 2006-05-09  Bruno Haible  <bruno@clisp.org>
32218
32219         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
32220         (Depends-on): Depend also on xsize, stdarg.
32221         (configure.ac): Add gl_XVASPRINTF.
32222
32223 2006-05-09  Bruno Haible  <bruno@clisp.org>
32224
32225         * m4/xvasprintf.m4: New file.
32226
32227 2006-05-09  Bruno Haible  <bruno@clisp.org>
32228
32229         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
32230         (EOVERFLOW): Define fallback value.
32231         (xstrcat): New function.
32232         (xvasprintf): Recognize the special case of a string concatenation.
32233
32234 2006-05-08  Eric Blake  <ebb9@byu.net>
32235
32236         * gnulib-tool (func_version): Base copyright year on CVS date.
32237         (func_emit_copyright_notice): New function.
32238         (func_emit_lib_Makefile_am): Use it.
32239         (func_emit_tests_Makefile_am): Likewise.
32240         (func_import): Likewise.
32241
32242 2006-05-08  Bruno Haible  <bruno@clisp.org>
32243
32244         * modules/stdarg: New file.
32245         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
32246
32247 2006-05-08  Bruno Haible  <bruno@clisp.org>
32248
32249         * m4/stdarg.m4: New file, from GNU gettext.
32250
32251 2006-05-08  Bruno Haible  <bruno@clisp.org>
32252
32253         * config/srclist.txt (build-aux/config.rpath): different from latest
32254         release.
32255
32256 2006-05-08  Bruno Haible  <bruno@clisp.org>
32257
32258         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
32259
32260 2006-05-05  Jim Meyering  <jim@meyering.net>
32261
32262         * m4/warning.m4: New file, derived from bison's file by the same name.
32263
32264 2006-05-03  Bruno Haible  <bruno@clisp.org>
32265
32266         * lib/stdint_.h: Shorter URL.
32267         * lib/inttypes.h: Likewise.
32268
32269 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
32270
32271         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
32272
32273 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
32274
32275         * lib/verify.h: Document the internals better.  Most of this change
32276         was written by Bruno Haible.
32277
32278 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
32279
32280         * doc/verify.texi: New file, partly based on a proposal by
32281         Bruno Haible.
32282
32283 2006-05-02  Bruno Haible  <bruno@clisp.org>
32284
32285         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
32286         test from here...
32287         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
32288
32289 2006-04-29  Bruno Haible  <bruno@clisp.org>
32290
32291         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
32292         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
32293
32294 2006-04-29  Bruno Haible  <bruno@clisp.org>
32295
32296         * gnulib-tool: Make --update option actually work.
32297
32298 2006-04-29  Bruno Haible  <bruno@clisp.org>
32299
32300         * doc/gcd.texi: New file.
32301         * doc/gnulib.texi: Include it.
32302
32303 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
32304
32305         * lib/getdate.y (get_date): When adding relative date, start with the
32306         initial time, not with the result of the first mktime call.
32307
32308 2006-04-25  Bruno Haible  <bruno@clisp.org>
32309
32310         * gnulib-tool (func_import): Output the include directives in three
32311         blocks, sorted separately.
32312         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32313
32314 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
32315
32316         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
32317         to define main with arguments, for C++.  Reported by Eric Blake.
32318         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
32319         Prefer 'int main ()' to 'int main (void)', for C++.
32320         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
32321         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
32322         for 'main', for C99 and C++.
32323
32324 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
32325
32326         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
32327         Don't assume that exit status -1 is valid.
32328         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32329         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
32330         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
32331         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
32332         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
32333         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
32334         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
32335         functions can be used without declaring them, or that you can
32336         exit with status -1.
32337         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
32338
32339 2006-04-24  Karl Berry  <karl@gnu.org>
32340
32341         * config/srclist.txt (longdouble.m4): sync lost.
32342
32343 2006-04-24  Eric Blake  <ebb9@byu.net>
32344
32345         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
32346
32347 2006-04-24  Bruno Haible  <bruno@clisp.org>
32348
32349         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
32350         poll() implementation in AIX.
32351         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32352
32353 2006-04-24  Bruno Haible  <bruno@clisp.org>
32354
32355         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
32356         assigned exactly once.
32357
32358 2006-04-23  Claudio Fontana  <claudio@gnu.org>
32359             Bruno Haible  <bruno@clisp.org>
32360
32361         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
32362         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
32363         for AM_CPPFLAGS.
32364
32365 2006-04-23  Bruno Haible  <bruno@clisp.org>
32366
32367         * modules/copy-file: Depend on unistd.
32368         * modules/execute: Likewise.
32369         * modules/fatal-signal: Likewise.
32370         * modules/findprog: Likewise.
32371         * modules/mkdtemp : Likewise.
32372         * modules/pipe: Likewise.
32373         * modules/wait-process: Likewise.
32374
32375 2006-04-23  Bruno Haible  <bruno@clisp.org>
32376
32377         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
32378         condition was already detected.
32379         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32380
32381 2006-04-23  Bruno Haible  <bruno@clisp.org>
32382
32383         * lib/copy-file.c: Include <unistd.h> unconditionally.
32384         * lib/execute.c: Likewise.
32385         * lib/fatal-signal.c: Likewise.
32386         * lib/findprog.c: Likewise.
32387         * lib/mkdtemp.c: Likewise.
32388         * lib/pipe.h: Likewise.
32389         * lib/pipe.c: Likewise.
32390         * lib/wait-process.h: Likewise.
32391
32392 2006-04-23  Bruno Haible  <bruno@clisp.org>
32393
32394         * gnulib-tool (func_usage): Fix --import description. Document
32395         --update.
32396         (func_import): Create temporary file in a temporary directory, if
32397         --dry-run is specified. Silence errors from 'grep' when there are no
32398         m4 files in $m4dir.
32399         (func_create_testdir): Silence errors from 'grep' when there are no
32400         m4 files in $m4dir.
32401         Reported by Karl Berry <karl@freefriends.org>.
32402
32403 2006-04-20  Bruno Haible  <bruno@clisp.org>
32404
32405         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
32406         one argument, so that the code will be portable to Autoconf 2.60.
32407         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
32408         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
32409         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
32410
32411 2006-04-19  Derek Price  <derek@ximbiot.com>
32412             Eric Blake  <ebb9@byu.net>
32413
32414         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
32415         rather than "/full/path.h".  Update comment to match.  Shorten &
32416         generalize m4_translit call via AS_TR_CPP.
32417
32418 2006-04-19  Derek Price  <derek@ximbiot.com>
32419             Eric Blake  <ebb9@byu.net>
32420
32421         * lib/inttypes.h: Correct grammar in comment.
32422
32423 2006-04-18  Derek Price  <derek@ximbiot.com>
32424             Paul Eggert  <eggert@cs.ucla.edu>
32425
32426         * modules/inttypes: New file.
32427         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
32428
32429 2006-04-18  Derek Price  <derek@ximbiot.com>
32430             Paul Eggert  <eggert@cs.ucla.edu>
32431
32432         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
32433         New files.
32434
32435 2006-04-18  Derek Price  <derek@ximbiot.com>
32436             Paul Eggert  <eggert@cs.ucla.edu>
32437
32438         * lib/inttypes.h: New file.
32439         * lib/strtoimax.c: Assume <inttypes.h>.
32440
32441 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
32442
32443         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
32444         isn't mounted.  Problem reported by Kir Kolyshkin.
32445
32446 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
32447
32448         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
32449         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
32450         Derek R. Price.
32451         * lib/regex.h (RE_DUP_MAX): Update comment to match current
32452         implementation.
32453
32454 2006-04-12  Eric Blake  <ebb9@byu.net>
32455
32456         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
32457         is now done automatically by the corresponding Autoconf macro.
32458
32459 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
32460
32461         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
32462         time_r.h.
32463
32464 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
32465
32466         Merge regex changes from libc, removing some of our
32467         POSIX-conformance changes that were rejected and redoing them in a
32468         less-intrusive way.
32469
32470         * lib/regcomp.c (re_compile_internal, init_dfa):
32471         Length arg is now size_t, not Idx.  All uses changed.
32472         (peek_token): Forward decl now says internal_function.
32473         (__re_error_msgid, __re_error_msgid_idx):
32474         Now static rather than extern with attribute_hidden.
32475         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
32476         For some reason libc prefers K&R style defns for external functions.
32477         (regerror) [!defined _LIBC]: Likewise.
32478         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
32479         (seek_collating_symbol_entry, lookup_collation_sequence_value):
32480         (build_range_exp, build_collating_symbol):
32481         Use K&R-style defn.
32482         (re_compile_fastmap): Use '\0' to memset, not 0.
32483         (utf8_sb_map): Make the calculations more obvious.
32484         (init_dfa, parse_bracket_exp, build_charclass_op):
32485         Call calloc and cast result, as glibc does.
32486         (init_word_char, fetch_token, peek_token, peek_token_bracket):
32487         (build_range_exp, build_collating_symbol):
32488         Now internal functions.
32489
32490         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
32491
32492         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
32493         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
32494         Don't depend on VMS; depend on __VMS instead, for POSIX
32495         namespace cleanness.
32496         (regoff_t): Define to ssize_t, not long int.
32497
32498         Remove the REG_ macros named below.  Instead, make the old names
32499         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
32500         __USE_GNU_REGEX.
32501         (REG_BACKSLASH_ESCAPE_IN_LISTS):
32502         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
32503         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
32504         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
32505         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
32506         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
32507         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
32508         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
32509         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
32510         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
32511         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
32512         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
32513         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
32514         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
32515         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
32516         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
32517         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
32518         (REG_NREGS):
32519         Remove.  All uses replaced by the old RE_* names.
32520         (RE_BACKSLASH_ESCAPE_IN_LISTS):
32521         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
32522         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
32523         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
32524         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
32525         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
32526         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
32527         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
32528         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
32529         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
32530         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
32531         Don't bother having these macros be independent of each others'
32532         values, since they no longer exist in the POSIX name space.
32533
32534         Rename the following member names back to their old names,
32535         unless !__USE_GNU_REGEX.  All uses changed back.
32536         (buffer): Renamed from re_buffer.
32537         (allocated): Renamed from re_allocated.
32538         (used): Renamed from re_used.
32539         (syntax): Renamed from re_syntax.
32540         (fastmap): Renamed from re_fastmap.
32541         (translate): Renamed from re_translate.
32542         (can_be_null): Renamed from re_can_be_null.
32543         (regs_allocated): Renamed from re_regs_allocated.
32544         (fastmap_accurate): Renamed from re_fastmap_accurate.
32545         (no_sub): Renamed from re_no_sub.
32546         (not_bol): Renamed from re_not_bol.
32547         (not_eol): Renamed from re_not_eol.
32548         (newline_anchor): Renamed from re_newline_anchor.
32549         (num_regs): Renamed from rm_num_regs.
32550         (start): Renamed from rm_start.
32551         (end): Renamed from rm_end.
32552
32553         (free_state): Move up a bit.
32554
32555         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
32556         #define to be empty.
32557         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
32558         when that is what is intended.
32559         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
32560         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
32561         (MAX): New macro.
32562         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
32563         All uses changed back to re_malloc, etc.  It's now the caller's
32564         responsibility to check for overflow; all callers changed.
32565         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
32566         (re_x2nrealloc): Remove.
32567         (free_state): Remove decl.
32568
32569         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
32570         (re_set_registers, re_exec):
32571         Use K&R-style defn.
32572
32573         2006-01-31  Roland McGrath  <roland@redhat.com>
32574
32575         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
32576         Reported by Mike Frysinger <vapier@gentoo.org>.
32577
32578         2006-01-15  Andreas Jaeger  <aj@suse.de>
32579
32580         [BZ #1950]
32581         * lib/regex_internal.c (re_string_reconstruct): Adjust for
32582         build_wcs_upper_buffer change.
32583         (build_wcs_upper_buffer): Change return type.
32584
32585         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
32586
32587         * lib/regex_internal.h: Include <stdint.h> if available.
32588
32589         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
32590
32591         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
32592
32593         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
32594
32595         * lib/regcomp.c: Adjust for changed secondary hash function.
32596
32597         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
32598
32599         * lib/regex.h: Pretty printing.
32600         Clean up namespace a bit.
32601
32602         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
32603
32604         * lib/regexec.c (update_cur_sifted_state, check_arrival,
32605         check_arrival_add_next_nodes): Avoid using uninitialized variable.
32606
32607         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
32608                     Ulrich Drepper  <drepper@redhat.com>
32609
32610         [BZ #1302]
32611         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
32612         changed.
32613         (bitset_word_t): Renamed from bitset_word.  All uses changed.
32614
32615         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
32616
32617         [BZ #281]
32618         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
32619         * lib/regcomp.c: Remove unnecessary uses of
32620         unsigned RE_TRANSLATE_TYPE.
32621         * lib/regex_internal.h: Likewise.
32622         * lib/regex_internal.c: Likewise.
32623         * lib/regexec.c: Likewise.
32624         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
32625
32626         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
32627
32628         * lib/regexec.c (find_recover_state): Remove unnecessary
32629         initialization.
32630         (transit_state_bkref): Make DFA a const pointer.
32631         (get_subexp): Likewise.
32632         (check_arrival): Likewise.
32633         (update_cur_sifted_state): Likewise.
32634         (re_search_internal): Likewise.
32635         (prune_impossible_nodes): Likewise.
32636         (acquire_init_state_context): Likewise.
32637         (proceed_next_node): Likewise.
32638         (set_regs): Likewise.
32639         (free_fail_stack_return): Likewise.
32640         (check_arrival_expand_ecl): Mark DFA parameter as const.
32641         (check_arrival_expand_ecl_sub): Likewise.
32642         (check_subexp_limits): Likewise.
32643         (sub_epsilon_src_nodes):  Likewise.
32644         (add_epsilon_src_nodes):  Likewise.
32645         (merge_state_array): Likewise.
32646         (update_regs): Likewise.
32647         (build_trtable): Likewise.
32648         (sift_states_backward): Mark MCTX parameter as const.
32649         (build_sifted_states): Likewise.
32650         (update_cur_sifted_state): Likewise.
32651         (sift_states_mkref): Likewise.
32652         (check_arrival_expand_ecl): Mark eclosure as const.
32653         (check_dst_limits_calc_pos_1): Likewise.
32654         * lib/regex_internal.h (re_match_context_t): Make dfa a const
32655         pointer.
32656
32657         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
32658
32659         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
32660         (transit_state_sb): Likewise.
32661         (transit_state_mb): Likewise.
32662         (sift_states_iter_mb): Likewise.
32663         (check_arrival_add_next_nodes): Likewise.
32664         (check_node_accept_bytes): Change first parameter to pointer-to-const.
32665         [_LIBC] (re_search_2_stub): Use mempcpy.
32666
32667         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
32668         mbrtowc for very simple UTF-8 case.
32669
32670         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
32671         a pointer-to-const.
32672         (re_acquire_state_context): Likewise.
32673         * lib/regex_internal.h: Adjust prototypes.
32674
32675         * lib/regex.c: Prevent using C++ compilers.
32676
32677         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
32678         (re_acquire_state_context): Likewise.
32679
32680 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
32681
32682         * modules/regex (Depends-on): Add ssize_t.
32683
32684 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
32685
32686         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
32687         translation table.
32688
32689 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
32690
32691         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
32692
32693 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
32694             Bruno Haible  <bruno@clisp.org>
32695
32696         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
32697         <sys/types.h> and <inttypes.h>.
32698
32699 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32700
32701         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
32702         `__error_t_defined', so argp.h will not typedef the former.
32703
32704 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
32705
32706         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
32707         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
32708         glibc names.  Even if glibc is changed to conform to POSIX, the
32709         traditional names will be available anyway, since regex depends on
32710         the extensions module.  Also, fix a longstanding typo in the
32711         implementation of Spencer ERE test #75 from grep 2.3.  Problems
32712         reported by Emanuele Giaquinta.  Also, change sense of cached
32713         variable, so that the message makes sense.
32714
32715 2006-03-24  Simon Josefsson  <jas@extundo.com>
32716
32717         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
32718         including some doc fixes.
32719         (base64_encode_alloc): Fix +1 bug on allocation failures.
32720
32721 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32722
32723         * lib/base64.c (base64_encode): Do not read past end of array with
32724         unsanitized input on systems with CHAR_BIT > 8.
32725
32726 2006-03-24  Eric Blake  <ebb9@byu.net>
32727
32728         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
32729
32730 2006-03-22  Karl Berry  <karl@gnu.org>
32731
32732         * config/srclist.txt (*setenv.[ch]): get from coreutils.
32733         * config/srclistvars.sh (COREUTILS): new var.
32734
32735 2006-03-17  Jim Meyering  <jim@meyering.net>
32736
32737         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
32738         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
32739
32740 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
32741
32742         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
32743         no longer needs it.  Instead, check that regoff_t is as least
32744         as wide as ptrdiff_t.
32745
32746         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
32747         so that our regex.h stays compatible with the installed regex.
32748         This is helpful for installers who configure --without-included-regex.
32749         Problem reported by Emanuele Giaquinta.
32750
32751 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
32752
32753         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
32754         Typedef to long int, not to off_, as POSIX will likely change
32755         in that direction.
32756
32757 2006-03-15  Eric Blake  <ebb9@byu.net>
32758
32759         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
32760
32761 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
32762
32763         * lib/argp-help.c (validate_uparams): Fix typo
32764         * lib/argp-parse.c (argp_default_options): Consistently begin help
32765         messages with a lowercase letter.
32766
32767 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
32768
32769         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
32770         overrun buffers and shouldn't be used (much as gets shouldn't be
32771         used).
32772         * lib/time_r.c (asctime_r, ctime_r): Likewise.
32773
32774 2006-03-08  Simon Josefsson  <jas@extundo.com>
32775
32776         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
32777         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32778
32779 2006-03-08  Simon Josefsson  <jas@extundo.com>
32780
32781         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
32782         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32783
32784 2006-03-08  Simon Josefsson  <jas@extundo.com>
32785
32786         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
32787         signal that configure disabled the device.
32788
32789 2006-03-08  Simon Josefsson  <jas@extundo.com>
32790
32791         * build-aux/maint.mk: Fix refresh-po, to handle no translated
32792         languages.
32793
32794 2006-03-07  Simon Josefsson  <jas@extundo.com>
32795
32796         * modules/getopt (Depends-on): Add unistd.
32797
32798         * modules/unistd: New file.
32799
32800 2006-03-07  Simon Josefsson  <jas@extundo.com>
32801
32802         * modules/gc-random: New file.
32803
32804 2006-03-07  Simon Josefsson  <jas@extundo.com>
32805
32806         * m4/unistd_h.m4: New file.
32807
32808 2006-03-07  Simon Josefsson  <jas@extundo.com>
32809
32810         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
32811         test to be side-effect free by storing the result in the cache
32812         variable gl_cv_lib_readline, and moving the assignment of
32813         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
32814         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32815
32816 2006-03-07  Simon Josefsson  <jas@extundo.com>
32817
32818         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
32819         error on missing devices (the functions will return an error).
32820
32821         * m4/gc.m4: Move random stuff to gc-random.m4
32822
32823 2006-03-07  Simon Josefsson  <jas@extundo.com>
32824
32825         * lib/unistd_.h: New file.
32826
32827 2006-03-07  Simon Josefsson  <jas@extundo.com>
32828
32829         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
32830
32831 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
32832
32833         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
32834         Problem reported by Juan Manuel Guerrero.
32835
32836 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
32837
32838         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
32839         the unistd module.
32840         * lib/getlogin_r.c: Likewise.
32841         * lib/getlogin_r.h: Likewise.
32842         * lib/glob.c: Likewise.
32843         * lib/pagealign_alloc.c: Likewise.
32844         * lib/unistd_.h: Remove; no longer needed.
32845
32846 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
32847
32848         * MODULES.html.sh (Support for systems lacking POSIX:2001):
32849         Add unistd.
32850         * modules/c-stack (Depends-on): Add unistd.
32851         * modules/getlogin_r: Likewise.
32852         * modules/glob: Likewise.
32853         * modules/pagealign_alloc: Likewise.
32854         * modules/unistd (Files): Remove lib/unistd_.h.
32855         (EXTRA_DIST): Remove.
32856         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
32857         need unistd_.h.
32858         (MOSTLYCLEANFILES): Remove unistd.h-t.
32859
32860 2006-03-03  Simon Josefsson  <jas@extundo.com>
32861
32862         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
32863
32864 2006-03-03  Simon Josefsson  <jas@extundo.com>
32865
32866         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
32867         libidn and bison.
32868
32869 2006-03-03  Simon Josefsson  <jas@extundo.com>
32870
32871         * build-aux/maint.mk: Add indent target.
32872
32873 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
32874
32875         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
32876         our replacement poll.h in any case, to avoid a differing
32877         declaration from a system header.  Seen on AIX.
32878
32879 2006-03-01  Simon Josefsson  <jas@extundo.com>
32880
32881         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
32882         <kasal@ucw.cz>.
32883
32884 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
32885
32886         * modules/gettime (Depends-on): Add extensions module.
32887         * modules/nanosleep (Depends-on): Likewise.
32888         * modules/settime (Depends-on): Likewise.
32889
32890 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
32891
32892         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
32893         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
32894         pedantically.
32895         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32896         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
32897
32898         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
32899         not "==".  Reported by Ralf Wildenhues.
32900
32901 2006-03-01  Karl Berry  <karl@gnu.org>
32902
32903         * doc/Copyright/request-*: new files, synced from gnuorg.
32904
32905 2006-03-01  Karl Berry  <karl@gnu.org>
32906
32907         * config/srclist.txt (Copyright/*): new entries.
32908
32909 2006-02-28  Simon Josefsson  <jas@extundo.com>
32910
32911         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
32912
32913 2006-02-27  Simon Josefsson  <jas@extundo.com>
32914
32915         * lib/base64.h: Indent #define's.  From Jim Meyering
32916         <jim@meyering.net>.
32917
32918 2006-02-27  Jim Meyering  <jim@meyering.net>
32919
32920         Revert the change of 2006-02-24, so these files can continue
32921         to be sync'd from gettext.
32922         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
32923         of `config.h'.
32924
32925 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
32926
32927         * modules/intprops: New file.
32928         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
32929         Add intprops.
32930         * modules/getloadavg (Files): Remove lib/intprops.h.
32931         (Depends-on): Add intprops.
32932         * modules/human: Likewise.
32933         * modules/inttostr: Likewise.
32934         * modules/openat: Likewise.
32935         * modules/sig2str: Likewise.
32936         * modules/userspec: Likewise.
32937         * modules/utimecmp: Likewise.
32938         * modules/xnanosleep: Likewise.
32939         * modules/xstrtol: Likewise.
32940
32941 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
32942
32943         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
32944         * modules/lock-tests (TESTS): Use $(EXEEXT).
32945         * modules/tls-tests: Likewise.
32946         * modules/argp-tests: Likewise.
32947         (check_PROGRAMS): New var, replacing...
32948         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
32949
32950 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32951
32952         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
32953         `config.h'.
32954
32955 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
32956
32957         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
32958
32959 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32960
32961         Sync from coreutils.
32962         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
32963         gl_CHDIR_SAFER.
32964
32965 2006-02-22  Jim Meyering  <jim@meyering.net>
32966
32967         Sync from coreutils.
32968         * m4/chdir-safer.m4: New file.
32969
32970 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
32971
32972         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
32973         AT_FDCWD exceeds INT_MAX.
32974         * lib/openat.h (AT_FDCWD): Likewise.
32975
32976 2006-02-17  Eric Blake  <address@hidden>
32977
32978         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
32979
32980 2006-02-16  Simon Josefsson  <jas@extundo.com>
32981
32982         * modules/getaddrinfo (Depends-on): Add sys_socket.
32983
32984 2006-02-15  Simon Josefsson  <jas@extundo.com>
32985
32986         * build-aux/maint.mk: Add dsyntax-check rule.
32987
32988 2006-02-15  Eric Blake  <ebb9@byu.net>
32989
32990         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
32991         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
32992         'present but cannot compile' warnings on cygwin.
32993         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
32994         use ws2tcpip.h if sys/socket.h works.
32995         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
32996         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
32997
32998 2006-02-14  Simon Josefsson  <jas@extundo.com>
32999
33000         * modules/maintainer-makefile (Files): Rename.
33001
33002         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
33003         and (the local) Makefile.cfg to maint-cfg.mk.
33004
33005         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
33006         to the latter.
33007
33008         * modules/maintainer-makefile: New module.
33009
33010         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
33011         severaly stripped to make it possible to build it up from scratch
33012         with reliable tests.
33013
33014         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
33015         fixes to permit overriding the default actions when configure and
33016         makefile are not available.
33017
33018 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
33019
33020         Sync from coreutils.
33021         * modules/lstat (Depends-on): Don't depend on xalloc.
33022         (License): Change from GPL to LGPL, since this is now simply a
33023         replacement for a libc function.
33024
33025 2006-02-14  Jim Meyering  <jim@meyering.net>
33026
33027         Sync from coreutils.
33028
33029         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
33030         failure on deficient systems, and simplify gnulib lgpl dependencies.
33031         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
33032         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
33033
33034         * lib/xalloc-die.c: Remove unused definition of N_.
33035
33036 2006-02-14  Jim Meyering  <jim@meyering.net>
33037
33038         Sync from coreutils.
33039         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
33040         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
33041         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
33042         double-quote uses of that variable, to accommodate the rare case in
33043         which getmntent is available in none of the libraries checked.  This
33044         happens at least on FreeBSD 5.0.
33045
33046 2006-02-13  Simon Josefsson  <jas@extundo.com>
33047
33048         * gnulib-tool (Usage): Fix --import, from
33049         karl@freefriends.org (Karl Berry).
33050
33051 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
33052
33053         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
33054
33055 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
33056
33057         * lib/argp-namefrob.h: Restore changes accidentally lost during the
33058         "autoupdate" on 2005-12-12.
33059
33060 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
33061
33062         * modules/closeout (Depends-on): Remove atexit.
33063
33064 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
33065
33066         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
33067         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
33068
33069 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
33070
33071         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
33072         __EXTENSIONS__ if this causes compilation to fail.  Problem
33073         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
33074         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
33075
33076 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
33077
33078         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
33079         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
33080         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
33081         All uses changed.
33082
33083 2006-01-26  Simon Josefsson  <jas@extundo.com>
33084
33085         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
33086         prototype is visible on mingw32.
33087
33088         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
33089         for mingw32.
33090
33091         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
33092         mingw32).
33093
33094 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
33095
33096         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
33097         attempt to open for write; this always fails, at least on POSIX
33098         hosts.  This reinstates the 2006-01-09 change, which was
33099         inadvertently removed.
33100
33101 2006-01-26  Bruno Haible  <bruno@clisp.org>
33102
33103         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
33104         Reported by Paul Eggert.
33105
33106 2006-01-26  Bruno Haible  <bruno@clisp.org>
33107             Paul Eggert  <eggert@cs.ucla.edu>
33108
33109         * lib/stdbool_.h (_Bool)
33110         [(! (defined __cplusplus || defined __BEOS__)
33111           && !defined __GNUC__
33112           && !(defined __HP_cc || defined __xlc__
33113                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
33114                || defined __sgi))]:
33115         #define to signed char in these cases too; this simplifies
33116         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
33117         etc., separately) and makes it more conservative.
33118
33119 2006-01-25  Simon Josefsson  <jas@extundo.com>
33120
33121         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
33122         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
33123         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
33124
33125 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33126
33127         * lib/argp-namefrob.h: Bugfix. Remove stray #
33128
33129 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
33130
33131         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
33132         so that we test the test.
33133         Check for yet another HP-UX cc bug involving *bool |= bool.
33134
33135 2006-01-25  Karl Berry  <karl@gnu.org>
33136
33137         * config/srclist.txt (vasnprintf.c): sync lost.
33138
33139 2006-01-25  Jim Meyering  <jim@meyering.net>
33140
33141         Sync from the stable (b5) branch of coreutils:
33142
33143         * lib/fts.c (fts_children): Don't let close() clobber errno from
33144         failed fchdir().
33145
33146         * lib/fts.c (fts_stat): When following a symlink-to-directory,
33147         don't necessarily interpret stat-fails+lstat-succeeds as indicating
33148         a dangling symlink.  That can also happen at least for ELOOP.
33149         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
33150         FYI, this bug predates the inclusion of fts.c in coreutils.
33151
33152         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
33153         in their own block, so pre-c99 compilers don't object.
33154
33155         Avoid the double-free (first in fts_read, second in fts_close) that
33156         would occur when an `active' directory is made inaccessible (e.g.,
33157         via chmod a-x) during a traversal.
33158         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
33159         before returning.  Reproduce this failure by
33160         mkdir -p a/b; cd a; chmod a-x . b
33161         Reported by Stavros Passas.
33162
33163 2006-01-25  Jim Meyering  <jim@meyering.net>
33164
33165         * lib/fileblocks.c: Remove more useless parentheses.
33166         * lib/readutmp.h: Likewise.
33167
33168 2006-01-25  Bruno Haible  <bruno@clisp.org>
33169
33170         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
33171         warnings.
33172         Reported by Paul Eggert.
33173
33174 2006-01-25  Bruno Haible  <bruno@clisp.org>
33175
33176         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
33177         rid of a trap command. For Solaris sh.
33178         Reported by Mark D. Baushke <mdb@gnu.org>.
33179
33180 2006-01-24  Simon Josefsson  <jas@extundo.com>
33181
33182         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
33183         Bruno.
33184
33185 2006-01-24  Karl Berry  <karl@gnu.org>
33186
33187         * config/srclist.txt (argp-namefrob.h): sync lost.
33188
33189 2006-01-24  Jim Meyering  <jim@meyering.net>
33190
33191         * modules/openat (Files): Add lib/intprops.h.
33192         From Mark D. Baushke.
33193
33194 2006-01-24  Jim Meyering  <jim@meyering.net>
33195
33196         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
33197         Reported by Mark D. Baushke.
33198
33199 2006-01-24  Jim Meyering  <jim@meyering.net>
33200
33201         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
33202
33203 2006-01-24  Bruno Haible  <bruno@clisp.org>
33204
33205         * modules/strnlen (Maintainer): Change from glibc to all.
33206
33207 2006-01-24  Bruno Haible  <bruno@clisp.org>
33208
33209         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
33210         Patch by Paul Eggert.
33211
33212 2006-01-24  Bruno Haible  <bruno@clisp.org>
33213
33214         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
33215         already has it.
33216         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
33217         2005-11-26.
33218
33219         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
33220         'signed char' to avoid problems with the built-in _Bool type.
33221         Reported by Paul Eggert on 2005-11-26.
33222
33223 2006-01-24  Bruno Haible  <bruno@clisp.org>
33224
33225         * gnulib-tool (func_import): Avoid constructing complicated sed
33226         expressions inside backquote.
33227         Report and solution by Mark D. Baushke <mdb@gnu.org>.
33228
33229 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
33230
33231         These changes imported from libc.
33232         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
33233         test and two separate function calls.
33234         * lib/strndup.c (__strndup): Add libc_hidden_def.
33235
33236 2006-01-23  Simon Josefsson  <jas@extundo.com>
33237
33238         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
33239         Remove the test_*_SOURCES variable: automake infers it by default.
33240         * modules/tls-tests: Likewise.
33241
33242 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
33243
33244         Work around porting bugs reported by Dieter in
33245         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
33246         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
33247         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
33248         Include "getopt.h" first, to check interface.
33249         (getenv): Declare only if defined HAVE_DECL_GETENV &&
33250         !HAVE_DECL_GETENV.
33251         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
33252         (__strndup): Revert to K&R-style function dfns, the glibc style.
33253         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
33254         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
33255         Include strnlen.h first, to get prototype properly.
33256         (strnlen): Renamed from __strnlen.
33257         Remove weak alias.
33258
33259 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
33260
33261         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
33262
33263 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
33264
33265         * config/srclist.txt: Adjust to reflect glibc reorganization.
33266         This affects only comments.
33267
33268 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
33269
33270          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
33271          Reported by Bruce Korb <bkorb@gnu.org>.
33272
33273 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
33274
33275         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
33276         to pacify gcc -Wswitch-default.
33277
33278 2006-01-22  Bruno Haible  <bruno@clisp.org>
33279
33280         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
33281         temporary buffer for sprintf, take into account the precision also
33282         for 'd', 'i', 'u', 'o', 'x', 'X'.
33283
33284 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
33285
33286         * modules/argp-tests: New module
33287         * tests/test-argp.c: New file
33288         * tests/test-argp-2.sh: New file
33289
33290 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
33291
33292         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
33293         (__argp_base_name): Removed
33294         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
33295         typo.
33296         (__argp_base_name): Provide macro definition or extern declaration
33297         depending on the configuration
33298
33299 2006-01-20  Simon Josefsson  <jas@extundo.com>
33300
33301         * modules/inet_ntop (Depends-on): Depend on sys_socket.
33302
33303 2006-01-20  Simon Josefsson  <jas@extundo.com>
33304
33305         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
33306
33307 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
33308
33309         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
33310         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
33311         Suggested by Bruno Haible.
33312
33313 2006-01-20  Karl Berry  <karl@gnu.org>
33314
33315         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
33316         until changes propagate, I guess.
33317
33318 2006-01-19  Simon Josefsson  <jas@extundo.com>
33319
33320         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
33321
33322 2006-01-19  Simon Josefsson  <jas@extundo.com>
33323
33324         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
33325
33326 2006-01-19  Simon Josefsson  <jas@extundo.com>
33327
33328         * gnulib-tool: Set check_PROGRAMS.
33329
33330         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
33331         modules/des-tests, modules/gc-arcfour-tests,
33332         modules/gc-arctwo-tests, modules/gc-des-tests,
33333         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
33334         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
33335         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
33336         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
33337         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
33338         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
33339         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
33340         test_*_SOURCES.
33341
33342 2006-01-18  Simon Josefsson  <jas@extundo.com>
33343
33344         * modules/socklen (Depends-on): Depend on sys_socket.
33345
33346 2006-01-18  Simon Josefsson  <jas@extundo.com>
33347
33348         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
33349         modules/des-tests, modules/gc-arcfour-tests,
33350         modules/gc-arctwo-tests, modules/gc-des-tests,
33351         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
33352         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
33353         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
33354         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
33355         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
33356         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
33357         $(EXEEXT) to automake TESTS variable, for mingw32.
33358
33359 2006-01-17  Simon Josefsson  <jas@extundo.com>
33360
33361         * modules/socklen (Include): Need sys/socket.h.
33362
33363 2006-01-17  Bruno Haible  <bruno@clisp.org>
33364
33365         * modules/ssize_t (Include): Add <sys/types.h>.
33366
33367 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
33368
33369         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
33370         it's not portable and it doesn't work with cross-compiles.
33371         Problem reported by Bruno Haible.  Fix missing-$ typo in
33372         'test "gl_cv_ignore_unused_libraries" ...' that prevented
33373         -zignore from being used with Sun's C compiler.
33374
33375 2006-01-12  Simon Josefsson  <jas@extundo.com>
33376
33377         * lib/base64.c: Fix warning, reported by Bruno Haible
33378         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
33379
33380 2006-01-12  Bruno Haible  <bruno@clisp.org>
33381
33382         * modules/ldd: New file.
33383         * build-aux/ldd.sh.in: New file.
33384         * MODULES.html.sh (Support for building libraries and executables): Add
33385         ldd.
33386
33387 2006-01-12  Bruno Haible  <bruno@clisp.org>
33388
33389         * m4/ldd.m4: New file.
33390
33391 2006-01-12  Bruno Haible  <bruno@clisp.org>
33392
33393         * gnulib-tool (func_import, func_create_testdir): Don't go into an
33394         endless loop while replacing $auxdir with build-aux.
33395
33396 2006-01-11  Simon Josefsson  <jas@extundo.com>
33397
33398         * lib/stdint_.h (SIZE_MAX): Add missing (.
33399
33400 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
33401
33402         Sync from coreutils.
33403         * lib/md5.c: Fix commentary typos.
33404         (alignof, UNALIGNED_P): No need for a GCC-specific version.
33405         * lib/md5.h (__attribute__): Remove; unused.
33406         * lib/sha1.c: Fix commentary to match md5 better.
33407         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
33408         so that we don't need to worry about alignment.  All uses changed.
33409         This merges the 2005-10-28 md5 change into sha1.
33410
33411 2006-01-11  Jim Meyering  <jim@meyering.net>
33412
33413         Sync from coreutils.
33414         * lib/md5.c (OP): Fix spacing.
33415
33416 2006-01-11  Bruno Haible  <bruno@clisp.org>
33417
33418         Ensure automatic ordering between gl_LOCK and gl_ARGP.
33419         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
33420         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
33421
33422 2006-01-11  Bruno Haible  <bruno@clisp.org>
33423
33424         Ensure automatic ordering between gl_LOCK and gl_ARGP.
33425         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
33426         the "early" section as well.
33427
33428 2006-01-11  Bruno Haible  <bruno@clisp.org>
33429
33430         Avoid "ar: no archive members specified" error on MacOS X.
33431         * gnulib-tool (func_modules_add_dummy): New function.
33432         (func_import, func_create_testdir): Invoke it.
33433
33434 2006-01-11  Bruno Haible  <bruno@clisp.org>
33435
33436         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
33437         with $auxdir in AC_CONFIG_FILES statements.
33438
33439 2006-01-11  Bruno Haible  <bruno@clisp.org>
33440
33441         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33442         Initialize also noinst_HEADERS to empty.
33443
33444 2006-01-11  Bruno Haible  <bruno@clisp.org>
33445
33446         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
33447         variables.
33448         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
33449         autoreconf.
33450
33451 2006-01-11  Bruno Haible  <bruno@clisp.org>
33452
33453         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
33454         overridable by the user.
33455         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33456
33457 2006-01-10  Simon Josefsson  <jas@extundo.com>
33458
33459         * modules/sys_socket: New file.
33460
33461 2006-01-10  Simon Josefsson  <jas@extundo.com>
33462
33463         * m4/sys_socket_h.m4: New file.
33464
33465 2006-01-10  Simon Josefsson  <jas@extundo.com>
33466
33467         * lib/socket_.h: New file.
33468
33469 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
33470
33471         * modules/readutmp (Maintainer): Add myself.
33472
33473 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
33474
33475         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
33476         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
33477         People who are still concerned with buggy memcmp implementations
33478         can invoke gl_FUNC_MEMCMP themselves.
33479
33480 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
33481
33482         * lib/regex_internal.h (BITSET_WORD_BITS):
33483         Work around a bug in 64-bit PGC (before version 6.1-2), where the
33484         preprocessor mishandles large unsigned values as if they were signed.
33485         Problem reported by Claudio Fontana in
33486         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
33487
33488 2006-01-10  Jim Meyering  <jim@meyering.net>
33489
33490         Avoid the double-free (first in fts_read, second in fts_close) that
33491         would occur when an `active' directory is made inaccessible (e.g.,
33492         via chmod a-x) during a traversal.
33493         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
33494         before returning.  Reproduce this failure by
33495         mkdir -p a/b; cd a; chmod a-x . b
33496         Reported by Stavros Passas.
33497
33498         Sync from coreutils.
33499         * lib/sha1.c: Tweak grammar in a comment.
33500
33501 2006-01-10  Jim Meyering  <jim@meyering.net>
33502
33503         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
33504         Patch by Joerg Sonnenberger.
33505
33506 2006-01-10  Bruno Haible  <bruno@clisp.org>
33507
33508         * modules/readutmp: Depend on module free.
33509         * modules/strtok_r: Depend on module restrict.
33510
33511 2006-01-10  Bruno Haible  <bruno@clisp.org>
33512
33513         * modules/gettext (configure.ac): Add an invocation of
33514         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
33515
33516 2006-01-10  Bruno Haible  <bruno@clisp.org>
33517
33518         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
33519         Reported by Werner Lemberg <wl@gnu.org>.
33520
33521 2006-01-10  Bruno Haible  <bruno@clisp.org>
33522
33523         * lib/localcharset.c: Update from GNU gettext.
33524
33525 2006-01-10  Bruno Haible  <bruno@clisp.org>
33526
33527         * lib/argp.h (__const): Remove macro. Use const instead.
33528         * lib/argp-fmtstream.h (__const): Likewise.
33529         * lib/glob_.h (__const): Remove macro.
33530         * lib/glob-libc.h: Use const instead of __const.
33531
33532 2006-01-10  Bruno Haible  <bruno@clisp.org>
33533
33534         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
33535         variable.
33536         Needed to avoid an automake error regarding the 'gettext' module.
33537
33538 2006-01-09  Simon Josefsson  <jas@extundo.com>
33539
33540         * modules/inet_ntop (Depends-on): Add restrict.
33541
33542 2006-01-09  Simon Josefsson  <jas@extundo.com>
33543
33544         * modules/gc-rijndael-tests (License): Put under LGPL.
33545
33546         * modules/gc-des-tests (License): Likewise.
33547
33548         * modules/gc-arcfour-tests (License): Likewise.
33549
33550         * modules/gc-arctwo-tests (License): Likewise.
33551
33552         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
33553
33554         * modules/gc-hmac-sha1-tests (Files): Likewise.
33555
33556         * modules/gc-hmac-md5-tests (License): Likewise.
33557
33558         * modules/gc-sha1-tests (License): Likewise.
33559
33560         * modules/gc-md5-tests (License): Likewise.
33561
33562         * modules/gc-md4-tests (License): Likewise.
33563
33564         * modules/gc-md2-tests (License): Likewise.
33565
33566         * modules/gc-tests (License): Likewise.
33567
33568         * modules/des-tests (License): Likewise.
33569
33570         * modules/md4-tests (License): Likewise.
33571
33572         * modules/md2-tests (License): Likewise.
33573
33574 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
33575
33576         Sync from coreutils:
33577
33578         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
33579         * modules/lib-ignore: New file.
33580         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
33581         chdir-safer.m4, lchmod.m4.
33582         * modules/openat: Add mkdirat.c, openat-priv.h.
33583
33584 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
33585
33586         Sync from coreutils.
33587         * m4/lib-ignore.m4: New file.
33588         * m4/lchmod.m4: New file.
33589
33590 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
33591
33592         Sync from coreutils.
33593         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
33594         for write access: POSIX says that must fail.
33595         * lib/fts.c (diropen): Likewise.
33596         * lib/save-cwd.c (save_cwd): Likewise.
33597         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
33598         well, for minor improvements on hosts that lack O_DIRECTORY.
33599         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
33600         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
33601         Fall back on chown if open failed with EACCES.
33602
33603         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
33604         Report an error at compile-time if only a 1-second nominal clock
33605         resolution is found.
33606
33607         * lib/lchmod.h: New file.
33608         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
33609         (make_dir_parents): Use lchown rather than chown, and
33610         lchmod rather than chmod.
33611
33612         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
33613         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
33614         "proc" reported by n0dalus.
33615
33616         * lib/mountlist.c: Include <limits.h>.
33617         (dev_from_mount_options)
33618         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
33619         New function.  It no longer assumes "dev=" has the System V meaning
33620         on Linux (since it doesn't).  It also parses "dev=" more carefully.
33621         (read_file_system_list)
33622         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
33623         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
33624         dev= in that case.
33625
33626         * lib/posixtm.h (PDS_PRE_2000): New macro.
33627         * lib/posixtm.c (year): Arg is now syntax_bits rather than
33628         allow_century.  All usages changed.  Reject dates outside the range
33629         1969-1999 if PDS_PRE_2000 is used.
33630
33631 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
33632
33633         Sync from coreutils.
33634         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
33635         (Time of day items): Mention the possibility of leap seconds.
33636         Problem reported by Dr. David Alan Gilbert.
33637
33638 2006-01-09  Jim Meyering  <jim@meyering.net>
33639
33640         Sync from coreutils.
33641
33642         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
33643
33644         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
33645
33646         * lib/modechange.c (mode_compile): Reject an invalid mode string
33647         that starts with an octal digit.  From Andreas Gruenbacher.
33648
33649         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
33650         and dup to open_safer and dup_safer, respectively.
33651         (openat_permissive): Fix typo in comment.
33652
33653         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
33654         "gettext.h"; either no longer needed or are guaranteed by openat.h.
33655         (_): Remove; no longer needed.
33656         (openat): Renamed from rpl_openat; no need for rpl_openat
33657         since openat.h renames openat for us.
33658         Replace most of the body with a call to openat_permissive,
33659         to avoid duplicate code.
33660         Port to (probably hypothetical) environments were mode_t is
33661         wider than int.
33662         (openat_permissive): Require mode arg, so that we can check
33663         types better.  Put it just after flags.  Change cwd failure
33664         indicator from pointer-to-bool to pointer-to-errno-value.
33665         All callers changed.
33666         Invoke openat_save_fail and/or openat_restore_fail if
33667         cwd_errno is null, so that openat can call us.
33668         (openat_permissive, fdopendir, fstatat, unlinkat):
33669         Simplify errno handling to avoid some duplicate code,
33670         as it's OK to set errno on success.
33671         * lib/openat.h: Revamp code so that function macros depend on
33672         __OPENAT_PREFIX only, not also on AT_FDCWD.
33673         (openat_ro): Remove.  Caller changed to use openat_permissive.
33674         (openat_permissive): Now a macro, if not a function.
33675         (openat_restore_fail, openat_save_fail): Now always functions,
33676         since mkdirat needs them even if __OPENAT_PREFIX is defined.
33677
33678         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
33679         and openat.c.
33680         * lib/mkdirat.c: Include openat-priv.h.
33681         Remove definitions of macros defined therein.
33682         * lib/openat.c: Likewise.
33683
33684         * lib/mkdirat.c (mkdirat): New file and function.
33685         * lib/openat.h (mkdirat): Declare.
33686
33687         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
33688
33689         * lib/openat.h (openat_permissive): Declare.
33690         (openat_ro): Define.
33691
33692         * lib/openat.c (EXPECTED_ERRNO): New macro.
33693         (openat_permissive): New function -- used in remove.c rewrite.
33694         (all functions): Set errno just before returning, only if there
33695         was an actual failure.
33696         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
33697
33698         Emulate openat-family functions using Linux's procfs, if possible.
33699         Idea and some code based on Ulrich Drepper's glibc changes.
33700
33701         * lib/openat.c: (BUILD_PROC_NAME): New macro.
33702         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
33703         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
33704         before falling back on save_cwd and restore_cwd.
33705         (fdopendir, fstatat, unlinkat): Likewise.
33706
33707         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
33708         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
33709
33710         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
33711         as second argument to va_arg.  Otherwise, some versions of gcc
33712         warn that `if this code is reached, the program will abort'.
33713
33714 2006-01-09  Jim Meyering  <jim@meyering.net>
33715
33716         Sync from coreutils.
33717         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
33718         Require openat-priv.h.
33719
33720 2006-01-09  Bruno Haible  <bruno@clisp.org>
33721
33722         * modules/strnlen (Include): Use strnlen.h.
33723
33724 2006-01-09  Bruno Haible  <bruno@clisp.org>
33725
33726         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
33727
33728 2006-01-09  Bruno Haible  <bruno@clisp.org>
33729
33730         * lib/sysexit_.h (EX_OK): New macro.
33731         Suggested by Martin Lambers <marlam@marlam.de>.
33732
33733 2006-01-09  Bruno Haible  <bruno@clisp.org>
33734
33735         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
33736         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
33737
33738 2006-01-09  Bruno Haible  <bruno@clisp.org>
33739
33740         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
33741         numbers.
33742
33743 2006-01-09  Bruno Haible  <bruno@clisp.org>
33744
33745         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
33746         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
33747         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
33748         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
33749
33750 2006-01-09  Bruno Haible  <bruno@clisp.org>
33751
33752         * build-aux/javacomp.sh.in: New file, moved from lib/.
33753         * modules/javacomp-script (Files): Update.
33754         (configure.ac): Add AC_CONFIG_FILES invocation.
33755         (EXTRA_DIST): Remove variable.
33756
33757         * build-aux/javaexec.sh.in: New file, moved from lib/.
33758         * modules/javaexec (Files): Update.
33759         (configure.ac): Add AC_CONFIG_FILES invocation.
33760         (EXTRA_DIST): Remove javaexec.sh.in.
33761
33762         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
33763         * modules/csharpcomp-script (Files): Update.
33764         (configure.ac): Add AC_CONFIG_FILES invocation.
33765         (EXTRA_DIST): Remove variable.
33766
33767         * build-aux/csharpexec.sh.in: New file, moved from lib/.
33768         * modules/csharpexec (Files): Update.
33769         (configure.ac): Add AC_CONFIG_FILES invocation.
33770         (EXTRA_DIST): Remove csharpexec.sh.in.
33771
33772 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
33773
33774         Sync from coreutils.
33775
33776         Add POSIX ACL support
33777         * lib/acl.h (copy_acl, set_acl): Add declarations.
33778         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
33779         systems other than Linux.
33780         (chmod_or_fchmod): New function: use fchmod when possible,
33781         and chmod otherwise.
33782         (file_has_acl): Add a POSIX ACL implementation, with a
33783         Linux-specific subcase.
33784         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
33785         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
33786         acls are unsupported.
33787         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
33788         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
33789         are unsupported.
33790
33791 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
33792
33793         Sync from coreutils.
33794         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
33795
33796 2006-01-07  Bruno Haible  <bruno@clisp.org>
33797
33798         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
33799         gl_EARLY.
33800
33801 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
33802
33803         * lib/strftime.c (tzname): Don't declare if it is already #defined.
33804         Problem reported for Mingw by Mark Junker.
33805
33806 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
33807
33808         * README: Gnulib normally doesn't generate a tarball.
33809
33810 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
33811
33812         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
33813         long int, not int, for nanosecond counts, so that people who are
33814         used to POSIX struct timespec won't be surprised.  Reported by Jim
33815         Meyering.
33816
33817 2005-12-28  Bruno Haible  <bruno@clisp.org>
33818
33819         * build-aux/config.rpath: Update from GNU gettext.
33820
33821 2005-12-16  Jim Meyering  <jim@meyering.net>
33822
33823         * modules/fprintftime: New module.
33824         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
33825
33826 2005-12-16  Jim Meyering  <jim@meyering.net>
33827
33828         * m4/fprintftime.m4: New file.
33829
33830 2005-12-16  Jim Meyering  <jim@meyering.net>
33831
33832         * lib/fprintftime.c, lib/fprintftime.h: New files.
33833
33834 2005-12-15  Simon Josefsson  <jas@extundo.com>
33835
33836         * modules/socklen (configure.ac): Fix M4 macro name, to align with
33837         new m4/socklen.m4.
33838
33839 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
33840
33841         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
33842         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
33843
33844 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
33845
33846         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
33847         * lib/argp-help.c (fill_in_uparams): Check if the constructed
33848         struct uparams is valid. Fall back to the default values if it is
33849         not.
33850
33851 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
33852
33853         * modules/argp (Files): Add argp-pin.c
33854         (Depends-on): dirname
33855         (lib_SOURCES): Add argp-pin.c
33856
33857 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
33858
33859         * m4/argp.m4:  Check if program_invocation_name and
33860         program_invocation_short_name are declared and define appropriate
33861         macros if they are not.
33862
33863 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
33864
33865         * lib/argp-help.c (__argp_base_name): New function
33866         (__argp_short_program_name): Rewrite using __argp_base_name
33867         * lib/argp-namefrob.h: Define program_invocation_name and
33868         program_invocation_short_name if requested
33869         (__argp_base_name): Add prototype
33870         * lib/argp-parse.c (argp_def): Use gettext wrappers
33871         (argp_default_parser): Use __argp_base_name
33872         * lib/argp-pin.c: New file. Defines program_invocation_name and
33873         program_invocation_short_name on systems that lack them.
33874
33875 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
33876
33877         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
33878         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
33879         porting problem reported by Georg Schwarz in
33880         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
33881
33882 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
33883
33884         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
33885         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
33886         porting problem reported by Georg Schwarz in
33887         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
33888
33889 2005-12-05  Bruno Haible  <bruno@clisp.org>
33890
33891         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
33892         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
33893         Reported by Mark Junker <mjscod@gmx.de>.
33894
33895 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
33896
33897         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
33898         Use implementation from Albert Chin, with some
33899         comments/corrections by Stepan Kasal and myself.
33900
33901 2005-12-02  Bruno Haible  <bruno@clisp.org>
33902
33903         * gnulib-tool (func_import): Accept GPLed build tool modules when
33904         --lgpl is given.
33905         * modules/csharpcomp-script: New file.
33906         * modules/csharpcomp: Depend on it.
33907         * modules/javacomp-script: New file.
33908         * modules/javacomp: Depend on it.
33909         Suggested by Simon Josefsson.
33910
33911 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
33912
33913         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
33914         statement, to work around an HP-UX 10.20 compiler bug reported by
33915         Peter O'Gorman.
33916
33917 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
33918
33919         * modules/savedir (Depends-on): Add openat.
33920
33921 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
33922
33923         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
33924         (uintmax_t) [defined uintmax_t]: Do not declare.
33925         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
33926         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
33927         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
33928         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
33929         sake of portability to weird hosts that C allows (though we don't
33930         know of any practical examples).
33931
33932         * lib/savedir.h (fdsavedir): New decl.
33933         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
33934         contains most of the former guts of savedir.
33935         (savedir): Use savedirstream.
33936         Include "openat.h".
33937
33938 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
33939
33940         * modules/obstack (Files): Add m4/ulonglong.m4.
33941         Problem reported by Davide Angelocola.
33942
33943 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
33944
33945         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
33946         coreutils no longer futzes with rounding modes.
33947
33948 2005-11-14  Jim Meyering  <jim@meyering.net>
33949
33950         * lib/mkstemp-safer.c: Include <config.h>, required for possible
33951         replacement of mkstemp.
33952
33953 2005-11-10  Simon Josefsson  <jas@extundo.com>
33954
33955         * lib/readline.c: Remove EOL.
33956
33957 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
33958
33959         * modules/gethrxtime (Depends-on): Add gettime.
33960
33961 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
33962
33963         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
33964         or gettimeofday; no longer needed.
33965
33966 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
33967
33968         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
33969         time business.
33970         (gethrxtime) [! (HAVE_NANOUPTIME
33971         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
33972         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
33973         our own approximation.
33974
33975 2005-11-08  Eric Blake  <ebb9@byu.net>
33976
33977         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
33978
33979 2005-11-08  Eric Blake  <ebb9@byu.net>
33980
33981         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
33982
33983 2005-11-04  Bruno Haible  <bruno@clisp.org>
33984
33985         * gnulib-tool: Implement --update mode.
33986
33987 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
33988
33989         Fix porting problem reported by Theodoros V. Kalamatianos.
33990         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
33991         Don't assume that futimes failing means we must fail.
33992
33993 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
33994
33995         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
33996         variables to suggest the intended function of the PATH_MAX check.
33997
33998 2005-10-30  Kean Johnston  <jkj@sco.com>
33999
34000         Trivial changes to support SCO systems.
34001         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
34002         as PATH_MAX.
34003         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
34004         where __ptr is null when no I/O is pending.
34005
34006 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
34007
34008         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
34009         leave errno alone.  Problem reported by Dmitry V. Levin.
34010
34011 2005-10-28  Simon Josefsson  <jas@extundo.com>
34012
34013         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
34014         Test more.
34015
34016         * tests/test-gc-md2.c, tests/test-md2.c: New files.
34017
34018         * modules/md2, modules/md2-tests: New files.
34019
34020 2005-10-28  Simon Josefsson  <jas@extundo.com>
34021
34022         * m4/inet_ntop.m4: More tests.
34023
34024         * m4/gc-md2.m4, md2.m4: New file.
34025
34026 2005-10-28  Simon Josefsson  <jas@extundo.com>
34027
34028         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
34029         "restrict" keywords, as per POSIX.  Protect the function
34030         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
34031         Don't use K&R prototypes.  Check the sprintf return values.
34032         Re-define EAFNOSUPPORT if not present.  Indent.
34033
34034         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
34035         suggested by Bruno Haible <bruno@clisp.org>.
34036
34037         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
34038
34039         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
34040
34041         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
34042         libgcrypt).
34043
34044         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
34045
34046         * lib/md2.h, lib/md2.c: New files.
34047
34048 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
34049
34050         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
34051         errno alone.  Problem reported by Frederic Jolliton.
34052
34053 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
34054
34055         * modules/verify (License): Change from GPL to LGPL.  This is a
34056         tiny module and there are apparently near-equivalents that are
34057         under the BSD license.
34058
34059 2005-10-24  Simon Josefsson  <jas@extundo.com>
34060
34061         * modules/sha1: Relicense to LGPL.
34062
34063 2005-10-24  Simon Josefsson  <jas@extundo.com>
34064
34065         * lib/md4.h: Shrink buffer size, now that we changed the type.
34066
34067 2005-10-23  Simon Josefsson  <jas@extundo.com>
34068
34069         * gnulib-tool (func_import): Fix --tests-base.
34070
34071 2005-10-22  Simon Josefsson  <jas@extundo.com>
34072
34073         * modules/arcfour (Depends-on): Need stdint.
34074
34075 2005-10-22  Simon Josefsson  <jas@extundo.com>
34076
34077         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
34078         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
34079
34080 2005-10-22  Simon Josefsson  <jas@extundo.com>
34081
34082         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
34083         suggested by Bruno Haible <bruno@clisp.org>.
34084
34085 2005-10-22  Simon Josefsson  <jas@extundo.com>
34086
34087         * lib/crc.h: Include stddef.h, for size_t.
34088
34089 2005-10-22  Simon Josefsson  <jas@extundo.com>
34090
34091         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
34092         arcfour_context struct (simplify test vector testing in GNU
34093         Shishi).
34094
34095 2005-10-21  Simon Josefsson  <jas@extundo.com>
34096
34097         * modules/des, modules/des-tests: New files.
34098
34099         * modules/gc-des, modules/gc-des-tests: New files.
34100
34101         * tests/test-des.c, tests/test-gc-des.c: New file.
34102
34103 2005-10-21  Simon Josefsson  <jas@extundo.com>
34104
34105         * modules/arctwo, modules/arctwo-tests: New files.
34106
34107         * tests/test-arctwo.c: New file.
34108
34109         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
34110
34111         * tests/test-gc-arctwo.c: New file.
34112
34113 2005-10-21  Simon Josefsson  <jas@extundo.com>
34114
34115         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
34116         Bruno Haible <bruno@clisp.org>.
34117
34118         * m4/gc-des.m4: New file.
34119
34120 2005-10-21  Simon Josefsson  <jas@extundo.com>
34121
34122         * m4/arctwo.m4: New file.
34123
34124         * m4/gc-arctwo.m4: New file.
34125
34126 2005-10-21  Simon Josefsson  <jas@extundo.com>
34127
34128         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
34129         block.
34130
34131 2005-10-21  Simon Josefsson  <jas@extundo.com>
34132
34133         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
34134         <bruno@clisp.org>.
34135
34136         * lib/hmac-sha1.c (hmac_sha1): Likewise.
34137
34138         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
34139         Bruno Haible <bruno@clisp.org>.
34140
34141         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
34142         <bruno@clisp.org>.
34143
34144 2005-10-21  Simon Josefsson  <jas@extundo.com>
34145
34146         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
34147
34148 2005-10-21  Simon Josefsson  <jas@extundo.com>
34149
34150         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
34151
34152 2005-10-21  Simon Josefsson  <jas@extundo.com>
34153
34154         * lib/des.h, lib/des.c: New files.
34155
34156         * lib/gc-gnulib.c: Support DES.c
34157
34158 2005-10-21  Simon Josefsson  <jas@extundo.com>
34159
34160         * lib/arctwo.h, lib/arctwo.c: New files.
34161
34162         * lib/gc-gnulib.c: Support ARCTWO.
34163
34164 2005-10-21  Simon Josefsson  <jas@extundo.com>
34165
34166         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
34167         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34168
34169 2005-10-21  Simon Josefsson  <jas@extundo.com>
34170
34171         * gnulib-tool (func_import, func_create_testdir): Define automake
34172         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
34173         Makefile.am snippet),
34174         suggested by Bruno Haible <bruno@clisp.org>.
34175
34176         * modules/gc (Makefile.am): Use it.
34177
34178 2005-10-21  Bruno Haible  <bruno@clisp.org>
34179
34180         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
34181         patch.
34182
34183 2005-10-19  Simon Josefsson  <jas@extundo.com>
34184
34185         * tests/test-gc-rijndael.c: New file.
34186
34187         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
34188
34189 2005-10-19  Simon Josefsson  <jas@extundo.com>
34190
34191         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
34192         interface too.
34193
34194 2005-10-19  Simon Josefsson  <jas@extundo.com>
34195
34196         * tests/test-gc-arcfour.c: New file.
34197
34198         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
34199
34200 2005-10-19  Simon Josefsson  <jas@extundo.com>
34201
34202         * modules/gc-md4, modules/gc-md4-tests: New file.
34203
34204         * tests/test-gc-md4.c: New file.
34205
34206 2005-10-19  Simon Josefsson  <jas@extundo.com>
34207
34208         * m4/gc-md4.m4: New file.
34209
34210 2005-10-19  Simon Josefsson  <jas@extundo.com>
34211
34212         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
34213         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
34214         <kasal@ucw.cz>.
34215
34216 2005-10-19  Simon Josefsson  <jas@extundo.com>
34217
34218         * m4/gc-arcfour.m4: New file.
34219
34220         * m4/gc-rijndael.m4: New file.
34221
34222 2005-10-19  Simon Josefsson  <jas@extundo.com>
34223
34224         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
34225
34226 2005-10-19  Simon Josefsson  <jas@extundo.com>
34227
34228         * lib/gc-gnulib.c: Support ARCFOUR.
34229
34230 2005-10-19  Simon Josefsson  <jas@extundo.com>
34231
34232         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
34233         support.
34234
34235         * lib/gc.h: Add ECB enum type.
34236
34237         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
34238
34239 2005-10-18  Simon Josefsson  <jas@extundo.com>
34240
34241         * tests/test-md5.c: New file.
34242
34243         * modules/md5-tests: New file.
34244
34245 2005-10-18  Simon Josefsson  <jas@extundo.com>
34246
34247         * tests/test-md4.c: New file.
34248
34249         * modules/md4, modules/md4-tests: New files.
34250
34251 2005-10-18  Simon Josefsson  <jas@extundo.com>
34252
34253         * m4/md4.m4: New file.
34254
34255 2005-10-18  Simon Josefsson  <jas@extundo.com>
34256
34257         * lib/md4.h, lib/md4.c: New files, based on md5.?.
34258
34259 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
34260
34261         * gnulib-tool (func_create_testdir): Omit the second check whether
34262         BUILT_SOURCES in nonempty.
34263
34264 2005-10-17  Simon Josefsson  <jas@extundo.com>
34265
34266         * tests/test-rijndael.c: New file.
34267
34268 2005-10-17  Simon Josefsson  <jas@extundo.com>
34269
34270         * modules/sha1: Depend on stdint instead of md5.
34271
34272         * modules/md5: Depend on stdint, remove uint32_t.
34273
34274 2005-10-17  Simon Josefsson  <jas@extundo.com>
34275
34276         * modules/gc-sha1-tests: New file.
34277
34278         * tests/test-gc-sha1.c: New file.
34279
34280 2005-10-17  Simon Josefsson  <jas@extundo.com>
34281
34282         * m4/md5.m4: Remove call to uint32_t.m4.
34283
34284 2005-10-17  Simon Josefsson  <jas@extundo.com>
34285
34286         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
34287
34288         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
34289         md5.h.
34290
34291         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
34292
34293         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
34294
34295 2005-10-17  Simon Josefsson  <jas@extundo.com>
34296
34297         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
34298
34299 2005-10-17  Simon Josefsson  <jas@extundo.com>
34300
34301         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
34302
34303 2005-10-17  Simon Josefsson  <jas@extundo.com>
34304
34305         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
34306
34307         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
34308
34309 2005-10-17  Bruno Haible  <bruno@clisp.org>
34310
34311         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
34312         that it can also be used in a test.
34313
34314 2005-10-16  Bruno Haible  <bruno@clisp.org>
34315
34316         * gnulib-tool (func_emit_tests_Makefile_am): Also define
34317         TESTS_ENVIRONMENT, so that individual tests can augment it.
34318
34319         * gnulib-tool (func_create_testdir): Use an intermediate target for
34320         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
34321         macros, like $(ALLOCA_H), which cannot be passed through the command
34322         line.
34323
34324 2005-10-15  Simon Josefsson  <jas@extundo.com>
34325
34326         * modules/rijndael-tests: New file.
34327
34328         * modules/rijndael: New file.
34329
34330 2005-10-15  Simon Josefsson  <jas@extundo.com>
34331
34332         * m4/rijndael.m4: New file.
34333
34334 2005-10-15  Simon Josefsson  <jas@extundo.com>
34335
34336         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
34337
34338         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
34339
34340 2005-10-14  Simon Josefsson  <jas@extundo.com>
34341
34342         * tests/test-arcfour.c: New file.
34343
34344         * modules/arcfour, modules/arcfour-tests: New files.
34345
34346 2005-10-14  Simon Josefsson  <jas@extundo.com>
34347
34348         * m4/arcfour.m4: New file.
34349
34350 2005-10-14  Simon Josefsson  <jas@extundo.com>
34351
34352         * lib/arcfour.h, lib/arcfour.c: New files.
34353
34354 2005-10-14  Roland McGrath  <roland@redhat.com>
34355
34356         Import from libc.  [BZ #1331]
34357         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
34358         macro argument.
34359         Reported by Matej Vela <vela@debian.org>.
34360
34361 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
34362
34363         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
34364         include <wchar.h>; no longer needed.
34365
34366 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
34367
34368         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
34369
34370 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
34371         and  Ulrich Drepper  <drepper@redhat.com>
34372
34373         Import from libc.
34374         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
34375         instead of inline stream orientation test and two separate
34376         function calls.  Pay no attention to USE_IN_LIBIO.
34377
34378 2005-10-13  Simon Josefsson  <jas@extundo.com>
34379
34380         * modules/gc-hmac-md5-tests: New file.
34381
34382         * tests/test-gc-hmac-sha1.c: New file.
34383
34384         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
34385
34386         * modules/gc-hmac-md5-tests: New file.
34387
34388         * tests/test-gc-md5.c: New file.
34389
34390         * modules/gc-md5-tests: New file.
34391
34392 2005-10-13  Simon Josefsson  <jas@extundo.com>
34393
34394         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
34395         Move memory allocation outside of loop.
34396
34397 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
34398
34399         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
34400         intermediate directory is in a read-only file system.  Problem
34401         reported by Eric Blake.
34402
34403 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
34404
34405         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
34406
34407 2005-10-12  Simon Josefsson  <jas@extundo.com>
34408
34409         * tests/test-hmac-sha1.c: New file.
34410
34411         * modules/hmac-sha1-tests: New file.
34412
34413         * modules/hmac-sha1: New file.
34414
34415 2005-10-12  Simon Josefsson  <jas@extundo.com>
34416
34417         * modules/gc-sha1: New file.
34418
34419 2005-10-12  Simon Josefsson  <jas@extundo.com>
34420
34421         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
34422
34423         * tests/test-gc-pbkdf2-sha1.c: New file.
34424
34425 2005-10-12  Simon Josefsson  <jas@extundo.com>
34426
34427         * modules/gc-md5, modules/gc-hmac-md5: New files.
34428
34429         * modules/gc (Files): Remove md5, memxor and hmac files.
34430
34431 2005-10-12  Simon Josefsson  <jas@extundo.com>
34432
34433         * m4/gc-pbkdf2-sha1.m4: New file.
34434
34435         * m4/gc-hmac-sha1.m4: New file.
34436
34437         * m4/gc-sha1: New file.
34438
34439         * m4/hmac-sha1.m4: New file.
34440
34441 2005-10-12  Simon Josefsson  <jas@extundo.com>
34442
34443         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
34444
34445         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
34446
34447 2005-10-12  Simon Josefsson  <jas@extundo.com>
34448
34449         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
34450         suggested by Bruno Haible <bruno@clisp.org>.
34451
34452 2005-10-12  Simon Josefsson  <jas@extundo.com>
34453
34454         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
34455
34456 2005-10-12  Simon Josefsson  <jas@extundo.com>
34457
34458         * lib/gc-pbkdf2-sha1.c: New file.
34459
34460         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
34461
34462 2005-10-12  Simon Josefsson  <jas@extundo.com>
34463
34464         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
34465
34466         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
34467
34468 2005-10-12  Simon Josefsson  <jas@extundo.com>
34469
34470         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
34471         GC_USE_HMAC_MD5, respectively.
34472
34473         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
34474         (gc_md5): Fix typo.
34475
34476         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
34477
34478         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
34479
34480         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
34481
34482 2005-10-12  Bruno Haible  <bruno@clisp.org>
34483
34484         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
34485         Reported by Stepan Kasal <kasal@ucw.cz>.
34486
34487 2005-10-11  Simon Josefsson  <jas@extundo.com>
34488
34489         * tests/test-crc.c: New file.
34490
34491         * modules/crc, modules/crc-tests: New files.
34492
34493 2005-10-11  Simon Josefsson  <jas@extundo.com>
34494
34495         * m4/crc.m4: New file.
34496
34497 2005-10-11  Simon Josefsson  <jas@extundo.com>
34498
34499         * lib/gc.h: Add gc_hash and gc_hash_buffer.
34500
34501         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
34502
34503         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
34504
34505 2005-10-11  Simon Josefsson  <jas@extundo.com>
34506
34507         * lib/crc.h, lib/crc.c: New files.
34508
34509         * lib/gc.h (gc_hash_buffer): Add doc.
34510
34511 2005-10-11  Bruno Haible  <bruno@clisp.org>
34512
34513         * modules/c-strcasestr: New file.
34514         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
34515
34516 2005-10-11  Bruno Haible  <bruno@clisp.org>
34517
34518         * modules/c-strcase: New file.
34519         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
34520
34521 2005-10-11  Bruno Haible  <bruno@clisp.org>
34522
34523         * lib/strcasecmp.c: Include limits.h.
34524         (strcasecmp): Avoid integer overflow on exotic platforms.
34525         * lib/strncasecmp.c: Include limits.h.
34526         (strncasecmp): Avoid integer overflow on exotic platforms.
34527         Reported by Paul Eggert.
34528
34529 2005-10-11  Bruno Haible  <bruno@clisp.org>
34530
34531         * lib/c-strcasestr.h: New file, from GNU gettext.
34532         * lib/c-strcasestr.c: New file, from GNU gettext.
34533
34534 2005-10-11  Bruno Haible  <bruno@clisp.org>
34535
34536         * lib/c-strcase.h: New file, from GNU gettext.
34537         * lib/c-strcasecmp.c: New file, from GNU gettext.
34538         * lib/c-strncasecmp.c: New file, from GNU gettext.
34539
34540 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
34541
34542         * modules/mempcpy (License): GPL -> LGPL.
34543         * modules/strchrnul (License): Likewise.
34544         * modules/sysexits (License): Likewise.
34545
34546 2005-10-08  Simon Josefsson  <jas@extundo.com>
34547
34548         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
34549
34550 2005-10-07  Simon Josefsson  <jas@extundo.com>
34551
34552         * m4/memxor.m4: Remove gl_C_RESTRICT call.
34553
34554 2005-10-06  Simon Josefsson  <jas@extundo.com>
34555
34556         * tests/test-hmac-md5.c: New file.
34557
34558         * modules/hmac-md5-tests: New file.
34559
34560         * modules/hmac-md5: New file.
34561
34562 2005-10-06  Simon Josefsson  <jas@extundo.com>
34563
34564         * m4/hmac-md5.m4: New file.
34565
34566         * m4/memxor.m4: Require gl_C_RESTRICT.
34567
34568 2005-10-06  Simon Josefsson  <jas@extundo.com>
34569
34570         * lib/memxor.c (memxor): Avoid casts and warnings.
34571
34572 2005-10-06  Simon Josefsson  <jas@extundo.com>
34573
34574         * lib/hmac-md5.c: New file.
34575
34576         * lib/hmac.h: New file.
34577
34578 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
34579
34580         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
34581         promotes to int, not unsigned int, to catch the AIX 5.3
34582         compiler bug.
34583
34584 2005-10-05  Simon Josefsson  <jas@extundo.com>
34585
34586         * modules/memxor: New file.
34587
34588         * modules/iconv (Files): Move config.rpath to havelib, it is used
34589         there.
34590
34591         * modules/havelib (Files): Add config.rpath.
34592
34593 2005-10-05  Simon Josefsson  <jas@extundo.com>
34594
34595         * m4/memxor.m4: New file.
34596
34597 2005-10-05  Simon Josefsson  <jas@extundo.com>
34598
34599         * lib/memxor.c (memxor): Fix compiler error.
34600
34601         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
34602         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
34603
34604         * lib/memxor.h, lib/memxor.c: New files.
34605
34606         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
34607         we assume all systems have it, suggested by Jim Meyering
34608         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
34609         any systems lack sys/socket.h; mingw32 is known to lack it, but we
34610         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
34611         same reasons.
34612
34613 2005-10-05  Simon Josefsson  <jas@extundo.com>
34614
34615         * config/srclist.txt: Add glibc bug 1423 for md5.h.
34616
34617 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
34618
34619         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
34620         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
34621         needed, since the source code now assumes these .h files.
34622
34623 2005-10-05  Derek Price  <derek@ximbiot.com>
34624
34625         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
34626
34627 2005-10-05  Bruno Haible  <bruno@clisp.org>
34628
34629         * modules/stdint (License): Change to LGPL.
34630
34631 2005-10-04  Simon Josefsson  <jas@extundo.com>
34632
34633         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
34634         D. Baushke" <mdb@gnu.org>.
34635
34636 2005-10-04  Bruno Haible  <bruno@clisp.org>
34637
34638         * lib/verify.h (verify_true): Provide alternative definition for C++.
34639
34640 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
34641
34642         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
34643         (SSIZE_MAX): New macro, if not already defined.
34644         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
34645         than 2 GiB.
34646
34647 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
34648
34649         Sync from coreutils.
34650         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
34651         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
34652         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
34653         ULLONG_MAX doesn't work with 2.7.2.1.
34654
34655 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
34656
34657         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
34658         From Ben Pfaff.
34659
34660         * modules/exclude (Depends-on): Depend on verify.
34661         * modules/strtoimax (Depends-on): Likewise.
34662         * modules/utimecmp (Depends-on): Likewise.
34663
34664 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
34665
34666         * lib/exclude.c: Include verify.h.
34667         (verify): Remove.  All callers changed to use verify.h's version.
34668         * lib/strtoimax.c: Likewise.
34669         * lib/utimecmp.c: Likewis.e
34670
34671         Sync from coreutils.
34672         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
34673         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
34674         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
34675         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
34676         bother returning ENOSYS if settimeofday or stime fails; just let
34677         them return whatever errno they want to return.
34678         * lib/utimens.c: Include unistd.h, for dup2.
34679         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
34680         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
34681
34682 2005-10-02  Jim Meyering  <jim@meyering.net>
34683
34684         Sync from coreutils.
34685         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
34686         from glibc-2.2.5 that fails for read-only files.
34687
34688 2005-10-02  Jim Meyering  <jim@meyering.net>
34689
34690         Sync from coreutils.
34691         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
34692         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
34693         `#if HAVE_CONFIG_H'.
34694         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
34695         Remove AT_FDCWD test.
34696         Do not consume the fd unless successful.
34697         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
34698         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
34699         block, so that we don't even try to compile it if settimeofday is
34700         available.  This works around a compilation failure on OSF1 V5.1,
34701         due to stime requiring a `long int*' while tv_sec is `int'.
34702
34703 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
34704
34705         Sync from coreutils.
34706         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
34707         against `yes', rather than just testing for nonempty.
34708
34709 2005-10-01  Simon Josefsson  <jas@extundo.com>
34710
34711         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
34712         and Darwin.
34713
34714         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
34715         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
34716         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
34717         freeaddrinfo and gai_strerror are declared by the POSIX headers.
34718         Check if struct addrinfo is declared.
34719
34720 2005-10-01  Simon Josefsson  <jas@extundo.com>
34721
34722         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
34723         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
34724         AI_* and EAI_* definitions.  Protect function declarations.
34725
34726 2005-10-01  Jim Meyering  <jim@meyering.net>
34727
34728         Sync from coreutils.
34729
34730         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
34731         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
34732         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
34733         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
34734         in the inet and nsl libraries.  Required on Solaris 5.7.
34735
34736 2005-10-01  Jim Meyering  <jim@meyering.net>
34737
34738         Sync from coreutils.
34739         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
34740         in the inet and nsl libraries.  Required on Solaris 5.7.
34741
34742 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
34743
34744         * lib/getdelim.c (getdelim): Remove unused variables.
34745
34746 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
34747
34748         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
34749         so that the code works even with ancient cpp.  Portability problem
34750         with GCC 2.7.2.1 reported by Thomas M.Ott.
34751
34752 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
34753
34754         * modules/regex (Depends-on): Add strcase.
34755
34756         * modules/gethostname (Licence): Change from GPL to LGPL, since
34757         gethostname.c is a trivial implementation of a standard library
34758         function.
34759         * modules/poll (License): Change from GPL to LGPL, since it's
34760         derived from LGPL code.
34761
34762 2005-09-27  Jim Meyering  <jim@meyering.net>
34763
34764         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
34765         HAVE_CONFIG_H.
34766
34767         * lib/intprops.h (signed_type_or_expr__): Define.
34768         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
34769         for unsigned types.
34770
34771 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
34772
34773         * lib/verify.h (verify_expr): Remove, replacing with:
34774         (verify_true): New macro that returns true instead of void.
34775         (verify_type__): Remove.
34776         (verify): Use verify_true rather than verify_type__.
34777
34778 2005-09-26  Bruno Haible  <bruno@clisp.org>
34779
34780         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
34781         is necessary.
34782         (lib_SOURCES): Remove mbchar.c.
34783         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
34784         (Files): Add m4/mbrtowc.m4.
34785         * modules/mbiter: Likewise.
34786         * modules/mbuiter: Likewise.
34787
34788 2005-09-26  Bruno Haible  <bruno@clisp.org>
34789
34790         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
34791         compile mbchar.c if they are not both present.
34792         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
34793         * m4/mbiter.m4 (gl_MBITER): Likewise.
34794         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
34795         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
34796         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
34797
34798 2005-09-25  Jim Meyering  <jim@meyering.net>
34799
34800         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
34801         also uses socklen_t.
34802
34803 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
34804
34805         * lib/utimens.c (ENOSYS): Define if not already defined.
34806         (futimens): Support having a null PATH if the file descriptor
34807         is nonnegative.
34808
34809         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
34810         Remove.
34811         (__attribute): Define to empty unless GCC 3.1 or later.
34812         This works around a core dump on OpenBSD 3.4, which has GCC
34813         2.95.3, which dumps core when given __attribute__(()).  It also
34814         simplifies other tests, since we really don't want to bother with
34815         worrying about which ancient version of GCC supported what.
34816         Original problem reported by Yoann Vandoorselaere, with part of
34817         the fix suggested by Derek Price.
34818
34819 2005-09-24  Jim Meyering  <jim@meyering.net>
34820
34821         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
34822         so we can once again use a positive bitfield width of 1 -- now we
34823         don't have to explain why we were using a bitfield width of 2.
34824
34825 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
34826
34827         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
34828         and similarly for the other external symbols.  Problem reported
34829         by James Gallager.
34830
34831         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
34832         bug reported by Jim Meyering.
34833
34834         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
34835         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
34836         not needed, since socklen is a prerequisite module.
34837
34838 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
34839
34840         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
34841         Problem reported by Eric Blake.
34842         (getaddrinfo): Initialize se so that it's not garbage.
34843         Redo internal storage allocation so that it doesn't make unportable
34844         assumptions about alignment.
34845         Fix a memory leak.
34846
34847         * lib/utimens.c (futimens): Use futimesat if available.
34848         Prefer it to futimes since it doesn't have the futimes bug.
34849
34850         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
34851         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
34852         Instead, declare a function that returns a pointer to an array,
34853         and use verify_type__ to declare the size of the array.
34854         Problem and germ of a solution reported by Bruno Haible.
34855         (verify_type__): Use 2, not 1, for bitfield size, to avoid
34856         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
34857
34858 2005-09-23  Jim Meyering  <jim@meyering.net>
34859
34860         Sync from coreutils.
34861         Correct build failure (socklen_t not defined) on at least
34862         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
34863         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
34864
34865 2005-09-23  Jim Meyering  <jim@meyering.net>
34866
34867         * modules/getaddrinfo (Depends-on): Add socklen.
34868
34869 2005-09-23  Bruno Haible  <bruno@clisp.org>
34870
34871         * tests/test-verify.c: New file.
34872
34873 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
34874
34875         Sync from coreutils.
34876
34877         * modules/argmatch (Depends-on): Add verify.
34878         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
34879         unistd-safer.
34880         * modules/save-cwd (Depends-on): Likewise.
34881
34882         * modules/openat (Files): Add lib/openat-die.c.
34883         (Depends-on): Remove error, exitfail.
34884         Add dirname.
34885
34886         * modules/verify: New file.
34887         * MODULES.html.sh (Diagnostics <assert.h>): New section,
34888         with "verify" module.
34889
34890 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
34891
34892         Sync from coreutils.
34893
34894         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
34895         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
34896         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
34897         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
34898         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
34899         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
34900         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
34901         Don't bother checking for string.h, stdlib.h, unistd.h.
34902         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
34903         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
34904         module's job.
34905         * m4/jm-macros.m4 (gl_MACROS): Likewise.
34906         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
34907
34908         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
34909         (gl_GETDATE): Use it.
34910
34911         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
34912
34913 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
34914
34915         Sync from coreutils.
34916
34917         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
34918         stat-time.h.
34919         * lib/argmatch.h: Include verify.h
34920         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
34921         (ARGMATCH_ASSERT): Remove; unused.
34922         * lib/canonicalize.c: Assume STDC_HEADERS.
34923         * lib/exclude.c: Include "strcase.h".
34924         * lib/regex_internal.h [!defined _LIBC]: Likewise.
34925         * lib/getusershell.c: Include stdio--.h rather than stdio.h
34926         and stdio-safer.h.
34927         (getusershell): Call fopen, not fopen_safer.
34928         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
34929         Do not include unistd-safer.h.
34930         (save_cwd): Don't call fd_safer; no longer needed
34931         now that we include fcntl--.h.
34932
34933         * lib/getdate.y (relative_time): New type.
34934         (RELATIVE_TIME_0): New constant.
34935         (parser_control): Use relative_time instead of doing it ourselves.
34936         (%union): Add new relative_time rel member.
34937         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
34938         Now typeless.
34939         (relunit, relunit_snumber): Now of type rel.
34940         (zone, rel, relunit, get_date): Adjust to above changes.
34941
34942         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
34943         Do not include unistd-safer.h.
34944         (getloadavg): Don't call fd_safer; no longer needed
34945         now that we include fcntl--.h.
34946
34947         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
34948         (make_dir_parents): Treat ENOSYS like EEXIST.
34949
34950         Improve quality of diagnostics on restore_cwd failure.
34951         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
34952         (make_dir_parents): Last arg is now int * (for errno), not bool *.
34953         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
34954         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
34955         each time through the loop.  Do not diagnose restore_cwd failure;
34956         that is the caller's job (and perhaps the caller does not care).
34957
34958         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
34959         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
34960         If the file already exists but is not a directory, don't bother
34961         to try to make its parents.
34962         Close potential file descriptor leak if we can't chdir("/") (!).
34963         Don't always return true if chdir($PWD) fails; return true only
34964         if the requested action was done successfully (except for the
34965         chdir($PWD)).
34966         Don't log final directory unless we actually made it.
34967         Refactor to avoid duplicate code to fix up permissions.
34968         Don't attempt to fix up parent permissions if chdir($PWD) fails.
34969
34970         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
34971         to make it a bit faster and (I hope) clearer.
34972         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
34973         Fix bug in formats like %2N.
34974
34975         * lib/verify.h: New file.
34976
34977 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
34978
34979         Sync from coreutils.
34980         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
34981
34982 2005-09-22  Jim Meyering  <jim@meyering.net>
34983
34984         Sync from coreutils.
34985
34986         * m4/lstat.m4 (gl_FUNC_LSTAT):
34987         Use AC_LIBSOURCES to require lstat.c and lstat.h.
34988         Remove obsolete comment.
34989         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
34990         * m4/xstrtod.m4: Likewise.
34991
34992         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
34993
34994 2005-09-22  Jim Meyering  <jim@meyering.net>
34995
34996         Sync from coreutils.
34997
34998         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
34999
35000         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
35001         the .tm_year member, since otherwise gcc-4.0 would now warn about
35002         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
35003
35004         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
35005         order to avoid an unsuppressible warning from gcc on 64-bit systems.
35006
35007         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
35008         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
35009         when run in a time zone for which daylight savings time is in effect
35010         for the starting date.
35011
35012         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
35013         stop us from restricting permissions of just-created absolute-named
35014         directories.
35015         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
35016         to restore initial working directory.
35017         * lib/mkdir-p.c (make_dir_parents): New parameter:
35018         different_working_dir, to tell caller if/when we change the working
35019         directory and are unable to return to the initial one.
35020         * lib/mkdir-p.h (make_dir_parents): Update prototype.
35021         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
35022         `return false'.  This fixes a bug introduced on 2004-07-30.
35023
35024         * lib/openat.c (fdopendir): Be sure to close the supplied
35025         file descriptor before returning.  This makes our replacement
35026         implementation a little closer to Solaris's, where fdopendir
35027         ties the file descriptor to the returned DIR* pointer.
35028         * lib/openat.c (unlinkat): New function.
35029         * lib/openat.h (unlinkat): Add prototype.
35030         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
35031         (openat_restore_fail): Rename from openat_restore_die.
35032         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
35033
35034         Provide an alternative to exiting immediately upon save_cwd or
35035         restore_cwd failure.  Now, an application can arrange e.g.,
35036         to perform a longjump in that case.
35037         * lib/openat.c: Include dirname.h.
35038         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
35039         (rpl_openat, fdopendir, fstatat): Call openat_save_die
35040         and openat_restore_die rather than calling error directly.
35041         Don't include "error.h" or "exitfail.h"; they're no longer needed.
35042
35043         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
35044         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
35045         define.
35046
35047         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
35048         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
35049                             int utc, int nanoseconds);
35050         Background:
35051         date should not have to allocate a megabyte of virtual memory to
35052         handle a format argument like +%1048575T.  When implemented with
35053         strftime, it must allocate such a buffer, use strftime to fill it
35054         in, print it, then free it.
35055         With fprintftime, it simply prints everything and exits.
35056         With no need for memory allocation, that's one fewer way to fail.
35057         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
35058         optional field width, not before, so we accept %9:z, not %:9z.
35059         (my_strftime): Be sure to use L_('x') for literals.
35060
35061         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
35062         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
35063         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
35064         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
35065         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
35066         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
35067         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
35068         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
35069         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
35070         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
35071         * lib/xgethostname.c, lib/xreadlink.c:
35072         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
35073
35074         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
35075         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
35076         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
35077         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
35078         and don't include <sys/file.h>).
35079
35080 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
35081
35082         Sync from coreutils.
35083
35084         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
35085         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
35086         [!LDAV_DONE]: Avoid unused variable warning.
35087
35088 2005-09-21  Bruno Haible  <bruno@clisp.org>
35089
35090         * lib/unicodeio.h (unicode_to_mb): New declaration.
35091
35092 2005-09-20  Derek Price  <derek@ximbiot.com>
35093
35094         * lib/getaddrinfo.c: Don't include <netdb.h> included from
35095         getaddrinfo.h.
35096
35097 2005-09-20  Bruno Haible  <bruno@clisp.org>
35098
35099         * gnulib-tool: Remove trailing slashes from the values specified for
35100         --source-base, --m4-base, --tests-base, --aux-dir.
35101         Suggested by Simon Josefsson <jas@extundo.com>.
35102
35103 2005-09-20  Bruno Haible  <bruno@clisp.org>
35104
35105         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
35106         func_modules_to_filelist, func_import, func_create_testdir): Make all
35107         sorting results locale-independent, so that gnulib-cache.m4 doesn't
35108         change when gnulib-tool is invoked in a different locale.
35109
35110 2005-09-19  Simon Josefsson  <jas@extundo.com>
35111
35112         * m4/socklen.m4: Fix typo.
35113
35114 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35115
35116         Use a consistent style for including <config.h>.
35117         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
35118         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
35119         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
35120         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
35121         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
35122         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
35123         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
35124         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
35125         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
35126         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
35127         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
35128         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
35129         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
35130         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
35131         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
35132         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
35133         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
35134         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
35135         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
35136         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
35137         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
35138         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
35139         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
35140         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
35141         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
35142         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
35143         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
35144         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
35145         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
35146         lib/xstrtoumax.c, lib/yesno.c:
35147         Standardize inclusion of config.h.
35148         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
35149         lib/inttostr.h:  Removed inclusion of config.h from header files.
35150         * lib/inttostr.c:  Adjusted in-tree users.
35151         * lib/timespec.h: Remove superfluous warning to include config.h.
35152         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
35153         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
35154         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
35155         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
35156         config.h with HAVE_CONFIG_H.
35157
35158 2005-09-19  Jim Meyering  <jim@meyering.net>
35159
35160         * modules/pathmax (License): Change to LGPL.
35161
35162 2005-09-19  Derek Price  <derek@ximbiot.com>
35163
35164         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
35165
35166 2005-09-19  Bruno Haible  <bruno@clisp.org>
35167
35168         * gnulib-tool (import): Provide default for --tests-base.
35169
35170 2005-09-19  Bruno Haible  <bruno@clisp.org>
35171
35172         * doc/quote.texi: New file, extracted from gnulib.texi.
35173         * doc/ctime.texi: New file, extracted from gnulib.texi.
35174         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
35175         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
35176         * doc/gnulib.texi: Include them.
35177
35178 2005-09-18  Bruno Haible  <bruno@clisp.org>
35179
35180         Portability fix.
35181         * gnulib-tool (func_readlink): New function.
35182         (func_ln_if_changed): Use it.
35183
35184 2005-09-18  Bruno Haible  <bruno@clisp.org>
35185
35186         * gnulib-tool: Support --with-tests also with --import.
35187         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
35188         (func_import): Use variables $testsbase and $inctests. Emit a
35189         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
35190         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
35191         SUBDIRS += $testsdir.
35192         (func_create_testdir): Update.
35193
35194 2005-09-18  Bruno Haible  <bruno@clisp.org>
35195
35196         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
35197         instead of $dry_run.
35198         (func_cp_if_changed, func_mv_if_changed): Remove functions.
35199         (func_ln_if_changed): Don't handle dry-run here.
35200         (func_import): In dry-run mode, detect more precisely which actions
35201         would be performed, and don't use "...ing" verbs.
35202
35203 2005-09-18  Bruno Haible  <bruno@clisp.org>
35204
35205         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
35206         (func_import): Use join on two temporary files instead of three nested
35207         loops, in order to determine which files are new or old.
35208
35209 2005-09-18  Bruno Haible  <bruno@clisp.org>
35210
35211         * gnulib-tool (func_import): Comment out code that spits out the
35212         new files with --dry-run.
35213
35214 2005-09-18  Bruno Haible  <bruno@clisp.org>
35215
35216         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
35217
35218 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
35219
35220         * lib/stat-time.h: New file.
35221         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
35222         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
35223         in a different way.
35224         (timespec_cmp): New function.
35225         * lib/utimecmp.c: Include stat-time.h.
35226         (SYSCALL_RESOLUTION): Depend on whether various struct stat
35227         members exist, not on the obsolescent ST_MTIM_NSEC.
35228         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
35229
35230 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
35231
35232         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
35233
35234 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
35235
35236         * MODULES.html.sh (File system functions): Add stat-time.
35237         * modules/stat-time: New file.
35238         * modules/timespec (Files): Remove m4/st_mtim.m4; this
35239         is now done in a different way, by the stat-time module.
35240         * modules/utimecmp (Depends-on): Add stat-time.
35241
35242 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
35243
35244         * m4/st_mtim.m4: Remove.  Superseded by...
35245         * m4/stat-time.m4: New file.
35246         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
35247         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
35248
35249 2005-09-15  Derek Price  <derek@ximbiot.com>
35250
35251         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
35252
35253 2005-09-15  Derek Price  <derek@ximbiot.com>
35254
35255         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
35256         * lib/regex_internal.c: Ditto, using this...
35257         (__GNUC_PREREQ): ...new macro.
35258         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
35259         using...
35260         (__GNUC_PREREQ): ...this new macro.
35261
35262         * lib/strstr.h: Include string.h. Define strstr as a macro here.
35263
35264 2005-09-15  Derek Price  <derek@ximbiot.com>
35265             Paul Eggert  <eggert@cs.ucla.edu>
35266
35267         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
35268         changes, consolidating in...
35269         * lib/regex_internal.h: ...this file.
35270
35271 2005-09-13  Jim Meyering  <jim@meyering.net>
35272
35273         * lib/canon-host.c: Filter through gnu indent and reword comments
35274         slightly.
35275         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
35276
35277 2005-09-13  Derek Price  <derek@ximbiot.com>
35278
35279         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
35280         failure.
35281         Reported by Jim Meyering  <jim@meyering.net>.
35282
35283 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
35284
35285         * lib/base64.c: Typo.
35286         (base64_encode): Put b64str in initialized data section.
35287
35288 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
35289
35290         Merge glibc and coreutils changes into gnulib, plus a few
35291         extra fixes.
35292         * lib/md5.c: Use #error rather than a string.
35293         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
35294         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
35295         (__attribute__): Define to empty for non recent-GCC.
35296         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
35297         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
35298         Renamed from their non-__ counterparts, with new macros replacing
35299         them if not _LIBC.  Add __THROW attribute.
35300         (rol): Remove.
35301         (struct md5_ctx): Align buffer if using GCC.
35302         * lib/sha1.h (struct sha1_ctx): Likewise.
35303         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
35304         The old name was backwards.
35305         (NOTSWAP): Remove; not used.
35306         (rol): New macro, moved here from md5.h.
35307         (sha1_process_block): Remove a FIXME that doesn't make sense.
35308
35309 2005-09-12  Derek Price  <derek@ximbiot.com>
35310
35311         Return usable errors from canon-host.
35312         * lib/canon-host.h: New file.
35313         * lib/canon-host.c (canon_host): Wrap...
35314         (canon_host_r): ...this new function, which now relies exclusively on
35315         getaddrinfo.
35316         (ch_strerror): New function.
35317         (last_cherror): New global.
35318         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
35319         interface.
35320         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
35321         void *.
35322         (freeaddrinfo): Free ai->ai_canonname when set.
35323
35324 2005-09-12  Derek Price  <derek@ximbiot.com>
35325
35326         Make canon-host require getaddrinfo.
35327         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
35328         AC_LIBSOURCE canon-host.h.  Call...
35329         (gl_PREREQ_CANON_HOST): ...this new function, which requires
35330         gl_GETADDRINFO.
35331         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
35332
35333 2005-09-12  Derek Price  <derek@ximbiot.com>
35334
35335         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
35336         LGPL.
35337         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
35338
35339 2005-09-12  Derek Price  <derek@ximbiot.com>
35340
35341         * lib/gai_strerror.c: Include config.h when available.  Include
35342         getaddrinfo.h before other headers to test interface.
35343         Reported by Larry Jones <lawrence.jones@ugs.com>.
35344
35345 2005-09-12  Derek Price  <derek@ximbiot.com>
35346             Paul Eggert  <eggert@cs.ucla.edu>
35347
35348         * modules/glob (Files): Add glob-libc.h.
35349
35350 2005-09-12  Derek Price  <derek@ximbiot.com>
35351             Paul Eggert  <eggert@cs.ucla.edu>
35352
35353         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
35354         glob_.h, glob-libc.h.
35355         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
35356
35357 2005-09-12  Derek Price  <derek@ximbiot.com>
35358             Paul Eggert  <eggert@cs.ucla.edu>
35359
35360         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
35361         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
35362         protecting things that should be done only in gnulib contexts.
35363         * lib/glob_.h: New file, containing only the glob things needed for
35364         gnulib.
35365         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
35366         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
35367         (glob, globfree, glob_pattern_p): Now defined simply in terms of
35368         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
35369         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
35370         and to respect the namespace rules better.
35371
35372 2005-09-08  Simon Josefsson  <jas@extundo.com>
35373
35374         * modules/socklen: New file.
35375
35376 2005-09-08  Simon Josefsson  <jas@extundo.com>
35377
35378         * m4/socklen.m4: New file.
35379
35380 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
35381
35382         * modules/utimens (Files): Add m4/utimbuf.m4, since
35383         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
35384         Reported by Sergey Poznyakoff.
35385
35386 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
35387
35388         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
35389         definitions, since that's the preferred style in glibc.
35390         Fix a minor spacing issue, and update copyright notice to match
35391         glibc's.
35392
35393 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
35394
35395         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
35396
35397 2005-09-06  Simon Josefsson  <jas@extundo.com>
35398
35399         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
35400         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
35401
35402 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
35403
35404         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
35405         warning.
35406
35407 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
35408
35409         * config/srclist.txt: Add glibc bug 1302.
35410
35411 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
35412
35413         Change bitset word type from unsigned int to unsigned long int,
35414         as this has better performance on typical 64-bit hosts.
35415         Port bitset code to hosts with unusual word sizes.
35416         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
35417         (build_collating_symbol):
35418         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
35419         argument is a bitset.  This is merely a style issue, but it makes
35420         it clearer that an entire array is expected.
35421         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
35422         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
35423         Port to the case where bitset_word is not the same as unsigned int.
35424         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
35425         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
35426         Likewise.
35427         * lib/regexec.c (check_dst_limits_calc_pos_1,
35428         check_subexp_matching_top):
35429         (build_trtable, group_nodes_into_DFAstates):
35430         Likewise.
35431         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
35432         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
35433         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
35434         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
35435         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
35436         * lib/regcomp.c (optimize_subexps, lower_subexp):
35437         Work even if bitset_word has holes in its bitwise representation.
35438         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
35439         * lib/regexec.c (check_dst_limits_calc_pos_1,
35440         check_subexp_matching_top):
35441         Likewise.
35442         * lib/regex_internal.c (re_string_reconstruct):
35443         Don't assume UCHAR_MAX == 255.
35444         * lib/regex_internal.h (bitset_set_all): Likewise.
35445         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
35446         All uses changed.
35447         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
35448         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
35449         All uses changed.
35450         (BITSET_WORD_MAX): New macro.
35451         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
35452         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
35453         (bitset_empty, bitset_copy):
35454         Prefer sizeof (bitset) to multiplying it out ourselves.
35455         (bitset_not_merge): Remove; unused.
35456         (bitset_contain): Return bool, not unsigned int with one bit on.
35457         All callers changed.
35458         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
35459         alignment than re_node_set; do this by defining a new internal
35460         type struct dests_alloc and using it to allocate memory.
35461
35462 2005-09-05  Bruno Haible  <bruno@clisp.org>
35463
35464         * gnulib-tool (func_import): Fix comparison in handling of symbolic
35465         links.
35466
35467 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
35468
35469         * modules/size_max (Makefile.am): Add size_max.h
35470
35471 2005-09-04  Derek Price  <derek@ximbiot.com>
35472
35473         * gnulib-tool (func_import): Fix reversed $symbolic logic.
35474
35475 2005-09-03  Simon Josefsson  <jas@extundo.com>
35476
35477         * gnulib-tool: Fix typo.
35478
35479 2005-09-03  Simon Josefsson  <jas@extundo.com>
35480
35481         * config/srclist.txt: Add glibc bug 1293.
35482
35483 2005-09-03  Derek Price  <derek@ximbiot.com>
35484
35485         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
35486         From Larry Jones <lawrence.jones@ugs.com>.
35487
35488 2005-09-02  Simon Josefsson  <jas@extundo.com>
35489
35490         * modules/socklen: New file.
35491
35492 2005-09-02  Simon Josefsson  <jas@extundo.com>
35493
35494         * modules/havelib: New module.
35495
35496         * modules/gettext, modules/iconv, modules/lock, modules/readline:
35497         Use havelib.
35498
35499 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
35500
35501         Check for arithmetic overflow when calculating sizes, to prevent
35502         some buffer-overflow issues.  These patches are conservative, in the
35503         sense that when I couldn't determine whether an overflow was possible,
35504         I inserted a run-time check.
35505         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
35506         macros.
35507         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
35508         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
35509         (re_xnrealloc, re_x2nrealloc): New inline functions.
35510         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
35511         parse_bracket_exp):
35512         (build_equiv_class, build_charclass): Check for arithmetic overflow
35513         in size expression calculations.
35514         * lib/regex_internal.c (re_string_realloc_buffers):
35515         (build_wcs_upper_buffer, re_node_set_add_intersect):
35516         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
35517         (re_dfa_add_node, register_state): Likewise.
35518         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
35519         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
35520         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
35521         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
35522
35523 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
35524
35525         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
35526         m4/ulonglong.m4.  Problem reported by Martin Lambers.
35527
35528 2005-09-02  Bruno Haible  <bruno@clisp.org>
35529
35530         Support for lib vs. lib64 distinction on biarch platforms.
35531         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
35532         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
35533         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
35534
35535 2005-09-02  Bruno Haible  <bruno@clisp.org>
35536
35537         * gnulib-tool (import): In the other first-use case, provide defaults
35538         as well.
35539
35540 2005-09-02  Bruno Haible  <bruno@clisp.org>
35541
35542         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
35543         patches not yet found in the latest gettext release.
35544
35545 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
35546
35547         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
35548         to avoid a collision with bits/local_lim.h in glibc.
35549         All uses changed.  Problem reported by Dmitry V. Levin in
35550         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
35551
35552         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
35553         bugs in int versus size_t comparisons.
35554         (re_string_context_at): Fix bug where the code assumed that
35555         Idx is signed.
35556
35557         Use bool where appropriate.
35558         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
35559         All callers changed.
35560         (calc_eclosure_iter): Likewise, for ROOT arg.
35561         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
35562         (build_charclass_op): Likewise, for NON_MATCH arg.
35563         * lib/regex_internal.c (re_string_allocate, re_string_construct):
35564         (re_string_construct_common): Likewise, for ICASE arg.
35565         * lib/regexec.c (re_search_2_stub, re_search_stub):
35566         Likewise, for RET_LEN arg.
35567         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
35568         (set_regs): Likewise, for FL_BACKTRACK arg.
35569         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
35570         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
35571         (calc_eclosure_iter, parse_bracket_exp):
35572         Use bool for internal variables that are booleans.
35573         * lib/regexec.c (re_search_internal, check_matching,
35574         proceed_next_node):
35575         (set_regs, build_sifted_states, sift_states_bkref):
35576         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
35577         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
35578         (find_collation_sequence_value):
35579         Likewise.
35580         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
35581         (re_node_set_compare):
35582         Return bool, not int. All callers changed.
35583         * lib/regexec.c (check_halt_node_context, check_dst_limits):
35584         (build_trtable, check_node_accept): Likewise.
35585         * lib/regex_internal.h: Include stdbool.h.
35586
35587         Fix bugs uncovered when converting to bool.
35588         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
35589         failure instead of charging ahead blindly.
35590         * lib/regex_internal.c (register_state): Likewise.
35591         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
35592         for freeing internal storage.
35593         (group_nodes_into_DFA_states): Use unsigned int, not int, for
35594         bitset pieces used as boolean, to avoid undefined behavior
35595         on hosts that do int overflow checking.
35596
35597 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
35598
35599         * config/srclist.txt: Add glibc bugs 1285-1287.
35600
35601 2005-09-01  Jim Meyering  <jim@meyering.net>
35602
35603         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
35604         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
35605         Require gl_STAT_MACROS, too.
35606
35607 2005-09-01  Bruno Haible  <bruno@clisp.org>
35608
35609         * gnulib-tool (import): In the first-use case, provide defaults.
35610
35611 2005-09-01  Bruno Haible  <bruno@clisp.org>
35612
35613         * gnulib-tool (func_import): Remove the .tmp files.
35614
35615 2005-09-01  Bruno Haible  <bruno@clisp.org>
35616
35617         * gnulib-tool (func_import): Fix handling of symbolic links.
35618
35619 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
35620
35621         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
35622         old glibc regex code mishandles strings longer than 2**31 bytes.
35623         This patch fixes this when the regex code is used in gnulib
35624         (i.e., outside glibc).
35625
35626         This patch should not affect the use of the regex code inside
35627         glibc.  No doubt this problem also needs to be handled for glibc
35628         as well, but the result will be an incompatible change to the
35629         glibc ABI, and the old ABI will have to be supported too.  That
35630         can be the the subject for another patch.
35631
35632         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
35633         governing whether the rest of this patch is active.  By default,
35634         the macro is disabled and the patch has no effect.
35635         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
35636         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
35637         (struct re_pattern_buffer, re_search, re_search_2, re_match):
35638         (re_match_2, re_set_registers): Use the new types.
35639         * lib/regex_internal.h (Idx, re_hashval_t): New types.
35640         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
35641         New macros.
35642         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
35643         (re_string_context_at, bin_tree_t, re_dfastate_t):
35644         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
35645         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
35646         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
35647         (re_string_char_size_at, re_string_wchar_at):
35648         (re_string_elem_size_at):
35649         Use the new types and macros to port to 64-bit hosts.
35650         Use unsigned types for internal values, so that the code
35651         mostly works even for arrays larger than SSIZE_MAX.
35652         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
35653         (search_duplicated_node, calc_eclosure_iter, fetch_number):
35654         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
35655         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
35656         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
35657         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
35658         (calc_inveclosure, parse_dup_op, build_range_exp):
35659         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
35660         (fetch_number, create_token_tree, mark_opt_subexp):
35661         Likewise.
35662         * lib/regex_internal.c (re_string_construct_common,
35663         create_ci_newstate):
35664         (create_cd_newstate, re_string_allocate, re_string_construct):
35665         (re_string_realloc_buffers, build_wcs_upper_buffer):
35666         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
35667         (re_string_reconstruct, re_string_peek_byte_case):
35668         (re_string_fetch_byte_case, re_string_context_at):
35669         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
35670         (re_node_set_init_copy, re_node_set_add_intersect):
35671         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
35672         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
35673         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
35674         (re_acquire_state, re_acquire_state_context, register_state):
35675         Likewise.
35676         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
35677         search_cur_bkref_entry):
35678         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
35679         (re_search_internal, re_search_2_stub, re_search_stub)
35680         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
35681         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
35682         (update_cur_sifted_state, check_dst_limits):
35683         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
35684         (check_subexp_limits, sift_states_bkref, merge_state_array):
35685         (check_subexp_matching_top, get_subexp, get_subexp_sub):
35686         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
35687         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
35688         (expand_bkref_cache, check_node_accept_bytes):
35689         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
35690         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
35691         (acquire_init_state_context, check_halt_node_context):
35692         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
35693         (sift_states_backward, clean_state_log_if_needed):
35694         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
35695         (find_recover_state, transit_state_sb, transit_state_mb):
35696         (transit_state_bkref, build_trtable, match_ctx_clean):
35697         Likewise.
35698         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
35699         to work around an assumption that REG_MISSING is negative.
35700
35701         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
35702         (seek_collating_symbol_entry) [defined _LIBC]:
35703         (lookup_collation_sequence_value) [defined _LIBC]:
35704         (build_range_exp, build_collating_symbol) [defined _LIBC]:
35705         Use prototypes rather than old-style function definitions.
35706         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
35707         (transit_state_sb) [0]:
35708         (find_collation_sequence_value) [defined _LIBC]: Likewise.
35709
35710         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
35711         rm_eo.
35712
35713         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
35714         (optimize_subexps, lower_subexp):
35715         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
35716         since the signed shift might overflow.  Use 1u<<31 instead.
35717         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
35718         Likewise.
35719         * lib/regexec.c (check_dst_limits_calc_pos_1,
35720         check_subexp_matching_top): Likewise.
35721
35722         * lib/regcomp.c (optimize_subexps, lower_subexp):
35723         Use CHAR_BIT rather than 8, for clarity.
35724         * lib/regexec.c (check_dst_limits_calc_pos_1):
35725         (check_subexp_matching_top): Likewise.
35726         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
35727         have to worry about portability issues when shifting it left.
35728         Remove no-longer-needed test for table_size > 0.
35729         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
35730         in a word, as the resulting behavior is undefined.
35731         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
35732         in one case, a <= should have been an <, and in another case the
35733         whole test was missing.
35734         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
35735         the standard name CHAR_BIT.
35736         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
35737         this is not true on one's complement and signed-magnitude hosts.
35738
35739         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
35740         next_last_offset.
35741         (struct re_dfa_t): Remove unused member states_alloc.
35742         * lib/regcomp.c (init_dfa): Don't initialize unused members.
35743
35744 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
35745
35746         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
35747         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
35748         and large-file glibc and in 32-bit large-file Solaris.
35749
35750 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
35751
35752         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
35753         lengths fit in regoff_t; this isn't true if regoff_t is the same
35754         width as size_t.
35755         * lib/regex.c (re_search_internal): 5th arg is LAST_START
35756         (= START + RANGE) instead of RANGE.  This avoids overflow
35757         problems when regoff_t is the same width as size_t.
35758         All callers changed.
35759         (re_search_2_stub): Check for overflow when adding the
35760         sizes of the two strings.
35761         (re_search_stub): Check for overflow when adding START
35762         to RANGE; if it occurs, substitute the extreme value.
35763
35764 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
35765
35766         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
35767
35768 2005-08-31  Jim Meyering  <jim@meyering.net>
35769
35770         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
35771         a pointer-to-const.
35772         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
35773         (register_state): Likewise.
35774         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
35775         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
35776         (group_nodes_into_DFAstates): Likewise.
35777
35778 2005-08-31  Jim Meyering  <jim@meyering.net>
35779
35780         * check-module: Add a FIXME comment.
35781
35782 2005-08-31  Eric Blake  <ebb9@byu.net>
35783
35784         * modules/unistd-safer (Files): Add unistd--.h.
35785         * modules/stdio-safer (Files): Add stdio--.h.
35786
35787 2005-08-31  Derek Price  <derek@ximbiot.com>
35788
35789         * lib/getdelim.c (getdelim): Return EOF on EOF.
35790         Reported by Larry Jones <lawrence.jones@ugs.com>.
35791
35792 2005-08-31  Bruno Haible  <bruno@clisp.org>
35793
35794         Avoid unnecessary diffs in the generated lib/Makefile.am.
35795         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
35796         the generated files.
35797         (func_import): Don't set cmd.
35798
35799 2005-08-31  Bruno Haible  <bruno@clisp.org>
35800
35801         * lib/strstr.c: Include <stddef.h>, for NULL.
35802         * lib/strcasestr.c: Likewise.
35803         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35804
35805 2005-08-31  Bruno Haible  <bruno@clisp.org>
35806
35807         * gnulib-tool: New option --macro-prefix.
35808         (func_import): Use macro_prefix.
35809         (import): Handle option --macro-prefix.
35810
35811 2005-08-31  Bruno Haible  <bruno@clisp.org>
35812
35813         * gnulib-tool (import): Rename most ac_* variables to cached_*.
35814         Also use new variables cached_lgpl, cached_libtool.
35815
35816 2005-08-31  Bruno Haible  <bruno@clisp.org>
35817
35818         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
35819         always instantiating them.
35820
35821 2005-08-31  Bruno Haible  <bruno@clisp.org>
35822
35823         * gnulib-tool (func_import): Read the previous cached settings
35824         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
35825         earlier added by gnulib but are now dropped. Warn when a gnulib file
35826         overwrites a non-gnulib file.
35827
35828 2005-08-31  Bruno Haible  <bruno@clisp.org>
35829
35830         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
35831         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
35832         projects that don't keep autogenerated files in CVS. Put into
35833         actioncmd only the specified modules, not the transitive closure.
35834
35835 2005-08-31  Bruno Haible  <bruno@clisp.org>
35836
35837         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
35838         Create directories that shall be filled.
35839         (import): Don't look for gl_* macros in configure.ac. Recurse across
35840         all directories containing a gnulib-cache.m4 files, if meaningful.
35841
35842 2005-08-31  Bruno Haible  <bruno@clisp.org>
35843
35844         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
35845         (import): Set seen_libtool when we see gl_LIBTOOL.
35846
35847 2005-08-31  Bruno Haible  <bruno@clisp.org>
35848
35849         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
35850         declaration macro definitions from generated gnulib.m4.
35851
35852 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
35853
35854         * lib/iconvme.h: Add prototype for iconv_alloc.
35855
35856 2005-08-29  Simon Josefsson  <jas@extundo.com>
35857
35858         * lib/iconvme.c: Fix errno.
35859
35860 2005-08-29  Bruno Haible  <bruno@clisp.org>
35861
35862         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
35863         that it works when the directory contains spaces.
35864
35865 2005-08-29  Bruno Haible  <bruno@clisp.org>
35866
35867         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
35868
35869 2005-08-29  Bruno Haible  <bruno@clisp.org>
35870
35871         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
35872         Emit more advice.
35873
35874 2005-08-29  Bruno Haible  <bruno@clisp.org>
35875         and Stepan Kasal  <kasal@ucw.cz>
35876
35877         * check-module: If more parameters are given, check each of them
35878         separately; add more exceptions, as noted by Jim Meyering.
35879         (check_module): New procedure.
35880         (%exempt_header): Now contains all exceptions.
35881
35882 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
35883
35884         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
35885
35886 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
35887
35888         * lib/iconvme.c: Split iconv_string into iconv_alloc.
35889
35890 2005-08-28  Bruno Haible  <bruno@clisp.org>
35891
35892         * m4/gnulib-tool.m4: New file.
35893
35894 2005-08-27  Jim Meyering  <jim@meyering.net>
35895
35896         * modules/unistd-safer (Files): Add pipe-safer.c.
35897         * modules/fcntl-safer (Files): Add creat-safer.c.
35898
35899 2005-08-27  Jim Meyering  <jim@meyering.net>
35900
35901         * m4/stdlib-safer.m4: New file.  From coreutils.
35902         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
35903         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
35904         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
35905         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
35906         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
35907
35908 2005-08-27  Jim Meyering  <jim@meyering.net>
35909
35910         * lib/fopen-safer.c: Merge minor changes from coreutils.
35911         * lib/dup-safer.c: Likewise.
35912         * lib/fd-safer.c: Likewise.
35913
35914         Merge from coreutils.
35915         * lib/stdio--.h: New file.
35916         * lib/stdlib--.h: New file.
35917         * lib/mkstemp-safer.c: New file.
35918
35919         GNU tar needs these.
35920         * lib/pipe-safer.c: New file.
35921         * lib/creat-safer.c: New file.
35922         * lib/fcntl--.h (creat): Define to creat_safer.
35923         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
35924         * lib/unistd--.h (pipe): Define to pipe_safer.
35925         * lib/unistd-safer.h: Declare pipe_safer.
35926
35927 2005-08-26  Simon Josefsson  <jas@extundo.com>
35928
35929         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
35930         Haible <bruno@clisp.org>.
35931
35932 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
35933
35934         * lib/regex_internal.h: Remove all references to
35935         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
35936         or better.
35937         (bitset_not, bitset_merge, bitset_not_merge):
35938         (bitset_mask, re_string_allocate, re_string_construct):
35939         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
35940         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
35941         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
35942         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
35943         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
35944         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
35945         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
35946         (re_acquire_state_context):
35947         Remove unnecessary forward decls.
35948         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
35949         Put __attribute at function definition,
35950         now that the function decl has been removed.
35951         * lib/regex_internal.c (re_string_peek_byte_case):
35952         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
35953         Likewise.
35954
35955 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
35956
35957         * m4/regex.m4: Add AC_PREREQ(2.50).
35958         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
35959
35960 2005-08-25  Simon Josefsson  <jas@extundo.com>
35961
35962         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
35963         __fsetlocking.
35964
35965 2005-08-25  Simon Josefsson  <jas@extundo.com>
35966
35967         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
35968         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
35969         GLIBC specific code.
35970
35971 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
35972
35973         Make regex safe for g++.  This fixes one real bug (an "err"
35974         that should have been "*err").  g++ problem reported by
35975         Sam Steingold.
35976         * lib/regex_internal.h (re_calloc): New macro, consistent with
35977         re_malloc etc.  All callers of calloc changed to use re_calloc.
35978         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
35979         not int.  All callers changed.
35980         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
35981         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
35982         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
35983         (find_recover_state): Change "err" to "*err"; this fixes what
35984         appears to be a real bug.
35985         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
35986         versus int.
35987
35988 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
35989
35990         * modules/regex (Depends-on): Add malloc, since the code
35991         assumes that !malloc(0) means failure.
35992
35993 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
35994
35995         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
35996
35997         alloca modernization/simplification for regex.
35998         * lib/regex.c: Remove portability cruft for alloca.  This no longer
35999         needs to be at the start of the file, and can be moved into
36000         regex_internal.h and simplified.
36001         * lib/regex_internal.h: Include <alloca.h>.
36002         (__libc_use_alloca) [!defined _LIBC]: New macro.
36003         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
36004         now works outside glibc.
36005
36006 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
36007
36008         * config/srclist.txt: Add glibc bugs 1241, 1245.
36009
36010 2005-08-25  Jim Meyering  <jim@meyering.net>
36011
36012         * lib/open-safer.c: Include <config.h>.
36013         Otherwise, we'd lose LARGEFILE support in any file using
36014         e.g. "fcntl--.h"
36015
36016 2005-08-25  Bruno Haible  <bruno@clisp.org>
36017
36018         * m4/minmax.m4: Require autoconf 2.52.
36019         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
36020         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
36021         alternatives of translit over the alphabet.
36022         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
36023
36024 2005-08-24  Simon Josefsson  <jas@extundo.com>
36025
36026         * tests/test-getpass.c: New file.
36027
36028 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36029
36030         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
36031         for GNU regex features.
36032
36033 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36034
36035         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
36036         * lib/regex.h (regerror): Likewise.
36037
36038         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
36039         requires this.  (The code never needed it.)
36040
36041         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
36042         All uses of recently-renamed identifiers changed to use the new,
36043         POSIX-compliant names.  The code will build and run just fine
36044         without these changes, but it's better to eat our own dog food
36045         and use the standard-conforming names.
36046
36047         * lib/regex.h: Fix a multitude of POSIX name space violations.
36048         These changes have an effect only for programs that define
36049         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
36050         do not change anything for programs compiled in the normal way.
36051         Also, there is no effect on the ABI.
36052
36053         (_REGEX_SOURCE): New macro.
36054         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
36055         defined and _GNU_SOURCE is not; this fixes a name space violation.
36056
36057         Rename the following macros to obey POSIX requirements.
36058         The old names are still visible as macros if _REGEX_SOURCE is defined.
36059         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
36060         RE_BACKSLASH_ESCAPE_IN_LISTS.
36061         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
36062         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
36063         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
36064         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
36065         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
36066         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
36067         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
36068         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
36069         (REG_INTERVALS): renamed from RE_INTERVALS.
36070         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
36071         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
36072         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
36073         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
36074         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
36075         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
36076         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
36077         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
36078         RE_UNMATCHED_RIGHT_PAREN_ORD.
36079         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
36080         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
36081         (REG_DEBUG): renamed from RE_DEBUG.
36082         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
36083         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
36084         unusual, since we can't clash with the POSIX REG_ICASE.
36085         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
36086         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
36087         (REG_NO_SUB): renamed from RE_NO_SUB.
36088         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
36089         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
36090         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
36091         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
36092         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
36093         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
36094         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
36095         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
36096         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
36097         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
36098         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
36099         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
36100         RE_SYNTAX_POSIX_MINIMAL_BASIC.
36101         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
36102         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
36103         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
36104         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
36105         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
36106         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
36107         (REG_FIXED): Renamed from REGS_FIXED.
36108         (REG_NREGS): Renamed from RE_NREGS.
36109
36110         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
36111         of other REG_* macros, since POSIX says the user is allowed to
36112         #undef these macros selectively.
36113
36114         (reg_errcode_t): Update comment stating what other tables need
36115         to be consistent.
36116
36117         Rename the following enum values to obey POSIX requirements.
36118         The old names are still visible as macros.
36119         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
36120         is not defined, since GNU is supposed to be a superset of POSIX as
36121         much as possible, and since we want reg_errcode_t to be a signed
36122         type for implementation consistency.
36123         (_REG_NOERROR): Renamed from REG_NOERROR.
36124         (_REG_NOMATCH): Renamed from REG_NOMATCH.
36125         (_REG_BADPAT): Renamed from REG_BADPAT.
36126         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
36127         (_REG_ECTYPE): Renamed from REG_ECTYPE.
36128         (_REG_EESCAPE): Renamed from REG_EESCAPE.
36129         (_REG_ESUBREG): Renamed from REG_ESUBREG.
36130         (_REG_EBRACK): Renamed from REG_EBRACK.
36131         (_REG_EPAREN): Renamed from REG_EPAREN.
36132         (_REG_EBRACE): Renamed from REG_EBRACE.
36133         (_REG_BADBR): Renamed from REG_BADBR.
36134         (_REG_ERANGE): Renamed from REG_ERANGE.
36135         (_REG_ESPACE): Renamed from REG_ESPACE.
36136         (_REG_BADRPT): Renamed from REG_BADRPT.
36137         (_REG_EEND): Renamed from REG_EEND.
36138         (_REG_ESIZE): Renamed from REG_ESIZE.
36139         (_REG_ERPAREN): Renamed from REG_ERPAREN.
36140         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
36141         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
36142         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
36143         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
36144
36145         (_REG_RE_NAME, _REG_RM_NAME): New macros.
36146         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
36147         changed.  But support the old name if the new one is not defined
36148         and if _REGEX_SOURCE.
36149
36150         Change the following member names in struct re_pattern_buffer.
36151         The old names are still supported if !_REGEX_SOURCE.
36152         The new names are always supported, regardless of _REGEX_SOURCE.
36153         (re_buffer): Renamed from buffer.
36154         (re_allocated): Renamed from allocated.
36155         (re_used): Renamed from used.
36156         (re_syntax): Renamed from syntax.
36157         (re_fastmap): Renamed from fastmap.
36158         (re_translate): Renamed from translate.
36159         (re_can_be_null): Renamed from can_be_null.
36160         (re_regs_allocated): Renamed from regs_allocated.
36161         (re_fastmap_accurate): Renamed from fastmap_accurate.
36162         (re_no_sub): Renamed from no_sub.
36163         (re_not_bol): Renamed from not_bol.
36164         (re_not_eol): Renamed from not_eol.
36165         (re_newline_anchor): Renamed from newline_anchor.
36166
36167         Change the following member names in struct re_registers.
36168         The old names are still supported if !_REGEX_SOURCE.
36169         The new names are always supported, regardless of _REGEX_SOURCE.
36170         (rm_num_regs): Renamed from num_regs.
36171         (rm_start): Renamed from start.
36172         (rm_end): Renamed from end.
36173
36174         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
36175         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
36176         Prepend __ to parameter names.
36177
36178         Undo yesterday's changes.
36179
36180 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36181
36182         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
36183         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
36184         lib/regex.c.
36185
36186 2005-08-24  Jim Meyering  <jim@meyering.net>
36187
36188         Sync from coreutils.
36189         * m4/fcntl-safer.m4: New file.
36190
36191         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
36192         and object files for this module.
36193
36194 2005-08-24  Jim Meyering  <jim@meyering.net>
36195
36196         Sync from coreutils.
36197         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
36198
36199 2005-08-24  Jim Meyering  <jim@meyering.net>
36200
36201         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
36202         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
36203
36204 2005-08-24  Jim Meyering  <jim@meyering.net>
36205
36206         * modules/fcntl-safer: New module.
36207         * modules/fts (Depends-on): Add fcntl-safer.
36208         * MODULES.html.sh (File descriptor based Input/Output):
36209         Add fcntl-safer.
36210
36211 2005-08-24  Bruno Haible  <bruno@clisp.org>
36212
36213         Support for unit test modules.
36214         * modules/README: Mention tests modules.
36215         * modules/TEMPLATE-TESTS: New file.
36216         * gnulib-tool: New options --extract-tests-module, --with-tests and
36217         --tests-base (unused for the moment).
36218         (testsbase, inctests): New variables.
36219         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
36220         (func_verify_module): Exclude TEMPLATE-TESTS.
36221         (func_verify_nontests_module, func_verify_tests_module): New functions.
36222         (func_get_dependencies): Add implicit dependency for tests modules.
36223         (func_get_tests_module): New function.
36224         (func_modules_transitive_closure): When --with-tests was specified,
36225         include the unit tests as well, unless explicitly avoided.
36226         (func_emit_lib_Makefile_am): Ignore the tests modules here.
36227         (func_emit_tests_Makefile_am): New function.
36228         (func_create_testdir): When --with-tests was specified, emit a
36229         tests/ directory.
36230         * MODULES.html.sh (Future developments): Update.
36231
36232 2005-08-24  Bruno Haible  <bruno@clisp.org>
36233
36234         * modules/tls-tests: New file.
36235         * tests/test-tls.c: New file, from GNU gettext.
36236
36237 2005-08-24  Bruno Haible  <bruno@clisp.org>
36238
36239         * modules/lock-tests: New file.
36240         * tests/test-lock.c: New file, from GNU gettext.
36241
36242 2005-08-24  Bruno Haible  <bruno@clisp.org>
36243
36244         * lib/lock.h: Add multiple inclusion guard.
36245         * lib/tls.h: Add multiple inclusion guard.
36246
36247 2005-08-24  Bruno Haible  <bruno@clisp.org>
36248
36249         * gnulib-tool: Add support for the --aux-dir option to
36250         --create-testdir, --create-megatestdir, --test, --megatest.
36251         (func_create_testdir, func_create_megatestdir): Optionally emit a
36252         AC_CONFIG_AUX_DIR directive.
36253         (create-testdir, create-megatestdir, test, megatest): Provide a
36254         default value for $auxdir.
36255
36256 2005-08-24  Bruno Haible  <bruno@clisp.org>
36257
36258         * gnulib-tool (import): Use compound statement instead of subshell
36259         where possible.
36260
36261 2005-08-24  Bruno Haible  <bruno@clisp.org>
36262
36263         * gnulib-tool (import): Change --aux-dir default to "build-aux".
36264
36265 2005-08-24  Bruno Haible  <bruno@clisp.org>
36266
36267         * gnulib-tool (func_version): Update.
36268
36269 2005-08-24  Bruno Haible  <bruno@clisp.org>
36270
36271         * gnulib-tool (func_import, func_create_testdir,
36272         func_create_megatestdir): Quote all autoconf macro arguments.
36273
36274 2005-08-24  Bruno Haible  <bruno@clisp.org>
36275
36276         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
36277         option --force, because --force causes the aclocal.m4 of each
36278         subdirectory to be newer than the corresponding config.h.in.
36279
36280 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
36281
36282         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
36283         All contents moved to gl_REGEX.
36284         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
36285         assume that it does.
36286
36287 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
36288
36289         * lib/regex.h (REG_NOSYS)
36290         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
36291         Define, since POSIX requires it as of 2001.
36292         (_REG_ENOSYS)
36293         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
36294         New private symbol, used to keep the enum signed in all cases.
36295         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
36296         Youngman in
36297         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
36298
36299         * lib/regex_internal.c (re_string_skip_chars, register_state):
36300         (calc_state_hash):
36301         Remove forward decls; no longer needed now that we use prototypes.
36302         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
36303         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
36304         (clean_state_log_if_needed): Likewise.
36305
36306 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
36307
36308         * config/srclist.txt: Add glibc bugs 1231-1233.
36309
36310 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
36311
36312         Fix problems reported by Sam Steingold in
36313         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
36314         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
36315         assumed that reg_errcode_t is a signed type, which is not
36316         necessarily true if _XOPEN_SOURCE is not defined.
36317         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
36318         since some compilers warn about it otherwise.
36319
36320 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
36321
36322         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
36323         (init_word_char, create_initial_state, duplicate_node_closure):
36324         (fetch_token, peek_token_bracket, build_range_exp):
36325         (build_collating_symbol): Remove forward decls; no longer needed
36326         now that we use prototypes.
36327
36328         * lib/regcomp.c:
36329         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
36330         (re_compile_fastmap_iter, regcomp, regerror, regfree):
36331         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
36332         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
36333         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
36334         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
36335         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
36336         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
36337         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
36338         (build_range_exp, build_collating_symbol, parse_bracket_exp):
36339         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
36340         (build_charclass, build_charclass_op, fetch_number, create_tree):
36341         (create_token_tree, mark_opt_subexp, duplicate_tree):
36342         Use prototypes rather than old-style definitions.
36343
36344         * lib/regex_internal.c:
36345         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
36346         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
36347         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
36348         (re_string_reconstruct, re_string_peek_byte_case):
36349         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
36350         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
36351         (re_node_set_init_copy, re_node_set_add_intersect):
36352         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
36353         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
36354         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
36355         (re_acquire_state, re_acquire_state_context, register_state):
36356         (create_ci_newstate, create_cd_newstate, free_state):
36357         Likewise.
36358         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
36359         re_search_2):
36360         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
36361         (re_search_internal, prune_impossible_nodes):
36362         (acquire_init_state_context, check_matching, static):
36363         (check_halt_node_context, check_halt_state_context, proceed_next_node):
36364         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
36365         (update_regs, sift_states_backward, build_sifted_states):
36366         (clean_state_log_if_needed, merge_state_array):
36367         (update_cur_sifted_state, add_epsilon_src_nodes):
36368         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
36369         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
36370         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
36371         (find_recover_state, check_subexp_matching_top, transit_state_mb):
36372         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
36373         (check_arrival, check_arrival_add_next_nodes):
36374         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
36375         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
36376         (check_node_accept_bytes, check_node_accept, extend_buffers):
36377         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
36378         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
36379         (sift_ctx_init):
36380         Likewise.
36381
36382         * lib/regex_internal.h:
36383         (re_string_allocate, re_string_construct, re_string_reconstruct):
36384         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
36385         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
36386         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
36387         (re_string_context_at, re_string_peek_byte_case):
36388         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
36389         is defined, since we now use prototypes always.
36390
36391         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
36392         C89 or better.  All uses removed.
36393
36394 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
36395
36396         * config/srclist.txt: Add glibc bugs 1220-1227.
36397
36398 2005-08-20  Jim Meyering  <jim@meyering.net>
36399
36400         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
36401         of unused local, dfa.
36402
36403 2005-08-20  Bruno Haible  <bruno@clisp.org>
36404
36405         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
36406
36407 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
36408
36409         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
36410         (re_node_set_insert_last, re_dfa_add_node):
36411         Rename local variables to avoid GCC shadowing warnings.
36412
36413 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
36414
36415         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
36416         [defined lint]: Suppress bogus uninitialized-variable warnings.
36417
36418         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
36419         and let the caller return REG_ESPACE if out of space.  This
36420         removes an uninitialied-variable warning with GCC 4.0.1, and also
36421         avoids taking the address of a local variable.  All callers
36422         changed.
36423
36424 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
36425
36426         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
36427         $LIBCSRC/posix/regexec.c.
36428         Add glibc bug 1217 for regcomp.c.
36429
36430 2005-08-19  Jim Meyering  <jim@meyering.net>
36431
36432         * lib/regexec.c (proceed_next_node): Redo local variables to
36433         avoid GCC shadowing warnings.
36434
36435 2005-08-18  Bruno Haible  <bruno@clisp.org>
36436
36437         * lib/strstr.c (strstr): Fix return value in multibyte case.
36438         * lib/strcasestr.c (strcasestr): Likewise.
36439
36440 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
36441
36442         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
36443
36444 2005-08-17  Jim Meyering  <jim@meyering.net>
36445
36446         Make the %s format (seconds since the epoch) work for a negative
36447         number and when used with a zero-padded field width, e.g. %015s.
36448
36449         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
36450         label so that it precedes the code to set `digits'.  Otherwise,
36451         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
36452         print `00-22'.  Now, it prints `-0022', as it should.
36453
36454 2005-08-17  Bruno Haible  <bruno@clisp.org>
36455
36456         * modules/strstr (Files): Add m4/mbrtowc.m4.
36457         (Depends-on): Add mbuiter.
36458
36459 2005-08-17  Bruno Haible  <bruno@clisp.org>
36460
36461         * modules/strcasestr: New file.
36462         * MODULES.html.sh (String handling, based on ANSI C 89): Add
36463         strcasestr.
36464
36465 2005-08-17  Bruno Haible  <bruno@clisp.org>
36466
36467         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
36468
36469 2005-08-17  Bruno Haible  <bruno@clisp.org>
36470
36471         * modules/mbuiter: New file.
36472         * MODULES.html.sh (Extended multibyte and wide character utilities):
36473         Add mbuiter.
36474
36475 2005-08-17  Bruno Haible  <bruno@clisp.org>
36476
36477         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
36478         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
36479
36480 2005-08-17  Bruno Haible  <bruno@clisp.org>
36481
36482         * m4/strcasestr.m4: New file.
36483
36484 2005-08-17  Bruno Haible  <bruno@clisp.org>
36485
36486         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
36487         * lib/strstr.c: Completely rewritten, with multibyte locale support.
36488
36489 2005-08-17  Bruno Haible  <bruno@clisp.org>
36490
36491         * lib/strcasestr.h: New file.
36492         * lib/strcasestr.c: New file.
36493
36494 2005-08-17  Bruno Haible  <bruno@clisp.org>
36495
36496         * lib/strcasecmp.c: Use mbuiter.h.
36497
36498 2005-08-17  Bruno Haible  <bruno@clisp.org>
36499
36500         * lib/mbuiter.h: New file.
36501
36502 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
36503
36504         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
36505         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
36506         and gl_GETOPT are both invoked via different paths (as happens
36507         with GNU tar CVS because it uses both argp and getopt), the former
36508         wins.
36509
36510 2005-08-16  Bruno Haible  <bruno@clisp.org>
36511
36512         * modules/tls: New file.
36513         * MODULES.html.sh (Multithreading): Add tls.
36514
36515 2005-08-16  Bruno Haible  <bruno@clisp.org>
36516
36517         * modules/strnlen1: New file.
36518         * MODULES.html.sh (String handling): Add strnlen1.
36519
36520 2005-08-16  Bruno Haible  <bruno@clisp.org>
36521
36522         * modules/strcase (Files): Add m4/mbrtowc.m4.
36523         (Depends-on): Add strnlen1, mbchar.
36524
36525 2005-08-16  Bruno Haible  <bruno@clisp.org>
36526
36527         * modules/mbiter: New file.
36528         * MODULES.html.sh (Extended multibyte and wide character utilities):
36529         Add mbiter.
36530
36531 2005-08-16  Bruno Haible  <bruno@clisp.org>
36532
36533         * modules/mbfile: New file.
36534         * MODULES.html.sh (Extended multibyte and wide character utilities):
36535         Add mbfile.
36536
36537 2005-08-16  Bruno Haible  <bruno@clisp.org>
36538
36539         * modules/mbchar: New file.
36540         * MODULES.html.sh (Extended multibyte and wide character utilities):
36541         New section.
36542
36543 2005-08-16  Bruno Haible  <bruno@clisp.org>
36544
36545         * m4/tls.m4: New file, from GNU gettext.
36546
36547 2005-08-16  Bruno Haible  <bruno@clisp.org>
36548
36549         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
36550         always.
36551         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
36552
36553 2005-08-16  Bruno Haible  <bruno@clisp.org>
36554
36555         * m4/mbiter.m4: New file.
36556
36557 2005-08-16  Bruno Haible  <bruno@clisp.org>
36558
36559         * m4/mbfile.m4: New file.
36560
36561 2005-08-16  Bruno Haible  <bruno@clisp.org>
36562
36563         * m4/mbchar.m4: New file.
36564
36565 2005-08-16  Bruno Haible  <bruno@clisp.org>
36566
36567         * lib/tls.h: New file, from GNU gettext.
36568         * lib/tls.c: New file, from GNU gettext.
36569
36570 2005-08-16  Bruno Haible  <bruno@clisp.org>
36571
36572         * lib/strnlen1.h: New file.
36573         * lib/strnlen1.c: New file.
36574
36575 2005-08-16  Bruno Haible  <bruno@clisp.org>
36576
36577         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
36578         (mbi_init): Update.
36579         (mbi_avail, mbi_advance): Let the iteration end before the terminating
36580         NUL byte, not after it.
36581
36582 2005-08-16  Bruno Haible  <bruno@clisp.org>
36583
36584         * lib/strcase.h (strcasecmp): Add note in comments.
36585         * lib/strncasecmp.c: Use code from strcasecmp.c.
36586         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
36587         (strcasecmp): Work correctly in multibyte locales.
36588
36589 2005-08-16  Bruno Haible  <bruno@clisp.org>
36590
36591         * lib/mbiter.h: New file.
36592
36593 2005-08-16  Bruno Haible  <bruno@clisp.org>
36594
36595         * lib/mbfile.h: New file.
36596
36597 2005-08-16  Bruno Haible  <bruno@clisp.org>
36598
36599         * lib/mbchar.h: New file.
36600         * lib/mbchar.c: New file.
36601
36602 2005-08-16  Bruno Haible  <bruno@clisp.org>
36603
36604         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
36605         the valid ones. Makes the comparison operations transitive:
36606         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
36607         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
36608
36609 2005-08-15  Simon Josefsson  <jas@extundo.com>
36610
36611         * modules/ssize_t (License): Change to 'unlimited'.
36612
36613         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
36614
36615 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
36616
36617         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
36618         Add comments for each pending glibc patch.
36619
36620 2005-08-15  Bruno Haible  <bruno@clisp.org>
36621
36622         * lib/regex.h (__restrict_arr): Don't define to __restrict if
36623         __cplusplus is defined.
36624
36625 2005-08-14  Jim Meyering  <jim@meyering.net>
36626
36627         Sync from coreutils.
36628
36629         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
36630         Use the hash-table-based cycle-detection code not just when
36631         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
36632         Reported by James Youngman in
36633         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
36634         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
36635         FTS_TIGHT_CYCLE_CHECK.
36636         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
36637         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
36638         once again.
36639         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
36640         * lib/fts.c (fd_safer): Remove decl.
36641         Include fcntl--.h rather than unistd-safer.h
36642         (fts_safe_changedir): Don't call fd_safer; no longer needed
36643         now that we include fcntl--.h.
36644
36645 2005-08-12  Simon Josefsson  <jas@extundo.com>
36646
36647         * modules/getndelim2: Use ssize_t module.
36648         * modules/getnline: Likewise.
36649         * modules/safe-read: Likewise.
36650         * modules/xreadlink: Likewise.
36651
36652         * modules/ssize_t: New file.
36653
36654 2005-08-12  Simon Josefsson  <jas@extundo.com>
36655
36656         * m4/readline.m4: Look for termcap, curses or ncurses if required.
36657
36658 2005-08-12  Simon Josefsson  <jas@extundo.com>
36659
36660         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36661         ssize_t.
36662
36663 2005-08-12  Simon Josefsson  <jas@extundo.com>
36664
36665         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
36666         readline, getdelim and check_version.
36667         (Support for systems lacking ISO C 99: Sizes of integer types):
36668         Add size_max.
36669
36670 2005-08-12  Bruno Haible  <bruno@clisp.org>
36671
36672         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
36673
36674 2005-08-11  Simon Josefsson  <jas@extundo.com>
36675
36676         * modules/readline: New file.
36677
36678         * modules/strnlen (Files): Add strnlen.h.
36679
36680 2005-08-11  Simon Josefsson  <jas@extundo.com>
36681
36682         * m4/readline.m4: New file.
36683
36684 2005-08-11  Simon Josefsson  <jas@extundo.com>
36685
36686         * lib/readline.h, readline.c: New file.
36687
36688 2005-08-11  Simon Josefsson  <jas@extundo.com>
36689
36690         * doc/gnulib.texi (Initial import, Finishing touches): Mention
36691         gl_AVOID.
36692
36693 2005-08-11  Bruno Haible  <bruno@clisp.org>
36694
36695         * lib/strnlen.h (strnlen): Change parameter name to match comment.
36696
36697 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
36698
36699         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
36700
36701 2005-08-10  Simon Josefsson  <jas@extundo.com>
36702
36703         * tests/test-iconvme.c: New file.
36704
36705 2005-08-10  Simon Josefsson  <jas@extundo.com>
36706
36707         * m4/strnlen.m4: New file.
36708
36709         * m4/strndup.m4: Don't check for strnlen declaration, done in
36710         strnlen.m4.
36711
36712 2005-08-10  Simon Josefsson  <jas@extundo.com>
36713
36714         * lib/strndup.c: Use strnlen.h.
36715
36716         * lib/strnlen.h: New file.
36717
36718 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
36719
36720         * README: Typos.
36721
36722 2005-08-02  Simon Josefsson  <jas@extundo.com>
36723
36724         * modules/readline: New file.
36725
36726 2005-08-02  Simon Josefsson  <jas@extundo.com>
36727
36728         * modules/getdelim: New file.
36729
36730         * modules/getline: Rewrite, don't use getndelim2.
36731
36732 2005-08-02  Simon Josefsson  <jas@extundo.com>
36733
36734         * m4/getline.m4: Separate out getdelim stuff into separate module.
36735
36736         * m4/getdelim.m4: New file.
36737
36738 2005-08-02  Simon Josefsson  <jas@extundo.com>
36739
36740         * lib/getline.h, getline.c: Rewrite.
36741
36742         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
36743
36744 2005-07-31  Bruno Haible  <bruno@clisp.org>
36745
36746         * lib/lock.h (gl_lock_initializer): New macro.
36747         (gl_lock_define_initialized): Use it.
36748         (gl_rwlock_initializer): New macro.
36749         (gl_rwlock_define_initialized): Use it.
36750         (gl_recursive_lock_initializer): New macro.
36751         (gl_recursive_lock_define_initialized): Use it.
36752
36753 2005-07-30  Karl Berry  <karl@gnu.org>
36754
36755         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
36756         Report from Ben Pfaff, regarding getopt.
36757
36758 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
36759
36760         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
36761         normal way.
36762         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
36763         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
36764         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
36765         (gl_GETOPT): Use the new macros.  Most of the implementation
36766         is moved to the new macros.  This is for programs like Emacs
36767         that don't want all the functionality of gl_GETOPT.
36768
36769 2005-07-26  Bruno Haible  <bruno@clisp.org>
36770
36771         * m4/lock.m4: Update from GNU gettext.
36772
36773 2005-07-26  Bruno Haible  <bruno@clisp.org>
36774
36775         * lib/lock.h: Update from GNU gettext.
36776         * lib/lock.c: Update from GNU gettext.
36777
36778 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
36779
36780         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
36781         obsolescent AC_TRY_RUN.  Include the default includes files, for
36782         'exit'.
36783
36784 2005-07-24  Bruno Haible  <bruno@clisp.org>
36785
36786         * modules/visibility: New file.
36787         * MODULES.html.sh (Misc): Add visibility.
36788
36789 2005-07-24  Bruno Haible  <bruno@clisp.org>
36790
36791         * m4/visibility.m4: New file.
36792
36793 2005-07-24  Bruno Haible  <bruno@clisp.org>
36794
36795         * doc/visibility.texi: New file.
36796
36797 2005-07-22  Bruno Haible  <bruno@clisp.org>
36798
36799         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
36800         $(ALLOCA_H), redundant through BUILT_SOURCES.
36801         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
36802         redundant through BUILT_SOURCES.
36803         * modules/byteswap (Makefile.am): Remove explicit dependency on
36804         $(BYTESWAP_H), redundant through BUILT_SOURCES.
36805         * modules/fnmatch (Makefile.am): Remove explicit dependency on
36806         $(FNMATCH_H), redundant through BUILT_SOURCES.
36807         * modules/getopt (Makefile.am): Remove explicit dependency on
36808         $(GETOPT_H), redundant through BUILT_SOURCES.
36809         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
36810         redundant through BUILT_SOURCES.
36811         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
36812         redundant through BUILT_SOURCES.
36813         * modules/stdbool (Makefile.am): Remove explicit dependency on
36814         $(STDBOOL_H), redundant through BUILT_SOURCES.
36815         * modules/stdint (Makefile.am): Remove explicit dependency on
36816         $(STDINT_H), redundant through BUILT_SOURCES.
36817         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
36818         Remove explicit dependency on $(SYSEXITS_H).
36819         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
36820
36821 2005-07-18  Simon Josefsson  <jas@extundo.com>
36822
36823         * lib/check-version.c (check_version): Accept identical versions too.
36824
36825 2005-07-18  Bruno Haible  <bruno@clisp.org>
36826
36827         * modules/lock: New file.
36828         * MODULES.html.sh (Multithreading): New section.
36829
36830 2005-07-18  Bruno Haible  <bruno@clisp.org>
36831
36832         * m4/lock.m4: New file, from GNU gettext.
36833
36834 2005-07-18  Bruno Haible  <bruno@clisp.org>
36835
36836         * lib/lock.h: New file, from GNU gettext.
36837         * lib/lock.c: New file, from GNU gettext.
36838
36839 2005-07-18  Bruno Haible  <bruno@clisp.org>
36840
36841         * lib/lock.h (gl_once_t): New type.
36842         (gl_once_define, gl_once): New macros.
36843         * lib/lock.c (fresh_once): New variable.
36844         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
36845         functions.
36846
36847 2005-07-16  Simon Josefsson  <jas@extundo.com>
36848
36849         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
36850         workaround, suggested by Bruno.
36851
36852 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
36853
36854         * modules/xalloc (Depends-on): Add xalloc-die.
36855         * modules/xvasprintf (Depends-on): Add xalloc-die.
36856
36857 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
36858
36859         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
36860         with a minor change.
36861
36862 2005-07-15  Bruno Haible  <bruno@clisp.org>
36863
36864         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
36865         When using lib/poll.c, define poll as rpl_poll.
36866
36867 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
36868
36869         * modules/argp (Depends-on): Remove unlocked-io.
36870
36871 2005-07-14  Derek Price  <derek@ximbiot.com>
36872
36873         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
36874         for glob symlink bug.
36875
36876 2005-07-14  Bruno Haible  <bruno@clisp.org>
36877
36878         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
36879         Instead, test for *_unlocked function declarations directly.
36880
36881 2005-07-11  Simon Josefsson  <jas@extundo.com>
36882
36883         * modules/size_max: New file.
36884
36885         * modules/xsize: Depend on size_max module for size_max.m4.
36886
36887 2005-07-11  Simon Josefsson  <jas@extundo.com>
36888
36889         * lib/size_max.h: New file.
36890
36891 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
36892
36893         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
36894         copyright symbol and the year.
36895         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
36896         (version_etc_va): Use parameterized copyright notice.
36897         Reword to conform to the current GNU coding standards.
36898
36899 2005-07-11  Karl Berry  <karl@gnu.org>
36900
36901         * doc/gnulib.texi (Quoting): new node.
36902         (Initial import): more info, from Patrice.
36903
36904 2005-07-11  Bruno Haible  <bruno@clisp.org>
36905
36906         * gnulib-tool (func_usage): Document option --avoid.
36907         (Command line options): Handle --avoid.
36908         (func_acceptable): New function.
36909         (func_modules_transitive_closure): Use it.
36910
36911 2005-07-11  Bruno Haible  <bruno@clisp.org>
36912
36913         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
36914         Reported by Jim Meyering.
36915
36916 2005-07-10  Bruno Haible  <bruno@clisp.org>
36917
36918         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
36919         Needed when size_t is smaller than 'unsigned int'.
36920         Reported by Paul Eggert.
36921
36922 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
36923
36924         * modules/argp (Depends-on): Add unlocked-io
36925
36926 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
36927
36928         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
36929         block of defines.
36930
36931 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
36932
36933         * config/srclist.txt: Comment out regcomp.c, since we have a porting
36934         fix now.
36935
36936 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
36937         and Paul Eggert  <eggert@cs.ucla.edu>
36938
36939         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
36940         in wint_t, not wchar_t.  Remove now-unnecessary cast.
36941
36942 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
36943
36944         * modules/regex (Files): Add lib/regex_internal.c,
36945         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
36946         (Depends-on): Add extensions.
36947         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
36948
36949 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
36950
36951         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
36952         pathconf.
36953         * m4/same.m4 (gl_SAME): Likewise.
36954         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
36955
36956         * m4/regex.m4: Adjust to new libc regex implementation.
36957         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
36958         all the .c and .h parts of (the new) regex.
36959         Quote the m4 stuff better.
36960         Check for RE_ICASE bug of old gnulib.
36961         Check for REG_STARTEND of recent libc.
36962         Rename local variables from jm_* to gl_*.
36963         Quote operand of "test -f".
36964         Say "recent enough" version of libc, not "version 2".
36965         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
36966         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
36967         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
36968         Remove check for btowc, isascii.
36969         Require AM_LANGINFO_CODESET.
36970
36971 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
36972
36973         * lib/regex.c, regex.h: Sync from libc.
36974         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
36975         * lib/regexec.c:
36976         New files, synced from libc, except that regex_internal.h
36977         currently has a small porting fix.
36978
36979 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
36980
36981         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
36982         regex_internal.c, regexec.c.
36983         Add regex_internal.h too, but as a comment, since the libc version
36984         is currently broken in gnulib mode.
36985
36986 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
36987
36988         Support programs like Emacs that use gnulib but not gettext.
36989         * MODULES.html.sh (Internationalization functions): Add gettext-h.
36990         * modules/gettext-h: New file.
36991         * modules/gettext (Files): Remove lib/gettext.h.
36992         (Depends-on): Add gettext-h.
36993         (Makefile.am): Remove lib_SOURCES.
36994         * modules/argmatch, modules/c-stack, modules/closeout:
36995         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
36996         * modules/execute, modules/file-type, modules/getaddrinfo:
36997         * modules/getopt, modules/human, modules/javacomp:
36998         * modules/javaexec, modules/mkdir-p, modules/obstack:
36999         * modules/openat, modules/pagealign_alloc, modules/pipe:
37000         * modules/quotearg, modules/regex, modules/rpmatch:
37001         * modules/unicodeio, modules/userspec, modules/version-etc:
37002         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
37003         * modules/xsetenv:
37004         Depend on gettext-h, not gettext.
37005
37006 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
37007
37008         * gnulib-tool (func_import): Add support for 'public domain' license.
37009         * modules/alloca, modules/atexit, modules/memmove:
37010         Now public domain, not GPL.
37011         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
37012         * modules/realloc, modules/strerror, modules/strtod:
37013         Now LGPL, not GPL.
37014
37015 2005-07-05  Bruno Haible  <bruno@clisp.org>
37016
37017         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
37018         autoconf CVS. Needed for mingw.
37019
37020 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37021
37022         Remove the dependency of the strftime module on the tzset module.
37023         * modules/strftime (Depends-on): Remove dependency on tzset.
37024
37025 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37026
37027         Remove the dependency of the strftime module on the tzset module.
37028         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
37029         gl_FUNC_TZSET_CLOBBER.
37030
37031 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37032
37033         Remove the dependency of the strftime module on the tzset module.
37034         * lib/strftime.c (my_strftime)
37035         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
37036         Copy the input structure, to work around some of the bug with
37037         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
37038         Solaris releases, you should also use the tzset module, but we won't
37039         require it as a dependency any more since we don't want LGPLed code
37040         to depend on GPLed code.
37041
37042 2005-07-02  Jim Meyering  <jim@meyering.net>
37043
37044         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
37045         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
37046         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
37047         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
37048
37049 2005-07-02  Jim Meyering  <jim@meyering.net>
37050
37051         * lib/backupfile.c (backup_args): Change a `0' to NULL.
37052
37053 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
37054
37055         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
37056         declares only 'struct timespec;' (!).
37057
37058 2005-07-01  Jim Meyering  <jim@meyering.net>
37059
37060         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
37061         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
37062         * lib/save-cwd.c, tempname.c:
37063         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
37064         and don't include <sys/file.h>).
37065
37066 2005-06-29  Jim Meyering  <jim@meyering.net>
37067
37068         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
37069         type name.  Use the variable name instead.
37070         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
37071         Likewise.
37072
37073 2005-06-28  Simon Josefsson  <jas@extundo.com>
37074
37075         * modules/check-version (Files): Add check-version.m4.
37076
37077 2005-06-28  Simon Josefsson  <jas@extundo.com>
37078
37079         * m4/check-version.m4: New file, suggested by Jim Meyering
37080         <jim@meyering.net>.
37081
37082 2005-06-28  Simon Josefsson  <jas@extundo.com>
37083
37084         * lib/check-version.h, lib/check-version.c: New files.
37085
37086 2005-06-28  Simon Josefsson  <jas@extundo.com>
37087
37088         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
37089         collision with global variable.  Better indentation.  Don't
37090         increment buffer pointer beyond buffer end.  Based on comments
37091         from Paul Eggert <eggert@cs.ucla.edu>.
37092
37093         * lib/base64.h: Indent.
37094
37095 2005-06-28  Simon Josefsson  <jas@extundo.com>
37096
37097         * doc/gnulib.texi (Library version handling): New section.
37098
37099 2005-06-28  Jim Meyering  <jim@meyering.net>
37100
37101         * check-module (find_included_lib_files): Hard-code another
37102         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
37103         but modules/fts-lgpl (correctly) does not list those files.
37104
37105         * modules/canonicalize (Files): Add lib/pathmax.h.
37106
37107 2005-06-25  Simon Josefsson  <jas@extundo.com>
37108
37109         * modules/check-version: New file.
37110
37111 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
37112
37113         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
37114         initializer of struct addrinfo, as an indication that we don't
37115         care how many members the structure has.
37116
37117 2005-06-24  Derek Price  <derek@ximbiot.com>
37118         and Bruno Haible  <bruno@clisp.org>
37119
37120         Remove stat module & update lstat.
37121         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
37122         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
37123         * m4/stat.m4: Remove this file.
37124
37125 2005-06-24  Derek Price  <derek@ximbiot.com>
37126         and Bruno Haible  <bruno@clisp.org>
37127
37128         Remove stat module & update lstat.
37129         * lib/stat.c: Remove this file...
37130         (slash_aware_lstat): ...moving this content and its support...
37131         * lib/lstat.c (rpl_lstat): ...into here.
37132         * lib/lstat.h: New file.
37133
37134 2005-06-24  Derek Price  <derek@ximbiot.com>
37135         and Bruno Haible  <bruno@clisp.org>
37136
37137         Remove stat module & update lstat.
37138         * config/srclist.txt (libc sources): Remove stat.
37139
37140 2005-06-24  Derek Price  <derek@ximbiot.com>
37141         and Bruno Haible  <bruno@clisp.org>
37142
37143         Remove stat module & update lstat.
37144         * MODULES.html.sh (stat): Remove.
37145         * MODULES.html: Regenerated.
37146         * modules/lstat (Description): Correct function name.
37147         (Files): Add "lstat.h".
37148         (Depends-on): Remove stat, add xalloc, stat-macros.
37149         * modules/stat: Remove this file.
37150         (Include): Add "lstat.h", remove <sys/stat.h>.
37151
37152 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
37153
37154         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
37155         (ranged_convert): Don't save conversion in a temporary struct.
37156         This causes a warning with GCC 4.0.0, and anyway in the typical
37157         case it's not worth the extra 100 bytes or so of code.
37158         (ranged_convert, __mktime_internal): When calling a function via a
37159         pointer P, use P () rather than (*P) (), as we now assume C89 or
37160         better.
37161
37162 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
37163
37164         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
37165         "who -r" failed to give output.  Problem reported by Tim Waugh.
37166
37167         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
37168         (xcalloc): Use it to avoid needless tests.
37169         Problem reported by Jim Meyering.
37170
37171 2005-06-20  Derek Price  <derek@ximbiot.com>
37172
37173         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
37174         unnecessary for Autoconfs > 2.59c.
37175
37176 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
37177
37178         * lib/argp.h (__option_is_short): Check upper limit of
37179         __key. Isprint() requires its argument to have the value
37180         of an unsigned char or EOF.
37181
37182 2005-06-16  Jim Meyering  <jim@meyering.net>
37183
37184         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
37185         when either N or S is zero.
37186
37187 2005-06-16  Derek Price  <derek@ximbiot.com>
37188
37189         * m4/bison.m4: Declare YACC & YFLAGS precious.
37190
37191 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
37192
37193         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
37194         multibyte string or pattern, fall back on unibyte matching.
37195         Problem reported by James Youngman.
37196
37197 2005-06-08  Bruno Haible  <bruno@clisp.org>
37198
37199         * modules/csharpcomp: New file.
37200         * MODULES.html.sh (C#): Add csharpcomp.
37201
37202 2005-06-08  Bruno Haible  <bruno@clisp.org>
37203
37204         * m4/csharpcomp.m4: New file, from GNU gettext.
37205
37206 2005-06-08  Bruno Haible  <bruno@clisp.org>
37207
37208         * lib/csharpcomp.h: New file, from GNU gettext.
37209         * lib/csharpcomp.c: New file, from GNU gettext.
37210         * lib/csharpcomp.sh.in: New file, from GNU gettext.
37211
37212 2005-06-08  Bruno Haible  <bruno@clisp.org>
37213
37214         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
37215         warning on mingw.
37216
37217 2005-06-07  Derek Price  <derek@ximbiot.com>
37218
37219         Sync from CVS.
37220         * lib/glob_.h: Indent nested #ifdef.
37221
37222 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
37223
37224         Sync from coreutils.
37225         Use "file name" when talking about file names, instead of "filename"
37226         or "path", as per the GNU coding standards.
37227         * lib/mkdir-p.c: Renamed from makepath.c.
37228         (make_dir_parents): Renamed from make_path.  All callers changed.
37229         * lib/mkdir-p.h: Likewise.  All includers changed.
37230         * lib/filenamecat.c: Renamed from path-concat.c.
37231         (file_name_concat): Renamed from path_concat.  All callers changed.
37232         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
37233         * lib/filenamecat.h: Likewise.  All includers changed.
37234         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
37235         in comments or local variable names.
37236         * lib/basename.c: Likewise.
37237         * lib/canonicalize.c, canonicalize.h: Likewise.
37238         * lib/dirname.c, dirname.h: Likewise.
37239         * lib/euidaccess.c: Likewise.
37240         * lib/exclude.c: Likewise
37241         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
37242         * lib/fsusage.c, fsuage.h: Likewise.
37243         * lib/fts.c, fts_.h: Likewise.
37244         * lib/getcwd.c: Likewise.
37245         * lib/getloadavg.c: Likewise.
37246         * lib/mkstemp.c: Likewise.
37247         * lib/mountlist.c, mountlist.h: Likewise.
37248         * lib/openat.c, openat.h: Likewise.
37249         * lib/readlink-stub.c: Likewise.
37250         * lib/readutmp.c, readutmp.h: Likewise.
37251         * lib/rename.c: Likewise.
37252         * lib/rmdir.c: Likewise.
37253         * lib/same.c: Likewise.
37254         * lib/savedir.c: Likewise.
37255         * lib/stripslash.c: Likewise.
37256         * lib/tempname.c: Likewise.
37257         * lib/xreadlink.c: Likewise.
37258         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
37259         All uses changed.
37260         * lib/exclude.h: Likewise.
37261
37262         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
37263         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
37264         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
37265         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
37266         * lib/pathmax.h: Include <limits.h> unconditionally, since other
37267         files have been getting away with it for years (MORE/BSD 4.3
37268         is extinct now).
37269         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
37270         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
37271
37272         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
37273         Define to 256, not 255, as per modern POSIX.
37274
37275 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
37276
37277         Sync from coreutils.
37278         Use "file name" when talking about file names, instead of "filename"
37279         or "path", as per the GNU coding standards.
37280         * MODULES.html.sh: mkdir-p renamed from makepath.
37281         filenamecat renamed from path-concat.
37282         * modules/filenamecat: Renamed from modules/path-concat.
37283         (Files): filenamecat.h and filenamecat.c renamed from
37284         path-concat.h and path-concat.c.
37285         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
37286         (Include): filenamecat.h, not path-concat.h.
37287         * modules/mkdir-p: Renamed from modules/makepath.
37288         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
37289         makepath.c.
37290         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
37291         (Include): mkdir-p.h, not makepath.h.
37292
37293 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
37294
37295         Sync from coreutils.
37296         * m4/mkdir-p.m4: Renamed from makepath.m4.
37297         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
37298         Rename files from makepath.c to mkdir-p.c, and from
37299         makepath.h to mkdir-p.h.
37300         * m4/filenamecat.m4: Renamed from path-concat.m4.
37301         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
37302         Rename files from path-concat.c to filenamecat.c,
37303         and from path-concat.h to filenamecat.h.
37304         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
37305         "file name" in local variables or comments.
37306         * m4/rename.m4: Likewise.
37307
37308 2005-06-01  Bruno Haible  <bruno@clisp.org>
37309
37310         * modules/csharpexec: New file.
37311         * MODULES.html.sh (C#): New section.
37312
37313 2005-06-01  Bruno Haible  <bruno@clisp.org>
37314
37315         * m4/csharp.m4: New file, from GNU gettext.
37316         * m4/csharpexec.m4: New file, from GNU gettext.
37317
37318 2005-06-01  Bruno Haible  <bruno@clisp.org>
37319
37320         * lib/csharpexec.h: New file, from GNU gettext.
37321         * lib/csharpexec.c: New file, from GNU gettext.
37322         * lib/csharpexec.sh.in: New file, from GNU gettext.
37323
37324 2005-05-31  Derek Price  <derek@ximbiot.com>
37325             Paul Eggert  <eggert@cs.ucla.edu>
37326
37327         Sync from cvs.
37328         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
37329
37330 2005-05-31  Derek Price  <derek@ximbiot.com>
37331             Paul Eggert  <eggert@cs.ucla.edu>
37332
37333         Sync from cvs.
37334         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
37335
37336 2005-05-29  Derek Price  <derek@ximbiot.com>
37337
37338         * config/srclist.txt (glob_.h, glob.c): Add these files.
37339
37340 2005-05-29  Derek Price  <derek@ximbiot.com>
37341
37342         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
37343         * modules/glob: New file.
37344         * modules/getlogin_r: Add link to POSIX spec in description.
37345
37346 2005-05-29  Derek Price  <derek@ximbiot.com>
37347             Paul Eggert  <eggert@cs.ucla.edu>
37348
37349         * m4/glob.m4: New file.
37350
37351 2005-05-29  Derek Price  <derek@ximbiot.com>
37352             Paul Eggert  <eggert@cs.ucla.edu>
37353
37354         * lib/glob_.h, lib/glob.c: New files.
37355
37356 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
37357
37358         * modules/fts (Files): Remove m4/inttypes-pri.m4.
37359         * modules/fts-lgpl (Depends-on): Remove gettext.
37360
37361 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
37362
37363         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
37364         and don't require gt_INTTYPES_PRI.
37365
37366 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
37367
37368         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
37369
37370         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
37371         the configuration hassle isn't worth it.
37372         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
37373         (LONGEST_MODIFIER, PRIuMAX): Remove.
37374
37375 2005-05-27  Bruno Haible  <bruno@clisp.org>
37376
37377         * lib/getlogin_r.h: Remove second include of <stddef.h>.
37378
37379 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
37380
37381         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
37382         _POSIX_PTHREAD_SEMANTICS for Solaris.
37383
37384 2005-05-25  Derek Price  <derek@ximbiot.com>
37385
37386         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
37387
37388 2005-05-25  Derek Price  <derek@ximbiot.com>
37389             Paul Eggert  <eggert@cs.ucla.edu>
37390
37391         * modules/getlogin_r, m4/getlogin_r.m4: New files.
37392         * lib/getlogin_r.c, getlogin_r.h: New files.
37393
37394 2005-05-25  Bruno Haible  <bruno@clisp.org>
37395             Derek Price  <derek@ximbiot.com>
37396
37397         * lib/getlogin_r.h: Simplify API documentation.
37398
37399 2005-05-23  Derek Price  <derek@ximbiot.com>
37400
37401         * modules/minmax (Files): Add m4/minmax.m4.
37402         (configure.ac): Add gl_MINMAX.
37403
37404 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
37405
37406         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
37407         so that unistd-safer.h (GPL'ed code) need not be included.
37408
37409 2005-05-22  Bruno Haible  <bruno@clisp.org>
37410
37411         * m4/minmax.m4: New file.
37412         Based on a patch by Derek Price <derek@ximbiot.com>.
37413
37414 2005-05-22  Bruno Haible  <bruno@clisp.org>
37415
37416         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
37417         (INT64_MIN): Fix definition.
37418         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
37419
37420         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
37421         NEED_SIGNED_INT_TYPES.
37422
37423         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
37424         HAVE_SYSTEM_INTTYPES.
37425
37426 2005-05-22  Bruno Haible  <bruno@clisp.org>
37427
37428         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
37429         Also include <sys/param.h> if it defines MIN, MAX.
37430         Based on a patch by Derek Price <derek@ximbiot.com>.
37431
37432 2005-05-21  Jim Meyering  <jim@meyering.net>
37433
37434         * modules/fts (Files): Add m4/inttypes-pri.m4.
37435         (Depends-on): Add lstat and remove gettext.  Alphabetize.
37436
37437 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
37438
37439         New fts module.
37440         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
37441         (setup_dir, free_dir): New functions.
37442         (enter_dir, leave_dir): Define trivial
37443         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
37444         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
37445         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
37446         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
37447         Move to fts-cycle.c.
37448         (fts_open): Use setup_dir.
37449         (fts_close): Use free_dir.
37450         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
37451         This adds a label and some gotos, but the alternatives were messier.
37452         Check for memory allocation failure when entering a dir.
37453         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
37454         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
37455         (FTS): New member fts_cycle, that is a union that contains the
37456         old active_dir_ht and cycle_state.  All uses changed to mention
37457         fts_cycle.ht and fts_cycle.state.
37458         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
37459         fts.c, with the following changes:
37460         (setup_dir, free_dir): New functions.
37461         (enter_dir): Now returns bool.  Return true if successful, false
37462         if memory exhausted.  All callers changed.
37463         Do not bother partly cleaning up on
37464         memory allocation failure; that is free_dir's job.
37465         However, free ad if hash_insert fails, to avoid memory leak.
37466         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
37467         fts->fts_options to see which union member to use.
37468
37469 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
37470
37471         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
37472         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
37473
37474 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
37475
37476         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
37477
37478 2005-05-20  Jim Meyering  <jim@meyering.net>
37479
37480         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
37481         Now a macro, to pacify GCC.
37482
37483 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
37484
37485         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
37486         of -1.
37487
37488 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
37489
37490         * lib/chown.c (rpl_chown): Return -1 on failure.
37491
37492 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
37493
37494         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
37495         Don't check for stddef.h.
37496         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
37497         don't use its results.
37498         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
37499         since we include them unconditionally.  Don't require
37500         AM_STDBOOL_H, since stdbool is a prerequisite.
37501         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
37502         since we assume C89 or better.
37503         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
37504         as we don't use their results.
37505         Don't check for fchdir, memmove, memset, strrchr, as we use
37506         them unconditionally.
37507         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
37508         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
37509
37510 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
37511
37512         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
37513         Include <stddef.h> unconditionally, since we assume C89 now.
37514         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
37515         * lib/fts.c: Include fts_.h first, to check interface.
37516         Do not include intprops.h; no longer needed.
37517         Include cycle-check.h and hash.h, since fts_.h no longer does.
37518         Remove unnecessary casts of closedir to void.
37519         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
37520         decide whether to decrement nlinks.
37521         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
37522         (FTS): Use struct hash_table * instead of Hash_table, so that
37523         we no longer need to include hash.h here.
37524
37525 2005-05-18  Jim Meyering  <jim@meyering.net>
37526
37527         * modules/dirfd (License): Change to LGPL.  Most of the code
37528         is already in the public domain.
37529
37530 2005-05-18  Jim Meyering  <jim@meyering.net>
37531
37532         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
37533         Reported by Yoann Vandoorselaere.
37534
37535 2005-05-17  Jim Meyering  <jim@meyering.net>
37536
37537         * m4/fts.m4: New file, from coreutils.
37538
37539 2005-05-17  Jim Meyering  <jim@meyering.net>
37540
37541         * lib/fts.c, lib/fts_.h: New files, from coreutils.
37542
37543 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
37544
37545         Sync from coreutils.
37546         * m4/unlinkdir.m4: New file.
37547
37548 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
37549
37550         Sync from coreutils.
37551         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
37552         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
37553         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
37554         White space changes only.
37555         * lib/makepath.c (make_path): Port to hosts where leading "//" is
37556         special.
37557         * lib/yesno.c: Include getline.h, not ctype.h.
37558         (yesno): Don't remove leading white space; POSIX doesn't allow it.
37559         Use getline to remove arbitrary restriction on response length.
37560
37561 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
37562
37563         * config/srclist-update: Spell out "Street" in FSF postal
37564         mail address; this is the style the FSF seems to prefer.
37565
37566         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
37567         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
37568         this updates FSF postal mail address.
37569
37570         Sync from coreutils.
37571         * modules/unlinkdir: New file.
37572         * modules/yesno (Depends-on): Add getline.
37573         * MODULES.html.sh (File system functions): Add unlinkdir.
37574
37575 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
37576
37577         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
37578         lib/strsep.h:
37579         Change the initial comment to refer to GPL, not LGPL.
37580         gnulib-tool will change it to LGPL as needed.
37581
37582         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
37583         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
37584         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
37585         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
37586         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
37587         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
37588         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
37589         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
37590         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
37591         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
37592         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
37593         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
37594         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
37595         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
37596         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
37597         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
37598         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
37599         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
37600         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
37601         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
37602         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
37603         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
37604         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
37605         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
37606         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
37607         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
37608         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
37609         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
37610         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
37611         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
37612         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
37613         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
37614         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
37615         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
37616         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
37617         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
37618         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
37619         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
37620         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
37621         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
37622         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
37623         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
37624         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
37625         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
37626         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
37627         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
37628         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
37629         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
37630         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
37631         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
37632         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
37633         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
37634         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
37635         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
37636         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
37637         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
37638         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
37639         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
37640         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
37641         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
37642         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
37643         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
37644         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
37645         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
37646         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
37647         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
37648         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
37649         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
37650         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
37651         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
37652         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
37653         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
37654         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
37655         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
37656         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
37657         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
37658         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
37659         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
37660         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
37661         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
37662         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
37663         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
37664         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
37665         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
37666         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
37667         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
37668         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
37669         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
37670         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
37671         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
37672         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
37673         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
37674         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
37675         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
37676         lib/yesno.c, lib/yesno.h:
37677         Update FSF postal mail address.
37678
37679 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
37680
37681         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
37682         tests/test-memmem.c, tests/test-stpncpy.c:
37683         Update FSF postal mail address.
37684
37685 2005-05-13  Bruno Haible  <bruno@clisp.org>
37686
37687         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
37688         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
37689         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
37690         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
37691         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
37692         Add support for 64-bit integers in the MSVC compiler.
37693
37694 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
37695
37696         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
37697
37698 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
37699
37700         * gnulib-tool (func_import): Sort and uniquify recommended includes.
37701
37702 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
37703
37704         * doc/getdate.texi (General date syntax): Don't say that date
37705         date --iso-8601=ns generates acceptable dates; it doesn't yet.
37706         Problem reported by Nic Ferrier.
37707
37708 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37709
37710         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
37711         specified in ai_socktype. Fix invalid ai_protocol
37712         check. ai_protocol is usually set to 0 or depending on
37713         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
37714         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
37715         ai_socktype / ai_protocol in the returned addrinfo structure.
37716
37717 2005-05-10  Simon Josefsson  <jas@extundo.com>
37718
37719         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
37720         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37721
37722 2005-05-10  Karl Berry  <karl@gnu.org>
37723
37724         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
37725         (from http://www.gnu.org/licenses).
37726         * doc/COPYING.LIB: also rename to COPYING.LESSER.
37727         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
37728         fdl.texi suffices.
37729
37730 2005-05-10  Karl Berry  <karl@gnu.org>
37731
37732         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
37733         (COPYING.DOC): remove.
37734
37735         * config/srclist-update: new FSF address.
37736
37737 2005-05-10  Derek Price  <derek@ximbiot.com>
37738
37739         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
37740         possible.
37741
37742 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37743             Bruno Haible  <bruno@clisp.org>
37744
37745         * modules/inet_ntop: New file.
37746         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37747         inet_ntop.
37748
37749 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37750             Bruno Haible  <bruno@clisp.org>
37751
37752         * m4/inet_ntop.m4: New file.
37753
37754 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37755             Bruno Haible  <bruno@clisp.org>
37756
37757         * lib/inet_ntop.h: New file.
37758         * lib/inet_ntop.c: New file, from glibc with modifications.
37759
37760 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
37761
37762         * modules/time_r (License): Change to LGPL.
37763         * modules/extensions (License): Change to LGPL.  Actually,
37764         the license is more permissive than that, but currently gnulib-tool
37765         doesn't know how to handle more-permissive licenses.
37766
37767         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
37768         Problem reported by Dave Love.
37769
37770 2005-05-08  Jim Meyering  <jim@meyering.net>
37771
37772         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
37773         blank.
37774
37775 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
37776
37777         * modules/argmatch (Depends-on): Add stdbool.
37778         * modules/backupfile (Depends-on): Likewise.
37779         * modules/chdir-long (Depends-on): Likewise.
37780         * modules/closeout (Depends-on): Likewise.
37781         * modules/cycle-check (Depends-on): Likewise.
37782         * modules/dirname (Depends-on): Likewise.
37783         * modules/fnmatch (Depends-on): Likewise.
37784         * modules/fsusage (Depends-on): Likewise.
37785         * modules/fwriteerror (Depends-on): Likewise.
37786         * modules/getcwd (Depends-on): Likewise.
37787         * modules/getloadavg (Depends-on): Likewise.
37788         * modules/hard-locale (Depends-on): Likewise.
37789         * modules/makepath (Depends-on): Likewise.
37790         * modules/mountlist (Depends-on): Likewise.
37791         * modules/nanosleep (Depends-on): Likewise.
37792         * modules/posixtm (Depends-on): Likewise.
37793         * modules/quotearg (Depends-on): Likewise.
37794         * modules/readtokens (Depends-on): Likewise.
37795         * modules/readtokens0 (Depends-on): Likewise.
37796         * modules/readutmp (Depends-on): Likewise.
37797         * modules/save-cwd (Depends-on): Likewise.
37798         * modules/strftime (Depends-on): Likewise.
37799         * modules/userspec (Depends-on): Likewise.
37800         * modules/utimecmp (Depends-on): Likewise.
37801         * modules/xgetcwd (Depends-on): Likewise.
37802         * modules/xnanosleep (Depends-on): Likewise.
37803         * modules/xstrtod (Depends-on): Likewise.
37804         * modules/yesno (Depends-on): Likewise.
37805
37806 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
37807
37808         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
37809         needless checks.
37810
37811 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
37812
37813         Merge from coreutils.  Among other things,
37814         add bulletproofing for cases where stdin, stdout, or stderr are closed.
37815         * lib/fd-safer.c: New file.
37816         * lib/fcntl-safer.h, open-safer.c: Remove.
37817         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
37818         * lib/dup-safer.c: Include unistd-safer.h first.
37819         Don't include errno.h.
37820         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
37821         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
37822         * lib/file-type.c: Rely on file-type.h change.
37823         * lib/getloadavg.c: Include unistd-safer.h.
37824         (getloadavg): Use safer open.
37825         * lib/getusershell.c: Include "stdio-safer.h".
37826         (getusershell): Use safer fopen.
37827         * lib/long-options.c (long_options): Use NULL rather than 0.
37828         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
37829         'free'.
37830         * lib/modechange.c: Likewise.
37831         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
37832         (MODE_DONE): New constant.
37833         (struct mode_change): Remove 'next' member.
37834         (make_node_op_equals): New function; like the old one of the
37835         same name, except it allocates an array.
37836         (mode_compile, mode_create_from_ref): Use it.
37837         (mode_compile): Allocate result as an array, not a linked list.
37838         Parse octal string ourself, so that we catch mistakes like "+0".
37839         (mode_adjust): Arg is an array, not a linked list.
37840         * lib/modechange.c: Include stat-macros.h, xalloc.h.
37841         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
37842         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
37843         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
37844         Remove.  This is now stat-macros.h's job.
37845         (talloc): Remove.  All callers replaced by xalloc, so that
37846         our invokers don't have to worry about reporting memory failures.
37847         (make_node_op_equals): Remove.
37848         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
37849         New constants.
37850         (struct mode_change): Moved here from modechange.h.
37851         (mode_append_entry): Remove.
37852         (mode_compile): Remove MASKED_OPS arg, since it encouraged
37853         apps to have incorrect behavior.  Use simpler algorithm for head
37854         and tail.  Don't futz with umask; that's now the job of mode_adjust.
37855         Detect more invalid usages rather than having somewhat-random behavior.
37856         Don't insert an "a=" action, as that leads to incorrect behavior.
37857         (mode_compile, mode_create_from_ref): Return NULL on error instead
37858         of an enum, since now there's only one way to have an error.  All
37859         callers changed.
37860         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
37861         at the correct time.  Simplify calculation of "+u" and its ilk.
37862         Don't mishandle "+X".
37863         (mode_free): Remove "register" and localize decls.
37864         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
37865         (struct mode_change): Move to modechange.c; callers don't
37866         need to see this stuff.
37867         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
37868         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
37869         (mode_change, mode_adjust): Reflect the new signatures noted above.
37870         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
37871         that might redefine system include files.
37872         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
37873         (my_usleep): Use NULL rather than (void *) 0.
37874         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
37875         Use siginterrupt to specify that system calls should be interrupted.
37876         (rpl_nanosleep): Move initialization of suspended closer to call of
37877         my_usleep.
37878         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
37879         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
37880         (desirable_utmp_entry): New function.
37881         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
37882         using x2nrealloc, to simplify logic.
37883         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
37884         size calculation.  Do not assume utmp file is a regular file.
37885         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
37886         (READ_UTMP_CHECK_PIDS): New constant.
37887         * lib/save-cwd.c: Include unistd-safer.h.
37888         (save_cwd): Use fd_safer.
37889         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
37890         [!_LIBC] Include "stat-macros.h" instead.
37891         * lib/unistd-safer.h (fd_safer): New decl.
37892
37893 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
37894
37895         * modules/getloadavg (Depends-on): Add unistd-safer.
37896         * modules/getusershell (Depends-on): Add stdio-safer.
37897         * modules/lstat (Depends-on): Remove xalloc.
37898         * modules/mkstemp (Depends-on): Add stat-macros.
37899         * modules/modechange (Depends-on): Remove xstrtol.
37900         Add stat-macros, xalloc.
37901         * modules/save-cwd (Depends-on): Add unistd-safer.
37902         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
37903         * modules/unistd-safer (Files): Add lib/fd-safer.c
37904         (Makefile.am): Remove lib_SOURCES.
37905
37906         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
37907         Remove fcntl-safer; unistd-safer supersedes it.
37908
37909 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
37910
37911         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
37912         AC_HEADER_STAT.
37913         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
37914         (gl_PREREQ_CHOWN): Remove.
37915         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
37916         it.  Don't require AC_HEADER_STAT.
37917         (gl_PREREQ_LSTAT): Remove.
37918         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
37919         Don't require AC_HEADER_STAT.
37920         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
37921         (gl_PREREQ_RMDIR): Remove.
37922         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
37923         mention stat-macros.h or AC_HEADER_STAT, since we'll make
37924         the stat-macros module a prerequisite.
37925         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
37926         * m4/filemode.m4 (gl_FILEMODE): Likewise.
37927         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
37928         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
37929         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
37930         variable names.
37931         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
37932         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
37933         variable prefixes.
37934         * m4/fcntl-safer.m4: Remove.
37935         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
37936         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
37937         Invoke gl_PREREQ_FD_SAFER.
37938         (gl_PREREQ_FD_SAFER): New macro.
37939         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
37940         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
37941         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
37942         Remove duplicate call to AC_LIBOBJ(readutmp).
37943         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
37944
37945         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
37946         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
37947
37948 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
37949
37950         * MODULES.html.sh (Misc): Add byteswap.
37951
37952 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
37953
37954         * modules/getcwd (Depends-on): Add extensions.
37955         * modules/openat (Depends-on): Likewise.
37956
37957 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
37958
37959         * modules/byteswap: New file.
37960
37961 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
37962
37963         * m4/byteswap.m4: New file.
37964
37965 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
37966
37967         * lib/byteswap_.h: New file.
37968
37969 2005-04-25  Karl Berry  <karl@gnu.org>
37970
37971         * m4/gettext.m4: Update from GNU gettext 0.14.4.
37972
37973 2005-04-25  Albert Chin  <china@thewrittenword.com>
37974
37975         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
37976         Toolkit C bug.
37977
37978 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
37979
37980         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
37981         (func_ln_if_changed) Remove forcibly for no error message
37982         in case file does not exist.
37983
37984 2005-04-19  Simon Josefsson  <jas@extundo.com>
37985
37986         * gnulib-tool (Options): Make --symlink mean --symbolic.
37987
37988 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
37989
37990         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
37991
37992 2005-04-16  Simon Josefsson  <jas@extundo.com>
37993
37994         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
37995
37996 2005-04-15  Simon Josefsson  <jas@extundo.com>
37997
37998         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
37999
38000 2005-04-15  Simon Josefsson  <jas@extundo.com>
38001
38002         * gnulib-tool: Rename --symlink to --symbolic.
38003
38004 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
38005
38006         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
38007         symbolic links to files instead of copying/moving.  Add --aux-dir,
38008         specifying directory relative --dir where auxiliary build tools
38009         are placed.
38010
38011 2005-04-14  Bruno Haible  <bruno@clisp.org>
38012
38013         * modules/allocsa (License): Change to LGPL.
38014         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38015
38016 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
38017
38018         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
38019         that "UTC +1 second" continues to work.  Problem reported
38020         by Dmitry V. Levin.
38021         (relunit_snumber): New rule.
38022         (relunit): Use it.
38023
38024 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
38025
38026         * lib/getdate.y (universal_time_zone_table): New constant.
38027         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
38028         universal_time_zone_table.
38029         (lookup_zone): Prefer universal_time_zone_table to
38030         local_time_zone_table, so that "GMT" time stamps are allowed in
38031         London during the summer.  Problem reported by Ian Abbott.
38032
38033 2005-04-12  Jim Meyering  <jim@meyering.net>
38034
38035         * lib/human.c (humblock): Set *options even when returning due to
38036         xstrtoumax conversion failure.  Thanks to a used-uninitialized
38037         warning from gcc-4.
38038
38039 2005-04-09  Jim Meyering  <jim@meyering.net>
38040
38041         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
38042         -Wuninitialized: initialize tm0.tm_year.
38043
38044 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
38045
38046         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
38047         count, since there's no maximum.  All uses changed.
38048         Add member dsts_seen.
38049         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
38050         not being INT_MAX.
38051         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
38052         Use pc_rels_seen to decide whther a date is absolute.
38053
38054         * lib/getdate.y (number): Don't overwrite year.
38055         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
38056         check.
38057
38058 2005-04-02  Simon Josefsson  <jas@extundo.com>
38059
38060         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
38061         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
38062
38063 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
38064
38065         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
38066         where no absolute path name can be longer than PATH_MAX.
38067
38068 2005-03-27  Jim Meyering  <jim@meyering.net>
38069
38070         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
38071
38072 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
38073
38074         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
38075         "one's complement" -> "ones' complement" in comment, as per Knuth.
38076         "value of type" -> "type or expression" in comment.
38077         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
38078
38079 2005-03-26  Jim Meyering  <jim@meyering.net>
38080
38081         Comment nits.
38082         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
38083         Correct typos: s/or/of/.
38084
38085 2005-03-26  Jim Meyering  <jim@meyering.net>
38086
38087         * modules/check-include-files: Move to ../ and rename to...
38088         * check-module: ...this.
38089
38090 2005-03-25  Jim Meyering  <jim@meyering.net>
38091
38092         * modules/xvasprintf (Files): Add xalloc.h.
38093
38094 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
38095
38096         * modules/gettext (Files): config/config.rpath ->
38097         build-aux/config.rpath
38098         * modules/iconv (Files): Likewise.
38099         Problem reported by Oskar Liljeblad.
38100
38101 2005-03-23  Jim Meyering  <jim@meyering.net>
38102
38103         * modules/check-include-files: New script to check for
38104         missing dependencies, multiple includes, etc.
38105
38106         * modules/c-strtold (Depends-on): Add xalloc.
38107         * modules/c-strtod (Depends-on): Add xalloc.
38108         * modules/hash (Depends-on): Add xalloc.
38109         (Files): Remove lib/xalloc.h.
38110
38111         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
38112         * modules/userspec (Files): Add lib/inttostr.h.
38113
38114 2005-03-23  Jim Meyering  <jim@meyering.net>
38115
38116         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
38117
38118 2005-03-22  Jim Meyering  <jim@meyering.net>
38119
38120         * modules/stat-macros: New module.
38121         * modules/canonicalize, modules/euidaccess, modules/file-type,
38122         * modules/filemode, modules/lchown, modules/makepath,
38123         * modules/rmdir, modules/stat: Depend on new stat-macros module
38124         rather than listing lib/stat-macros.h manually.
38125         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
38126
38127 2005-03-22  Jim Meyering  <jim@meyering.net>
38128
38129         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
38130
38131 2005-03-22  Bruno Haible  <bruno@clisp.org>
38132
38133         * config/srclist.txt: Replace target directory 'config' with
38134         'build-aux'.
38135         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
38136         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
38137         ../build-aux/.
38138
38139 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
38140
38141         * modules/chdir-long (Depends-on): Add mempcpy.
38142
38143         * modules/acl, modules/backupfile, modules/c-strtod,
38144         modules/c-strtold, modules/canon-host, modules/canonicalize,
38145         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
38146         modules/exclude, modules/exitfail, modules/file-type,
38147         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
38148         modules/getdate, modules/getline, modules/getpagesize,
38149         modules/getpass, modules/getugroups, modules/group-member,
38150         modules/hard-locale, modules/hash, modules/human, modules/idcache,
38151         modules/inttostr, modules/long-options, modules/makepath,
38152         modules/md5, modules/memcasecmp, modules/memcoll,
38153         modules/modechange, modules/mountlist, modules/path-concat,
38154         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
38155         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
38156         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
38157         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
38158         modules/strftime, modules/strndup, modules/strverscmp,
38159         modules/timespec, modules/unlocked-io, modules/userspec,
38160         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
38161         modules/yesno:
38162         Remove lib_SOURCES line from Makefile.am section, as this is now
38163         done automatically by the corresponding Autoconf macro.
38164
38165 2005-03-21  Jim Meyering  <jim@meyering.net>
38166
38167         Changes imported from coreutils.
38168
38169         * lib/cycle-check.c: Don't include xalloc.h.
38170
38171         * lib/path-concat.c: Don't include assert.h.
38172         (path_concat): Remove assertion that would have triggered
38173         for ABASE starting with more than one slash.
38174         Reported by Andreas Schwab.
38175
38176         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
38177         properly when ABASE is an absolute file name.
38178         Correct the description of this function.
38179         Include <assert.h>.
38180         Add an assertion and a test driver.
38181         This fixes a bug introduced on 2004-07-02.
38182         Andreas Schwab reported the resulting failure of cp --parents:
38183         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
38184
38185 2005-03-21  Jim Meyering  <jim@meyering.net>
38186
38187         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
38188         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
38189
38190 2005-03-21  Jim Meyering  <jim@meyering.net>
38191         and  Paul Eggert  <eggert@cs.ucla.edu>
38192
38193         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
38194         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
38195         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
38196         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
38197         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
38198         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
38199         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
38200         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
38201         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
38202         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
38203         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
38204         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
38205         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
38206         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
38207         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
38208         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
38209         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
38210         for these modules.
38211
38212 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
38213
38214         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
38215         (which shouldn't happen), generate nothing instead of returning 0
38216         immediately, so that nstrftime (NULL, ...) doesn't return 0.
38217
38218 2005-03-16  Bruno Haible  <bruno@clisp.org>
38219
38220         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
38221         HAVE_LONGLONG_64BIT.
38222
38223 2005-03-16  Bruno Haible  <bruno@clisp.org>
38224
38225         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
38226         HAVE_LONGLONG_64BIT.
38227
38228 2005-03-16  Bruno Haible  <bruno@clisp.org>
38229
38230         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
38231         HAVE_LONGLONG_64BIT.
38232
38233 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
38234
38235         * lib/strftime.c (my_strftime): Prepend space to format so that we can
38236         reliably distinguish strftime failure from empty output on POSIX
38237         hosts.
38238
38239 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
38240
38241         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
38242         (iconv_string): Don't guess a size-zero buffer, as that might cause
38243         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
38244         result would be 'too large', where 'too large' is (heuristically)
38245         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
38246         overflow concerns.  This will prevent some unwanted malloc failures
38247         when the inputs are very large.
38248
38249 2005-03-15  Karl Berry  <karl@gnu.org>
38250
38251         * config/srclist.txt (config.rpath): from gettext.
38252         * config/config.rpath: update.
38253
38254 2005-03-15  Bruno Haible  <bruno@clisp.org>
38255
38256         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
38257         to 'negate'.
38258
38259         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
38260         variable.
38261
38262         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
38263         results.
38264
38265 2005-03-14  Simon Josefsson  <jas@extundo.com>
38266
38267         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
38268         <fx@gnu.org>.
38269
38270 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
38271
38272         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
38273         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
38274         intprops.h.
38275         * lib/strtol.c: Likewise.
38276
38277 2005-03-14  Jim Meyering  <jim@meyering.net>
38278
38279         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
38280         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
38281         to be nonzero so that we (and caller) can detect the difference
38282         between a valid zero-length expansion and an error return, even
38283         when the underlying strftime fails before writing anything into
38284         that location.
38285
38286 2005-03-14  Bruno Haible  <bruno@clisp.org>
38287
38288         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
38289         Update from GNU gettext 0.14.3.
38290
38291 2005-03-10  Jim Meyering  <jim@meyering.net>
38292
38293         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
38294
38295 2005-03-10  Jim Meyering  <jim@meyering.net>
38296
38297         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
38298         so that this module works on systems without fchdir.
38299
38300 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
38301
38302         Factor int-properties macros into a single file, except for
38303         glibc-related files.
38304         * lib/intprops.h: New file.
38305         * lib/getloadavg.c: Include it instead of limits.h.
38306         (INT_STRLEN_BOUND): Remove.
38307         * lib/human.c: Include intprops.h.
38308         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
38309         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
38310         302/1000.
38311         * lib/inttostr.h: Include intprops.h instead of limits.h.
38312         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
38313         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
38314         for consistency with intprops.h.
38315         (time_t_is_integer, twos_complement_arithmetic): Use them.
38316         * lib/sig2str.h: Include <signal.h>, intprops.h.
38317         (INT_STRLEN_BOUND): Remove.
38318         * lib/strftime.c (TYPE_SIGNED): Remove.
38319         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
38320         * lib/strtol.c: Adjust comments to match intprops.h.
38321         * lib/userspec.c: Include intprops.h.
38322         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
38323         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
38324         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
38325         instead of rolling our own expressions.
38326         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
38327
38328         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
38329         instead of int.
38330         (my_strftime): Do not mishandle years close to INT_MAX, by doing
38331         the right thing even if adding 1900 would overflow.  Similarly
38332         for tm_mon + 1 and tm_yday + 1.
38333         Make %Y always equivalent to %C%y, and similarly for %G and %g.
38334         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
38335         (DO_SIGNED_NUMBER): New macro.
38336         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
38337
38338 2005-03-07  Bruno Haible  <bruno@clisp.org>
38339
38340         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
38341
38342 2005-03-07  Bruno Haible  <bruno@clisp.org>
38343
38344         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
38345
38346 2005-03-04  Derek R. Price  <derek@ximbiot.com>
38347
38348         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
38349         (func_import): Only replace files via --import when they have actually
38350         changed.
38351
38352 2005-03-03  Derek R. Price  <derek@ximbiot.com>
38353
38354         * m4/mmap-anon.m4: New file.
38355         * m4/pagealign_alloc.m4: New file.
38356
38357 2005-03-03  Derek R. Price  <derek@ximbiot.com>
38358             Bruno Haible  <bruno@clisp.org>
38359
38360         * modules/pagealign_alloc: New file.
38361         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
38362
38363 2005-03-03  Derek R. Price  <derek@ximbiot.com>
38364             Bruno Haible  <bruno@clisp.org>
38365
38366         * lib/pagealign_alloc.h: New file.
38367         * lib/pagealign_alloc.c: New file.
38368
38369 2005-03-03  Bruno Haible  <bruno@clisp.org>
38370
38371         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
38372         Use an all-permissive copyright notice, recommended by RMS.
38373
38374 2005-03-02  Bruno Haible  <bruno@clisp.org>
38375
38376         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
38377         of AIX, the replacement has to be done only after <string.h> is
38378         included, therefore not in config.h. stpncpy.h does the replacement,
38379         and stpncpy.c uses it.
38380
38381 2005-03-02  Bruno Haible  <bruno@clisp.org>
38382
38383         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
38384         stpncpy.c uses it.
38385
38386 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38387
38388         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
38389         The workaround isn't strictly needed for POSIX conformance, and
38390         it's too much of a pain to configure and maintain.  We'll ask
38391         people to fix their kernels instead.
38392         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
38393         (NANOSLEEP_BUG_WORKAROUND): Remove.
38394         (xnanosleep): Remove the workaround.
38395
38396 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38397
38398         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
38399         Reported by Derek Price.
38400         (Include): Add "timespec.h".
38401
38402         * modules/xnanosleep (Depends-on): Remove gethrxtime.
38403
38404 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38405
38406         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
38407         to detect nanosleep bug.
38408
38409 2005-03-01  Bruno Haible  <bruno@clisp.org>
38410
38411         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
38412
38413 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
38414
38415         * modules/gethrxtime: New file.
38416         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
38417         (Depends-on): Add gethrxtime.
38418         (configure.ac): Add gl_XNANOSLEEP.
38419         (Makefile.am): Remove lib_SOURCES line.
38420
38421 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
38422
38423         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
38424         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
38425
38426 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
38427
38428         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
38429         * lib/timespec.h (gettime): Return void, since it always
38430         succeeds now.  All uses changed.
38431         * lib/gettime.c (gettime) Likewise.
38432         [HAVE_NANOTIME]: Prefer nanotime.
38433         Assume gettimeofday succeeds, as POSIX requires.
38434         Assime time () succeeds, since other code already does.
38435         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
38436         (timespec_subtract): Remove.
38437         (NANOSLEEP_BUG_WORKAROUND): New constant.
38438         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
38439         things considerably.  Use it only on GNU/Linux hosts, since the
38440         workaround shouldn't be needed elsewhere.
38441
38442 2005-02-24  Bruno Haible  <bruno@clisp.org>
38443
38444         * modules/gettext (Files): Add m4/glibc2.m4.
38445
38446 2005-02-24  Bruno Haible  <bruno@clisp.org>
38447
38448         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
38449         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
38450         * m4/progtest.m4:
38451         Update from GNU gettext 0.14.2.
38452         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
38453
38454 2005-02-24  Bruno Haible  <bruno@clisp.org>
38455
38456         * lib/localcharset.c: Update from GNU gettext 0.14.2.
38457         * lib/config.charset: Update from GNU gettext 0.14.2.
38458
38459 2005-02-24  Bruno Haible  <bruno@clisp.org>
38460
38461         * lib/gettext.h: Update from GNU gettext 0.14.2.
38462
38463 2005-02-23  Simon Josefsson  <jas@extundo.com>
38464
38465         * m4/iconvme.m4: New file.
38466
38467 2005-02-23  Jim Meyering  <jim@meyering.net>
38468
38469         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
38470         change.
38471         Thanks to Bruno Haible for catching it.
38472
38473 2005-02-22  Simon Josefsson  <jas@extundo.com>
38474
38475         * modules/iconvme: New file.
38476
38477         * MODULES.html.sh: Add iconvme.
38478
38479 2005-02-22  Simon Josefsson  <jas@extundo.com>
38480
38481         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
38482
38483 2005-02-22  Simon Josefsson  <jas@extundo.com>
38484
38485         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
38486
38487 2005-02-22  Jim Meyering  <jim@meyering.net>
38488
38489         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
38490         s/ifndef/ifdef/.
38491
38492 2005-02-20  Neil Conway  <neilc@samurai.com>
38493
38494         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
38495         returned by OSX/Darwin if the specified buffer is not large
38496         enough for the hostname.
38497
38498 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38499
38500         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
38501         pass it to _help, otherwise the latter coredumps trying to
38502         dereference state.root_argp.
38503
38504 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
38505
38506         * modules/chdir-long (Depends-on): Add memrchr.
38507         * modules/memrchr (Files): Add lib/memrchr.h.
38508         (Include): "memrchr.h".
38509
38510 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
38511
38512         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
38513
38514 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
38515
38516         * lib/memrchr.h: New file.
38517         * lib/chdir-long.c: Include it.
38518         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
38519         Don't bother including stddef.h.
38520
38521 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
38522
38523         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
38524         inclusion.
38525         Include <sys/types.h>, for dev_t.
38526         (ME_DUMMY, ME_REMOTE): Move from here....
38527         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
38528         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
38529         Dmitry V. Levin.
38530         Include mountlist.h first, to test the interface.
38531
38532 2005-01-29  Bruno Haible  <bruno@clisp.org>
38533
38534         * lib/progname.c (program_name): Initialize.
38535         Needed when linking statically on MacOS X.
38536
38537 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
38538
38539         Sync from coreutils.
38540         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
38541         (Depends-on): Add c-strtod.
38542         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
38543
38544 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
38545
38546         Sync from coreutils.
38547         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
38548
38549         Remove files that are specific to coreutils.
38550         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
38551
38552 2005-01-28  Bruno Haible  <bruno@clisp.org>
38553
38554         * modules/javacomp: New file.
38555         * MODULES.html.sh (Java): Add javacomp.
38556
38557 2005-01-28  Bruno Haible  <bruno@clisp.org>
38558
38559         * m4/javacomp.m4: New file, from GNU gettext.
38560
38561 2005-01-28  Bruno Haible  <bruno@clisp.org>
38562
38563         * lib/javacomp.sh.in: New file, from GNU gettext.
38564         * lib/javacomp.h: New file, from GNU gettext.
38565         * lib/javacomp.c: New file, from GNU gettext.
38566
38567 2005-01-26  Simon Josefsson  <jas@extundo.com>
38568
38569         * lib/gai_strerror.c: Use GPL in header.
38570
38571 2005-01-26  Bruno Haible  <bruno@clisp.org>
38572
38573         * modules/javaexec: New file.
38574         * MODULES.html.sh (Java): Add javaexec.
38575
38576 2005-01-26  Bruno Haible  <bruno@clisp.org>
38577
38578         * m4/javaexec.m4: New file, from GNU gettext.
38579
38580 2005-01-26  Bruno Haible  <bruno@clisp.org>
38581
38582         * lib/javaexec.sh.in: New file, from GNU gettext.
38583         * lib/javaexec.h: New file, from GNU gettext.
38584         * lib/javaexec.c: New file, from GNU gettext.
38585
38586 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38587
38588         * modules/lchown (Depends-on): Remove lchown.h
38589
38590 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38591
38592         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
38593         must be defined if the header file was not found, in order
38594         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
38595
38596 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38597
38598         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
38599         initializers for struct pentry_state.
38600         (__argp_error): Check return value of __asprintf
38601         (__argp_failure): Translate error message
38602
38603         * lib/argp-parse.c: Removed braces around the expansion of N_()
38604
38605 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
38606
38607         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
38608         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
38609         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
38610         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
38611         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
38612         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
38613         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
38614         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
38615         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
38616         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
38617         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
38618         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
38619         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
38620         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
38621         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
38622         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
38623         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
38624         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
38625         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
38626         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
38627         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
38628         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
38629         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
38630         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
38631         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
38632         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
38633         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
38634         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
38635         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
38636         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
38637         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
38638         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
38639         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
38640         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
38641         xstrtol.m4, xstrtoumax.m4, yesno.m4:
38642         Use an all-permissive copyright notice, recommended by RMS.
38643
38644 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
38645
38646         * modules/chdir-long (Depends-on): Remove mempcpy.
38647
38648 2005-01-21  Jim Meyering  <jim@meyering.net>
38649
38650         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
38651         same value as for Solaris 9.
38652
38653         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
38654         component length.  This included changing the parameter to be
38655         of type `char *' rather than `char const *'.
38656         * lib/chdir-long.h (chdir_long): Update prototype.
38657
38658         * lib/openat.c (fdopendir, fstatat): New functions.
38659         * lib/openat.h: Include headers required for use of DIR and struct
38660         stat.
38661         [AT_SYMLINK_NOFOLLOW]: Define.
38662         (fdopendir, fstatat): Add prototypes.
38663
38664 2005-01-21  Bruno Haible  <bruno@clisp.org>
38665
38666         * modules/classpath: New file.
38667         * MODULES.html.sh (Java): Add classpath.
38668
38669 2005-01-21  Bruno Haible  <bruno@clisp.org>
38670
38671         * lib/classpath.h: New file, from GNU gettext.
38672         * lib/classpath.c: New file, from GNU gettext.
38673
38674 2005-01-20  Simon Josefsson  <jas@extundo.com>
38675
38676         * modules/version-etc-fsf: New file.
38677
38678 2005-01-20  Simon Josefsson  <jas@extundo.com>
38679
38680         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
38681         * lib/version-etc.c: Remove version_etc_copyright.
38682         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
38683         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
38684
38685 2005-01-20  Simon Josefsson  <jas@extundo.com>
38686
38687         * lib/base64.h (isbase64): Add.
38688
38689         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
38690         using a unsigned prototype, don't inline.
38691         (base64_decode): Use it.
38692
38693 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
38694
38695         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
38696         it.
38697
38698 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
38699
38700         * lib/save-cwd.c (save_cwd): Remove code to support the case
38701         where fchdir is missing or flaky.
38702
38703 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
38704
38705         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
38706
38707 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
38708
38709         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
38710         AC_LIBSOURCES now does this.
38711         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
38712         with new ullong_max module.
38713
38714 2005-01-19  Bruno Haible  <bruno@clisp.org>
38715
38716         * modules/sh-quote: New file.
38717         * MODULES.html.sh (Executing programs): Add sh-quote.
38718
38719 2005-01-19  Bruno Haible  <bruno@clisp.org>
38720
38721         * lib/sh-quote.h: New file, from GNU gettext.
38722         * lib/sh-quote.c: New file, from GNU gettext.
38723
38724 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
38725
38726         Merge from coreutils.
38727         * m4/ullong_max.m4: New file.
38728         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
38729         (gl_MACROS): Assume localeconv exists.
38730
38731 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
38732
38733         Merge changes from coreutils, as described below in several
38734         changelogs dated today.
38735
38736         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
38737         (O_DIRECTORY): Remove; not needed here, since "." must be
38738         a directory.  All uses removed.
38739         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
38740         universal on Suns, and we also need to test for IRIX.
38741         Revamp code to use 'if' rather than '#if'.
38742         Avoid unnecessary comparison of cwd->desc to 0.
38743
38744         * lib/utimens.c (futimens): Robustify the previous patch, by checking
38745         for known valid error numbers rather than observed invalid ones.
38746
38747 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
38748
38749         * modules/ullong_max: New file.
38750
38751         * modules/chdir-long, modules/openat: New files.
38752         * modules/save-cwd (Depends-on): Depend on chdir-long.
38753         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
38754
38755 2005-01-18  Jim Meyering  <jim@meyering.net>
38756
38757         Merge from coreutils.
38758         * m4/chdir-long.m4, m4/openat.m4: New files.
38759         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
38760         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
38761         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
38762         is sane and DOES follow symlinks.  Besides, testing 20 different
38763         systems found no broken chown implementations.
38764         Prompted by a change in rsync's copy of this macro.
38765         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
38766
38767         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
38768
38769         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
38770         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
38771         NULL-means-set-to-current-time semantics.
38772         Remove temporary file immediately, rather than waiting
38773         for configure's at-exit trap code to do it.
38774
38775 2005-01-18  Jim Meyering  <jim@meyering.net>
38776
38777         * lib/version-etc.c (version_etc_copyright): Update copyright date.
38778
38779         * lib/utimens.c (futimens): Account for the fact that futimes
38780         can also fail with errno == ENOSYS or errno == ENOENT.
38781         Patch from Dmitry V. Levin.
38782
38783         Change the name of the robust chdir function from chdir to chdir_long.
38784         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
38785         (restore_cwd): Use chdir_long, not chdir.
38786         * lib/chdir-long.c: Renamed from chdir.c.
38787         * lib/chdir-long.h: Renamed from chdir.h.
38788         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
38789         Hurd.
38790
38791 2005-01-18  Bruno Haible  <bruno@clisp.org>
38792
38793         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
38794         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
38795         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
38796         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
38797         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
38798         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
38799         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
38800         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
38801         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
38802         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
38803         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
38804         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
38805         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
38806         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
38807         Use an all-permissive copyright notice, recommended by RMS.
38808
38809 2005-01-18  Bob Proulx  <bob@proulx.com>
38810
38811         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
38812         simplify offsetof() macro construct to avoid compile failure with
38813         native HP-UX 11.0 ANSI C compiler.
38814
38815 2005-01-17  Bruno Haible  <bruno@clisp.org>
38816
38817         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
38818         redundant because stpncpy.m4 takes care of it.
38819
38820 2005-01-17  Bruno Haible  <bruno@clisp.org>
38821
38822         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
38823
38824 2005-01-17  Bruno Haible  <bruno@clisp.org>
38825
38826         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
38827         used.
38828
38829 2005-01-17  Bruno Haible  <bruno@clisp.org>
38830
38831         * lib/fwriteerror.h (fwriteerror): Change specification to include
38832         fclose.
38833         * lib/fwriteerror.c: Include <stdbool.h>.
38834         (fwriteerror): At the end, close the file stream. Record whether
38835         stdout was already closed.
38836
38837 2005-01-17  Bruno Haible  <bruno@clisp.org>
38838
38839         * lib/execute.c (environ): Declare if needed.
38840         * lib/pipe.c (environ): Likewise.
38841         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
38842
38843 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38844
38845         * modules/argp: Depend on vsnprintf
38846
38847 2005-01-10  Jim Meyering  <jim@meyering.net>
38848
38849         * modules/closeout (Depends-on): Add atexit.
38850
38851 2005-01-06  Bruno Haible  <bruno@clisp.org>
38852
38853         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
38854
38855 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
38856
38857         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
38858         definitions to be after all include files, to avoid collisions.
38859         Problem reported by Bob Proulx.
38860
38861 2005-01-04  Jim Meyering  <jim@meyering.net>
38862
38863         Changes imported from coreutils.
38864         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
38865         as the mkstemp template, use a temporary directory and an
38866         8.3-friendly template to avoid trouble on systems like DJGPP.
38867         Reported by Juan M. Guerrero via Stepan Kasal.
38868         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
38869         close. Remove the temporary directory right away, rather than waiting
38870         for configure's at-exit trap code to do it.
38871         Suggestion from Stepan Kasal.
38872
38873 2005-01-01  Simon Josefsson  <jas@extundo.com>
38874
38875         * gnulib-tool: Print #include directives when --import'ing.
38876
38877 2004-12-28  Simon Josefsson  <jas@extundo.com>
38878
38879         * tests/test-base64.c: Include required header files.  Remove
38880         unused variables.
38881
38882 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
38883
38884         * modules/error (Depends-on): Remove gettext.
38885
38886 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
38887
38888         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
38889         not needed.  This removes a dependency on the gettext module.
38890         [defined _LIBC]: Do not include <libintl.h>; not needed.
38891
38892 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
38893
38894         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
38895         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
38896
38897 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
38898
38899         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
38900         HAVE_DECL_STRTOLD.
38901
38902 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
38903
38904         * modules/getdate (Depends-on): Remove alloca-opt.
38905
38906 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
38907
38908         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
38909
38910 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
38911
38912         * lib/argp-parse.c: Include <stddef.h>.
38913         (alignof, alignto): New macros.
38914         (parser_init): Don't assume that void * is aligned sufficiently
38915         for struct option.
38916
38917         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
38918         need to extend the stack.
38919         (YYINITDEPTH): New macro, so that the initial stack isn't overly
38920         large.
38921
38922 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38923
38924         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
38925
38926 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
38927
38928         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
38929         (2004-10-24) change.  Apparently this was a false alarm.
38930
38931         * modules/getdate: Depend on alloca-opt, not alloca.
38932
38933 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
38934
38935         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
38936         Remove now-obsolete comment about AIX.
38937         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
38938         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
38939         (YYMAXDEPTH): New macro.
38940
38941 2004-12-18  Simon Josefsson  <jas@extundo.com>
38942
38943         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
38944
38945 2004-12-18  Bruno Haible  <bruno@clisp.org>
38946
38947         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
38948
38949 2004-12-18  Bruno Haible  <bruno@clisp.org>
38950
38951         * lib/fatal-signal.c (fatal_signals): Make non-const.
38952         (init_fatal_signals): New function.
38953         (uninstall_handlers, install_handlers): Ignore signals that were set to
38954         SIG_IGN.
38955         (at_fatal_signal): Call init_fatal_signals.
38956         (init_fatal_signal_set): Likewise. Ignore signals that were set to
38957         SIG_IGN.
38958         Reported by Paul Eggert.
38959
38960 2004-12-18  Bruno Haible  <bruno@clisp.org>
38961
38962         * doc/alloca.texi: New file.
38963         * doc/alloca-opt.texi: New file.
38964
38965 2004-12-17  Jim Meyering  <jim@meyering.net>
38966
38967         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
38968         Otherwise, install-sh could exit with improper exit status when
38969         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
38970
38971 2004-12-16  Simon Josefsson  <jas@extundo.com>
38972
38973         * tests/test-base64.c: Add license.
38974
38975 2004-12-15  Stepan Kasal  <address@hidden>
38976
38977         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
38978
38979 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
38980
38981         * modules/getcwd (Files): Add m4/d-ino.m4.
38982         Suggested by Mark D. Baushke.
38983
38984 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
38985
38986         * lib/getdate.y (textint): New member "negative".
38987         (time_zone_hhmm): New function.
38988         Expect 14 shift-reduce conflicts, not 13.
38989         (o_colon_minutes): New rule.
38990         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
38991         (yylex): Set the "negative" member of signed numbers.
38992
38993 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
38994
38995         * doc/getdate.texi (Time of day items, Time zone items):
38996         Describe new formats +00:00, UTC+00:00.
38997
38998 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
38999
39000         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
39001         spurious "-l"s.  Problem reported by Stepan Kasal.
39002
39003 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
39004
39005         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
39006         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
39007
39008 2004-12-04  Simon Josefsson  <jas@extundo.com>
39009
39010         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
39011         Vandoorselaere <yoann@prelude-ids.org>.
39012
39013 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
39014
39015         Changes imported from coreutils.
39016         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
39017         exist.
39018         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
39019
39020 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
39021
39022         Changes imported from coreutils.
39023         * lib/hard-locale.c: Assume <locale.h> exists.
39024         Include "strdup.h".
39025         (GLIBC_VERSION): New macro.
39026         (hard_locale): Assume setlocale exists.
39027         Rewrite to avoid #ifdef.
39028         Use strdup rather than malloc + strcpy.
39029         * lib/human.c: Assume <locale.h> exists.
39030         (human_readable): Assume localeconv exists.
39031
39032 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
39033
39034         * modules/hard-locale (Depends-on): Add strdup.
39035
39036 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
39037
39038         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
39039         convert T2, not T.  (Imported from libc.)
39040
39041 2004-11-30  Simon Josefsson  <jas@extundo.com>
39042
39043         * modules/restrict (License): Change to LGPL.
39044
39045 2004-11-30  Simon Josefsson  <jas@extundo.com>
39046
39047         * m4/restrict.m4: Add copyright and copying conditions.
39048
39049 2004-11-30  Simon Josefsson  <jas@extundo.com>
39050
39051         * m4/base64.m4: New file.
39052
39053 2004-11-30  Simon Josefsson  <jas@extundo.com>
39054
39055         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
39056         base64.
39057
39058         * tests/test-base64.c: New file.
39059
39060         * modules/base64: New file.
39061
39062 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
39063
39064         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
39065         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
39066
39067         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
39068
39069 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
39070
39071         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
39072         (__getcwd.c): Don't restore errno; glibc doesn't.
39073         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
39074         first, falling back to our code only if its results look suspicious.
39075         Ensure that the resulting buffer is only as large as necessary.
39076
39077         * lib/readutmp.c: Include readutmp.h first.
39078         Include <errno.h>, since readutmp.h no longer does that.
39079         * lib/readutmp.h: Don't include <errno.h>,
39080         <sys/param.h>, <time.h>; not needed to establish interface.
39081         (errno): Remove decl.
39082         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
39083         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
39084         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
39085
39086 2004-11-28  Simon Josefsson  <jas@extundo.com>
39087
39088         * lib/base64.h, base64.c: New file.
39089
39090 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
39091
39092         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
39093
39094 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
39095
39096         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
39097         (Depends-on): Remove pathmax, same.  Add mempcpy.
39098         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
39099         (Makefile.am): Append getcwd.h to lib_SOURCES.
39100         (Include): Add getcwd.h.
39101         (Maintainer): Change from Jim Meyering to "all, glibc",
39102         since getdate now uses intended-for-glibc code.
39103         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
39104         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
39105
39106 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
39107
39108         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
39109         HP's ANSI C compiler.
39110         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
39111         Declaring int functions causes warnings on some modern systems and
39112         shouldn't be needed to compile on ancient ones.
39113         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
39114         defined.
39115
39116         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
39117         with the following changes.
39118         (__set_errno): Parenthesize properly.
39119         Include <stdbool.h>.
39120         (MIN, MAX, MATCHING_INO): New macros.
39121         (__getcwd): Define with prototype, not K&R form.
39122         Use heuristics to allocate default buffer on stack if possible.
39123         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
39124         behavior, and to avoid the PATH_MAX limit when computing
39125         ../../../../...
39126         Use MATCHING_INO to compare inode number to file.
39127         Check for arithmetic overflow in size calculations.
39128         Fix bug in reallocation of dot array that caused getcwd to fail
39129         on directories nested deeper than 75.
39130         Be more careful about saving errno on error.
39131         Do not use realloc; use only free+malloc, as this is a bit
39132         more flexible and avoids a needless copy operation.
39133         Do not inspect st_dev and st_ino for symbolic links; POSIX
39134         doesn't specify the latter.
39135         Check for closedir errors.
39136         Avoid needless casts.
39137         Use "#ifdef weak_alias" around weak_alias, to be like other
39138         glibc code.
39139         The following changes to getcwd.c have effect only when used in
39140         gnulib; they have no effect inside glibc proper.
39141         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
39142         as alloca isn't used.
39143         (alloca, __alloca): Likewise.
39144         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
39145         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
39146         unconditionally, as gnulib assumes C89 or better.
39147         Do not include <sys/param.h>.
39148         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
39149         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
39150         better.
39151         (NULL) [!defined NULL]: Remove; we assume C89 or better.
39152         Include <dirent.h> in a way that is compatible with modern Autoconf.
39153         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
39154         New macros, if not already defined.
39155         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
39156         Use "_LIBC", not "defined _LIBC", for consistency.
39157         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
39158         a mempcpy module.
39159         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
39160         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
39161         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
39162         credit only to Jim Meyering and adjust the copyright dates.
39163         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
39164         <stdlib.h>, <unistd.h>, "pathmax.h".
39165         Instead, include "xgetcwd.h" (first) and "getcwd.h".
39166         (INITIAL_BUFFER_SIZE): Remove.
39167         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
39168
39169 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
39170
39171         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
39172         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
39173         Use the _ONCE methods, for efficiency.
39174         Check for fcntl.h.  In test program, include <errno.h>
39175         and <fcntl.h> if available.  Remove old K&R cruft from
39176         test program.  Check for common errors in GNU/Linux,
39177         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
39178         don't do AC_LIBOBJ, as that's getcwd.m4's job.
39179         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
39180         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
39181         name accordingly.
39182         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
39183         accommodate new getcwd.c.
39184         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
39185         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
39186         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
39187         that's all we need now.
39188
39189 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39190
39191         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
39192         argp-parse.c depends on getopt internals, that means we should
39193         always use our getopt, to be on the safe side.
39194         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
39195         order not to spoil the result of an eventual previous invocation
39196         of gl_GETOPT_SUBSTITUTE.
39197
39198 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39199
39200         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
39201         redefinition warnings. To avoid them, include the defines
39202         in `#if !defined __need_getopt ... #endif'. The only place
39203         where __getopt_argv_const is used is in definitions
39204         of getopt_long and getopt_long_only below, which are as well
39205         protected by `#ifndef __need_getopt'.
39206         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
39207         __need_getopt after including <stdio.h> and <unistd.h> These
39208         headers might have defined it.
39209
39210 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
39211
39212         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
39213
39214 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
39215
39216         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
39217         (futimens): New function, which uses futimes if available.
39218         (futimens, utimens): Support timespec==NULL, with same semantics
39219         as utime and utimens.
39220         * lib/utimens.h (futimens): New decl.
39221
39222 2004-11-23  Jim Meyering  <jim@meyering.net>
39223
39224         * lib/getopt_.h: Remove trailing blanks.
39225
39226 2004-11-23  Jim Meyering  <jim@meyering.net>
39227
39228         * lib/__fpending.c: Add comment.
39229
39230 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
39231
39232         * modules/canonicalize (Depends-on): Add xreadlink.
39233         Problem reported by James Youngman.
39234
39235 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
39236
39237         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
39238         New macros.
39239         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
39240         optopt): Use them instead of invoking ## directly; otherwise, the
39241         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
39242
39243 2004-11-19  Bruno Haible  <bruno@clisp.org>
39244
39245         * lib/strtok_r.c: Move comments from here...
39246         * lib/strtok_r.h: ... to here.
39247
39248 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
39249
39250         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
39251         implementations that mishandle size_t overflow.
39252
39253 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
39254
39255         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
39256         might fail.  Problem reported by Yoann Vandoorselaere.
39257         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
39258         implementations that mishandle size_t overflow.
39259
39260 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39261
39262         * modules/canon-host (Depends-on): Add strdup.
39263
39264 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39265
39266         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
39267
39268 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39269
39270         * lib/canon-host.c: Include "strdup.h".
39271         (canon_host): Use getaddrinfo if available, so that IPv6 works.
39272         Use strdup instead of malloc/strcpy to duplicate strings.
39273
39274         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
39275         (human_space_before_unit): New constant.
39276         * lib/human.c (human_readable): Support it.
39277
39278         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
39279         (xgetcwd): Set errno correctly when failing.
39280         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
39281         the failure is actually due to a PATH_MAX problem.
39282
39283         Further getopt changes to make it more likely that glibc will
39284         buy the changes back.
39285         * lib/getopt.c (POSIXLY_CORRECT): New constant.
39286         (getopt): Use it, so to preserve glibc semantic
39287         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
39288         when compiling for libc.
39289         * lib/getopt_.h (__getopt_argv_const): Bring it back.
39290         (getopt_long, getopt_long_only): Use it.
39291
39292         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
39293         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
39294         (getopt): Argv is now char * const *, as per standard.
39295         (_getopt_internal_r, _getopt_internal): Argv is now char **,
39296         not char *__getopt_argv_const *.
39297         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
39298         _getopt_long_only_r): Likewise.
39299         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
39300         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
39301         _getopt_long_r, _getopt_long_only_r): Likewise.
39302         * lib/getopt_.h (__getopt_argv_const): Remove.
39303         (getopt): Argv is now char * const *, as per standard.
39304
39305         * lib/getdate.y (tORDINAL): New token.
39306         (day, relunit): Allow it for relative times.
39307         (relative_time_table): Use tORDINAL for ordinals.
39308
39309 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39310
39311         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
39312         Document that "second" isn't allowed as an ordinal number.
39313
39314 2004-11-16  Jim Meyering  <jim@meyering.net>
39315
39316         * modules/closeout (Depends-on): Add fpending.
39317
39318 2004-11-15  Jim Meyering  <jim@meyering.net>
39319
39320         * lib/closeout.c: Include "__fpending.h" once again.
39321         Include <stdbool.h>.
39322         (close_stdout): Don't fail just because stdout was closed initially,
39323         since some programs don't write to stdout in the normal course of
39324         operation (other than --version and --help), and we don't want this
39325         function to make e.g. `touch file >&-' fail.
39326         But do fail if it was closed and someone has tried to write to it.
39327         E.g., `printf foo >&-' must fail.
39328
39329 2004-11-13  Jim Meyering  <jim@meyering.net>
39330
39331         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
39332
39333 2004-11-12  Simon Josefsson  <jas@extundo.com>
39334
39335         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
39336         small doc fix is still pending.
39337
39338 2004-11-11  Simon Josefsson  <jas@extundo.com>
39339
39340         * modules/strtok_r: New file.
39341
39342         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39343         strtok_r.
39344
39345 2004-11-11  Simon Josefsson  <jas@extundo.com>
39346
39347         * m4/strtok_r.m4: New file.
39348
39349         * m4/getopt.m4: Replace opterr.
39350
39351 2004-11-11  Simon Josefsson  <jas@extundo.com>
39352
39353         * lib/strtok_r.h, strtok_r.c: New file.
39354
39355 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
39356
39357         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
39358         of replacing opterr, getopt, etc.  This should handle the
39359         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
39360
39361 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
39362
39363         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
39364         we can stop lying to compilers about the constness of argv when we
39365         are compiled outside glibc.
39366         (getopt, getopt_long, getopt_long_only): Use it.
39367         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
39368         _getopt_internal, getopt): Likewise.
39369         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
39370         _getopt_long_only_r): Likewise.
39371         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
39372         _getopt_long_r, _getopt_long_only_r): Likewise.
39373
39374         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
39375         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
39376         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
39377         the other external symbols.
39378         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
39379         declaration, since the above renaming now works around collisions.
39380
39381 2004-11-11  Jim Meyering  <jim@meyering.net>
39382
39383         * lib/linebreak.c: Remove trailing blanks.
39384         * lib/alloca_.h: Likewise.
39385         * lib/acosl.c: Likewise.
39386         * lib/euidaccess.c: Likewise.
39387         * lib/allocsa.h: Likewise.
39388
39389 2004-11-10  Simon Josefsson  <jas@extundo.com>
39390
39391         * m4/getaddrinfo.m4: New file.
39392
39393 2004-11-10  Simon Josefsson  <jas@extundo.com>
39394
39395         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
39396
39397 2004-11-10  Simon Josefsson  <jas@extundo.com>
39398
39399         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39400         getaddrinfo.
39401
39402         * modules/getaddrinfo: New file.
39403
39404 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
39405
39406         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
39407
39408 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
39409
39410         * lib/mktime.c (SHR): New macro, which is a portable
39411         substitute for >> that should work even on Crays.
39412         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
39413         Problem reported by Mark D. Baushke in
39414         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
39415         * lib/getdate.y (SHR): Likewise.
39416         (tm_diff): Use it.
39417         * lib/strftime.c (SHR): Likewise.
39418         (tm_diff): Use it.
39419         * lib/quotearg.c (struct quoting_options): Use unsigned int for
39420         quote_these_too, so that right shifts are well defined.  All uses
39421         changed.
39422
39423 2004-11-10  Jim Meyering  <jim@meyering.net>
39424
39425         Ensure that no close failure goes unreported.
39426         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
39427         return early when it seems there's nothing to flush.
39428         Don't include __fpending.h.
39429
39430 2004-11-10  Jim Meyering  <jim@meyering.net>
39431
39432         * modules/closeout (Depends-on): Remove fpending.
39433
39434 2004-11-10  Jim Meyering  <jim@meyering.net>
39435
39436         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
39437
39438 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39439
39440         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
39441         gl_FUNC_STRFTIME.
39442         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
39443         and AC_REQUIRE when possible, to avoid duplicate checks.
39444         Check for <wchar.h>.
39445
39446 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39447
39448         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
39449
39450 2004-11-09  Bruno Haible  <bruno@clisp.org>
39451
39452         * m4/sockpfaf.m4: New file.
39453
39454 2004-11-05  Bruno Haible  <bruno@clisp.org>
39455
39456         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
39457         Reported by Mark D. Baushke <mdb@cvshome.org>.
39458
39459 2004-11-04  Bruno Haible  <bruno@clisp.org>
39460
39461         2004-09-11  Bruno Haible  <bruno@clisp.org>
39462                 * allocsa.valgrind: New file.
39463         2004-02-06  Bruno Haible  <bruno@clisp.org>
39464                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
39465                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
39466                 Reported by Christopher Seip <chris.seip@hp.com>.
39467
39468 2004-11-04  Bruno Haible  <bruno@clisp.org>
39469
39470         * modules/allocsa (Files): Add lib/allocsa.valgrind.
39471         (Makefile.am): Distribute it.
39472
39473 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
39474
39475         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
39476         with errno == ERANGE if the buffer is too small.
39477         Problem reported by Mark D. Baushke.
39478
39479 2004-11-03  Albert Chin  <china@thewrittenword.com>
39480             Paul Eggert  <eggert@cs.ucla.edu>
39481
39482         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
39483         equivalent, substitute $ac_type for equivalent type rather than
39484         blindly using uint32_t *always* which won't work if uint32_t is not
39485         available.  Define _UINT32_T to work around typedef of uint32_t if
39486         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
39487         2.5.1.
39488
39489 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39490
39491         * m4/jm-macros.m4: Sync from coreutils.
39492         (gl_MACROS): Check for mbrlen, for pathchk.
39493         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
39494
39495 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39496
39497         * lib/xreadlink.c (MAXSIZE): New macro.
39498         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
39499         size does not exceed MAXSIZE.  Avoid cast.
39500         As suggested by Mark D. Baushke in
39501         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
39502         if readlink fails with buffer size just under MAXSIZE, try again
39503         with MAXSIZE.
39504
39505 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39506
39507         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
39508
39509 2004-11-02  Derek R. Price  <derek@ximbiot.com>
39510         and  Paul Eggert  <eggert@cs.ucla.edu>
39511
39512         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
39513         (get_date): Overparenthesize to avoid GCC warning.
39514
39515 2004-11-02  Bruno Haible  <bruno@clisp.org>
39516
39517         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
39518         returns void.
39519
39520 2004-11-02  Bruno Haible  <bruno@clisp.org>
39521
39522         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
39523         function returns void.
39524
39525 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
39526
39527         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
39528         fflush_unlocked, flockfile, funlockfile, funlockfile,
39529         fputs_unlocked, putc_unlocked.
39530
39531 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
39532
39533         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
39534         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
39535         already declared.
39536
39537 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
39538
39539         * modules/getdate (Files): Add doc/getdate.texi.
39540         (Depends-on): Add setenv, xalloc.
39541
39542 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
39543
39544         * lib/getdate.y: Add support for TZ="foo" within a date string.
39545         Fix some bugs near time_t boundaries.  Reject dates with
39546         out-of-range components, e.g., "Sept 31".
39547         Include <stdlib.h>, "setenv.h", "xalloc.h".
39548         (ISDIGIT_LOCALE): Remove; unused.
39549         Note that the TZ and time functions used here are not reentrant.
39550         (mktime_ok, get_tz): New functions.
39551         (TZBUFSIZE): New constant.
39552         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
39553         This requires that we sometimes generate our own TZ="XXX..." setting.
39554
39555 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
39556
39557         * doc/getdate.texi: New file, from coreutils with modifications for
39558         the new TZ parsing.
39559
39560 2004-10-27  Derek R. Price  <derek@ximbiot.com>
39561
39562         * lib/mktime.c (not_equal_tm): Remove redundant check.
39563
39564 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39565
39566         * modules/regex (lib_SOURCES): Add regex.c.
39567         Reported by James Youngman in
39568         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
39569
39570 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39571
39572         * lib/getdate.y: Use Bison 1.875 features, and some minor
39573         code cleanups.  This change does not affect semantics.
39574         Don't include <stdlib.h>; no longer needed.
39575         Don't include unlocked-io.h; only the "#if TEST" code uses
39576         stdio, and performance isn't crucial there.
39577         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
39578         Bison 1.875 features as described below.
39579         All uses of "PC." replaced by "pc->".
39580         (YYSTYPE): Add a forward declaration.
39581         (yylex, yyerror): Use full prototypes in forward decls.
39582         Use "%pure-parser" rather than obsolescent "%pure_parser".
39583         Use %parse-param and %lex-param instead of obsolescent
39584         YYPARSE_PARAM and YYLEX_PARAM.
39585         (meridian_table, month_and_day_table, time_units_table,
39586         relative_time_table, time_zone_table, military_table,
39587         lookup_zone, lookup_word, get_date):
39588         Use NULL instead of 0 where appropriate.
39589         (to_hour): Avoid abort (), to avoid a dependency on
39590         stdlib.h.
39591         (yyerror, yylex): Now accepts parser_control * arg.
39592         (main) [TEST]: Use '\0' rather than 0 for char.
39593
39594 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
39595
39596         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
39597
39598 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
39599
39600         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
39601         It's now the caller's responsibility to handle the case where
39602         !HAVE_GETPAGESIZE && !defined getpagesize.
39603
39604         * lib/mktime.c (leapyear): Arg is long int, not int.
39605
39606 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
39607
39608         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
39609
39610 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
39611
39612         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
39613         missing.  Problem reported by James Youngman.
39614
39615 2004-10-16  Simon Josefsson  <jas@extundo.com>
39616
39617         * gnulib-tool: Fix comments.  Fix parse problem.
39618         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
39619
39620 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
39621
39622         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
39623         implementation of getopt_long.  Problem reported by Alexander Taler in:
39624         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
39625
39626 2004-10-15  Bruno Haible  <bruno@clisp.org>
39627
39628         * gnulib-tool: Untabify. Initialize supplied_libname.
39629         (func_usage): More homogenous output.
39630         (func_modules_transitive_closure, func_modules_to_filelist,
39631         func_emit_lib_Makefile_am): New functions.
39632         (func_import): New function, extracted from big case statement. Use
39633         func_get_license, func_modules_transitive_closure,
39634         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
39635         opt_lgpl. Don't use test -a, as it's not portable.
39636         (func_create_testdir): Use func_modules_transitive_closure,
39637         func_modules_to_filelist, func_emit_lib_Makefile_am.
39638
39639 2004-10-15  Bruno Haible  <bruno@clisp.org>
39640
39641         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
39642
39643 2004-10-15  Bruno Haible  <bruno@clisp.org>
39644
39645         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
39646         the portions belonging to each module.
39647         Suggested by Derek Robert Price <derek@ximbiot.com>.
39648
39649 2004-10-12  Simon Josefsson  <jas@extundo.com>
39650
39651         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
39652         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
39653         to real functions.
39654
39655 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39656
39657         * modules/vsnprintf: New file.
39658
39659 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39660
39661         * m4/vsnprintf.m4: New file.
39662
39663 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39664
39665         * lib/vsnprintf.h: New file.
39666         * lib/vsnprintf.c: New file.
39667
39668 2004-10-11  Bruno Haible  <bruno@clisp.org>
39669
39670         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
39671         vsnprintf.
39672
39673 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
39674
39675         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
39676
39677 2004-10-07  Bruno Haible  <bruno@clisp.org>
39678
39679         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
39680         fits into the provided buffer.
39681
39682 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
39683
39684         * lib/diacrit.c, diacrit.h: Add GPL notice.
39685
39686         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
39687         notice.
39688         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
39689         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
39690         This avoids a potential constant-folding bug.
39691
39692 2004-10-05  Bruno Haible  <bruno@clisp.org>
39693
39694         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
39695         for the declaration of strsep.
39696
39697 2004-10-05  Bruno Haible  <bruno@clisp.org>
39698
39699         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
39700
39701 2004-10-04  Simon Josefsson  <jas@extundo.com>
39702
39703         * modules/memmem: New file.
39704         * tests/test-memmem.c: New file.
39705         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
39706
39707 2004-10-04  Simon Josefsson  <jas@extundo.com>
39708
39709         * m4/memmem.m4: New file.
39710
39711 2004-10-04  Simon Josefsson  <jas@extundo.com>
39712
39713         * lib/memmem.h: New file.
39714         * lib/memmem.c: New file, taken from glibc.
39715
39716 2004-10-04  Simon Josefsson  <jas@extundo.com>
39717
39718         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
39719         '#ifdef USE_UNLOCKED_IO'.
39720
39721 2004-10-04  Simon Josefsson  <jas@extundo.com>
39722
39723         * config/srclist.txt: Add memmem from glibc.
39724
39725 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
39726
39727         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
39728
39729         * modules/argmatch, modules/argp, modules/closeout, modules/error,
39730         modules/exclude, modules/getdate, modules/getline,
39731         modules/getndelim2, modules/getpass, modules/getpass-gnu,
39732         modules/getusershell, modules/linebuffer, modules/md5,
39733         modules/mountlist, modules/posixtm, modules/readtokens,
39734         modules/readutmp, modules/regex, modules/sha1,
39735         modules/version-etc, modules/yesno:
39736         Remove dependency on unlocked-io.
39737
39738 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
39739
39740         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
39741
39742         * m4/unlocked-io.m4: Add copyright notice.
39743         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
39744
39745 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
39746
39747         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
39748         * lib/xmalloc.c (xmemdup): Likewise.
39749         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
39750         XFREE): Remove these long-obsolescent macros.
39751         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
39752         * lib/xstrdup.c: Remove.
39753
39754         * lib/regex.c (re_comp): Cast gettext return value to char *,
39755         Problem reported by Martin Neitzel via Mark D. Baushke.
39756
39757 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
39758
39759         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
39760         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
39761         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
39762         regex.c, sha1.c, version-etc.c, yesno.c:
39763         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
39764         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
39765         the includer's responsibility.
39766
39767         Sync from coreutils.
39768
39769         * lib/modechange.c (mode_compile): Don't decrement a pointer that
39770         points to the start of a string, as the C Standard says the
39771         resulting behavior is undefined.
39772
39773         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
39774         simple -> simple_backups, numbered_existing ->
39775         numbered_existing_backups, numbered -> numbered_backups
39776         to avoid shadowing problems.  All uses changed.
39777         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
39778         * lib/backupfile.c (check_extension, numbered_backup):
39779         Rename locals to avoid shadowing 'basename'.
39780         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
39781         once.
39782
39783         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
39784         * lib/.cvsignore: Add getopt.h.
39785
39786 2004-10-04  Bruno Haible  <bruno@clisp.org>
39787
39788         * modules/README: New file.
39789         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
39790         not a module.
39791
39792 2004-10-02  Jim Meyering  <jim@meyering.net>
39793
39794         * lib/dirfd.h, getpagesize.h: Add copyright notice.
39795
39796 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39797
39798         * modules/strsep: New file.
39799
39800 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39801
39802         * m4/strsep.m4: New file.
39803
39804 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39805
39806         * lib/strsep.h: New file.
39807         * lib/strsep.c: New file.
39808
39809 2004-10-01  Simon Josefsson  <jas@extundo.com>
39810
39811         * lib/snprintf.c (snprintf): Handle size==0.
39812
39813 2004-10-01  Simon Josefsson  <jas@extundo.com>
39814             Bruno Haible  <bruno@clisp.org>
39815
39816         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
39817         (snprintf): Declare 'args'.
39818
39819 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
39820
39821         * lib/snprintf.c: Remove comments as to why each header is needed.
39822
39823 2004-10-01  Bruno Haible  <bruno@clisp.org>
39824
39825         * MODULES.html.sh: Add strsep.
39826
39827 2004-09-30  Simon Josefsson  <jas@extundo.com>
39828
39829         * modules/snprintf: New file.
39830
39831 2004-09-30  Simon Josefsson  <jas@extundo.com>
39832
39833         * m4/snprintf.m4: New file.
39834
39835 2004-09-30  Simon Josefsson  <jas@extundo.com>
39836
39837         * lib/snprintf.h, lib/snprintf.c: New files.
39838
39839 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39840
39841         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
39842         (hol_entry_help): Never translate an empty string.
39843         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
39844         * lib/argp.h (OPTION_NO_TRANS): New option.
39845
39846 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
39847
39848         * modules/argp (Maintainer): Replace Simon Josefsson
39849         by Sergey Poznyakoff.
39850
39851 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
39852
39853         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
39854         changes merged back into glibc.
39855
39856 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
39857
39858         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
39859
39860 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
39861
39862         * lib/xvasprintf.c: Include xalloc.h.
39863         (xvasprintf): Use xalloc_die, not xmalloc_die.
39864
39865 2004-09-29  Bruno Haible  <bruno@clisp.org>
39866
39867         * modules/alloca-opt: New file, derived from modules/alloca.
39868         * modules/allocsa: Depend on alloca-opt instead of alloca.
39869         * modules/setenv: Likewise.
39870         * modules/vasnprintf: Likewise.
39871         * MODULES.html.sh: Add alloca-opt.
39872
39873 2004-09-28  Simon Josefsson  <jas@extundo.com>
39874
39875         * gnulib-tool: New parameter --lgpl, to asseert that modules are
39876         LGPL, and to replace license template from GPL to LGPL.
39877
39878 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
39879
39880         * modules/dummy: Change license to LGPL.
39881
39882 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
39883
39884         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
39885
39886 2004-09-24  Simon Josefsson  <jas@extundo.com>
39887
39888         * modules/minmax (License): Change from GPL to LGPL.
39889
39890 2004-09-23  Simon Josefsson  <jas@extundo.com>
39891
39892         * gnulib-tool (--import): Typo.
39893
39894 2004-09-23  Simon Josefsson  <jas@extundo.com>
39895
39896         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
39897
39898 2004-09-22  Bruno Haible  <bruno@clisp.org>
39899
39900         * modules/*: Add 'License' field.
39901         * gnulib-tool: Accept --extract-license option.
39902         (func_get_license): New function.
39903
39904 2004-09-21  Bruno Haible  <bruno@clisp.org>
39905
39906         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
39907         Reported by Simon Josefsson.
39908
39909 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
39910
39911         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
39912         gl_AC_TYPE_LONG_LONG.
39913
39914 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
39915
39916         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
39917
39918 2004-09-18  Simon Josefsson  <jas@extundo.com>
39919         and  Paul Eggert  <eggert@cs.ucla.edu>
39920
39921         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
39922         calls with autoreconf.  Define GL_LIB.
39923
39924 2004-09-14  Karl Berry  <karl@gnu.org>
39925
39926         * config/srclist.txt: unsync setenv.c, sigh.
39927
39928 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
39929
39930         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
39931         Problem reported by Bruno Haible in:
39932         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
39933
39934 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
39935
39936         * config/srclist.txt: Comment out argp-pvh.c.
39937
39938 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
39939
39940         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
39941         in case some system header has #define'd it.  Problem reported by
39942         Soeren D. Schulze in
39943         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
39944
39945 2004-09-09  Karl Berry  <karl@gnu.org>
39946
39947         * regex.[ch]: delete from the root.  These were supposed to be
39948                 synced with emacs cvs, but this has not happened for about
39949                 a year, and anyway nothing else uses emacs regex.[ch].
39950                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
39951                 lib/regex[.ch] is untouched.
39952
39953 2004-09-09  Bruno Haible  <bruno@clisp.org>
39954
39955         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
39956
39957 2004-09-09  Bruno Haible  <bruno@clisp.org>
39958
39959         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
39960         modifications.
39961         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
39962
39963 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
39964
39965         * modules/xvasprintf: New file.
39966         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
39967
39968 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
39969
39970         * lib/xvasprintf.h: New file.
39971         * lib/xvasprintf.c: New file.
39972         * lib/xasprintf.c: New file.
39973
39974 2004-09-08  Bruno Haible  <bruno@clisp.org>
39975
39976         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
39977
39978 2004-09-08  Bruno Haible  <bruno@clisp.org>
39979
39980         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
39981         length is > INT_MAX.
39982         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
39983         more.
39984
39985 2004-09-08  Bruno Haible  <bruno@clisp.org>
39986
39987         * lib/stdint_.h: New file, taken from GNU clisp.
39988
39989 2004-09-08  Bruno Haible  <bruno@clisp.org>
39990             Oskar Liljeblad  <oskar@osk.mine.nu>
39991
39992         * modules/stdint: New file.
39993         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
39994
39995 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
39996
39997         Import from coreutils.
39998         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
39999         strings on unbounded length.  alloca's performance benefits aren't
40000         that important here.
40001         (V_STRDUP): Remove.
40002         (parse_with_separator): New function, with most of the internals
40003         of the old parse_user_spec.  Allow user to omit both user and group,
40004         for compatibility with FreeBSD.
40005         Clone only the user name, not the entire spec.
40006         Do not set *uid, *gid unless entirely successful.
40007         Avoid memory leak in some failing cases.
40008         Fix regression for USER.GROUP reported by Dmitry V. Levin in
40009         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
40010         (parse_user_spec): Rewrite to use parse_with_separator.
40011
40012 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40013
40014         * modules/userspec: Don't depend on alloca.
40015
40016 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40017
40018         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
40019
40020 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
40021
40022         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
40023         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
40024         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
40025
40026 2004-08-16  Simon Josefsson  <jas@extundo.com>
40027
40028         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
40029         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
40030         Add --dry-run for --import.
40031         Let user provided command line parameters override configure.ac
40032         settings.
40033
40034 2004-08-12  Simon Josefsson  <jas@extundo.com>
40035
40036         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
40037         as discussed with Paul Eggert in threads rooted at
40038         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
40039         and
40040         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
40041         Before, the test was empty, and relied on ELIDE_CODE in source
40042         code.)
40043         (gl_PREREQ_GETOPT): New macro.
40044         (gl_GETOPT): Use them.
40045
40046 2004-08-12  Simon Josefsson  <jas@extundo.com>
40047
40048         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
40049         * lib/getopt_.h: Renamed from getopt.h.
40050
40051 2004-08-12  Simon Josefsson  <jas@extundo.com>
40052
40053         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
40054         Change default library name from libfoo to libgnu.
40055         Now, if you have a configure.ac that says:
40056                 gl_SOURCE_BASE(gl)
40057                 gl_M4_BASE(gl/m4)
40058                 gl_MODULES(error getopt etcetera)
40059                 gl_INIT
40060         you can import all you need by running:
40061                 ../gnulib/gnulib-tool --import
40062
40063         * modules/getopt (Files): Rename getopt.h to getopt_.h.
40064         (Makefile.am): Rewrite, use logic from argz.
40065         (Include): Use <getopt.h> instead of "getopt.h".
40066
40067 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
40068
40069         * modules/argp (Files): Add m4/unlocked-io.m4.
40070         (Depends-on): Add extensions.
40071
40072 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
40073
40074         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
40075         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
40076         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
40077         Check for program_invocation_name, program_invocation_short_name,
40078         flockfile, funlockfile, features.h, _getopt_long_only_r.
40079
40080 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
40081
40082         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
40083         its complicated substitute.
40084         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
40085         and program_invocation_name.
40086         (__argp_basename) [!_LIBC]: Remove; the only use was
40087         replaced by its body.
40088         (__argp_short_program_name): Change condition from
40089         !defined __argp_short_program_name to
40090         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
40091         to match argp-namefrob.h.
40092         (__argp_failure): Don't assume strerror_r returns char *.
40093         * lib/argp-parse.c (N_): Define unconditionally.
40094         (argp_default_options): Fill out initializers with 0 to avoid
40095         gcc warnings.
40096
40097 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
40098
40099         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
40100         getopt1.c.
40101
40102 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
40103
40104         Merge from coreutils.
40105
40106         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
40107
40108         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
40109         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
40110
40111 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
40112
40113         Merge from coreutils.
40114
40115         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
40116         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
40117         for Reliant Unix 5.43.
40118
40119         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
40120         (union fooround): Use uintmax_t, not long int.
40121         The rest is a merge from libc:
40122         [defined _LIBC]: Include <shlib-compat.h>.
40123         (_obstack) [defined _LIBC]: Remove after 2.3.4.
40124
40125         * lib/settime.c (settime): Recode to avoid warning with
40126         Sun Forte C 6U2.
40127
40128         * lib/strverscmp.c: Convert to UTF-8.
40129
40130 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
40131
40132         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
40133         m4/uintmax_t.m4.
40134
40135 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
40136
40137         * modules/xalloc-die: New file.
40138         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
40139
40140         * modules/md5 (Files): Add m4/uint32_t.m4.
40141         * modules/sha1: Renamed from modules/sha.
40142         (Files):
40143         Rename lib/sha.h to lib/sha1.h.
40144         Rename lib/sha.c to lib/sha1.c.
40145         Rename m4/sha.m4 to m4/sha1.m4.
40146         (lib_SOURCES): Likewise.
40147         (configure.ac): Rename gl_SHA to gl_SHA1.
40148         (Include): sha.h -> sha1.h.
40149
40150 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
40151
40152         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
40153         * m4/sha1.m4: Renamed from sha.m4.
40154         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
40155
40156 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
40157
40158         * lib/obstack.h (obstack_empty_p):
40159         Don't assume that chunk->contents is suitably aligned.
40160         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
40161         Likewise. Problem reported by Benno in
40162         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
40163
40164         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
40165         readable.  This could be improved further but it'd take some work.
40166
40167 2004-08-08  Simon Josefsson  <jas@extundo.com>
40168
40169         * modules/xgethostname (Depends-on): Remove exit and error (not
40170         used).
40171
40172         * modules/getpass-gnu: Add getpass.h.
40173         (Depends-on): Add stdbool.
40174         * modules/getpass: Add getpass.h.
40175
40176 2004-08-08  Simon Josefsson  <jas@extundo.com>
40177
40178         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
40179         Check getpass declaration.
40180
40181 2004-08-08  Simon Josefsson  <jas@extundo.com>
40182
40183         * lib/xgethostname.c: Don't include error.h (not used).
40184
40185         * lib/getpass.h: Add.
40186         * lib/getpass.c: Include getpass.h first.
40187
40188 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
40189
40190         * lib/xalloc-die.c: New file.
40191         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
40192         All uses removed.
40193         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
40194         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
40195         xalloc-die.c.
40196         (_, N_, xalloc_die): Move to xalloc-die.c.
40197         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
40198         so that we needn't mess with xalloc_msg_memory_exhausted.
40199
40200         * lib/sha1.h: Renamed from sha.h.
40201         (SHA1_H): Renamed from _SHA_H.
40202         (sha1_ctx): Renamed from sha_ctx.
40203         (sha1_init_ctx): Renamed from sha_init_ctx.
40204         (sha1_process_block): Renamed from sha_process_block.
40205         (sha1_process_bytes): Renamed from sha_process_bytes.
40206         (sha1_finish_ctx): Renamed from sha_finish_ctx.
40207         (sha1_read_ctx): Renamed from sha_read_ctx.
40208         (sha1_stream): Renamed from sha_stream.
40209         (sha1_buffer): Renamed from sha_buffer.
40210         * lib/sha1.c: Likewise; renamed from sha.c.
40211         Do not include <sys/types.h>.
40212         Include <stddef.h> rather than <stdlib.h>.
40213
40214 2004-08-08  Bruno Haible  <bruno@clisp.org>
40215
40216         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
40217         FILESYSTEM_PREFIX_LEN.
40218         * lib/progreloc.c: Likewise.
40219         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
40220
40221 2004-08-06  Simon Josefsson  <jas@extundo.com>
40222
40223         * modules/progname (Depends-on): Don't depend on stdbool.
40224
40225 2004-08-06  Simon Josefsson  <jas@extundo.com>
40226
40227         * modules/getsubopt: New file.
40228         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40229         getsubopt.
40230
40231 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
40232
40233         More merge from coreutils.
40234
40235         * m4/utimens.m4, m4/utimecmp.m4: New files.
40236         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
40237         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
40238         prereq.m4, sha.m4: Import changes from coreutils.
40239
40240 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
40241
40242         More merge from coreutils.
40243         * modules/raise, modules/readtokens0, modules/utimens:
40244         * modules/utimecmp, module/xnanosleep: New files.
40245         * modules/strftime: Add lib/strftime.h.
40246         Change include from <time.h> to "strftime.h".
40247         * modules/yesno: Add lib/yesno.h.
40248         * modules/backupfile: Remove lib/addext.c.
40249         * modules/euidaccess: Add stat-macros.h.
40250         * modules/canonicalize, modules/euidaccess,
40251         modules/filemode, modules/lchown, modules/makepath,
40252         modules/rmdir, modules/stat: Likewise.
40253
40254 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
40255
40256         Merge from tar.
40257         * lib/argp-help.c (make_hol, hol_append): Don't assume that
40258         SIZE_MAX is a valid preprocessor constant.
40259         (__argp_basename): Change from "#ifndef _LIBC"
40260         to "#ifndef __argp_short_program_name", so that
40261         we don't compile these functions for tar.
40262
40263         More merges from coreutils.
40264         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
40265         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
40266         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
40267         * lib/addext.c: Remove; no longer needed.
40268         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
40269         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
40270         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
40271         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
40272         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
40273         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
40274         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
40275         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
40276         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
40277         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
40278         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
40279         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
40280         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
40281         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
40282         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
40283         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
40284         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
40285         Import changes from coreutils.
40286
40287 2004-08-05  Simon Josefsson  <jas@extundo.com>
40288
40289         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
40290
40291 2004-08-05  Simon Josefsson  <jas@extundo.com>
40292
40293         * m4/getsubopt.m4: New file.
40294
40295 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
40296
40297         Merge from coreutils.
40298
40299         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
40300         * m4/getcwd-path-max.m4: New files.
40301
40302         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
40303         FILESYSTEM_PREFIX_LEN ->
40304         FILE_SYSTEM_PREFIX_LEN.
40305         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
40306         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
40307         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
40308         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
40309
40310         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
40311         prerequisite modules now handle the DOS stuff.
40312         Don't check for unistd.h.
40313
40314 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
40315
40316         Merge from coreutils.
40317
40318         * lib/.gdb-history: Remove; this doesn't belong here.
40319
40320         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
40321         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
40322         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
40323         * lib/getcwd.c: New files.
40324
40325         * lib/dirname.h: Include <stdbool.h>.
40326         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
40327         for consistency with POSIX terminology.  All uses changed.
40328         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
40329         (strip_trailing_slashes): Use bool for booleans.
40330         * lib/stripslash.c (strip_trailing_slashes): Likewise.
40331
40332         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
40333         sometimes returns a positive errno value even when it succeeds.
40334         (print_errno_message) [!LIBC]: Fall back on strerror if
40335         __strerror_r fails.
40336
40337         * lib/path-concat.c (mempcpy): Don't define if a system header defines
40338         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
40339         (longest_relative_suffix): New function.
40340         (path_concat): Use it.  Assume first argument is not NULL.
40341         Port to DOS.  Omit redundant separators.
40342         Report an error instead of returning NULL.
40343         Use mempcpy instead of memcpy.
40344         (xpath_concat): Remove: not declared or used.
40345
40346         * lib/same.h: Include <stdbool.h>
40347         (same_name): Return bool, not int.
40348         * lib/same.c (same_name): Likewise.
40349         (errno): Don't declare; we assume C89 or better now.
40350
40351         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
40352         if not already defined.
40353
40354         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
40355         * lib/dup-safer.c (errno): Likewise.
40356
40357 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
40358
40359         Merge from coreutils.
40360         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
40361         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
40362         * modules/path-concat: Don't depend on strdup.
40363
40364 2004-08-03  Simon Josefsson  <jas@extundo.com>
40365
40366         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
40367         * lib/progname.h: Don't include stdbool.h.
40368
40369 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
40370
40371         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
40372         * MODULES.html.sh (func_all_modules): Remove fatal.
40373
40374 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
40375
40376         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
40377
40378 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
40379
40380         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
40381         working.
40382
40383 2004-08-02  Simon Josefsson  <jas@extundo.com>
40384
40385         * lib/getsubopt.h: New file, with comments from Bruno Haible.
40386         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
40387         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
40388
40389 2004-08-01  Simon Josefsson  <jas@extundo.com>
40390
40391         * lib/xgetdomainname.c: Include stdlib.h, for free().
40392
40393 2004-07-19  Bruno Haible  <bruno@clisp.org>
40394
40395         * MODULES.html.sh (func_all_modules): Add dummy.
40396
40397 2004-07-16  Simon Josefsson  <jas@extundo.com>
40398
40399         * modules/dummy: New file.
40400
40401 2004-07-16  Simon Josefsson  <jas@extundo.com>
40402
40403         * lib/dummy.c: New file.
40404
40405 2004-07-16  Bruno Haible  <bruno@clisp.org>
40406
40407         * lib/backupfile.h: Add extern "C" for C++.
40408         * lib/closeout.h: Likewise.
40409         * lib/copy-file.h: Likewise.
40410         * lib/findprog.h: Likewise.
40411         * lib/full-write.h: Likewise.
40412         * lib/pathname.h: Likewise.
40413         * lib/progname.h: Likewise.
40414         * lib/stpcpy.h: Likewise.
40415         * lib/stpncpy.h: Likewise.
40416         * lib/strcase.h: Likewise.
40417         * lib/strstr.h: Likewise.
40418         * lib/xalloc.h: Likewise.
40419
40420         * lib/mbswidth.h: Add extern "C" for C++.
40421         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
40422
40423 2004-07-13  Robert Millan  <robertmh@gnu.org>
40424
40425         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
40426
40427 2004-07-09  Simon Josefsson  <jas@extundo.com>
40428
40429         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
40430         failed without this.)
40431
40432 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
40433
40434         * modules/chown (Files): Add lib/fchown-stub.c, since
40435         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
40436
40437 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
40438
40439         * lib/fchown-stub.c: New file.
40440
40441 2004-06-24  Jim Meyering  <jim@meyering.net>
40442
40443         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
40444
40445 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
40446
40447         * modules/argz: Omit "#include".
40448
40449         * MODULES.html.sh (func_all_modules): Add calloc, to match
40450         2004-06-01 addition of calloc module.
40451
40452 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
40453
40454         * m4/argz.m4: New file, which is autoupdated from libtool.
40455
40456 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
40457
40458         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
40459         libtool.
40460
40461 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
40462
40463         * config/srclist-update: Don't insist on "USA." before the
40464         close-comment, as libtool omits the period and puts the */ on a
40465         separate line.
40466         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
40467         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
40468
40469 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
40470
40471         * modules/argz: New file.
40472         * MODULES.html.sh (func_all_modules): Add argz.
40473
40474 2004-06-12  Jim Meyering  <jim@meyering.net>
40475         and  Paul Eggert  <eggert@cs.ucla.edu>
40476
40477         * modules/hash (Files): Add lib/xalloc.h.
40478         * modules/pipe (Depends-on): Add wait-process.
40479         * modules/stat (Depends-on): Add xalloc.
40480         * modules/userspec (Files): Add lib/userspec.h.
40481         * modules/xstrto
40482
40483         Upgrade from gettext-0.13.
40484         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
40485         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
40486         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
40487
40488 2004-06-10  Jim Meyering  <jim@meyering.net>
40489
40490         * lib/calloc.c: New file.
40491
40492 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
40493
40494         * lib/getdate.y (yylex): Allow space between sign and number.
40495         Problem reported by Dan Jacobson.
40496
40497 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
40498
40499         Merge from coreutils CVS.
40500
40501         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
40502         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
40503         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
40504         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
40505         xstrtol.m4: Fix copyright date and/or serial number.
40506
40507         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
40508         See if we need an fchown replacement.
40509         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
40510         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
40511         and use the replacement function if we detect either defect.
40512
40513         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
40514         gl_UTIMECMP.
40515
40516 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
40517         and  Jim Meyering  <jim@meyering.net>
40518
40519         Merge from coreutils CVS.
40520
40521         * lib/stat-macros.h: New file, with contents from file-type.h
40522         and coreutils' system.h.
40523         * lib/file-type.c: Include "stat-macros.h".
40524         * lib/file-type.h (file_type): Move all macro definitions to new file,
40525         stat-macros.h.
40526
40527         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
40528         Wrap old code with this conditional.
40529         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
40530         function that does not dereference symlinks.
40531         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
40532
40533         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
40534         dependency problems.
40535         (xreadlink): Accept new arg SIZE, for efficiency.
40536         All decls and uses changed.
40537         * lib/xreadlink.h: Include <stddef.h>, for size_t.
40538
40539         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
40540         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
40541
40542         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
40543         sysexits.h.
40544
40545 2004-06-01  Jim Meyering  <jim@meyering.net>
40546
40547         * m4/calloc.m4: New file.
40548
40549 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
40550
40551         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
40552         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
40553         Also, fix a typo in a diagnostic.
40554
40555 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
40556
40557         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
40558         or AC_FUNC_REALLOC.
40559
40560 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
40561
40562         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
40563         macros to be defined.
40564         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
40565         the allocator returns NULL because the requested size is zero.
40566
40567 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
40568
40569         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
40570         var.  Add comment explaining why libc still defines it.  This
40571         merges the following patch from glibc:
40572         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
40573
40574 2004-05-20  Andreas Schwab  <schwab@suse.de>
40575
40576         * m4/free.m4: Replace free if it not known to work, not the other
40577         way round.
40578
40579 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
40580
40581         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
40582         present in glibc since revision 1.1 of this file.
40583         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
40584         obstack_alignment_mask, obstack_alloc, obstack_base,
40585         obstack_blank, obstack_blank_fast, obstack_chunk_size,
40586         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
40587         obstack_grow0, obstack_init, obstack_int_grow,
40588         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
40589         obstack_next_free, obstack_object_size, obstack_ptr_grow,
40590         obstack_ptr_grow_fast, obstack_room): Remove declarations of
40591         nonexistent functions.
40592
40593 2004-05-18  Karl Berry  <karl@gnu.org>
40594
40595         * config/srclist.txt: break link for vasnprintf.c.
40596
40597 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
40598
40599         Port obstack to the AS/400, where pointers are 16 bytes wide and
40600         you cannot cast an integer to a valid pointer.  This patch is
40601         currently waiting to be integrated into glibc; see
40602         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
40603
40604         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
40605         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
40606         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
40607         (struct obstack): temp member is now a union of a pointer and
40608         an integer, instead of an integer.  All integer uses changed.
40609         This does not affect the physical layout of struct obstack,
40610         except on hosts (like the AS/400) where the size or alignment of
40611         void * is greater than that of ptrdiff_t.
40612         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
40613         __STDC__)]: Store temporary in pointer member of union, not
40614         integer member.
40615         * lib/obstack.c: Include <stddef.h>, for offsetof.
40616         (struct fooalign): Remove; it doesn't need a name.
40617         (union fooround): Change double to long double, and add void *.
40618         (DEFAULT_ALIGNMENT): Use offsetof to compute.
40619         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
40620         not a macro.  Hence the values are always int; so remove all
40621         casts-to-int in uses.
40622
40623 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
40624
40625         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
40626         we can get this patch merged into glibc.
40627
40628 2004-05-17  Derek R. Price  <derek@ximbiot.com>
40629             Paul Eggert  <eggert@cs.ucla.edu>
40630
40631         * m4/argp: Depend on alloca.
40632
40633 2004-05-17  Derek R. Price  <derek@ximbiot.com>
40634             Paul Eggert  <eggert@cs.ucla.edu>
40635
40636         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
40637         freecoding.
40638
40639 2004-05-17  Bruno Haible  <bruno@clisp.org>
40640
40641         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
40642         precision that consists of a '.' followed by an empty digit string.
40643         Patch by Tor Lillqvist <tml@iki.fi>.
40644
40645 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
40646
40647         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
40648         for backward compatibility with older code.  We need our own
40649         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
40650         it under some other name, and our alloca.h will define it.
40651
40652 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
40653             Derek Price  <derek@ximbiot.com>
40654
40655         * lib/alloca.c: Include <alloca.h>, to get our interface.
40656         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
40657         include <alloca.h> first.  Use C89 prototype for alloca; this
40658         requires including <stddef.h> for size_t.  Use extern "C" if C++.
40659         Use #elif for simplicity, since we can assume C89 now.
40660         Don't try to source the system alloca.h since it will not be found
40661         and to prevent recursively including its replacement.
40662         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
40663         * lib/regex.c: Likewise.
40664
40665 2004-05-16  Derek Price  <derek@ximbiot.com>
40666             Paul Eggert  <eggert@cs.ucla.edu>
40667
40668         getline cleanup.  This changes the getndelim2 API: both order of
40669         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
40670         no delimiter).
40671
40672         * lib/getline.c: Don't include stddef.h or stdio.h, since our
40673         interface does that.
40674         (getline): Always use getdelim, so that we don't have two
40675         copies of this code.
40676         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
40677         if available.
40678         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
40679         (GETNDELIM2_MAXIMUM): New macro.
40680         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
40681         instead of the old practice of delim2==0.  All callers changed.
40682         Return -1 on overflow, instead of returning junk.
40683         Do not set *linesize unless allocation succeeds.
40684         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
40685         that we include sys/types.h.
40686         * lib/getnline.h: Likewise.
40687         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
40688         (getndelim2): Reorder arguments.
40689         * lib/getnline.c (getnline, getndelim):
40690         Don't discard the NMAX argument.
40691         (getnline): Invoke getndelim, to avoid code duplication.
40692         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
40693         of (size_t) -1 by callers of the getnline family.
40694
40695 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
40696
40697         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
40698         Check for gettimeofday.
40699         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
40700         Check for settimeofday, stime.
40701
40702 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
40703
40704         * lib/nanosleep.c (suspended): Change its type from int to
40705         sig_atomic_t volatile.
40706         (first_call): Make it private to rpl_nanosleep, and have it
40707         be zero initially as that's a bit faster.
40708         (my_usleep): Round up fractional times instead of truncating them,
40709         as this is the usual meaning for 'sleep'.
40710
40711         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
40712         doesn't work.
40713         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
40714         (ENOSYS): Define if not defined.
40715         (settime): Fall back on stime if it exists and settimeofday fails.
40716         But don't bother with fallbacks if a method fails with errno == EPERM.
40717
40718 2004-05-11  Jim Meyering  <jim@meyering.net>
40719
40720         Prior to this change, the save_cwd caller required read access to the
40721         current directory on most systems (ones with the fchdir function).
40722
40723         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
40724         fails, try write-only, and finally, resort to using xgetcwd.
40725
40726 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
40727
40728         * lib/obstack.c, obstack.h: Import changes from libc.
40729
40730 2004-04-28  Bruno Haible  <bruno@clisp.org>
40731
40732         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
40733         also implicitly appends .exe to executables.
40734         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
40735         accepts Windows pathnames.
40736         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
40737         Treat Cygwin like Windows, since it now accepts Windows pathnames.
40738         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
40739         Treat Cygwin like Windows, since it now accepts Windows pathnames.
40740         Reported by Derek Robert Price <derek@ximbiot.com>.
40741
40742 2004-04-21  Karl Berry  <karl@gnu.org>
40743
40744         * config/srclist.txt (localcharset.c): break sync.
40745
40746 2004-04-20  Paul Eggert  <eggert@twinsun.com>
40747
40748         * m4/host-os.m4: Add a copyright notice.
40749
40750 2004-04-20  Jim Meyering  <jim@meyering.net>
40751
40752         Change UTILS_ to gl_ in AC_DEFINE'd names.
40753         Change utils_- and jm_-prefixed variables, too.
40754         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
40755         UTILS_FUNC_MKDIR_TRAILING_SLASH.
40756         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
40757
40758         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
40759         Don't emit trailing blanks.
40760         Also rename jm_-prefixed variables to have gl_ prefix.
40761
40762         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
40763         Also rename jm_-prefixed variables to have gl_ prefix.
40764
40765         * m4/jm-macros.m4: Reflect the renamings.
40766         * m4/prereq.m4: Likewise.
40767
40768 2004-04-20  Jim Meyering  <jim@meyering.net>
40769
40770         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
40771         memory.
40772
40773 2004-04-20  Jim Meyering  <jim@meyering.net>
40774             Bruno Haible  <bruno@clisp.org>
40775
40776         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
40777         memory when realloc fails.
40778
40779 2004-04-19  Jim Meyering  <jim@meyering.net>
40780
40781         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
40782         now that readutmp.c may call `free (0)'.
40783
40784 2004-04-19  Bruno Haible  <bruno@clisp.org>
40785
40786         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
40787         * m4/inttypes_h.m4: Likewise.
40788         * m4/stdint_h.m4: Likewise.
40789         * m4/intmax_t.m4: Likewise.
40790         * m4/uintmax_t.m4: Likewise.
40791
40792 2004-04-18  Jim Meyering  <jim@meyering.net>
40793
40794         * m4/prereq.m4: Don't forbid jm_ prefix.
40795
40796         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
40797         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
40798         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
40799         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
40800         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
40801         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
40802         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
40803         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
40804         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
40805         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
40806         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
40807         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
40808         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
40809         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
40810         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
40811         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
40812         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
40813         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
40814         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
40815
40816 2004-04-18  Jim Meyering  <jim@meyering.net>
40817
40818         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
40819         failure, don't leak memory and do call END_UTMP_ENT.
40820
40821 2004-04-16  Jim Meyering  <jim@meyering.net>
40822
40823         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
40824         coreutils' stat program.
40825         (gl_PREREQ): Don't require jm_PREREQ_STAT.
40826
40827 2004-04-11  Paul Eggert  <eggert@twinsun.com>
40828
40829         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
40830         C89.
40831         (CHAR_BIT): Remove, since we assume C89.
40832         Include <stdint.h> if available, as per current Autoconf CVS advice.
40833
40834 2004-03-31  Jim Meyering  <jim@meyering.net>
40835
40836         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
40837         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
40838         * m4/xalloc.m4: Likewise.
40839
40840 2004-03-30  Paul Eggert  <eggert@twinsun.com>
40841
40842         Merge from coreutils.
40843
40844         * m4/inttostr.m4: New file.
40845         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
40846         Require AM_STDBOOL_H and gl_TIMESPEC instead.
40847         Require gl_CLOCK_TIME.
40848         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
40849
40850 2004-03-30  Paul Eggert  <eggert@twinsun.com>
40851
40852         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
40853         not bool, to be more consistent with Unix conventions.
40854         Suggested by Bruno Haible.
40855
40856         Merge from coreutils.
40857
40858         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
40859         * lib/umaxtostr.c: New files.
40860
40861         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
40862         the usual <time.h> dance.
40863         (get_date): Change signature to support fractional time stamps.
40864         All callers changed.
40865         * lib/getdate.y: Include "getdate.h" first, as we can now
40866         assume C89 and don't need to worry about 'const'.
40867         Similarly, include "unlocked-io.h" near start, not in middle.
40868         Include <limits.h>.
40869         (textint.value): Use long int rather than int.
40870         (textint.digits): Use size_t rather than int.
40871         (BILLION, LOG10_BILLION): New constants.
40872         (parser_control): New member rel_ns.  Members day_ordinal,
40873         time_zone, month, day, hour, minutes, rel_year, rel_month,
40874         rel_day, rel_hour, rel_minutes, rel_seconds
40875         are now long int, not int.  Member seconds is now struct timespec,
40876         not int.  New member timespec_seen.  Members dates_seen, days_seen,
40877         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
40878         not int.
40879         (%union.intval): Now long int, not int.
40880         New member timespec.
40881         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
40882         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
40883         (spec): Now is a timespec or an item list.
40884         (timespec, items): New nonterminals.
40885         (time, rel, relunit, number, get_date):
40886         Add support for fractional seconds.
40887         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
40888         (gmtime, localtime, mktime): Remove decls; not needed with C89.
40889         (to_hour): First arg is now long int, not int.
40890         (to_year): Returns long int, not int.
40891         Don't treat year -70 like 70.
40892         (tm_diff): Returns long int, not int.
40893         (lookup_word): Use bool instead of int when appropriate.
40894         (yylex): Use size_t for count, not int.
40895         Detect overflow when parsing large integer constants.
40896         Add support for fractions.
40897         (get_date): Make pointers 'const' if possible.
40898         Use more-portable code to detect integer overflow.
40899         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
40900         Don't use ctime; it's not reliable if the year has >4 digits.
40901
40902         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
40903         This is for compatibility with BSD.
40904
40905         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
40906         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
40907         From coreutils' system.h.
40908
40909         * lib/userspec.c: Don't include "posixver.h".
40910         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
40911         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
40912         compatible extension.  Simplify code by removing a boolean int
40913         that was always nonzero if a string was nonnull.
40914
40915 2004-03-30  Jim Meyering  <jim@meyering.net>
40916
40917         Merge from coreutils.
40918
40919         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
40920         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
40921         on some systems one must include <grp.h> before it.
40922         Reported by Christian Krackowizer.
40923
40924 2004-03-30  Jim Meyering  <jim@meyering.net>
40925
40926         Merge from coreutils.
40927
40928         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
40929
40930         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
40931         an empty input stream.
40932
40933         * lib/readtokens.c: Include <stdbool.h>.
40934         (readtoken): Use `size_t' rather than int/long.
40935         All callers adjusted.
40936         Use `bool' rather than `int' where appropriate.
40937         Use memset rather than an explicit loop.
40938         Use x2nrealloc rather than xrealloc.
40939         Allow the use of `\0' as a delimiter.
40940         (readtokens): Likewise.
40941         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
40942
40943 2004-03-30  Jim Meyering  <jim@meyering.net>
40944
40945         * m4/realloc.m4: Remove file, since now it does no more than
40946         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
40947         the `configure.ac' section of module/realloc.
40948         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
40949
40950 2004-03-30  Bruno Haible  <bruno@clisp.org>
40951
40952         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
40953         nonnull.
40954
40955 2004-03-29  Paul Eggert  <eggert@twinsun.com>
40956
40957         Merge changes to getloadavg.c from coreutils and Emacs.
40958
40959         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
40960         Define to an expression, not to the empty string.
40961         Include cloexec.h and xalloc.h.
40962         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
40963         Use set_cloexec_flag rather than rolling our own.
40964         * lib/cloexec.c, lib/cloexec.h: New files.
40965
40966 2004-03-29  Paul Eggert  <eggert@twinsun.com>
40967
40968         * m4/cloexec.m4: New file.
40969
40970 2004-03-18  Paul Eggert  <eggert@twinsun.com>
40971
40972         * lib/getopt.h: Sync with libc CVS.
40973
40974 2004-03-18  Paul Eggert  <eggert@twinsun.com>
40975             Bruno Haible  <bruno@clisp.org>
40976
40977         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
40978         mbswidth.
40979
40980 2004-03-18  Paul Eggert  <eggert@twinsun.com>
40981             Bruno Haible  <bruno@clisp.org>
40982
40983         * lib/mbswidth.h: Include <wchar.h> only if
40984         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
40985         <wchar.h>.
40986         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
40987
40988 2004-03-09  Paul Eggert  <eggert@twinsun.com>
40989
40990         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
40991         Sync with libc CVS.
40992         * lib/getopt_int.h: New file, also synced from libc.
40993
40994 2004-03-09  Paul Eggert  <eggert@twinsun.com>
40995
40996         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
40997         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
40998         Bring back getopt.c, getopt.h, getopt1.c.
40999
41000 2004-03-07  Paul Eggert  <eggert@twinsun.com>
41001
41002         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
41003         All uses changed.  Check for sa_sigaction member; this fixes
41004         a bug first reported by Jason Andrade in
41005         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
41006
41007 2004-03-07  Paul Eggert  <eggert@twinsun.com>
41008
41009         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
41010         '#if' expressions.  Unlike the code it replaces, it does not
41011         depend on (defined _SC_PAGESIZE).  However, it does depend on
41012         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
41013         first reported by Jason Andrade in
41014         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
41015
41016 2004-02-25  Simon Josefsson  <jas@extundo.com>
41017
41018         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
41019
41020 2004-02-25  Simon Josefsson  <jas@extundo.com>
41021
41022         * lib/strdup.h: New file.
41023         * lib/strdup.c: Include it.
41024         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
41025         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
41026
41027 2004-02-23  Karl Berry  <karl@gnu.org>
41028
41029         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
41030         (from fencepost.gnu.org:/gd/gnuorg).
41031
41032 2004-02-23  Karl Berry  <karl@gnu.org>
41033
41034         * config/srclistvars.sh (GNUORG) [karl]: redefine.
41035         * config/srclist.txt: add maintain/standards documents.
41036
41037 2004-02-18  Bruno Haible  <bruno@clisp.org>
41038
41039         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
41040         Reported by Derek Robert Price <derek@ximbiot.com>.
41041
41042 2004-02-16  Karl Berry  <karl@gnu.org>
41043
41044         * config/mkinstalldirs, install-sh: update from automake.
41045
41046 2004-02-06  Karl Berry  <karl@gnu.org>
41047
41048         * m4/po.m4: update from gettext 0.14.1.
41049
41050 2004-02-06  Karl Berry  <karl@gnu.org>
41051
41052         * lib/config.charset: update from gettext 0.14.1.
41053
41054 2004-02-05  Paul Eggert  <eggert@twinsun.com>
41055
41056         Add comments and code, prompted by suggestions from Bruno Haible
41057         for sh-quote.
41058         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
41059         describing the enum quoting_style values.
41060         * lib/quotearg.c (quotearg_alloc): New function.
41061         (quotearg_buffer_restyled): Treat lone { and } as special.
41062         Treat = as special.  Work around bug with older shells
41063         that "see" a '\' that is really the 2nd byte of a multibyte char.
41064         Quote empty string with shell_quoting_style.
41065
41066 2004-02-03  Bruno Haible  <bruno@clisp.org>
41067
41068         * m4/pipe.m4: New file, from GNU gettext.
41069
41070 2004-02-03  Bruno Haible  <bruno@clisp.org>
41071
41072         * lib/pipe.h: New file, from GNU gettext.
41073         * lib/pipe.c: New file, from GNU gettext.
41074
41075 2004-01-27  Bruno Haible  <bruno@clisp.org>
41076
41077         * m4/execute.m4: New file, from GNU gettext.
41078
41079 2004-01-27  Bruno Haible  <bruno@clisp.org>
41080
41081         * lib/execute.h: New file, from GNU gettext.
41082         * lib/execute.c: New file, from GNU gettext.
41083         * lib/w32spawn.h: New file, from GNU gettext.
41084
41085 2004-01-24  Paul Eggert  <eggert@twinsun.com>
41086
41087         Merge from diffutils.
41088
41089         * lib/file-type.c (file_type): Add typed memory objects.
41090         * lib/file-type.h (S_TYPEISTMO): New macro.
41091
41092         * lib/c-stack.h (c_stack_action): Remove argv argument.
41093         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
41094         (die): Don't calculate message unless segv_action returns.
41095         (get_stack_location, min_address_from_argv, max_address_from_argv,
41096         volatile stack_base, volatile_stack_size): Remove.
41097         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
41098         that every segmentation violation is a stack overflow.  (Ouch!)
41099         See Debian bug 136249 (still outstanding) for more info about why
41100         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
41101
41102 2004-01-24  Paul Eggert  <eggert@twinsun.com>
41103
41104         Exit-status fix from coreutils.
41105
41106         Use exit_failure consistently in place of EXIT_FAILURE,
41107         so that program exit statuses are consistent on failure.
41108
41109         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
41110         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
41111         * lib/argmatch.h: Comment fix to match the above.
41112         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
41113         Now a macro referring to exit_failure, instead of a separate
41114         variable.  Include "exitfail.h" to get it.
41115         * lib/xstrtol.h: Include "exitfail.h".
41116         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
41117
41118         * lib/long-options.c (parse_long_options): Use prototype
41119         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
41120         for clarity.
41121
41122 2004-01-21  Jim Meyering  <jim@meyering.net>
41123
41124         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
41125         so as not to conflict with a different-sized __mktime_internal
41126         function in GNU libc.
41127         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
41128         Problem building statically-linked `ls' reported by Michael Brunnbauer.
41129
41130 2004-01-20  Karl Berry  <karl@gnu.org>
41131
41132         * config/config.guess: update from config.
41133
41134         * config/srclistvars.sh: GNUWWWLICENSES for karl.
41135
41136 2004-01-20  Bruno Haible  <bruno@clisp.org>
41137
41138         Safer stack allocation.
41139         * lib/setenv.c: Include allocsa.h.
41140         (alloca): Remove fallback definition.
41141         (freea): Remove macro.
41142         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
41143         instead of freea.
41144
41145 2004-01-20  Bruno Haible  <bruno@clisp.org>
41146
41147         * m4/eealloc.m4: New file, from GNU gettext.
41148
41149 2004-01-20  Bruno Haible  <bruno@clisp.org>
41150
41151         * m4/allocsa.m4: New file, from GNU gettext.
41152
41153 2004-01-20  Bruno Haible  <bruno@clisp.org>
41154
41155         * lib/xallocsa.h: New file, from GNU gettext.
41156         * lib/xallocsa.c: New file, from GNU gettext.
41157
41158 2004-01-20  Bruno Haible  <bruno@clisp.org>
41159
41160         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
41161
41162 2004-01-20  Bruno Haible  <bruno@clisp.org>
41163
41164         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
41165         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
41166         specially.
41167
41168 2004-01-20  Bruno Haible  <bruno@clisp.org>
41169
41170         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
41171         patch.
41172
41173 2004-01-20  Bruno Haible  <bruno@clisp.org>
41174
41175         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
41176
41177 2004-01-20  Bruno Haible  <bruno@clisp.org>
41178
41179         * lib/eealloc.h: New file.
41180
41181 2004-01-20  Bruno Haible  <bruno@clisp.org>
41182
41183         * lib/binary-io.h: Avoid warnings on Cygwin.
41184
41185 2004-01-20  Bruno Haible  <bruno@clisp.org>
41186
41187         * lib/allocsa.h: New file, from GNU gettext.
41188         * lib/allocsa.c: New file, from GNU gettext.
41189
41190 2004-01-18  Karl Berry  <karl@gnu.org>
41191
41192         * doc/gpl.texi, doc/lgpl.texi: new files.
41193
41194 2004-01-18  Karl Berry  <karl@gnu.org>
41195
41196         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
41197         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
41198
41199 2004-01-15  Paul Eggert  <eggert@twinsun.com>
41200
41201         Merge from coreutils.
41202
41203         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
41204         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
41205         (gl_DEFAULT_POSIX2_VERSION): Move
41206         the documentation from 'configure' into 'config.hin',
41207         so that 'configure --help' isn't burdened by it and
41208         we don't have to worry about its formatting there.
41209         Reword the documentation so that it's more succinct
41210         and can be run together into a single paragraph.
41211         * m4/same.m4 (gl_SAME): Check for pathconf.
41212
41213 2004-01-15  Paul Eggert  <eggert@twinsun.com>
41214
41215         Merge from coreutils.
41216
41217         * lib/posixver.c: Include posixver.h.
41218
41219         * lib/same.c: Include <stdbool.h>, <limits.h>.
41220         (_POSIX_NAME_MAX): Define if not defined.
41221         (MIN): New macro.
41222         (same_name): If file names are silently truncated, report
41223         that the file names are the same if they are the same after
41224         the silent truncation.
41225
41226         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
41227         conversion function.
41228         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
41229         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
41230         longer needed.
41231
41232 2004-01-15  Jim Meyering  <jim@meyering.net>
41233
41234         Merge from coreutils.
41235
41236         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
41237         if no library is required.
41238         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
41239         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
41240         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
41241         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
41242         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
41243         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
41244         value, $ac_cv_search_crypt, if it's "none required".
41245         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
41246         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
41247         not gl_FUNC_GETLOADAVG.
41248         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
41249         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
41250
41251 2004-01-15  Jim Meyering  <jim@meyering.net>
41252
41253         Merge from coreutils.
41254
41255         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
41256         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
41257         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
41258
41259         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
41260         optional configure-time default.
41261
41262         * lib/version-etc.c (version_etc_copyright): Update copyright date.
41263
41264         * lib/xreadlink.c (xreadlink): Correct outdated comment.
41265
41266 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
41267
41268         Merge from coreutils.
41269
41270         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
41271         value, $ac_cv_search_nanosleep, if it's "none required".
41272
41273 2004-01-14  Paul Eggert  <eggert@twinsun.com>
41274
41275         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
41276         with like-named macro in fnmatch.c.
41277         (EXT): Use an internal constant instead.
41278
41279         Merge fnmatch patches from glibc.
41280         * lib/fnmatch.c (mbsinit): Remove define.
41281         Add libc_hidden_ver (__fnmatch, fnmatch).
41282         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
41283         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
41284
41285 2004-01-14  Karl Berry  <karl@gnu.org>
41286
41287         * config/install-sh: update from automake.
41288
41289 2004-01-13  Karl Berry  <karl@gnu.org>
41290
41291         * config/install-sh: update from automake.
41292
41293 2004-01-09  Karl Berry  <karl@gnu.org>
41294
41295         * config/install-sh: update from automake.
41296
41297 2004-01-05  Karl Berry  <karl@gnu.org>
41298
41299         * config/config.{sub,guess}: update from config.
41300
41301 2003-12-31  Karl Berry  <karl@gnu.org>
41302
41303         * config/depcomp: update from automake.
41304
41305 2003-12-14  Karl Berry  <karl@gnu.org>
41306
41307         * lib/config.charset: update from gettext-runtime.
41308
41309 2003-12-03  Paul Eggert  <eggert@twinsun.com>
41310
41311         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
41312         Bug reported by Alfred M. Szmidt.
41313
41314 2003-12-03  Bruno Haible  <bruno@clisp.org>
41315
41316         * m4/gettext.m4: Upgrade from gettext-0.13.
41317         * m4/po.m4: Upgrade from gettext-0.13.
41318         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
41319         * m4/intmax.m4: New file, from gettext-0.13.
41320         * m4/printf-posix.m4: New file, from gettext-0.13.
41321
41322 2003-11-29  Karl Berry  <karl@gnu.org>
41323
41324         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
41325
41326 2003-11-25  Paul Eggert  <eggert@twinsun.com>
41327             Bruno Haible  <bruno@clisp.org>
41328
41329         * lib/printf-parse.h: Don't include sys/types.h.
41330         (ARG_NONE): New macro.
41331         (char_directive): Change type of *arg_index fields to size_t.
41332         * lib/printf-parse.c: Don't include sys/types.h.
41333         (SSIZE_MAX): Remove macro.
41334         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
41335         Remove unnecessary overflow check.
41336         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
41337         fields.
41338
41339 2003-11-25  Bruno Haible  <bruno@clisp.org>
41340
41341         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
41342
41343 2003-11-25  Bruno Haible  <bruno@clisp.org>
41344
41345         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
41346         gt_TYPE_SSIZE_T.
41347
41348 2003-11-24  Paul Eggert  <eggert@twinsun.com>
41349
41350         * modules/alloca: Remove dependency on xalloc.
41351
41352 2003-11-24  Paul Eggert  <eggert@twinsun.com>
41353
41354         * lib/alloca.c: Remove dependency on xalloc module.
41355         (xalloc_die): Remove.
41356         (memory_full) [!defined emacs]: New macro.
41357         [!defined emacs]: Don't include xalloc.h.
41358         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
41359         address arithmetic overflows.  Change datatypes a bit to avoid
41360         unnecessary casts.
41361
41362 2003-11-22  Jim Meyering  <jim@meyering.net>
41363
41364         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
41365         s/size/size_t/.
41366
41367 2003-11-21  Karl Berry  <karl@gnu.org>
41368
41369         * config/config.{sub,guess}: update from config.
41370
41371 2003-11-18  Karl Berry  <karl@gnu.org>
41372
41373         * config/config.{sub,guess}: update from config.
41374
41375         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
41376
41377 2003-11-17  Paul Eggert  <eggert@twinsun.com>
41378
41379         * README: Mention that S+T cannot overflow if S is the size of
41380         an existing object and T is sufficiently small.
41381
41382 2003-11-17  Jim Meyering  <jim@meyering.net>
41383
41384         On systems without utime and without a utimes function capable of
41385         dealing with a NULL struct utimbuf* argument, this utime replacement
41386         could -- in unusual circumstances -- leak a file descriptor.
41387         * lib/utime.c: Include <unistd.h> and <errno.h>.
41388         (utime_null): Be sure to close `fd' and to preserve errno.
41389         Reported by Geoff Collyer via Arnold Robbins.
41390
41391 2003-11-17  Bruno Haible  <bruno@clisp.org>
41392
41393         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
41394         (Depends-on): Add xsize.
41395
41396 2003-11-17  Bruno Haible  <bruno@clisp.org>
41397
41398         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
41399
41400 2003-11-17  Bruno Haible  <bruno@clisp.org>
41401
41402         * lib/vasnprintf.c (alloca): Remove fallback definition.
41403         (freea): Remove definition.
41404         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
41405         Reported by Paul Eggert.
41406
41407 2003-11-16  Paul Eggert  <eggert@twinsun.com>
41408             Bruno Haible  <bruno@clisp.org>
41409
41410         Protect against address arithmetic overflow.
41411         * lib/printf-args.h: Include stddef.h.
41412         (arguments): Change type of field 'count' to size_t.
41413         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
41414         'unsigned int' where appropriate.
41415         * lib/printf-parse.h: Include sys/types.h.
41416         (char_directive): Change type of *arg_index fields to ssize_t.
41417         (char_directives): Change type of fields 'count', max_*_length to
41418         size_t.
41419         * lib/printf-parse.c: Include sys/types.h and xsize.h.
41420         (SSIZE_MAX): Define fallback value.
41421         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
41422         instead of 'int' where appropriate. Check a_allocated, d_allocated
41423         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
41424         * lib/vasnprintf.c: Include xsize.h.
41425         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
41426         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
41427         overflow. Avoid wraparound when converting a width or precision from
41428         decimal to binary.
41429
41430 2003-11-16  Bruno Haible  <bruno@clisp.org>
41431
41432         Update from GNU gettext.
41433         * lib/printf-parse.c: Generalize to it can be compiled for wide
41434         strings.
41435         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
41436         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
41437         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
41438         SNPRINTF): New macros.
41439         Don't include <alloca.h> if the file is used inside libintl.
41440         (local_wcslen): New function, for Solaris 2.5.1.
41441         (VASNPRINTF): Use it instead of wcslen.
41442
41443 2003-11-16  Bruno Haible  <bruno@clisp.org>
41444
41445         * lib/xsize.h (xmax): New function.
41446         (xsum, xsum3, xsum4): Declare as "pure" functions.
41447
41448 2003-11-12  Paul Eggert  <eggert@twinsun.com>
41449
41450         * modules/xalloc (Files): Undo latest change, since xalloc.h
41451         no longer needs SIZE_MAX or PTRDIFF_MAX.
41452
41453 2003-11-12  Paul Eggert  <eggert@twinsun.com>
41454
41455         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
41456         gl_PTRDIFF_MAX.
41457
41458 2003-11-12  Paul Eggert  <eggert@twinsun.com>
41459
41460         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
41461         "return", to pacify some unknown compiler.  Problem reported
41462         by Joerg Schilling.
41463
41464 2003-11-12  Paul Eggert  <eggert@twinsun.com>
41465
41466         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
41467         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
41468         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
41469         heuristic is just as accurate as far as we know, and it removes a
41470         dependency on size_max.m4 and ptrdiff_max.m4.
41471
41472 2003-11-11  Bruno Haible  <bruno@clisp.org>
41473
41474         * modules/xsize (Files): Add m4/size_max.m4.
41475         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
41476
41477 2003-11-11  Bruno Haible  <bruno@clisp.org>
41478
41479         * m4/size_max.m4: New file.
41480         * m4/ptrdiff_max.m4: New file.
41481         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
41482         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
41483         (gl_XALLOC): Invoke it.
41484
41485 2003-11-11  Bruno Haible  <bruno@clisp.org>
41486
41487         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
41488         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
41489         defined.
41490
41491 2003-11-10  Paul Eggert  <eggert@twinsun.com>
41492
41493         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
41494         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
41495         rejected some allocations of exactly SIZE_MAX - 2 bytes.
41496         From Bruno Haible.
41497         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
41498         not (size_t) -1, since it's defined here.
41499
41500 2003-11-09  Karl Berry  <karl@gnu.org>
41501
41502         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
41503
41504 2003-11-06  Paul Eggert  <eggert@twinsun.com>
41505
41506         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
41507         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
41508         Reject sizes of exactly SIZE_MAX bytes.
41509         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
41510         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
41511
41512 2003-11-05  Bruno Haible  <bruno@clisp.org>
41513
41514         * lib/xsize.h: Include limits.h, to avoid a possible collision with
41515         SIZE_MAX defined in <limits.h> on Solaris.
41516
41517 2003-11-04  Jim Meyering  <jim@meyering.net>
41518
41519         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
41520         variable names, rather than @VAR@.
41521         * modules/poll: Likewise.
41522
41523 2003-11-04  Bruno Haible  <bruno@clisp.org>
41524
41525         * modules/xsize: New file.
41526         * modules/linebreak: Depend on xsize.
41527         * MODULES.html.sh (func_all_modules): Add xsize.
41528
41529 2003-11-04  Bruno Haible  <bruno@clisp.org>
41530
41531         * m4/xsize.m4: New file.
41532
41533 2003-11-04  Bruno Haible  <bruno@clisp.org>
41534
41535         * lib/xsize.h: New file.
41536         * lib/linebreak.c: Include xsize.h.
41537         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
41538         argument for overflow.
41539         Suggested by Paul Eggert.
41540
41541 2003-11-03  Karl Berry  <karl@gnu.org>
41542
41543         * config/config.{guess,sub}: update from config.
41544
41545 2003-11-03  Jim Meyering  <jim@meyering.net>
41546
41547         * modules/userspec (lib_SOURCES): Add userspec.h.
41548         (Include): Add "userspec.h".
41549         Improve description.
41550
41551 2003-11-03  Jim Meyering  <jim@meyering.net>
41552
41553         * lib/userspec.c: Include "userspec.h".
41554         * lib/userspec.h: New file.
41555
41556 2003-11-03  Bruno Haible  <bruno@clisp.org>
41557
41558         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
41559
41560 2003-11-03  Bruno Haible  <bruno@clisp.org>
41561
41562         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
41563         available, to avoid (extremely rare) race condition.
41564         Suggested by Paul Eggert.
41565
41566 2003-11-02  Karl Berry  <karl@gnu.org>
41567
41568         * config/srclist.txt (vasprintf.c): sync broken, sigh.
41569
41570 2003-10-31  Paul Eggert  <eggert@twinsun.com>
41571
41572         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
41573         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
41574         (read_filesystem_list): Set and use me_type_malloced.
41575         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
41576         whatever the type happens to be), for brevity and consistency.
41577         Check for size calculation overflow on Alphas running OSF/1.
41578
41579 2003-10-31  Jim Meyering  <jim@meyering.net>
41580
41581         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
41582
41583         * lib/linebuffer.c: Include <string.h> for declaration of memset.
41584
41585 2003-10-30  Paul Eggert  <eggert@twinsun.com>
41586             Bruno Haible  <bruno@clisp.org>
41587
41588         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
41589         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
41590
41591 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
41592
41593         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
41594         netbsd*-gnu*.  Suggested by Robert Millan.
41595
41596 2003-10-29  Paul Eggert  <eggert@twinsun.com>
41597
41598         * modules/group-member: Depend on stdbool.
41599
41600 2003-10-29  Paul Eggert  <eggert@twinsun.com>
41601
41602         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
41603
41604 2003-10-29  Paul Eggert  <eggert@twinsun.com>
41605
41606         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
41607         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
41608         after the 'gnu' in these cases.  This fixes some bugs in the
41609         previous change, and is based on suggestions by Robert Millan.
41610
41611 2003-10-29  Paul Eggert  <eggert@twinsun.com>
41612
41613         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
41614         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
41615         no longer needed.
41616         * lib/quotearg.c (quotearg_n_options): Use it.
41617         * lib/group-member.c: Include <stdbool.h>.
41618         (free_group_info): Arg is now const *; don't free arg.
41619         (get_group_info): Now returns bool and accepts struct group_info *,
41620         rather than returning a malloc'ed struct group_info *.
41621         All uses changed.  Check for overflow in internal size calculation.
41622
41623         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
41624         rather than xmalloc/xrealloc.
41625         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
41626         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
41627         conformance bug: the old code used a pointer after freeing the
41628         storage that it addressed.
41629         * lib/hash.c (hash_initialize): Simplify the code by using
41630         xalloc_oversized rather than doing it by hand.
41631         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
41632         the buffer preserved.  Use free and xmalloc instead.
41633         * lib/quotearg.c (quotearg_n_options): Likewise.
41634         Use a simpler test for size overflow.  Don't use xalloc_oversized
41635         because unsigned int might be wider than size_t (!); this suggests
41636         that we should switch from unsigned int to size_t for slot numbers.
41637
41638 2003-10-28  Paul Eggert  <eggert@twinsun.com>
41639
41640         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
41641         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
41642         NetBSD kernels.  Requested by Richard Stallman.
41643
41644 2003-10-27  Paul Eggert  <eggert@twinsun.com>
41645
41646         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
41647         to allocate the returned structure.  Do not allocate a subarray,
41648         as x2nrealloc will do that.
41649         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
41650         instead of xnrealloc.
41651         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
41652
41653 2003-10-27  Bruno Haible  <bruno@clisp.org>
41654
41655         * lib/stdbool_.h: Better support for BeOS.
41656
41657 2003-10-26  Paul Eggert  <eggert@twinsun.com>
41658
41659         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
41660         now uses inline.
41661
41662 2003-10-26  Paul Eggert  <eggert@twinsun.com>
41663
41664         * lib/xalloc.h (xalloc_oversized): New static inline function, for
41665         callers that want to do their own size-overflow checking.  Include
41666         <stdbool.h>, since xalloc_oversized returns bool.
41667         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
41668         to use xalloc_oversized.
41669
41670         Add two functions x2realloc, x2nrealloc, for programs that grow
41671         arrays dynamically by doubling their sizes.
41672         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
41673         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
41674         New functions.
41675
41676         Port to C99 semantics for 'inline' of external functions.
41677         Bug reported by Bruno Haible.
41678         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
41679         with the old contents of xnmalloc.
41680         (xnmalloc, xmalloc): Use it.
41681         (xnrealloc_inline): New static inline function,
41682         with the old contents of xnrealloc.
41683         (xnrealloc, xrealloc): Use it.
41684
41685         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
41686         that.
41687
41688 2003-10-26  Karl Berry  <karl@gnu.org>
41689
41690         * config/srclist.txt (COPYING.DOC): no longer available from
41691         /gd/gnuorg; don't know where the ultimate source is.
41692
41693 2003-10-25  Paul Eggert  <eggert@twinsun.com>
41694
41695         Fix several address-calculation bugs in the hash modules,
41696         plus some minor code cleanup.
41697
41698         * lib/hash.h: Include <stdbool.h>, for bool.
41699         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
41700         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
41701         hash_get_n_entries, hash_get_max_bucket_length,
41702         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
41703         hash_rehash): Use size_t rather than unsigned.
41704         * lib/hash.c (struct hash_table, hash_get_n_buckets,
41705         hash_get_n_buckets_used, hash_get_n_entries,
41706         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
41707         hash_get_entries, hash_do_for_each, hash_string, is_prime,
41708         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
41709         Likewise.
41710         (SIZE_MAX): Define if not defined.
41711         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
41712         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
41713         hash_print):
41714         Use const * when possible.
41715         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
41716         (check_tuning): Fix bug: if tuning parameters were very close to
41717         0 or 1, rounding errors could have caused subscript violations.
41718         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
41719         (hash_initialize): Add 'fail:' label
41720         to free table and return NULL, and use it to simplify code.
41721         Use calloc rather than clearing the storage ourself.
41722         (hash_initialize, hash_rehash): Check for arithmetic overflow in
41723         buffer size calculations.
41724         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
41725         Include <stddef.h>, for size_t.
41726         * lib/hash-pjw.c (hash_pjw): Likewise.
41727         Switch to method described by Bruno Haible.
41728         Include <limits.h>, for CHAR_BIT.
41729         (SIZE_BITS): New macro.
41730
41731 2003-10-23  Paul Eggert  <eggert@twinsun.com>
41732
41733         * m4/getline.m4 (AM_FUNC_GETLINE):
41734         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
41735         hosts.  Problem reported by Derek Robert Price in
41736         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
41737         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
41738         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
41739
41740 2003-10-21  Paul Eggert  <eggert@twinsun.com>
41741
41742         * lib/getndelim2.c (getndelim2): When size calculation overflows,
41743         ceiling the allocation at NMAX bytes rather than silently
41744         discarding input bytes before NMAX is reached.  This makes
41745         a difference only if NMAX exceeds SIZE_MAX / 2.
41746
41747         * lib/obstack.c: Merge from glibc.
41748         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
41749         Add libc_hidden_def (_obstack_newchunk).
41750         (_obstack_free) [! defined _LIBC]: Remove.
41751         [defined _LIBC]: Make a strong alias from obstack_free, rather than
41752         a clone of the function body.
41753         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
41754         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
41755
41756         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
41757         glibc.
41758         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
41759         arg to memcpy.
41760
41761         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
41762         (obstack_ptr_grow_fast, obstack_int_grow_fast):
41763         Don't use lvalue casts, as GCC plans to remove support for them
41764         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
41765         was also present in the non-GCC version, indicating that this
41766         code had always been buggy and had never been widely used.
41767         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
41768         Use the fast variant of each macro, rather than copying the
41769         definiens of the fast variant; that way, we'll be more likely to
41770         catch future bugs in the fast variants.
41771
41772 2003-10-20  Bruno Haible  <bruno@clisp.org>
41773
41774         * modules/wait-process: New file.
41775         * MODULES.html.sh (func_all_modules): Add wait-process.
41776
41777 2003-10-20  Bruno Haible  <bruno@clisp.org>
41778
41779         * m4/wait-process.m4: New file.
41780
41781 2003-10-20  Bruno Haible  <bruno@clisp.org>
41782
41783         * lib/wait-process.h: New file, from GNU gettext.
41784         * lib/wait-process.c: New file, from GNU gettext.
41785
41786 2003-10-19  Jim Meyering  <jim@meyering.net>
41787
41788         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
41789         HPUX 10.20.
41790
41791 2003-10-18  Karl Berry  <karl@gnu.org>
41792
41793         * config/config.guess: update from config.
41794
41795 2003-10-16  Paul Eggert  <eggert@twinsun.com>
41796
41797         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
41798         (getgroups): First arg is int, not size_t.
41799         Don't let 'free' mangle errno.
41800
41801 2003-10-16  Paul Eggert  <eggert@twinsun.com>
41802
41803         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
41804
41805 2003-10-16  Karl Berry  <karl@gnu.org>
41806
41807         * config/config.{guess,sub}: update from config.
41808
41809 2003-10-16  Jim Meyering  <jim@meyering.net>
41810
41811         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
41812         memcpy.
41813
41814 2003-10-15  Paul Eggert  <eggert@twinsun.com>
41815
41816         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
41817         (SIZE_MAX): Remove.
41818         (new_exclude, add_exclude_file): Initial size no longer needs to
41819         be a power of 2.
41820         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
41821         our own address arithmetic overflow checking.
41822
41823         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
41824         (fnmatch): Do not alloca more than 2000 wide characters;
41825         instead, use malloc for large buffers.
41826         Check for address arithmetic overflow, and return -1
41827         with errno set to ENOMEM in that case.
41828         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
41829         (NEW_PATTERN): Do not alloca more than 8000 bytes;
41830         instead, return -1.  Check for address arithmetic overflow.
41831
41832 2003-10-14  Paul Eggert  <eggert@twinsun.com>
41833
41834         Handle invalid suffixes and overflow independently, so that
41835         callers can treat them independently as needed.  Fix some bugs in
41836         suffix handling, e.g., "100k@" was not diagnosed as an invalid
41837         suffix for a human-readable blocksize.  The major caller-visible
41838         change is the addition of a new
41839         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
41840         that both overflow and suffix chars were found.
41841
41842         * lib/human.c (humblock): Don't check separately for invalid suffix
41843         char; that is xstrtoumax's job (now that its bug is fixed).
41844         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
41845         INTMAX_MAX]: New macros.
41846         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
41847         TYPE_MAXIMUM): New macros.
41848         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
41849         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
41850         if overflow occurs, as it's what __strtol does and it's more useful
41851         in practice.
41852         (__xstrtol): If __strtol reports some error other than ERANGE,
41853         reflect it to the caller as LONGINT_INVALID.  If it reports
41854         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
41855         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
41856         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
41857         value.
41858         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
41859         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
41860         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
41861         [defined UINTMAX_MAX]: New macros.
41862
41863 2003-10-14  Bruno Haible  <bruno@clisp.org>
41864
41865         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
41866
41867 2003-10-14  Bruno Haible  <bruno@clisp.org>
41868
41869         * m4/sig_atomic_t: New file, from GNU gettext.
41870         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
41871
41872 2003-10-14  Bruno Haible  <bruno@clisp.org>
41873
41874         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
41875         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
41876         Also use volatile where needed.
41877
41878 2003-10-12  Paul Eggert  <eggert@twinsun.com>
41879
41880         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
41881         Change maintainer from Bruno Haible to 'all'.
41882
41883 2003-10-12  Paul Eggert  <eggert@twinsun.com>
41884
41885         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
41886
41887 2003-10-12  Paul Eggert  <eggert@twinsun.com>
41888
41889         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
41890         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
41891         and define in terms of the other primitives.
41892         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
41893         (SIZE_MAX): Define if not already defined.
41894         (array_size_overflow): New function.
41895         (xalloc_die): Abort instead of exiting if 'error' returns.
41896         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
41897         (xmalloc, xrealloc): Use them.
41898         (xcalloc): Check for address arithmetic overflow.
41899         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
41900         a bit faster than strcpy.
41901
41902 2003-10-10  Simon Josefsson  <jas@extundo.com>
41903
41904         * modules/argp (Depends-on): Add restrict and strcase.
41905
41906 2003-10-10  Simon Josefsson  <jas@extundo.com>
41907
41908         * m4/argp.m4: Add AC_C_INLINE.
41909
41910 2003-10-08  Paul Eggert  <eggert@twinsun.com>
41911
41912         Merge getpass from libc, plus a few fixes.
41913
41914         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
41915         Include <stdbool.h>.
41916         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
41917         __fsetlocking to empty.
41918         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
41919         do include <bits/libc-lock.h>.
41920         Do not include <fcntl.h>; not needed.
41921         [_LIBC]: Include <wchar.h>.
41922         (NOTCANCEL_MODE): New macro.
41923         (flockfile, funlockfile) [_LIBC]: New macros.
41924         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
41925         [!_LIBC]: New macros.
41926         (call_fclose): New function.
41927         (getpass): Use it.  Save tty stream separately; this simplifies the
41928         code and makes it more reliable if stdin happens to equal stdout.
41929         Invoke __fsetlocking on tty.
41930         Handle thread cancellation if needed.
41931         Namespace cleanup (use __tcgetattr, __getline).
41932         Use bool for Booleans.
41933         [USE_IN_LIBIO]: Handle wide streams.
41934         [!_LIBC]: Unconditionally do the fseek, since we don't know what
41935         stream might go where.
41936
41937         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
41938         doesn't have to include <stdio.h> before us.
41939         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
41940         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
41941         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
41942         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
41943         if not declared, so that we can use getpass.c code from libc without
41944         rewriting it.
41945         (flockfile, ftrylockfile, funlockfile): New macros.
41946
41947 2003-10-08  Paul Eggert  <eggert@twinsun.com>
41948
41949         * modules/getpass: Depend on stdbool.
41950
41951 2003-10-08  Paul Eggert  <eggert@twinsun.com>
41952
41953         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
41954
41955 2003-10-07  Karl Berry  <karl@gnu.org>
41956
41957         * config/config.{guess,sub}: update from config.
41958
41959 2003-10-06  Jim Meyering  <jim@meyering.net>
41960             Bruno Haible  <bruno@clisp.org>
41961
41962         This lets translators provide better translations for the
41963         "Written by ..." part of --version output.
41964         * lib/version-etc.h: Include stdarg.h.
41965         (version_etc_copyright): Declare as readonly.
41966         (version_etc): Make this function variadic with a NULL-terminated list
41967         of author name strings.
41968         (version_etc_va): New declaration.
41969         * lib/version-etc.c: Include stdarg.h, stdlib.h.
41970         (version_etc_copyright): Declare as readonly.
41971         (version_etc_va): New function. Provide a different translatable string
41972         for each possible number of authors < 10. Abbreviate when there are 10
41973         authors or more.
41974         (version_etc): Make this function variadic. Call version_etc_va.
41975         Suggestion from Gary V. Vaughan.
41976
41977         * lib/long-options.h (parse_long_options): Change prototype: the
41978         authors string is moved to the end and becomes variadic.
41979         * lib/long-options.c: Include stdarg.h.
41980         (parse_long_options): Make this function variadic, too.
41981         Call version_etc_va, not version_etc.
41982
41983 2003-10-06  Bruno Haible  <bruno@clisp.org>
41984
41985         * modules/version-etc-2: Remove file.
41986         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
41987
41988 2003-10-06  Bruno Haible  <bruno@clisp.org>
41989
41990         * modules/fatal-signal: New file.
41991         * MODULES.html.sh (func_all_modules): Add fatal-signal.
41992
41993 2003-10-06  Bruno Haible  <bruno@clisp.org>
41994
41995         * m4/fatal-signal.m4: New file.
41996         * m4/signalblocking.m4: New file, from GNU gettext.
41997
41998 2003-10-06  Bruno Haible  <bruno@clisp.org>
41999
42000         * lib/version-etc-2.h: Remove file.
42001         * lib/version-etc-2.c: Remove file.
42002
42003 2003-10-06  Bruno Haible  <bruno@clisp.org>
42004
42005         * lib/fatal-signal.h: New file, from GNU gettext.
42006         * lib/fatal-signal.c: New file, from GNU gettext.
42007
42008 2003-10-05  Paul Eggert  <eggert@twinsun.com>
42009
42010         * README: Rework advice for preventing empty .o files.
42011         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
42012         not <sys/types.h>.
42013
42014 2003-10-04  Karl Berry  <karl@gnu.org>
42015
42016         * lib/argp*: update from libc.
42017
42018 2003-10-04  Karl Berry  <karl@gnu.org>
42019
42020         * config/config.{guess,sub}: update from config.
42021
42022 2003-10-02  Bruno Haible  <bruno@clisp.org>
42023
42024         * modules/lchown (Include): Add lchown.h.
42025         * modules/time_r (Include): Use "..." syntax.
42026         * modules/xgetdomainname (Include): Add xgetdomainname.h.
42027
42028 2003-10-01  Simon Josefsson  <jas@extundo.com>
42029
42030         * MODULES.html.sh (func_all_modules): Move gethostname from section
42031         'based on' to section 'lacking' POSIX:2001.
42032
42033 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
42034
42035         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
42036         to output mode on the same stream.
42037
42038 2003-09-29  Paul Eggert  <eggert@twinsun.com>
42039
42040         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
42041         Fix arg typo in previous patch.
42042
42043 2003-09-28  Jim Meyering  <jim@meyering.net>
42044
42045         * lib/error.c: Correct cpp indentation.
42046
42047 2003-09-27  Paul Eggert  <eggert@twinsun.com>
42048
42049         * modules/free: New file.
42050
42051 2003-09-27  Paul Eggert  <eggert@twinsun.com>
42052
42053         * m4/free.m4: New file.
42054
42055 2003-09-27  Paul Eggert  <eggert@twinsun.com>
42056
42057         * lib/minmax.h (MIN, MAX)
42058         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
42059         Omit the special code that used __typeof__, since we worry that
42060         it could be more trouble than it's worth.  See:
42061         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
42062         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
42063
42064         * lib/free.c: New file.
42065
42066 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
42067
42068         Trivial fixes to Makefile.am parts of module listings.
42069         * modules/strstr: Append strstr.h to lib_SOURCES.
42070         * modules/strcase: Likewise, for strcase.h.
42071
42072 2003-09-27  Karl Berry  <karl@gnu.org>
42073
42074         * config/mkinstalldirs: update from automake.
42075
42076 2003-09-26  Paul Eggert  <eggert@twinsun.com>
42077
42078         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
42079         (error_tail): Do not loop, reallocating temporary buffer, since
42080         the output cannot contain more wide characters than the input
42081         contains bytes, the size must be big enough already.  This avoids
42082         one potential size overflow calculation.  Check for size overflow
42083         when calculating temporary buffer size.  Free temporary buffer
42084         when done, if it was allocated with malloc; this plugs a memory
42085         leak.  Remove casts from void * to pointers, that are no longer
42086         needed now that we're assuming C89 or better.
42087
42088         Merge error changes from glibc.
42089
42090         * lib/error.c, error.h: Update copyright notice header to match glibc.
42091         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
42092         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
42093         Disable cancellation while printing error.
42094         * lib/error.h: Prepend __ to parameter names.
42095
42096 2003-09-26  Jim Meyering  <jim@meyering.net>
42097
42098         * lib/error.c (error_tail): Move some declarations
42099         into inner scope where the local variables are used.
42100
42101 2003-09-26  Bruno Haible  <bruno@clisp.org>
42102
42103         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
42104         stpncpy().
42105         Don't define stpncpy through config.h; it's now done through stpncpy.h.
42106
42107 2003-09-26  Bruno Haible  <bruno@clisp.org>
42108
42109         * lib/stpncpy.h (gnu_stpncpy): New declaration.
42110         (stpncpy): Define as alias for gnu_stpncpy.
42111         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
42112
42113 2003-09-25  Simon Josefsson  <jas@extundo.com>
42114
42115         * lib/xgetdomainname.h: New file.
42116         * lib/xgetdomainname.c: New file.
42117
42118 2003-09-25  Simon Josefsson  <jas@extundo.com>
42119             Bruno Haible  <bruno@clisp.org>
42120
42121         * modules/getdomainname: New file.
42122         * modules/xgetdomainname: New file.
42123         * MODULES.html.sh (func_all_modules): Add getdomainname,
42124         xgetdomainname.
42125
42126 2003-09-25  Simon Josefsson  <jas@extundo.com>
42127             Bruno Haible  <bruno@clisp.org>
42128
42129         * m4/getdomainname.m4: New file.
42130
42131 2003-09-25  Simon Josefsson  <jas@extundo.com>
42132             Bruno Haible  <bruno@clisp.org>
42133
42134         * lib/getdomainname.h: New file.
42135         * lib/getdomainname.c: New file.
42136
42137 2003-09-25  Karl Berry  <karl@gnu.org>
42138
42139         * lib/argp-fmtstream.c, argp-help.c: update from libc.
42140
42141 2003-09-25  Karl Berry  <karl@gnu.org>
42142
42143         * config/install-sh: update from automake.
42144
42145 2003-09-25  Bruno Haible  <bruno@clisp.org>
42146
42147         * modules/version-etc-2: New file, from modules/version-etc with
42148         modifications.
42149         * MODULES.html.sh (func_all_modules): Add version-etc-2.
42150
42151 2003-09-25  Bruno Haible  <bruno@clisp.org>
42152
42153         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
42154         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
42155
42156 2003-09-24  Simon Josefsson  <jas@extundo.com>
42157
42158         * modules/xgethostname: Add xgethostname.h.
42159
42160 2003-09-24  Paul Eggert  <eggert@twinsun.com>
42161
42162         * lib/linebuffer.c (freebuffer): Don't free the argument, just
42163         the buffer associated with the argument.  Bug reported by
42164         Simon Josefsson.
42165
42166 2003-09-24  Paul Eggert  <eggert@twinsun.com>
42167
42168         * README: Document assumptions that 'int' is at least 32 bits
42169         wide, that integer arithmetic is 2's complement without overflow,
42170         that there are no holes in integer values, that adding sizes of
42171         two nonoverlapping objects can't overflow, and that all-bits-zero
42172         yields scalar zero.  Fix spelling and capitalization typos.
42173
42174 2003-09-19  Karl Berry  <karl@gnu.org>
42175
42176         * lib/argp.h: update from libc.
42177
42178 2003-09-17  Paul Eggert  <eggert@twinsun.com>
42179
42180         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
42181         to avoid spurious warnings like "AC_RUN_IFELSE was called before
42182         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
42183
42184 2003-09-17  Paul Eggert  <eggert@twinsun.com>
42185
42186         * gnulib-tool: Use "test -h", not "test -L", for portability
42187         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
42188         (tags_regexp): Remove, since \| doesn't conform to POSIX.
42189         (sed_extract_prog): Issue s commands one-by-one, rather than
42190         using \| in one s command.
42191
42192 2003-09-16  Paul Eggert  <eggert@twinsun.com>
42193
42194         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
42195         input error, instead of returning NULL the next time we are called
42196         (and therefore losing track of errno).
42197
42198 2003-09-16  Bruno Haible  <bruno@clisp.org>
42199
42200         * gnulib-tool (func_create_testdir): Warn about duplicated
42201         dependencies.
42202
42203 2003-09-15  Paul Eggert  <eggert@twinsun.com>
42204
42205         * modules/argmatch, modules/fatal, modules/obstack,
42206         modules/xalloc, modules/xgethostname: Sort dependencies by
42207         importance, not alphabetically.
42208
42209 2003-09-15  Paul Eggert  <eggert@twinsun.com>
42210
42211         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
42212         fails, so that the caller gets the proper errno.
42213
42214         * lib/readutmp.c (read_utmp): Likewise.
42215         Check for fstat error.  Close stream and free storage
42216         when failing.
42217
42218 2003-09-14  Karl Berry  <karl@gnu.org>
42219
42220         * config/srclist.txt (strdup.c): disable for c89 changes.
42221
42222 2003-09-14  Jim Meyering  <jim@meyering.net>
42223
42224         * lib/getloadavg.c: Correct cpp indentation.
42225         * lib/strdup.c: Likewise.
42226         * lib/vasnprintf.c: Likewise.
42227
42228 2003-09-14  Bruno Haible  <bruno@clisp.org>
42229
42230         * modules/fwriteerror: New file.
42231         * MODULES.html.sh (func_all_modules): Add fwriteerror.
42232
42233 2003-09-14  Bruno Haible  <bruno@clisp.org>
42234
42235         * lib/fwriteerror.h: New file.
42236         * lib/fwriteerror.c: New file.
42237
42238 2003-09-12  Paul Eggert  <eggert@twinsun.com>
42239
42240         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
42241         modules/xgethostname, modules/xalloc: Depend on exit.
42242
42243 2003-09-12  Paul Eggert  <eggert@twinsun.com>
42244
42245         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
42246
42247         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
42248         and AC_MINIX, too, so that their extensions are available.
42249
42250         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
42251         This macro has been superseded by gl_BACKUPFILE.
42252
42253         More patches to assume C89 or better.
42254
42255         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
42256
42257         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
42258         unconditionally.
42259         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
42260         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
42261         Include <string.h>, <stdlib.h> unconditionally.
42262         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
42263         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
42264         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
42265         headers or for string.h.
42266         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
42267         or strtoul.
42268
42269         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
42270         headers.
42271         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
42272         * m4/userspec.m4 (gl_USERSPEC): Likewise.
42273         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
42274         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
42275         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
42276         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
42277         memcpy, memset.
42278         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
42279         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
42280         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
42281         strtol.
42282         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
42283         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
42284         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
42285         strtoul.
42286
42287 2003-09-12  Paul Eggert  <eggert@twinsun.com>
42288
42289         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
42290         * lib/obstack.c [!defined _LIBC]: Likewise.
42291         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
42292         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
42293         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
42294
42295         More changes to assume C89 or better.
42296
42297         * lib/error.c (error_tail): Assume vprintf.
42298
42299         * lib/argmatch.c (getenv): Remove decl.
42300         * lib/progreloc.c (get_full_program_name): Define via prototype.
42301         * lib/setenv.c (clearenv): Likewise.
42302         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
42303         needed.
42304         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
42305         (malloc, memcpy): Remove decls.
42306         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
42307         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
42308         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
42309         (memcpy): Remove macro.
42310         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
42311         (__P): Remove.  All uses removed.
42312         (PTR): Remove.  All uses changed to void *.
42313         (CHAR_BIT, NULL): Remove.
42314         (spaces, zeros, memset_space, memset_zero)
42315         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
42316         Remove.
42317         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
42318         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
42319         Define with prototype.
42320         Remove now-unnecessary prototype decl.
42321         (extra_args_spec): Assume ANSI C.  All uses changed.
42322         (extra_args_spec_iso): Remove.
42323         (my_strftime, emacs_strftimeu): Define via prototype.
42324         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
42325         unconditionally.
42326         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
42327         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
42328         (strtoul, strtol): Remove decls.
42329         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
42330         LONG_MAX): Remove.
42331         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
42332         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
42333         (LOCALE_PARAM_PROTO): New macro.
42334         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
42335         (INTERNAL (strtol), strtol): Define with a prototype.
42336         (PARAMS): Remove.  All uses removed.
42337         * lib/tempname.c: Include <string.h> unconditionally.
42338         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
42339         * lib/xgethostname.c (main): Define with a prototype.
42340         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
42341         Include <stdlib.h> unconditionally.
42342         (calloc, malloc, realloc, free): Remove decls.
42343         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
42344         Include <stdlib.h> unconditionally.  Sort include file names.
42345         (strtod): Remove.
42346         (xstrtod): Define with a prototype.
42347         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
42348         (strtol, strtoul): Remove decls.
42349
42350 2003-09-11  Paul Eggert  <eggert@twinsun.com>
42351
42352         More patches to assume C89 or better.
42353         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
42354         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
42355         string.h, memchr, STDC_HEADERS.
42356
42357 2003-09-11  Paul Eggert  <eggert@twinsun.com>
42358
42359         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
42360         Include <stdlib.h>, <string.h> unconditionally.
42361         Remove now-unnecessary cast to char *.
42362         * lib/strnlen.c: Include <string.h> unconditionally.
42363         * lib/yesno.c (yesno): Define with a prototype.
42364
42365 2003-09-11  Bruno Haible  <bruno@clisp.org>
42366
42367         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
42368
42369 2003-09-10  Jim Meyering  <jim@meyering.net>
42370
42371         * lib/error.c: Correct indentation of cpp directives.
42372
42373 2003-09-10  Bruno Haible  <bruno@clisp.org>
42374
42375         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
42376         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
42377         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
42378         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
42379         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
42380         <stdlib.h> and <string.h> checks.
42381         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
42382         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
42383
42384 2003-09-10  Bruno Haible  <bruno@clisp.org>
42385
42386         * lib/strcspn.c: Include <string.h> unconditionally.
42387         * lib/strpbrk.c: Include <string.h> unconditionally.
42388         * lib/strstr.c: Include <string.h> unconditionally.
42389         * lib/unicodeio.c: Include <string.h> unconditionally.
42390         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
42391         * lib/unsetenv.c: Likewise.
42392         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
42393         * lib/yesno.c: Include <stdlib.h> unconditionally.
42394         (rpmatch): Add prototype.
42395
42396 2003-09-09  Paul Eggert  <eggert@twinsun.com>
42397
42398         More patches to assume C89 or better.
42399         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
42400         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
42401         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
42402         or for string.h.
42403         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
42404         stdlib.h.
42405         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
42406         C headers.
42407         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
42408         string.h.
42409         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
42410         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
42411         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
42412         or for string.h.
42413         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
42414         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
42415         C headers.
42416         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
42417         memcpy.
42418         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
42419         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
42420         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
42421         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
42422         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
42423         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
42424         string.h, free.
42425         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
42426         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
42427         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
42428         C headers, or for string.h.
42429         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
42430         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
42431         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
42432         headers, memory.h, stdlib.h, string.h, strings.h.
42433         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
42434         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
42435         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
42436         strchr.
42437         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
42438         headers, memory.h, string.h.
42439         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
42440         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
42441         free.
42442         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
42443         headers.
42444         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
42445         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
42446         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
42447         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
42448         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
42449
42450 2003-09-09  Paul Eggert  <eggert@twinsun.com>
42451
42452         More K&R removal.
42453
42454         * lib/acosl.c (main): Use a prototype.
42455         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
42456         tanl.c: Likewise.
42457
42458         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
42459
42460         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
42461         (getopt, etopt_long, getopt_long_only, _getopt_internal)
42462         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
42463         with a prototype.
42464         * lib/getopt.c (const): Remove macro.
42465         Include <string.h> unconditionally.
42466         (my_index): Remove; all uses changed to strchr.
42467         (strlen): Remove decl.
42468         (exchange): Remove forward decl; no longer needed.
42469         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
42470         Define with prototype.
42471         * lib/getopt1.c (const): Remove macro.
42472         (getopt_long, getopt_long_only, main): Define with prototype.
42473
42474         * lib/getugroups.c: Include <string.h> unconditionally.
42475
42476         * lib/getusershell.c: Include <stdlib.h> unconditionally.
42477         (getusershell, setusershell, endusershell, readname, main):
42478         Define with prototypes.
42479
42480         * lib/group-member.c: Include group-member.h first.
42481         Include <stdlib.h> unconditionally.
42482
42483         * lib/hard-locale.c: Include hard-locale.h first.
42484         Include <stdlib.h>, <string.h> unconditionally.
42485
42486         * lib/hash.c (free, malloc): Remove decls.
42487         Include <stdlib.h> unconditionally.
42488
42489         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
42490         (getenv): Do not declare.
42491
42492         * lib/idcache.c: Include <string.h> unconditionally.
42493
42494         * lib/long-options.c: Include long-options.h first, to test interface.
42495         Include <stdlib.h> unconditionally.
42496
42497         * lib/makepath.c: Include makepath.h first, to test interface.
42498         Include <stdlib.h> and <string.h> unconditionally.
42499
42500         * lib/linebuffer.c: Include <stdlib.h>.
42501         (free): Remove decl.
42502
42503         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
42504         stddef.h. rpl_malloc returns void *, not char *.
42505         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
42506         prototype.
42507
42508         * lib/md5.h: Include <limits.h> unconditionally.
42509         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
42510         (__P): Remove; all uses removed.
42511         * lib/md5.c: Include "md5.h" first.
42512         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
42513         md5_buffer, md5_process_bytes, md5_process_block):
42514         Define with prototypes.
42515         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
42516         * lib/sha.c: Include "sha.h" first.
42517         Include <stdlib.h>, <string.h> unconditionally.
42518
42519         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
42520         * lib/memcmp.c (__ptr_t): Likewise.
42521         * lib/memrchr.c (__ptr_t): Likewise.
42522         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
42523         Include <string.h> unconditionally.
42524         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
42525         * lib/memchr.c: Include <stdlib.h> unconditionally.
42526         * lib/memchr.c (LONG_MAX): Remove.
42527         * lib/memrchr.c (LONG_MAX): Likewise.
42528         * lib/memchr.c (__memchr): Define via a prototype.
42529         * lib/memrchr.c (__memrchr): Likewise.
42530         * lib/memcmp.c (__P): Remove, and remove all uses.
42531         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
42532         Remove forward decls; no longer needed.
42533         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
42534         Use types required by C89 in prototype.
42535
42536         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
42537         * lib/savedir.c: Likewise.
42538         * lib/mkdir.c (free): Remove decl.
42539         * lib/rmdir.c (rmdir): Define with a prototype.
42540         * lib/savedir.c: Include savedir.h first, to test interface.
42541
42542         * lib/mktime.c (STDC_HEADERS): Remove.
42543         Include <stdlib.h>, <string.h> unconditionally.
42544
42545         * lib/modechange.c: Include <stdlib.h> unconditionally.
42546         (malloc): Remove decl.
42547
42548         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
42549         (free): Remove decl.
42550
42551         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
42552         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
42553         (This type really should be intptr_t, but that's a C99ism.)
42554         (_obstack_memcpy): Remove: all uses changed to memcpy.
42555         Include <string.h> unconditionally.
42556         (struct obstack): Assume __STDC__ for types of members
42557         chunkfun, freefun, extra_arg.
42558         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
42559         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
42560         obstack_begin, obstack_specify_allocation,
42561         obstack_specify_allocation_with_arg, obstack_chunkfun,
42562         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
42563         Remove unprototyped decls and the macros that use them.
42564         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
42565         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
42566         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
42567         (defined __STDC__ && __STDC__)]:
42568         Remove nonprototyped code.
42569         Include <stdlib.h> unconditionally.
42570         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
42571         _obstack_allocated_p, _obstack_free, obstack_free,
42572         _obstack_memory_used, print_and_abort):
42573         Define using prototypes.
42574         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
42575         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
42576         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
42577         obstack_next_free, obstack_object_size, obstack_room) [0]:
42578         Remove unused, unprototyped code.
42579
42580         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
42581
42582         * lib/physmem.c (physmem_total, physmem_available, main): Define
42583         with prototypes.
42584
42585         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
42586         (main): Define with a prototype.
42587
42588         * lib/posixver.c (getenv): Remove decl.
42589
42590         * lib/putenv.c (malloc): Returns void *, not char *.
42591         Include <string.h> unconditionally.
42592         (strchr, memcpy, NULL): Do not define.
42593
42594         * lib/readtokens.c: Include readtokens.h first, to test interface.
42595         Include <stdlib.h>, <string.h> unconditionally.
42596         (init_tokenbuffer): Define with a prototype.
42597
42598         * lib/regex.c (PARAMS): Remove.  All uses removed.
42599         All uses of _RE_ARGS removed, too.
42600         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
42601         unconditionally.
42602         (bzero): Assume memset exists.
42603         (memcmp, memcpy, NULL): Remove.
42604         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
42605         char, or assignments to local vars of type signed char.
42606         (init_syntax_once, PREFIX(extract_number_and_incr),
42607         PREFIX(print_partial_compiled_pattern),
42608         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
42609         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
42610         PREFIX(regex_grow_registers), PREFIX(regex_compile),
42611         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
42612         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
42613         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
42614         wcs_compile_range, byte_compile_range, truncate_wchar,
42615         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
42616         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
42617         count_mbs_length, wcs_re_match_2_internal,
42618         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
42619         PREFIX(alt_match_null_string_p),
42620         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
42621         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
42622         regfree, PREFIX(extract_number)): Define with prototype.  Remove
42623         now-unnecessary declaration, if any.
42624         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
42625         regcomp, regexec):
42626         Remove now-unnecessary casts among pointer types.
42627         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
42628
42629         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
42630         (free): Remove decl.
42631
42632         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
42633
42634         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
42635         (free): Remove decl.
42636
42637         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
42638         * lib/xgetcwd.c: Likewise.
42639
42640         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
42641         (free): Remove decl.
42642
42643         * lib/strchrnul.c (strchrnul): Define with a prototype.
42644         Fix bug: c_in was not converted to char before searching.
42645
42646         The following changes are not K&R related:
42647
42648         * lib/group-member.h: Include <sys/types.h>, so that this file is
42649         self-contained.
42650         * lib/makepath.h: Likewise.
42651
42652         * lib/getusershell.c (readname, default_index, line_size, readname):
42653         Use size_t, not int, for sizes.
42654         (readname): If the size overflows, report an error instead of
42655         looping forever.
42656
42657 2003-09-09  Paul Eggert  <eggert@twinsun.com>
42658
42659         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
42660         libc.
42661
42662 2003-09-09  Paul Eggert  <eggert@twinsun.com>
42663
42664         * README: New section: portability guidelines.
42665
42666 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
42667
42668         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
42669         C89 spec.
42670
42671 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
42672
42673         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
42674
42675 2003-09-08  Paul Eggert  <eggert@twinsun.com>
42676
42677         Assume C89 or better; remove K&R cruft.
42678         A few of these changes were first proposed by Derek Robert Price
42679         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
42680
42681         * lib/addext.c: Include <string.h> unconditionally.
42682         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
42683         Don't declare getenv or malloc.
42684
42685         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
42686         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
42687         (NULL): Remove.
42688         (find_stack_direction, alloca): Use prototypes.
42689
42690         * lib/atexit.c (atexit): Define using a prototype.
42691
42692         * lib/basename.c, dirname.c, stripslash.c:
42693         Include <string.h> unconditionally.
42694
42695         * lib/bcopy.c: Include <stddef.h>.
42696         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
42697
42698         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
42699
42700         * lib/error.h (error, error_at_line, error_print_progname)
42701         [! (defined (__STDC__) && __STDC__)]: Remove decls.
42702         * lib/error.c: Include error.h first, to check interface.
42703         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
42704         (VA_START): Remove; all uses changeed to va_start.
42705         (exit, strerror): Remove decls.
42706         (error_print_progname): Prototype uncondionally.
42707         Don't include <errno.h>; no longer needed.
42708         (private_strerror): Remove.
42709         (error_tail): Always define.
42710         (error, error_at_line): Assume C89 or better; always use prototypes.
42711         * lib/fatal.c: Include "fatal.h" first, to test interface.
42712         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
42713         (VA_START): Remove; all uses changed to va_start.
42714         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
42715         this case.
42716         (exit): Remove decl.
42717         (fatal): Prototype unconditionally.  Assume va_start works.
42718         Abort at end, to pacify gcc.
42719
42720         * lib/euidaccess.c (main): Define with a prototype.
42721
42722         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
42723
42724         * lib/exitfail.c: Include <stdlib.h> unconditionally.
42725
42726         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
42727         prototypes.
42728         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
42729         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
42730         (getenv): Remove decl.
42731         (fnmatch): Define using a prototype.
42732         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
42733         (FCT): Define using a prototype.
42734
42735         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
42736
42737         * lib/gethostname.c: Include <stddef.h>.
42738         (gethostname): Define with prototype.  Length is size_t, not int.
42739
42740 2003-09-08  Paul Eggert  <eggert@twinsun.com>
42741
42742         Assume C89 or better; remove K&R cruft.
42743         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
42744         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
42745         string.h, getenv, malloc.
42746         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
42747         headers.
42748         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
42749         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
42750         do not check for strerror.
42751         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
42752         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
42753         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
42754         do not check for doprnt or vprintf.
42755         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
42756         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
42757
42758 2003-09-08  Paul Eggert  <eggert@twinsun.com>
42759
42760         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
42761         getversion.c should have been removed then, but was accidentally
42762         preserved.
42763
42764         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
42765         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
42766
42767 2003-09-08  Karl Berry  <karl@gnu.org>
42768
42769         * config/config.sub, config.guess, srclistvars.sh: update from savannah
42770                 config, forget about prep.
42771
42772         * config/depcomp, missing: update from automake.
42773
42774 2003-09-07  Paul Eggert  <eggert@twinsun.com>
42775
42776         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
42777         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
42778
42779 2003-09-07  Paul Eggert  <eggert@twinsun.com>
42780
42781         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
42782         copy_tm_result.  Bug reported by Simon Josefsson in
42783         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
42784
42785 2003-09-06  Paul Eggert  <eggert@twinsun.com>
42786
42787         * m4/time_r.m4: New file.
42788         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
42789         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
42790         is. Check for timegm declaration.
42791         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
42792         Do not check for gmtime_r.
42793         Replace mktime if __mktime_internal does not exist and if mktime
42794         hasn't been replaced already.
42795
42796 2003-09-06  Paul Eggert  <eggert@twinsun.com>
42797
42798         * lib/time_r.c, lib/time_r.h: New files.
42799
42800         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
42801         __localtime_r.
42802         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
42803         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
42804
42805         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
42806         __gmtime_r.
42807         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
42808         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
42809         Include <time_r.h>.
42810
42811         * lib/timegm.c: Switch to glibc implementation, with the following
42812         changes:
42813         [defined HAVE_CONFIG_H]: Include <config.h>.
42814         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
42815         (__mktime_internal) [!defined _LIBC]: New decl.
42816         (__gmtime_r) [!defined _LIBC]: New macro and function.
42817         (timegm): Use a prototype, since gnulib assumes C89.
42818         Do not bother declaring tmp to be const, as it's not really usefu.
42819         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
42820         (timegm): Declare only if HAVE_DECL_TIMEGM.
42821
42822 2003-09-06  Paul Eggert  <eggert@twinsun.com>
42823
42824         * MODULES.html.sh (func_all_modules): Add time_r.
42825         * modules/time_r: New file.
42826         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
42827         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
42828
42829 2003-09-03  Paul Eggert  <eggert@twinsun.com>
42830
42831         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
42832         Bug reported by Lute Kamstra in
42833         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
42834
42835         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
42836         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
42837         course with correspondingly smaller numbers for tomorrow and
42838         yesterday.  From Tadayoshi Funaba.  Originally installed into
42839         sh-utils on 1999-08-07, but the patch got lost (I guess during the
42840         coreutils merge?).
42841
42842 2003-08-31  Simon Josefsson  <jas@extundo.com>
42843
42844         * modules/timegm: New file.
42845         * MODULES.html.sh (func_all_modules): Add timegm.
42846
42847 2003-08-31  Simon Josefsson  <jas@extundo.com>
42848
42849         * m4/timegm.m4: New file.
42850
42851 2003-08-31  Simon Josefsson  <jas@extundo.com>
42852
42853         * lib/timegm.h: New file.
42854         * lib/timegm.c: New file.  Based on
42855         wget-1.8.2/src/http.c:mktime_from_utc.
42856
42857 2003-08-31  Karl Berry  <karl@gnu.org>
42858
42859         * lib/argp.h: update from libc.
42860
42861 2003-08-28  Bruno Haible  <bruno@clisp.org>
42862
42863         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
42864         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
42865         followed by '#define fnmatch fnmatch_posix' gives an error.
42866
42867 2003-08-28  Bruno Haible  <bruno@clisp.org>
42868
42869         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
42870         warning on QNX, which defines O_BINARY to 000000.
42871
42872 2003-08-27  Jim Meyering  <jim@meyering.net>
42873
42874         * m4/mkstemp.m4: Require that the system mkstemp be able to create
42875         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
42876         would fail after 32.  Reported by Danny Levinson.  Details here:
42877         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
42878
42879 2003-08-24  Bruno Haible  <bruno@clisp.org>
42880
42881         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
42882         MSVC7 <stdio.h> is included later.
42883
42884 2003-08-22  Simon Josefsson  <jas@extundo.com>
42885
42886         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
42887
42888 2003-08-20  Karl Berry  <karl@gnu.org>
42889
42890         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
42891
42892 2003-08-20  Bruno Haible  <bruno@clisp.org>
42893
42894         * modules/progname: New file.
42895         * MODULES.html.sh (func_all_modules): Add progname.
42896
42897 2003-08-20  Bruno Haible  <bruno@clisp.org>
42898
42899         * lib/progname.h: New file, from GNU gettext.
42900         * lib/progname.c: New file, from GNU gettext.
42901         * lib/progreloc.c: New file, from GNU gettext.
42902
42903 2003-08-19  Jim Meyering  <jim@meyering.net>
42904
42905         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
42906         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
42907
42908 2003-08-19  Bruno Haible  <bruno@clisp.org>
42909
42910         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
42911         more.
42912
42913 2003-08-19  Bruno Haible  <bruno@clisp.org>
42914
42915         * lib/xstrdup.c: Assume <string.h> exists.
42916
42917 2003-08-18  Paul Eggert  <eggert@twinsun.com>
42918
42919         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
42920         in makefile rules.
42921
42922 2003-08-18  Jim Meyering  <jim@meyering.net>
42923
42924         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
42925         * m4/lib-ld.m4: Likewise.
42926
42927 2003-08-18  Jim Meyering  <jim@meyering.net>
42928
42929         * lib/setenv.h: Indent nested cpp directive.
42930         * lib/vasnprintf.c: Remove trailing blanks.
42931
42932 2003-08-17  Simon Josefsson  <jas@extundo.com>
42933
42934         * modules/xstrndup: New file.
42935         * MODULES.html.sh (func_all_modules): Add xstrndup.
42936
42937 2003-08-17  Simon Josefsson  <jas@extundo.com>
42938
42939         * modules/argp: Fix autoconf macro name. Add more dependencies.
42940
42941 2003-08-17  Simon Josefsson  <jas@extundo.com>
42942
42943         * m4/xstrndup.m4: New file.
42944
42945 2003-08-17  Simon Josefsson  <jas@extundo.com>
42946
42947         * m4/argp.m4: New file.
42948
42949 2003-08-17  Simon Josefsson  <jas@extundo.com>
42950             Bruno Haible  <bruno@clisp.org>
42951
42952         * lib/xstrndup.h: New file.
42953         * lib/xstrndup.c: New file.
42954
42955 2003-08-17  Bruno Haible  <bruno@clisp.org>
42956
42957         * modules/strndup (Files, Include): Add lib/strndup.h.
42958
42959 2003-08-17  Bruno Haible  <bruno@clisp.org>
42960
42961         * modules/euidaccess (Files): Add lib/euidaccess.h.
42962
42963 2003-08-17  Bruno Haible  <bruno@clisp.org>
42964
42965         * lib/strndup.h: New file.
42966
42967 2003-08-17  Bruno Haible  <bruno@clisp.org>
42968
42969         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
42970         like AC_GNU_SOURCE.
42971         * modules/extensions (configure.ac): Comment out the invocation of
42972         gl_USE_SYSTEM_EXTENSIONS.
42973
42974 2003-08-16  Paul Eggert  <eggert@twinsun.com>
42975
42976         Merges from coreutils, etc.
42977         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
42978         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
42979         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
42980         fixing a typo.
42981         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
42982         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
42983
42984 2003-08-16  Paul Eggert  <eggert@twinsun.com>
42985
42986         Document merge from coreutils.
42987         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
42988         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
42989         * modules/utime: Add m4/utimes-null.m4.
42990
42991 2003-08-16  Paul Eggert  <eggert@twinsun.com>
42992
42993         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
42994         space, undoing this 2003-08-12 change:
42995         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
42996
42997 2003-08-16  Paul Eggert  <eggert@twinsun.com>
42998
42999         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
43000         strtoul.c from libc, undoing this 2003-08-12 change:
43001         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
43002
43003 2003-08-16  Jim Meyering  <jim@meyering.net>
43004
43005         Merges from coreutils.
43006         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
43007         prefix.  Adjust cache variables similarly.  Create 500 rather than
43008         just 300 files, to exercise bug on Darwin6.5, too.
43009         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
43010         $missing_dir.
43011         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
43012         AM_SYS_POSIX_TERMIOS.
43013         Reported by mkc@mathdogs.com.
43014         Also change use of $am_cv_sys_posix_termios
43015         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
43016         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
43017         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
43018         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
43019         in /proc/mounts until it finds one with matching device number.  This
43020         is unnecessary when the FILE argument *is* a mount point.  No stat call
43021         is necessary in that case.  So, disable the statvfs-testing code on
43022         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
43023         as RedHat bug# 84846.
43024         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
43025         to 1MB, so as not to render systems with no stack size limit (e.g.,
43026         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
43027         Include <unistd.h>.  On some systems,
43028         it is required for the definition of _SC_PAGESIZE.
43029
43030 2003-08-16  Jim Meyering  <jim@meyering.net>
43031
43032         Merge from coreutils.
43033         * lib/xstrtoimax.c: #else #if -> #elif.
43034         * lib/xstrtoumax.c: Likewise.
43035
43036 2003-08-16  Jim Meyering  <jim@meyering.net>
43037
43038         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
43039         * m4/utimes.m4: Removed.
43040         * m4/utimes-null.m4: Renamed from utimes.m4.
43041
43042         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
43043         to 1MB, so as not to render systems with no stack size limit (e.g.,
43044         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
43045         Include <unistd.h>.  On some systems,
43046         it is required for the definition of _SC_PAGESIZE.
43047
43048 2003-08-16  Jim Meyering  <jim@meyering.net>
43049         and Paul Eggert  <eggert@cs.ucla.edu>
43050
43051         Merges from coreutils, etc.
43052
43053         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
43054         using the latest version from cvs.  This avoids problems with #line
43055         directives using a vendor (Sun) compiler.
43056         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
43057         Don't set GETGROUPS_LIB here; now it's
43058         done via getgroups.m4's wrapper function.
43059         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
43060         rather than just in sh-util/configure.in, so that the
43061         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
43062         same.
43063         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
43064         AC_FUNC_GETLOADAVG where to find getloadavg.c.
43065         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
43066         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
43067         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
43068         Remove code that is now done by the newly-required macros.
43069         Append $(EXEEXT) to DF_PROG.
43070         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
43071         Do not invoke or require the following here,
43072         since prereq.m4 or some gnulib .m4 now does this for us:
43073         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
43074         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
43075         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
43076         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
43077         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
43078         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
43079         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
43080         AC_FUNC_OBSTACK.
43081         Do not replace the following functions, as this is now the job
43082         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
43083         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
43084         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
43085         atexit getpass, strdup, getpagesize.
43086         Replace 'raise'.
43087         Do not check for the following functions, as this is now the job
43088         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
43089         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
43090         setregid.
43091         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
43092         Check for sys/sysctl.h.
43093         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
43094         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
43095         of checking for ssize_t ourselves.
43096
43097         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
43098         Require every macro that gnulib/modules/* suggests for us.
43099         (jm_PREREQ_ADDEXT): New macro.
43100         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
43101         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
43102
43103         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
43104         (gl_PHYSMEM): Use it.
43105         Also check for `table' function.
43106         Check for new headers and functions.
43107         Add check for sys/sysmp.h.
43108         With suggestions from Kaveh Ghazi.
43109         Ignore headers that are present but cannot be compiled.  This
43110         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
43111         C 5.4.
43112
43113 2003-08-15  Paul Eggert  <eggert@twinsun.com>
43114
43115         Document merge from coreutils.
43116         * modules/userspec: Depend on posixver.
43117         * modules/strftime: Depend on tzset.
43118
43119 2003-08-15  Paul Eggert  <eggert@twinsun.com>
43120
43121         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
43122         rather than tab, after '#' in shell-script copyright notices.
43123         Suggested by Bruno Haible.
43124
43125 2003-08-15  Paul Eggert  <eggert@twinsun.com>
43126
43127         * config/srclist-update: Use three spaces, rather than tab, after '#'
43128         in shell-script copyright notices.  Suggested by Bruno Haible.
43129         Remove unnecessary parenthesization in regular expression.
43130
43131 2003-08-15  Jim Meyering  <jim@meyering.net>
43132
43133         Merge from coreutils.
43134         * lib/xgethostname.c: Include <stdlib.h>.
43135         (xghostname): Don't exit for anything other than memory-related
43136         failure; just return NULL.
43137         * lib/userspec.c: Include "posixver.h".
43138         (parse_user_spec): Accept `.' as a separator only
43139         in pre-POSIX-200112 mode.
43140         * lib/strtoimax.c: Use #elif rather than #else #if.
43141         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
43142         Remove function, now that we can rely on a working tzset function.
43143         [!_LIBC]: Ensure that the required autoconf test has been run.
43144         [!defined _NL_CURRENT && HAVE_STRFTIME]:
43145         Use underlying_strftime for %r.
43146         * lib/sha.c: Merge in some clean-up and optimization changes from
43147         glibc.
43148         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
43149         Ensure that it is a multiple of 64.
43150         Rearrange loop exit tests so as to avoid performing an
43151         additional fread after encountering an error or EOF.
43152         * lib/realloc.c: Update copyright date.
43153
43154 2003-08-15  Jim Meyering  <jim@meyering.net>
43155         and Paul Eggert  <eggert@twinsun.com>
43156
43157         Merge from coreutils.
43158         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
43159         member but strut utmpx does not.  Needed for AIX 4.3.3.
43160         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
43161
43162 2003-08-15  Jim Meyering  <jim@meyering.net>
43163         and Paul Eggert  <eggert@cs.ucla.edu>
43164
43165         Merges from coreutils, etc.
43166         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
43167         Require gl_FUNC_TZSET_CLOBBER.
43168         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
43169         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
43170         members.
43171
43172 2003-08-14  Paul Eggert  <eggert@twinsun.com>
43173
43174         Help the merge from coreutils.
43175         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
43176         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
43177         * m4/tzset.m4: Use it too.
43178
43179 2003-08-14  Paul Eggert  <eggert@twinsun.com>
43180
43181         * modules/tzset: New file.
43182
43183 2003-08-14  Jim Meyering  <jim@meyering.net>
43184
43185         Merges from coreutils.
43186         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
43187         variable names, rather than @FNMATCH_H@.
43188         * modules/alloca: Likewise for $(ALLOCA_H).
43189
43190         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
43191         the three copies of the literal target, `fnmatch.h'.
43192         * modules/alloca (alloca.h): Likewise.
43193
43194 2003-08-14  Jim Meyering  <jim@meyering.net>
43195
43196         Merge from coreutils.
43197         * m4/tzset.m4: New file.
43198         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
43199         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
43200         otherwise, AIX 5.1 systems would end up using the latter.
43201         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
43202         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
43203         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
43204         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
43205
43206 2003-08-14  Jim Meyering  <jim@meyering.net>
43207
43208         Merge from coreutils.
43209         * lib/obstack.h: Whitespace changes.
43210         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
43211         and xcalloc return values.
43212         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
43213         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
43214         hang on OSF/1 5.1 for DIR on both local and remote file systems.
43215         Reported by (and fix confirmed by) Nelson H. F. Beebe.
43216         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
43217         error from mntctl.
43218         Use mntctl's return value to drive the entry-processing loop, since
43219         we can't rely on the value of the vmt_length member in the last
43220         entry.  On some systems doing so could result in exhausting
43221         virtual memory.  Based in part on a patch from Mike Jetzer.
43222
43223 2003-08-14  Jim Meyering  <jim@meyering.net>
43224         and Paul Eggert  <eggert@twinsun.com>
43225
43226         Merges from coreutils, plus other fixes.
43227         * lib/physmem.c: Merge in portability changes from gcc/libiberty
43228         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
43229         for credits and details.  Thanks to Kaveh Ghazi for helping
43230         to keep these files in sync.
43231         (ARRAY_SIZE): Define it.
43232         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
43233         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
43234         (memcasecmp): Don't assume size_t fits in unsigned int.
43235         Remove casts and duplicate code.
43236         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
43237         (memcpy): Remove definition.
43238         Merge in some clean-up and optimization changes from glibc.
43239         [BLOCKSIZE]: Move definition to top of file.
43240         Ensure that it is a multiple of 64.
43241         Rearrange loop exit tests so as to avoid performing an
43242         additional fread after encountering an error or EOF.
43243         * lib/md5.h (md5_uintptr): Define.
43244         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
43245         return to the initial working directory.  Preserve errno
43246         for caller.
43247         * lib/idcache.c: Include "xalloc.h".
43248         (xmalloc, xrealloc): Remove decls.
43249         (getuser): Remove casts no longer required in C89.
43250         * lib/human.c: Include stdio.h, for sprintf.
43251         * lib/group-member.c: Include "xalloc.h".
43252         (xmalloc, xrealloc): Remove decls.
43253         (get_group_info): Remove casts no longer required in C89.
43254         * lib/getusershell.c (readname): Remove casts no longer required in
43255         C89.
43256         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
43257         * lib/getline.c: Whitespace fix, from coreutils.
43258
43259 2003-08-13  Paul Eggert  <eggert@twinsun.com>
43260
43261         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
43262         Check for isascii.
43263
43264         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
43265         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
43266         Undo previous (whitespace-only) change.
43267
43268 2003-08-13  Paul Eggert  <eggert@twinsun.com>
43269
43270         * lib/exclude.c: Include <ctype.h>
43271         (IN_CTYPE_DOMAIN): New macro.
43272         (is_space): New fn.
43273         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
43274         and empty lines.
43275
43276         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
43277         Undo previous (whitespace-only) change.
43278
43279 2003-08-13  Paul Eggert  <eggert@twinsun.com>
43280
43281         * config/srclist-update: Change update back to the old behavior,
43282         leaving whitespace alone.  Use one 'sed' command rather than a
43283         pipeline.
43284         (fixlicense): Now a variable, not a function.
43285         (remove_trailing_blanks): Remove.
43286         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
43287         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
43288         Undo previous (whitespace-only) change.
43289
43290 2003-08-12  Paul Eggert  <eggert@twinsun.com>
43291
43292         Merge from coreutils.
43293         * modules/euidaccess: Add lib_SOURCES, include for new
43294         file euidaccess.h
43295
43296 2003-08-12  Paul Eggert  <eggert@twinsun.com>
43297
43298         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
43299         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
43300         Normalize leading white space and remove trailing white space.
43301
43302         Merge from coreutils
43303         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
43304
43305         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
43306         0.12.1.  These files are now being upgraded automatically by
43307         ../config/srclist-update.
43308
43309 2003-08-12  Paul Eggert  <eggert@twinsun.com>
43310
43311         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
43312         Normalize leading white space and remove trailing white space.
43313         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
43314         notice, as per ../config/srclist-update.
43315
43316         Merge from coreutils.
43317         * lib/euidaccess.h: New file.
43318         * lib/euidaccess.c: Include it.
43319         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
43320         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
43321         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
43322
43323 2003-08-12  Paul Eggert  <eggert@twinsun.com>
43324
43325         * config/srclist-update: Add copyright notice.
43326         (remove_id_lines, remove_trailing_blanks): New constants.
43327         (fixfile): Use them to normalize spacing a bit in copied files.
43328         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
43329         Normalize leading white space and remove trailing white space.
43330
43331         * config/texinfo.tex: Sync with texinfo.
43332
43333         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
43334         strtoul.c from libc, to merge coreutils whitespace changes.
43335
43336         * config/srclist.txt: Get the following m4 files from gettext:
43337         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
43338         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
43339         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
43340         wint_t.m4.
43341
43342 2003-08-12  Karl Berry  <karl@gnu.org>
43343
43344         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
43345         been made.
43346
43347 2003-08-11  Paul Eggert  <eggert@twinsun.com>
43348
43349         * modules/gnu-source, m4/gnu-source.m4:
43350         Remove; we're assuming Autoconf 2.54 or later now.
43351         Suggested by Bruno Haible.
43352         * MODULES.html.sh (func_all_modules): Remove gnu-source.
43353
43354 2003-08-11  Bruno Haible  <bruno@clisp.org>
43355
43356         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
43357
43358 2003-08-11  Bruno Haible  <bruno@clisp.org>
43359
43360         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
43361         (vasnprintf): Use it instead of wcslen.
43362
43363 2003-08-11  Bruno Haible  <bruno@clisp.org>
43364
43365         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
43366         value to ensure that _Bool promotes to int. Use #define for _Bool when
43367         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
43368
43369 2003-08-10  Karl Berry  <karl@gnu.org>
43370
43371         * lib/regex.h: update from libc (whitespace fix).
43372
43373 2003-08-09  Paul Eggert  <eggert@twinsun.com>
43374
43375         Merge some files from coreutils.  These changes were
43376         originally made by Jim Meyering.
43377         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
43378         many older Unixes require this.
43379         * lib/alloca.c (alloca): Remove cast to argument of free;
43380         no longer needed in C89.
43381         * lib/alloca_.h, regex.h: Fix white space to match
43382         what GNU indent does.
43383
43384 2003-08-09  Paul Eggert  <eggert@twinsun.com>
43385
43386         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
43387         apparently Emacs's Unicode mode got confused before my 2003-08-05
43388         checkin.
43389
43390 2003-08-08  Paul Eggert  <eggert@twinsun.com>
43391
43392         * m4/extensions.m4: New file.
43393         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
43394         Require gl_USE_SYSTEM_EXTENSIONS.
43395         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
43396         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
43397
43398 2003-08-08  Paul Eggert  <eggert@twinsun.com>
43399
43400         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
43401         * modules/extensions, modules/gnu-source: New files.
43402         * modules/timespec, modules/unlocked-io: Depend on extensions.
43403
43404 2003-08-07  Paul Eggert  <eggert@twinsun.com>
43405
43406         * modules/restrict: New file.
43407         * MODULES.html.sh (func_all_modules): Add restrict.
43408         * modules/regex: Depend on restrict.
43409
43410 2003-08-07  Paul Eggert  <eggert@twinsun.com>
43411
43412         * m4/restrict.m4: New file.
43413         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
43414
43415 2003-08-07  Bruno Haible  <bruno@clisp.org>
43416
43417         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
43418         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
43419
43420 2003-08-07  Bruno Haible  <bruno@clisp.org>
43421
43422         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
43423         makes the module 'getndelim2' compatible with the module 'getline'.
43424
43425 2003-08-05  Paul Eggert  <eggert@twinsun.com>
43426
43427         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
43428         byte with "\201" to avoid glitches when editing that source file
43429         with multi-gnome-terminal.
43430
43431 2003-08-05  Paul Eggert  <eggert@twinsun.com>
43432
43433         * lib/bumpalloc.h: Remove.
43434
43435 2003-08-05  Paul Eggert  <eggert@twinsun.com>
43436
43437         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
43438         * modules/bumpalloc: Remove.
43439
43440 2003-08-04  Paul Eggert  <eggert@twinsun.com>
43441
43442         * lib/getloadavg.c: Change copyright notice and spacing to conform to
43443         GNU coding style.
43444
43445         Merge from coreutils.
43446         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
43447         1. From glibc.
43448         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
43449         from Karl Berry, implemented by Jim Meyering.
43450         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
43451         from Dmitry V. Levin.
43452         Remove anachronistic cast of xrealloc.
43453         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
43454         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
43455         type. Otherwise, it wouldn't compile with at least /bin/cc on
43456         ymp-cray-unicos9.0.2.X.
43457         Combine two mostly-identical uses of alloca into one.
43458         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
43459
43460 2003-08-04  Dave Love  <d.love@dl.ac.uk>
43461
43462         [From Emacs.]
43463
43464         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
43465         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
43466         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
43467         obsolete NLIST_NAME_UNION.
43468         [__GNU__]: Undef BSD and FSCALE.
43469         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
43470
43471 2003-08-03  Paul Eggert  <eggert@twinsun.com>
43472
43473         * lib/stdbool_.h (_Bool): Make it signed char, instead of
43474         an enum type, so that it's guaranteed to promote to int.  See:
43475         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
43476
43477 2003-08-03  Karl Berry  <karl@gnu.org>
43478
43479         * config/depcomp: update from automake.
43480
43481 2003-07-31  Paul Eggert  <eggert@twinsun.com>
43482
43483         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
43484         (strerror): Don't assume that a printable int fits in 14 bytes.
43485
43486 2003-07-31  Bruno Haible  <bruno@clisp.org>
43487
43488         * modules/getpass-gnu: New file.
43489         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
43490
43491 2003-07-31  Bruno Haible  <bruno@clisp.org>
43492
43493         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
43494
43495 2003-07-24  Karl Berry  <karl@gnu.org>
43496
43497         * config/missing: update from automake.
43498
43499 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
43500             Bruno Haible  <bruno@clisp.org>
43501
43502         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
43503         * lib/getline.c (getline, getdelim): Likewise.
43504         Remove _GNU_SOURCE define; now it's defined in config.h through
43505         m4/getline.m4.
43506
43507 2003-07-23  Karl Berry  <karl@gnu.org>
43508
43509         * config/config.sub: update from prep.
43510
43511 2003-07-22  Paul Eggert  <eggert@twinsun.com>
43512
43513         * modules/xalloc (Depends-on): Add exitfail.
43514         * modules/xmemcoll: Likewise.
43515
43516 2003-07-22  Paul Eggert  <eggert@twinsun.com>
43517
43518         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
43519         over-parenthesization in macros.
43520
43521         Sync with coreutils.
43522
43523         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
43524         required by C99.
43525
43526         Use `exit_failure' for xalloc and xmemcoll instead of their own
43527         private exit-failure variables.
43528         * lib/xalloc.h (xalloc_exit_failure): Remove.
43529         * lib/xmalloc.c: Likewise.  Include exitfail.h.
43530         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
43531         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
43532         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
43533         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
43534
43535 2003-07-20  Jim Meyering  <jim@meyering.net>
43536
43537         * modules/closeout (Depends-on): Add exitfail.
43538         Suggestion from Bruno Haible.
43539
43540 2003-07-19  Karl Berry  <karl@gnu.org>
43541
43542         * config/config.sub: update from prep.
43543
43544 2003-07-18  Paul Eggert  <eggert@twinsun.com>
43545
43546         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
43547         Remove.
43548         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
43549         to test that it can stand by itself.  Include "exitfail.h".
43550         Clients should set exit_failure instead.
43551         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
43552
43553 2003-07-18  Bruno Haible  <bruno@clisp.org>
43554
43555         * modules/getndelim2: New file.
43556         * modules/getline: Share files with module getndelim2.
43557         * modules/getnline: Depend on getndelim2 instead of sharing files with
43558         it. Add getnline.c to lib_SOURCES.
43559         * MODULES.html.sh (func_all_modules): Add getndelim2.
43560
43561 2003-07-18  Bruno Haible  <bruno@clisp.org>
43562
43563         * m4/getndelim2.m4: New file.
43564         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
43565         invoke gl_PREREQ_GETNDELIM2.
43566         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
43567         gl_PREREQ_GETNDELIM2.
43568         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
43569         gl_GETNDELIM2.
43570
43571 2003-07-18  Bruno Haible  <bruno@clisp.org>
43572
43573         * lib/getndelim2.h: New file.
43574         * lib/getndelim2.c: Make into a module of its own. Include config.h,
43575         getndelim2.h.
43576         (getndelim2): Make non-static. Change return type to ssize_t.
43577         * lib/getline.h: Change argument names.
43578         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
43579         * lib/getnline.c: Include getndelim2.h.
43580
43581 2003-07-18  Andreas Schwab  <schwab@suse.de>
43582
43583         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
43584
43585 2003-07-17  Karl Berry  <karl@gnu.org>
43586
43587         * config/config.sub: update from prep.
43588
43589 2003-07-17  Bruno Haible  <bruno@clisp.org>
43590
43591         * modules/getnline: New file.
43592         * modules/getline: Add lib/getndelim2.c to source file list.
43593         * MODULES.html.sh (func_all_modules): Add getnline.
43594
43595 2003-07-17  Bruno Haible  <bruno@clisp.org>
43596
43597         * m4/getnline.m4: New file.
43598
43599 2003-07-17  Bruno Haible  <bruno@clisp.org>
43600
43601         * m4/Makefile.am.in: Remove file.
43602         * m4/Makefile.am: Remove file.
43603         * m4/Makefile.in: Remove file.
43604
43605 2003-07-17  Bruno Haible  <bruno@clisp.org>
43606
43607         * lib/getnline.h: New file.
43608         * lib/getnline.c: New file.
43609         * lib/getndelim2.c: New file, extracted from getline.c.
43610         (getndelim2): Renamed from getdelim2, with added nmax argument.
43611         * lib/getline.c: Include getndelim2.c.
43612         (getdelim2): Moved out to getndelim2.c.
43613         (getline, getdelim): Update.
43614
43615 2003-07-17  Bruno Haible  <bruno@clisp.org>
43616
43617         * lib/Makefile.am: Remove file.
43618         * lib/Makefile.in: Remove file.
43619
43620 2003-07-17  Bruno Haible  <bruno@clisp.org>
43621
43622         * configure.in: Remove file.
43623         * Makefile.in: Remove file.
43624
43625 2003-07-17  Bruno Haible  <bruno@clisp.org>
43626
43627         * MODULES.html.sh: Put the </BODY> right before </HTML>.
43628
43629 2003-07-16  Karl Berry  <karl@gnu.org>
43630
43631         * config/srclist-update: was running fixlicense twice, which caused
43632                 texinfo.tex to be nullified for some reason.  Simplify,
43633                 $gplsrc is no longer needed as far as I can see?
43634
43635 2003-07-16  Jim Meyering  <jim@meyering.net>
43636
43637         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
43638
43639 2003-07-15  Paul Eggert  <eggert@twinsun.com>
43640
43641         * config/srclist.txt: Get the following files from gettext-runtime/intl
43642         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
43643         ref-del.sin.  From Bruno Haible.
43644         * config/srclist-update (fixfile): Change grep pattern again, since the
43645         previous fix didn't work (there was another trailing $).  Use
43646         '[$]' to escape the $s.
43647
43648 2003-07-15  Karl Berry  <karl@gnu.org>
43649
43650         * lib/vasnprintf.c: update from gettext.
43651
43652 2003-07-15  Karl Berry  <karl@gnu.org>
43653
43654         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
43655         gets expanded when surrounded by '$'.
43656
43657 2003-07-15  Jim Meyering  <jim@meyering.net>
43658
43659         * modules/save-cwd: Don't depend on error.  From Derek Price.
43660
43661 2003-07-15  Jim Meyering  <jim@meyering.net>
43662
43663         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
43664
43665 2003-07-14  Simon Josefsson  <jas@extundo.com>
43666
43667         * modules/mempcpy: New file.
43668         * MODULES.html.sh (func_all_modules): Add mempcpy.
43669
43670 2003-07-14  Simon Josefsson  <jas@extundo.com>
43671
43672         * m4/mempcpy.m4: New file.
43673
43674 2003-07-14  Simon Josefsson  <jas@extundo.com>
43675
43676         * lib/mempcpy.h: New file.
43677         * lib/mempcpy.c: New file.
43678
43679 2003-07-14  Paul Eggert  <eggert@twinsun.com>
43680
43681         * modules/getdate, modules/posixtm: Depend on mktime.
43682
43683 2003-07-14  Paul Eggert  <eggert@twinsun.com>
43684
43685         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
43686         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
43687         unicodeio.c, unicodeio.h, unlocked-io.h:
43688         Switch from LGPL to GPL.
43689
43690 2003-07-14  Paul Eggert  <eggert@twinsun.com>
43691
43692         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
43693         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
43694         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
43695         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
43696         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
43697         updated automatically by ../config/srclist-update.  This changes
43698         their license from LPGL to GPL.
43699
43700 2003-07-14  Paul Eggert  <eggert@twinsun.com>
43701
43702         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
43703         assumed to refer to the root of the most recent stable gettext version.
43704         * config/srclistvars.sh: Add defaults for eggert.
43705         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
43706         Match "This program" as well as "The program".  This is needed
43707         for gettext.
43708
43709 2003-07-14  Jim Meyering  <jim@meyering.net>
43710
43711         Don't emit diagnostics.  Let callers do that.
43712         * lib/save-cwd.c: Don't include "error.h".
43713         (save_cwd): Don't call error.  Ensure that errno is valid
43714         when returning nonzero.
43715
43716         * lib/save-cwd.h (restore_cwd): Update prototype.
43717         * lib/save-cwd.c (restore_cwd): Remove two parameters.
43718         Simplify.  Don't call error upon failure.  Let callers do that.
43719         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
43720         when auditing is enabled.  But don't bother updating the #if.
43721
43722 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
43723
43724         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
43725         it breaks C++ compilation.
43726         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
43727
43728 2003-07-10  Simon Josefsson  <jas@extundo.com>
43729
43730         * modules/strchrnul (Makefile.am): Add strchrnul.h.
43731
43732 2003-07-10  Jim Meyering  <jim@meyering.net>
43733
43734         * m4/clock_time.m4: Remove trailing blank.
43735         * m4/intmax_t.m4: Likewise.
43736
43737 2003-07-10  Jim Meyering  <jim@meyering.net>
43738
43739         * lib/vasnprintf.c: Remove trailing blanks.
43740         Make cpp indentation consistent.
43741
43742 2003-07-09  Paul Eggert  <eggert@twinsun.com>
43743
43744         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
43745         posixver.c, strftime.c, strnlen.c, strverscmp.c:
43746         Switch from LGPL to GPL.
43747
43748 2003-07-09  Paul Eggert  <eggert@twinsun.com>
43749
43750         * config/srclist.txt: Sort sublists.  Add
43751         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
43752         that differ from gnulib for one reason or another; we'd like this list
43753         to be smaller but for now let's document what we have.
43754
43755 2003-07-08  Paul Eggert  <eggert@twinsun.com>
43756
43757         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
43758         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
43759         and sweeter "eval x=$x".
43760         * config/srclist.txt: Get lib/argp* from glibc.
43761
43762 2003-07-07  Paul Eggert  <eggert@twinsun.com>
43763
43764         * lib/mktime.c: Fix some boundary cases and remove need for floating
43765         point.
43766
43767         Issue a compile-time diagnostic if time_t is floating point, or if
43768         two's complement arithmetic is not in effect, or if arithmetic
43769         right shift does not propagate the sign.  These assumptions were
43770         all in the original code but they weren't checked.
43771
43772         (TIME_T_MIDPOINT, verify): New macros.
43773         (__isleap): Remove; it has integer overflow problems.
43774         (leapyear): New function, without those problems.
43775         (ydhms_tm_diff): Remove; splitting into two parts.
43776         (ydhms_diff): New function, containing the arithmetic part of
43777         the old ydhms_tm_diff function.  Issue a compile-time
43778         diagnostic if we are not using C99 integer division.
43779         Avoid casts when possible.
43780         (guess_time_tm): New function, containing the checking part of
43781         the old ydhms_tm_diff function.  Return the new value, rather than
43782         the difference between it and the old.  Accept a new argument T
43783         so that *T specifies the old value.  Check for overflow in the result.
43784
43785         (__mktime_internal): Use a time_t offset, not a long int offset.
43786         This undoes the 2003-06-04 change, which is no longer needed now
43787         that we have better overflow checking.
43788         (localtime_offset): Likewise.
43789
43790         (__mktime_internal): Avoid harmful overflow on hosts where time_t
43791         and long are 64-bit but int is only 32-bit.
43792         (ydhms_diff): Use long int to store year1 and yday1.
43793         Issue a compile-time diagnostic if long int is not wide enough.
43794
43795         (__mktime_internal): Use long int to store adjusted year and yday.
43796         Use plain C rather than preprocessor commands, if that doesn't
43797         affect efficiency.
43798         Check for overflow (and try to repair) after each probe
43799         rather than checking only at the very end.  This avoids some bugs
43800         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
43801         does not equal GMT offset at maximum time).
43802         Use integer to check for overflow rather than floating point; this
43803         is more portable to non-IEEE hosts, and is a tad faster.
43804         When we detect that we are oscillating between two values,
43805         don't check whether tm_isdst has the requested value, since
43806         we already know the answer.  When tm_isdst has the wrong value,
43807         use a different heuristic to find the right one, based on the
43808         extreme values actually observed in practice in tz2003a,
43809         rather than the (overly optimistic) "previous 3 calendar quarters".
43810
43811         (not_equal_tm, print_tm, check_result): Use "const T" rather than
43812         "T const" to accommodate glibc style.
43813         (check_result): Use less-confusing report format.  "long" -> "long int.
43814         (main): Likewise.
43815         Don't loop if the iteration overflows time_t.
43816         Allow a negative step in the iteration.
43817
43818 2003-07-06  Karl Berry  <karl@gnu.org>
43819
43820         * config/depcomp: update from automake.
43821         * config/config.sub: update from prep.
43822
43823 2003-07-03  Karl Berry  <karl@gnu.org>
43824
43825         * config/config.guess: update from prep.
43826
43827 2003-07-01  Paul Eggert  <eggert@twinsun.com>
43828
43829         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
43830         xreadlink.c now includes it unconditionally.
43831
43832 2003-07-01  Paul Eggert  <eggert@twinsun.com>
43833
43834         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
43835         having it depend on HAVE_SYS_TYPES_H.
43836
43837 2003-07-01  Bruno Haible  <bruno@clisp.org>
43838
43839         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
43840         <sys/types.h> should be sufficient.
43841         Reported by Paul Eggert.
43842
43843 2003-06-26  Karl Berry  <karl@gnu.org>
43844
43845         * config/depcomp: update from automake.
43846
43847 2003-06-26  Bruno Haible  <bruno@clisp.org>
43848
43849         * modules/human: Depend on module stdbool.
43850
43851 2003-06-25  Bruno Haible  <bruno@clisp.org>
43852
43853         * modules/readlink: New file.
43854         * modules/xreadlink: Depend on it.
43855         * MODULES.html.sh (func_all_modules): Add readlink.
43856
43857 2003-06-25  Bruno Haible  <bruno@clisp.org>
43858
43859         * m4/readlink.m4: New file.
43860
43861 2003-06-25  Bruno Haible  <bruno@clisp.org>
43862
43863         * lib/readlink.c: New file.
43864
43865 2003-06-22  Karl Berry  <karl@gnu.org>
43866
43867         * config/srclist.txt: update mkinstalldirs from automake.
43868         * config/mkinstalldirs: update.
43869
43870 2003-06-22  Bruno Haible  <bruno@clisp.org>
43871
43872         Portability to mingw32.
43873         * m4/ssize_t.m4: New file, from GNU gettext.
43874         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
43875         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
43876
43877 2003-06-22  Bruno Haible  <bruno@clisp.org>
43878
43879         * modules/safe-read: Add m4/ssize_t.m4.
43880         * modules/xreadlink: Add m4/ssize_t.m4.
43881
43882 2003-06-20  Bruno Haible  <bruno@clisp.org>
43883
43884         Assume C89, so PARAMS isn't needed.
43885         * lib/unicodeio.h (PARAMS): Remove.
43886         * lib/unicodeio.c: Don't use PARAMS.
43887
43888 2003-06-18  Karl Berry  <karl@gnu.org>
43889
43890         * config/config.{guess,sub}: update from prep.
43891
43892 2003-06-18  Jim Meyering  <jim@meyering.net>
43893
43894         Merge changes from coreutils.
43895         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
43896         Remove explicit declarations of xmalloc and realloc.
43897         Include xalloc.h.
43898         (read_utmp): Remove anachronistic cast of xmalloc.
43899
43900 2003-06-17  Paul Eggert  <eggert@twinsun.com>
43901
43902         Assume C89, so PARAMS isn't needed.
43903         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
43904         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
43905         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
43906         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
43907         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
43908         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
43909         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
43910         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
43911         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
43912         lib/xstrtod.h, lib/xstrtol.h: Likewise.
43913         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
43914         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
43915         no longer needed. Anyway, config.h should always be included before any
43916         other file.
43917
43918 2003-06-11  Simon Josefsson  <jas@extundo.com>
43919
43920         * modules/sysexits: New file.
43921         * MODULES.html.sh (func_all_modules): Add sysexits.
43922
43923 2003-06-11  Simon Josefsson  <jas@extundo.com>
43924
43925         * lib/sysexit_.h: New file.
43926
43927 2003-06-11  Derek Price  <derek@ximbiot.com>
43928
43929         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
43930         necessary.
43931
43932 2003-06-11  Bruno Haible  <bruno@clisp.org>
43933
43934         * m4/sysexits.m4: New file.
43935
43936 2003-06-10  Simon Josefsson  <jas@extundo.com>
43937
43938         * lib/argp.h: New file, from glibc.
43939         * lib/argp-ba.c: New file, from glibc.
43940         * lib/argp-eexst.c: New file, from glibc.
43941         * lib/argp-fmtstream.c: New file, from glibc.
43942         * lib/argp-fmtstream.h: New file, from glibc.
43943         * lib/argp-fs-xinl.c: New file, from glibc.
43944         * lib/argp-help.c: New file, from glibc.
43945         * lib/argp-namefrob.h: New file, from glibc.
43946         * lib/argp-parse.c: New file, from glibc.
43947         * lib/argp-pv.c: New file, from glibc.
43948         * lib/argp-pvh.c: New file, from glibc.
43949         * lib/argp-xinl.c: New file, from glibc.
43950
43951 2003-06-10  Simon Josefsson  <jas@extundo.com>
43952
43953         * modules/strchrnul: New file.
43954
43955 2003-06-10  Simon Josefsson  <jas@extundo.com>
43956
43957         * modules/argp: New file.
43958
43959 2003-06-10  Simon Josefsson  <jas@extundo.com>
43960
43961         * m4/strchrnul.m4: New file.
43962
43963 2003-06-10  Simon Josefsson  <jas@extundo.com>
43964
43965         * lib/strchrnul.h: New file.
43966         * lib/strchrnul.c: New file.
43967
43968 2003-06-10  Bruno Haible  <bruno@clisp.org>
43969
43970         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
43971
43972 2003-06-07  Karl Berry  <karl@gnu.org>
43973
43974         * config/config.{guess,sub}: update from prep.
43975
43976 2003-06-07  Jim Meyering  <jim@meyering.net>
43977
43978         * modules/strtod: Use $(...) notation, not @...@ for
43979         AC_REPLACE'd variables.
43980         * modules/localcharset: Likewise.
43981
43982 2003-06-07  Jim Meyering  <jim@meyering.net>
43983
43984         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
43985         in place of my name in the copyright comment.
43986         Remove definition and uses of __P.
43987
43988         From coreutils.
43989         * lib/stat.c: Don't declare xmalloc explicitly.
43990         Instead, include "xalloc.h".
43991         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
43992         xrealloc, and xcalloc return values.
43993         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
43994         Improve comment.
43995         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
43996
43997 2003-06-07  Bruno Haible  <bruno@clisp.org>
43998
43999         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
44000         avoid AC_CONFIG_LINKS.
44001         * modules/fnmatch (Makefile.am): Use explicit creation rule for
44002         fnmatch.h, to avoid AC_CONFIG_LINKS.
44003         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
44004
44005 2003-06-07  Bruno Haible  <bruno@clisp.org>
44006
44007         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
44008         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
44009         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
44010         directory.
44011         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
44012         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
44013         directory.
44014
44015 2003-06-06  Jim Meyering  <jim@meyering.net>
44016
44017         Merge from coreutils.
44018         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
44019         Consolidate declarations and initializations of *_base* locals.
44020
44021         Merge from coreutils.
44022         This avoids a core dump on systems without GNU putenv,
44023         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
44024         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
44025         (unsetenv): New static function, from GNU libc.
44026         (rpl_putenv): Use it.
44027
44028         * lib/modechange.c: Remove trailing blanks.
44029
44030         Merge from coreutils.
44031         * lib/fsusage.c: Remove declaration of statfs.
44032         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
44033
44034         * lib/posixtm.c: Include <stdbool.h> unconditionally.
44035
44036 2003-06-06  Jim Meyering  <jim@meyering.net>
44037
44038         * lib/stdbool_.h: Renamed from stdbool.h.in.
44039
44040 2003-06-06  Jim Meyering  <jim@meyering.net>
44041             Bruno Haible  <bruno@clisp.org>
44042
44043         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
44044         Adjust Makefile.am snippet not to redirect directly to target.
44045         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
44046
44047 2003-06-05  Paul Eggert  <eggert@twinsun.com>
44048
44049         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
44050         mismatch, look in future quarters as well as past.  This fixes a
44051         bug when processing fall-backwards gaps immediately after a long
44052         period of daylight-saving time.
44053
44054         * lib/mktime.c: Assume freestanding C89 or better.
44055         (HAVE_LIMITS_H): Remove.  Assume it's 1.
44056         (__P): Remove; not used.
44057         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
44058         (mktime, not_equal_tm, print_tm, check_result,
44059         main): Use prototypes.  Use const * where appropriate.
44060         (main): Fix typo in testing code that uncovered by above changes.
44061         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
44062
44063 2003-06-04  Paul Eggert  <eggert@twinsun.com>
44064
44065         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
44066         locale.h, localeconv.  This merges changes from coreutils.
44067
44068         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
44069         It can be removed after the next Autoconf is released.
44070         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
44071         needed.
44072
44073 2003-06-04  Paul Eggert  <eggert@twinsun.com>
44074
44075         * lib/mktime.c: Fix Debian bug 177940
44076         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
44077         (localtime_offset): Now long int, not time_t, because we want it
44078         to be guaranteed to be signed.  All uses changed.
44079         (__mktime_internal): If overflow would occur when adding offset,
44080         don't add it.
44081
44082         Merge 'human' changes from coreutils.  Rewrite to support
44083         locale-specific notations like thousands separators.
44084         * lib/human.c: Simplify authorship notice.
44085         Include human.h immediately after config.h.
44086         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
44087         <limits.h>: Do not include, since human.h does.
44088         (SIZE_MAX, UINTMAX_MAX): New macros.
44089         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
44090         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
44091         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
44092         (power_letter): Renamed from suffixes.
44093         (generate_suffix_backwards): Remove.
44094         (adjust_value): Now takes int style (because of human.h changes)
44095         and long double value (for greater precision on some platforms).
44096         (group_number): New function.
44097         (human_readable): Use it.  Use integer options, not enum.
44098         Put the options before the sizes in the arg list.
44099         Support all the new options.
44100         The old human_readable function has been removed;
44101         use inttostr.h instead.
44102         (human_readable, default_block_size, humblock):
44103         Use uintmax_t, not int, for block sizes.
44104         (human_readable_inexact, block_size_types): Remove.
44105         (block_size_opts): New constant.
44106         (human_options): Renamed from human_block_size, with new signature
44107         that allows block sizes up to UINTMAX_MAX.  All callers changed.
44108         * lib/human.h: Add copyright and authorship notice.
44109         Include <limits.h> and <stdbool.h> unconditionally.
44110         (PARAMS): Remove.  All uses removed.
44111         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
44112         (enum human_inexact_style): Remove tag; now a nameless enum.
44113         (human_floor, human_ceiling, human_round_to_even): Now have
44114         values 2, 0, 1 rather than -1, 1, 0.
44115         (human_group_digits, human_suppress_point_zero, human_autoscale,
44116         human_base_1024, human_SI, human_B): New constants.
44117         (human_readable_inexact, human_block_size): Remove.
44118         (human_readable): Size args are now uintmax_t, not int.
44119         (human_options): New decl.
44120
44121         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
44122         unnecessary now that we assume C89 or better.  This change
44123         imported from coreutils.
44124
44125         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
44126         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
44127         in the 2003-05-30 sync from glibc.
44128
44129         .h files should stand alone, but we shouldn't include <sys/types.h>
44130         if we can get away with just <stddef.h>.
44131
44132         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
44133         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
44134         rather than <sys/types.h>, as we merely need size_t.
44135         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
44136         to get size_t.
44137         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
44138         Include <stdio.h>, to get FILE.
44139         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
44140         memcasecmp.h has included <stddef.h> and all we need is size_t.
44141         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
44142         our interface, instead of including <sys/types.h>
44143
44144 2003-06-04  Paul Eggert  <eggert@twinsun.com>
44145
44146         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
44147         now, as glibc mktime is buggy on non-glibc systems.
44148
44149 2003-06-03  Karl Berry  <karl@gnu.org>
44150
44151         * config/config.sub: update from prep.
44152
44153 2003-06-02  Paul Eggert  <eggert@twinsun.com>
44154
44155         [from coreutils]
44156         Fix some minor time-related bugs with POSIX time arguments.
44157         Some valid time stamps were being rejected (notably -1, and
44158         time stamps before 1900 on 64-bit hosts).  And some invalid
44159         time stamps were being accepted, e.g. September 31.
44160
44161         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
44162         that we can return (time_t) -1 successfully.
44163         * lib/posixtm.c: Likewise.
44164         [HAVE_STDBOOL_H]: Include <stdbool.h>.
44165         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
44166         (t): Remove static var.
44167         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
44168         of static var.  All uses changed.
44169         (year): Do not reject years before 1900; they can occur with
44170         64-bit time_t.
44171         (posix_time_parse): Do not check for out-of-range components;
44172         that is now the caller's responsibility, since our checks were
44173         only approximations.
44174         (posixtime): Use mktime to check for out-of-range components,
44175         since it knows them exactly.
44176         If mktime returns (time_t) -1, check whether an error actually occurred
44177         by invoking localtime on -1.
44178         (main) [TEST_POSIXTIME]: Check for input data errors, and report
44179         posixtime failures better.
44180         Improve the test data (in comments only).
44181
44182 2003-06-02  Karl Berry  <karl@gnu.org>
44183
44184         * config/mkinstalldirs (version): new variable.
44185         (--version): new option.
44186         (usage): improve message.
44187
44188 2003-05-30  Karl Berry  <karl@gnu.org>
44189
44190         * lib/mktime.c: update from libc.
44191
44192 2003-05-30  Bruno Haible  <bruno@clisp.org>
44193
44194         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
44195         * config/config.rpath: Upgrade to gettext-0.12.1.
44196
44197 2003-05-30  Bruno Haible  <bruno@clisp.org>
44198
44199         * m4/gettext.m4: Upgrade to gettext-0.12.1.
44200         * m4/nls.m4: New file, from gettext-0.12.1.
44201         * m4/po.m4: New file, from gettext-0.12.1.
44202         * m4/progtest.m4: Upgrade to gettext-0.12.1.
44203
44204 2003-05-30  Bruno Haible  <bruno@clisp.org>
44205
44206         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
44207         * lib/localcharset.h: Likewise.
44208         * lib/localcharset.c: Likewise.
44209
44210 2003-05-29  Karl Berry  <karl@gnu.org>
44211
44212         * config/config.rpath: update from gettext.
44213
44214 2003-05-28  Paul Eggert  <eggert@twinsun.com>
44215
44216         Assume the headers required for C89 freestanding compilers.
44217         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
44218         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
44219         * m4/human.m4 (gl_HUMAN): Likewise.
44220         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
44221         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
44222         * m4/userspec.m4 (gl_USERSPEC): Likewise.
44223         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
44224         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44225         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
44226
44227 2003-05-28  Paul Eggert  <eggert@twinsun.com>
44228
44229         Assume the headers required for C89 freestanding compilers.
44230         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
44231         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
44232         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
44233         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
44234         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
44235         define, since <limits.h> is guaranteed to do that.
44236         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
44237         * lib/exclude.c: Include <stdbool.h> unconditionally.
44238         * lib/tempname.c: Include <stddef.h> unconditionally.
44239         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
44240         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
44241         <stddef.h> does that.
44242         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
44243         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
44244         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
44245         needed.
44246         * lib/xstrtol.c: Likewise.
44247         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
44248         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
44249
44250         * lib/addext.c (addext): Use assignment rather than cast, to avoid
44251         warnings on some platforms.
44252
44253         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
44254         arbitrarily.
44255
44256 2003-05-26  Jim Meyering  <jim@meyering.net>
44257
44258         Merge in a change from coreutils:
44259         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
44260         that is guaranteed to be `no'.  Use `no_such_member' to indicate
44261         that condition, rather than `-1' which is slightly misleading.
44262         Change the name of the cache variable to have the gl_ prefix.
44263         Prompted by a patch from Richard Dawe for DJGPP.
44264
44265 2003-05-24  Karl Berry  <karl@gnu.org>
44266
44267         * config/config.guess: update from prep.
44268
44269 2003-05-22  Karl Berry  <karl@gnu.org>
44270
44271         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
44272
44273 2003-05-20  Karl Berry  <karl@gnu.org>
44274
44275         * config/config.guess: update from prep.
44276
44277 2003-05-18  Karl Berry  <karl@gnu.org>
44278
44279         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
44280         might actually be set by the user.
44281
44282         * config/depcomp, install-sh, mdate-sh: update from automake.
44283
44284 2003-05-17  Bruno Haible  <bruno@clisp.org>
44285
44286         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
44287         invalid expansion for AC_EGREP_CPP.
44288         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
44289         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
44290         Suggested by Akim Demaille <akim@epita.fr> in
44291         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
44292
44293 2003-05-12  Jim Meyering  <jim@meyering.net>
44294
44295         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
44296         the space-padded-by-default conversion specifiers, %e, %k, %l.
44297
44298 2003-05-12  Bruno Haible  <bruno@clisp.org>
44299
44300         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
44301         the string is longer than 4 KB.
44302
44303 2003-05-11  Karl Berry  <karl@gnu.org>
44304
44305         * config/config.{guess,sub}: update from prep.
44306
44307 2003-05-09  Bruno Haible  <bruno@clisp.org>
44308
44309         * modules/error: Add m4/strerror_r.m4 to file list.
44310
44311 2003-05-03  Bruno Haible  <bruno@clisp.org>
44312
44313         Upgrade to Unicode-4.0.
44314         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
44315         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
44316         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
44317         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
44318         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
44319         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
44320         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
44321         Change width of U+E0100..U+E01EF from 1 to 0.
44322
44323 2003-04-25  Jim Meyering  <jim@meyering.net>
44324
44325         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
44326         of type size_t, not int.
44327
44328 2003-04-25  Bruno Haible  <bruno@clisp.org>
44329
44330         * lib/copy-file.c: Include <stddef.h>, for size_t.
44331
44332 2003-04-21  Paul Eggert  <eggert@twinsun.com>
44333
44334         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
44335         code which expansion is under static control.  Patch imported from
44336         Akim Demaille's patch to Bison; see
44337         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
44338
44339 2003-04-14  Bruno Haible  <bruno@clisp.org>
44340
44341         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
44342
44343 2003-04-11  Jim Meyering  <jim@meyering.net>
44344
44345         Merge changes from Coreutils.
44346
44347         2003-03-22  Jim Meyering  <jim@meyering.net>
44348
44349         * lib/strftime.c (widen): Cast alloca return value to proper type.
44350
44351         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
44352
44353         From GNU libc.
44354         * lib/strftime.c (my_strftime): Handle very large width
44355         specifications for numeric values correctly.  Improve checks for
44356         overflow.
44357
44358         2003-01-19  Jim Meyering  <jim@meyering.net>
44359
44360         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
44361         definitions.
44362         (nl_get_alt_digit) [! defined my_strftime]: Define.
44363         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
44364         _nl_get_alt_digit and _nl_get_walt_digit.
44365
44366         * lib/strftime.c (my_strftime): Merge in locale-related changes from
44367         libc. These changes have no effect outside of _LIBC.
44368
44369 2003-04-10  Bruno Haible  <bruno@clisp.org>
44370
44371         * modules/findprog: New file.
44372         * MODULES.html.sh (func_all_modules): Add it.
44373
44374 2003-04-10  Bruno Haible  <bruno@clisp.org>
44375
44376         * m4/findprog.m4: New file.
44377         * m4/eaccess.m4: New file.
44378
44379 2003-04-10  Bruno Haible  <bruno@clisp.org>
44380
44381         * lib/findprog.h: New file, from GNU gettext.
44382         * lib/findprog.c: New file, from GNU gettext.
44383
44384 2003-04-05  Jim Meyering  <jim@meyering.net>
44385
44386         Merge changes from Coreutils.
44387
44388         * lib/exclude.h (PARAMS): Remove definition and uses.
44389         * lib/exclude.c: Remove uses of `PARAMS'.
44390
44391         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
44392         Add test-cases for DOS filenames. Declare program_name.
44393         (main): Set up program_name.  Patch by Rich Dawe.
44394
44395         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
44396         error from mntctl.
44397         Use mntctl's return value to drive the entry-processing loop, since
44398         we can't rely on the value of the vmt_length member in the last
44399         entry.  On some systems doing so could result in exhausting
44400         virtual memory.  Based in part on a patch from Mike Jetzer.
44401
44402 2003-04-04  Bruno Haible  <bruno@clisp.org>
44403
44404         * modules/linebreak: New file.
44405         * MODULES.html.sh (func_all_modules): Add it.
44406
44407 2003-04-04  Bruno Haible  <bruno@clisp.org>
44408
44409         * m4/linebreak.m4: New file.
44410
44411 2003-04-04  Bruno Haible  <bruno@clisp.org>
44412
44413         * lib/linebreak.h: New file, from GNU gettext.
44414         * lib/linebreak.c: New file, from GNU gettext with slight
44415         modifications.
44416         * lib/lbrkprop.h: New file, from GNU gettext.
44417
44418 2003-04-03  Bruno Haible  <bruno@clisp.org>
44419
44420         * modules/utf8-ucs4: New file.
44421         * modules/utf16-ucs4: New file.
44422         * modules/ucs4-utf8: New file.
44423         * modules/ucs4-utf16: New file.
44424         * MODULES.html.sh (func_all_modules): Add them.
44425
44426 2003-04-03  Bruno Haible  <bruno@clisp.org>
44427
44428         * m4/utf-ucs4.m4: New file.
44429         * m4/ucs4-utf.m4: New file.
44430
44431 2003-04-03  Bruno Haible  <bruno@clisp.org>
44432
44433         * lib/utf8-ucs4.h: New file, from GNU gettext.
44434         * lib/utf16-ucs4.h: New file, from GNU gettext.
44435         * lib/ucs4-utf8.h: New file, from GNU gettext.
44436         * lib/ucs4-utf16.h: New file, from GNU gettext.
44437
44438 2003-04-02  Bruno Haible  <bruno@clisp.org>
44439
44440         * modules/binary-io: New file.
44441         * MODULES.html.sh (func_all_modules): Add it.
44442
44443 2003-04-02  Bruno Haible  <bruno@clisp.org>
44444
44445         * lib/binary-io.h: New file, from GNU gettext.
44446
44447 2003-04-01  Bruno Haible  <bruno@clisp.org>
44448
44449         * modules/pathname: New file.
44450         * MODULES.html.sh (func_all_modules): Add it.
44451
44452 2003-04-01  Bruno Haible  <bruno@clisp.org>
44453
44454         * lib/pathname.h: New file, from GNU gettext.
44455         * lib/concatpath.c: New file, from GNU gettext.
44456
44457 2003-03-30  Bruno Haible  <bruno@clisp.org>
44458
44459         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
44460
44461 2003-03-30  Bruno Haible  <bruno@clisp.org>
44462
44463         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
44464         function chown() doesn't exist.
44465
44466 2003-03-28  Bruno Haible  <bruno@clisp.org>
44467
44468         * modules/copy-file: New file.
44469         * MODULES.html.sh (func_all_modules): Add it.
44470
44471 2003-03-28  Bruno Haible  <bruno@clisp.org>
44472
44473         * m4/copy-file.m4: New file.
44474
44475 2003-03-28  Bruno Haible  <bruno@clisp.org>
44476
44477         * lib/copy-file.h: New file, from GNU gettext.
44478         * lib/copy-file.c: New file, from GNU gettext.
44479
44480 2003-03-18  Jim Meyering  <jim@meyering.net>
44481
44482         * lib/quote.c (quote_n): Fix typo in comment.
44483
44484 2003-03-18  Bruno Haible  <bruno@clisp.org>
44485
44486         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
44487         checking.
44488         * m4/onceonly_2_57.m4: Likewise.
44489
44490 2003-03-17  Bruno Haible  <bruno@clisp.org>
44491
44492         * m4/onceonly.m4: Require autoconf 2.54 or newer.
44493         (m4_quote): Remove macro.
44494         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
44495
44496 2003-03-14  Jim Meyering  <jim@meyering.net>
44497
44498         Merge changes from Coreutils.
44499         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
44500         to be const, in order to avoid warnings.
44501         (obstack_room): Likewise.
44502         (obstack_empty_p): Likewise.
44503
44504 2003-03-14  Bruno Haible  <bruno@clisp.org>
44505
44506         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
44507         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
44508
44509 2003-03-13  Paul Eggert  <eggert@twinsun.com>
44510
44511         Merge changes from Bison.
44512         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
44513         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
44514         when compiling Bison 1.875's `bitset bset = obstack_alloc
44515         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
44516         * lib/hash.c: Include <stdbool.h> unconditionally.
44517
44518 2003-03-13  Paul Eggert  <eggert@twinsun.com>
44519
44520         * m4/onceonly.m4 (m4_quote): New macro.
44521         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
44522         Quote AC_FOREACH variable-expansions properly.
44523
44524 2003-03-13  Paul Eggert  <eggert@twinsun.com>
44525
44526         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
44527
44528 2003-03-09  Paul Eggert  <eggert@twinsun.com>
44529
44530         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
44531         Reported by Bruce Becker; see:
44532         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
44533
44534 2003-03-03  Paul Eggert  <eggert@twinsun.com>
44535             Bruno Haible  <bruno@clisp.org>
44536
44537         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
44538         Reported by John Hughes, see
44539         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
44540
44541 2003-02-20  Bruno Haible  <bruno@clisp.org>
44542
44543         * MODULES.html.sh (func_all_modules): Add poll.
44544
44545 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
44546
44547         * modules/poll: New file.
44548
44549 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
44550
44551         * lib/poll_.h: New file.
44552         * lib/poll.c: New file.
44553
44554 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
44555
44556         * m4/poll.m4: New file.
44557
44558 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
44559
44560         * modules/mathl: New file.
44561
44562 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
44563
44564         * lib/mathl.h: New file.
44565         * lib/acosl.c: New file.
44566         * lib/asinl.c: New file.
44567         * lib/atanl.c: New file.
44568         * lib/ceill.c: New file.
44569         * lib/cosl.c: New file.
44570         * lib/expl.c: New file.
44571         * lib/floorl.c: New file.
44572         * lib/frexpl.c: New file.
44573         * lib/ldexpl.c: New file.
44574         * lib/logl.c: New file.
44575         * lib/sincosl.c: New file.
44576         * lib/sinl.c: New file.
44577         * lib/sqrtl.c: New file.
44578         * lib/tanl.c: New file.
44579         * lib/trigl.c: New file.
44580         * lib/trigl.h: New file.
44581
44582 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
44583
44584         * m4/mathl.m4: New file.
44585
44586 2003-02-18  Bruno Haible  <bruno@clisp.org>
44587
44588         * MODULES.html.sh (func_all_modules): Add mathl.
44589
44590 2003-02-17  Bruno Haible  <bruno@clisp.org>
44591
44592         * modules/mkdtemp: New module.
44593         * MODULES.html.sh (func_all_modules): Add it.
44594
44595 2003-02-17  Bruno Haible  <bruno@clisp.org>
44596
44597         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
44598
44599 2003-02-17  Bruno Haible  <bruno@clisp.org>
44600
44601         * lib/mkdtemp.h: New file, from GNU gettext.
44602         * lib/mkdtemp.c: New file, from GNU gettext.
44603
44604 2003-02-02  Jim Meyering  <jim@meyering.net>
44605
44606         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
44607         e.g. glibc-2.2.93.
44608
44609 2003-01-31  Bruno Haible  <bruno@clisp.org>
44610
44611         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
44612         'rpl_rename'.
44613         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
44614         'rpl_strnlen'.
44615         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
44616         'rpl_strtod'.
44617         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
44618         'rpl_utime'.
44619
44620 2003-01-31  Bruno Haible  <bruno@clisp.org>
44621
44622         * lib/rename.c: #undef rename before defining rpl_rename.
44623         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
44624
44625 2003-01-30  Bruno Haible  <bruno@clisp.org>
44626
44627         * modules/vasnprintf, modules/vasprintf: New modules.
44628         * MODULES.html.sh (func_all_modules): Add them.
44629
44630 2003-01-30  Bruno Haible  <bruno@clisp.org>
44631
44632         * m4/signed.m4: New file, from GNU gettext.
44633         * m4/longdouble.m4: New file, from GNU gettext.
44634         * m4/wchar_t.m4: New file, from GNU gettext.
44635         * m4/wint_t.m4: New file, from GNU gettext.
44636         * m4/vasnprintf.m4: New file.
44637         * m4/vasprintf.m4: New file.
44638
44639 2003-01-30  Bruno Haible  <bruno@clisp.org>
44640
44641         * lib/printf-args.h: New file, from GNU gettext.
44642         * lib/printf-args.c: New file, from GNU gettext.
44643         * lib/printf-parse.h: New file, from GNU gettext.
44644         * lib/printf-parse.c: New file, from GNU gettext.
44645         * lib/vasnprintf.h: New file, from GNU gettext.
44646         * lib/vasnprintf.c: New file, from GNU gettext.
44647         * lib/asnprintf.c: New file, from GNU gettext.
44648         * lib/vasprintf.h: New file, from GNU gettext with modifications.
44649         * lib/vasprintf.c: New file, from GNU gettext.
44650         * lib/asprintf.c: New file, from GNU gettext.
44651
44652 2003-01-29  Bruno Haible  <bruno@clisp.org>
44653
44654         * modules/stpncpy: New module.
44655         * MODULES.html.sh (func_all_modules): Add it.
44656
44657 2003-01-29  Bruno Haible  <bruno@clisp.org>
44658
44659         * m4/stpncpy.m4: New file.
44660
44661 2003-01-29  Bruno Haible  <bruno@clisp.org>
44662
44663         * lib/stpncpy.h: New file, from GNU gettext with modifications.
44664         * lib/stpncpy.c: New file, from GNU gettext with modifications.
44665
44666 2003-01-28  Bruno Haible  <bruno@clisp.org>
44667
44668         * modules/c-ctype: New module.
44669         * MODULES.html.sh (func_all_modules): Add it.
44670
44671 2003-01-28  Bruno Haible  <bruno@clisp.org>
44672
44673         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
44674         Paul Eggert.
44675         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
44676         Paul Eggert.
44677
44678 2003-01-27  Bruno Haible  <bruno@clisp.org>
44679
44680         * modules/xsetenv: New module.
44681         * MODULES.html.sh (func_all_modules): Add it.
44682
44683 2003-01-27  Bruno Haible  <bruno@clisp.org>
44684
44685         * lib/xsetenv.h: New file, from GNU gettext.
44686         * lib/xsetenv.c: New file, from GNU gettext.
44687
44688 2003-01-23  Jim Meyering  <jim@meyering.net>
44689
44690         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
44691         from working on systems without dirfd (at least Irix and OSF1/Tru64).
44692
44693 2003-01-23  Bruno Haible  <bruno@clisp.org>
44694
44695         * modules/minmax: New module.
44696         * MODULES.html.sh (func_all_modules): Add it.
44697
44698 2003-01-23  Bruno Haible  <bruno@clisp.org>
44699
44700         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
44701         Eggert.
44702
44703 2003-01-22  Bruno Haible  <bruno@clisp.org>
44704
44705         * modules/exit: New module.
44706         * MODULES.html.sh (func_all_modules): Add it.
44707
44708 2003-01-22  Bruno Haible  <bruno@clisp.org>
44709
44710         * lib/exit.h: New file, from GNU gettext.
44711
44712 2003-01-19  Bruno Haible  <bruno@clisp.org>
44713
44714         * gnulib-tool: Recognize option --extract-maintainer.
44715         (func_get_maintainer): New function.
44716         * modules/*: Add Maintainer entry.
44717
44718 2003-01-16  Jim Meyering  <jim@meyering.net>
44719
44720         * m4/regex.m4: The `regex' struct is both input and output.
44721         Initialize it before each use.  Patch by Tim Waugh.
44722
44723 2003-01-16  Bruno Haible  <bruno@clisp.org>
44724
44725         * MODULES.html.sh: Add a table of contents. Add the module name as
44726         leftmost column. Add hyperlinks.
44727
44728 2003-01-15  Bruno Haible  <bruno@clisp.org>
44729
44730         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
44731
44732 2003-01-15  Bruno Haible  <bruno@clisp.org>
44733
44734         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
44735         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
44736         suffix.
44737
44738 2003-01-15  Bruno Haible  <bruno@clisp.org>
44739
44740         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
44741
44742 2003-01-15  Bruno Haible  <bruno@clisp.org>
44743
44744         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
44745         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
44746
44747 2003-01-14  Jim Meyering  <jim@meyering.net>
44748
44749         * lib/same.c (same_name): Tweak a comment.
44750
44751 2003-01-14  Bruno Haible  <bruno@clisp.org>
44752
44753         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
44754         when a string comparison is sufficient.
44755
44756 2003-01-14  Bruno Haible  <bruno@clisp.org>
44757
44758         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
44759         'unsigned int'.
44760
44761 2003-01-14  Bruno Haible  <bruno@clisp.org>
44762
44763         * lib/hash-pjw.c: Add comment about low quality of this function.
44764
44765 2003-01-13  Bruno Haible  <bruno@clisp.org>
44766
44767         * modules/stpcpy: Distribute lib/stpcpy.h.
44768         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
44769
44770 2003-01-13  Bruno Haible  <bruno@clisp.org>
44771
44772         * modules/*: Add a description.
44773         * modules/strpbrk: Fix Makefile.am snippet.
44774         * modules/strtoimax: Fix dependencies.
44775         * modules/strtoumax: Likewise.
44776
44777 2003-01-13  Bruno Haible  <bruno@clisp.org>
44778
44779         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
44780         * modules/alloca (Makefile.am): All object files depend on alloca.h.
44781         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
44782
44783 2003-01-13  Bruno Haible  <bruno@clisp.org>
44784
44785         * gnulib-tool (func_create_testdir): Store config/* files in the main
44786         directory.
44787         * config.rpath: Move to ...
44788         * config/config.rpath: ... here.
44789         * modules/gettext: Contains config/config.rpath, not config.rpath.
44790         * modules/iconv: Likewise.
44791
44792 2003-01-12  Paul Eggert  <eggert@twinsun.com>
44793
44794         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
44795         to avoid collisions with libcurses and libreadline.
44796
44797         * m4/getstr.m4: Remove.
44798         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
44799
44800 2003-01-12  Paul Eggert  <eggert@twinsun.com>
44801
44802         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
44803         to avoid collisions with libcurses and libreadline.
44804
44805         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
44806         * lib/getstr.h, getstr.c: Remove.
44807         * lib/getline.c: Include "getline.h", to check interface.
44808         Move body of old getstr.c here: this defines MIN_CHUNK and
44809         declares getdelim2, which is renamed from getstr.
44810         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
44811
44812         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
44813         All uses changed.
44814         * lib/linebuffer.h: Likewise.
44815         (readline): Remove backward-compatibility macro.
44816
44817 2003-01-12  Paul Eggert  <eggert@twinsun.com>
44818
44819         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
44820         to avoid collisions with libcurses and libreadline.
44821         * getstr: Remove.
44822         * MODULES.html.sh: Remove getstr.
44823         * modules/getline: Depend on unlocked-io, not getstr.
44824
44825 2003-01-12  Jim Meyering  <jim@meyering.net>
44826
44827         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
44828
44829 2003-01-10  Bruno Haible  <bruno@clisp.org>
44830
44831         * modules/alloca: Change Makefile.am requirements. Simplify Include
44832         requirements. Add lib/alloca_.h to file list.
44833
44834 2003-01-10  Bruno Haible  <bruno@clisp.org>
44835
44836         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
44837
44838 2003-01-10  Bruno Haible  <bruno@clisp.org>
44839
44840         * lib/alloca_.h: New file.
44841         * lib/getdate.y: Unconditionally include alloca.h.
44842         * lib/makepath.c: Likewise.
44843         * lib/setenv.c: Likewise.
44844         * lib/userspec.c: Likewise.
44845
44846 2003-01-09  Karl Berry  <karl@gnu.org>
44847
44848         * MODULES.html.sh: include `dirname $0` in PATH, to find
44849         gnulib-tool.
44850
44851 2003-01-09  Bruno Haible  <bruno@clisp.org>
44852
44853         * modules/stdbool: Change configure.ac, Makefile.am requirements.
44854         Simplify Include requirements. Add lib/stdbool.h.in to file list.
44855
44856 2003-01-09  Bruno Haible  <bruno@clisp.org>
44857
44858         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
44859
44860 2003-01-09  Bruno Haible  <bruno@clisp.org>
44861
44862         * lib/stdbool.h.in: New file.
44863
44864 2003-01-09  Bruno Haible  <bruno@clisp.org>
44865
44866         * gnulib-tool (func_all_modules): Ignore files ending in ~.
44867         * MODULES.html.sh: Likewise.
44868
44869 2003-01-08  Jim Meyering  <jim@meyering.net>
44870
44871         * lib/full-write.c: Undefine and define-away `const' after inclusion
44872         of errno.h, not before.  Suggestion from Bruno Haible.
44873
44874 2003-01-08  Bruno Haible  <bruno@clisp.org>
44875
44876         * modules/full-read: Depend on full-write.
44877
44878 2003-01-08  Bruno Haible  <bruno@clisp.org>
44879
44880         * lib/safe-read.c: Include specification header first, to ensure its
44881         selfcontainedness.
44882         * lib/full-write.c: Likewise.
44883
44884 2003-01-07  Jim Meyering  <jim@meyering.net>
44885
44886         * lib/full-write.c: Rework so that it may serve to define full_read,
44887         too.
44888         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
44889
44890 2003-01-07  Bruno Haible  <bruno@clisp.org>
44891
44892         * lib/strtoimax.c: Include <stdint.h> as an alternative to
44893         <inttypes.h>.
44894         * lib/xstrtol.h: Likewise.
44895         * lib/xstrtoimax.c: Likewise.
44896         * lib/xstrtoumax.c: Likewise.
44897         * lib/human.h: Likewise.
44898
44899         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
44900         on systems that have <inttypes.h> but not <stdint.h>.
44901
44902 2003-01-07  Bruno Haible  <bruno@clisp.org>
44903
44904         * MODULES.html.sh: Add copyright notice.
44905         (missed_files): Omit CVS directory entries.
44906         (func_module): Make it work with sed-3.02.
44907         * MODULES.txt: Remove file.
44908
44909 2003-01-06  Jim Meyering  <jim@meyering.net>
44910
44911         * lib/version-etc.c: Update year in translatable copyright string.
44912
44913 2003-01-03  Karl Berry  <karl@gnu.org>
44914
44915         * config/config.{guess,sub}: update from prep.
44916
44917 2003-01-02  Karl Berry  <karl@gnu.org>
44918
44919         * doc/COPYING.DOC: belatedly updated to 1.2.
44920
44921 2003-01-01  Karl Berry  <karl@gnu.org>
44922
44923         * gnulib-tool (func_verify_module): report module name $module in
44924         error message, not $1.
44925         * gnulib-tool (create-testdir): don't complain if destdir couldn't
44926         be created, only if it doesn't exist.
44927         * gnulib-tool (last_checkin_date): don't expand the $Date here.
44928
44929 2002-12-31  Paul Eggert  <eggert@twinsun.com>
44930
44931         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
44932
44933 2002-12-31  Paul Eggert  <eggert@twinsun.com>
44934
44935         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
44936         memcmp if strcoll doesn't work.
44937
44938 2002-12-31  Bruno Haible  <bruno@clisp.org>
44939
44940         * lib/utime.c (utime_null): No need to call ftruncate if the file was
44941         nonempty.
44942
44943 2002-12-31  Bruno Haible  <bruno@clisp.org>
44944
44945         * lib/memcoll.c (STRCOLL): New macro.
44946         (memcoll): Use it.
44947
44948 2002-12-31  Bruno Haible  <bruno@clisp.org>
44949
44950         * lib/localcharset.h: New file.
44951         * lib/localcharset.c: Include it.
44952         * lib/unicodeio.c: Likewise.
44953
44954 2002-12-31  Bruno Haible  <bruno@clisp.org>
44955
44956         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
44957         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
44958
44959 2002-12-31  Bruno Haible  <bruno@clisp.org>
44960
44961         * lib/getline.h: Include <stddef.h>, for size_t.
44962
44963         * lib/unicodeio.h: Include <stddef.h>, for size_t.
44964         * lib/unicodeio.c: Don't include <stddef.h>.
44965
44966 2002-12-31  Bruno Haible  <bruno@clisp.org>
44967
44968         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
44969         HAVE_TM_ZONE.
44970
44971 2002-12-24  Karl Berry  <karl@gnu.org>
44972
44973         * config/config.guess: update from prep.
44974
44975 2002-12-24  Bruno Haible  <bruno@clisp.org>
44976
44977         General infrasructure.
44978         * m4/README: Rewritten.
44979         * m4/onceonly.m4: New file.
44980         * m4/onceonly_2_57.m4: New file.
44981
44982         Module atexit.
44983         * m4/atexit.m4: New file.
44984
44985         Module strtod.
44986         * m4/strtod.m4: New file.
44987
44988         Module strtol.
44989         * m4/strtol.m4: New file.
44990
44991         Module strtoul.
44992         * m4/strtoul.m4: New file.
44993
44994         Module memchr.
44995         * m4/memchr.m4: New file.
44996
44997         Module memcmp.
44998         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
44999         (jm_FUNC_MEMCMP): Invoke it.
45000
45001         Module memcpy.
45002         * m4/memcpy.m4: New file.
45003
45004         Module memmove.
45005         * m4/memmove.m4: New file.
45006
45007         Module memset.
45008         * m4/memset.m4: New file.
45009
45010         Module strcspn.
45011         * m4/strcspn.m4: New file.
45012
45013         Module strpbrk.
45014         * m4/strpbrk.m4: New file.
45015
45016         Module strstr.
45017         * m4/strstr.m4: New file.
45018
45019         Module strerror.
45020         * m4/strerror.m4: New file.
45021
45022         Module mktime.
45023         * m4/mktime.m4: Renamed from jm-mktime.m4.
45024         (gl_PREREQ_MKTIME): New macro.
45025         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
45026
45027         Module malloc.
45028         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
45029         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
45030         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
45031
45032         Module realloc.
45033         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
45034         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
45035         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
45036
45037         Module strftime.
45038         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
45039         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
45040         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
45041         gl_TM_GMTOFF.
45042         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
45043
45044         Module xalloc.
45045         * m4/xalloc.m4: New file.
45046
45047         Module alloca.
45048         * m4/alloca.m4: New file.
45049
45050         Module putenv.
45051         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
45052         (jm_FUNC_PUTENV): Invoke it.
45053
45054         Module setenv.
45055         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
45056         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
45057         when invoked twice.
45058         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
45059         gt_FUNC_SETENV.
45060
45061         Module memrchr.
45062         * m4/memrchr.m4: New file.
45063
45064         Module stpcpy.
45065         * m4/stpcpy.m4: New file.
45066
45067         Module strcase.
45068         * m4/strcase.m4: New file.
45069
45070         Module strdup.
45071         * m4/strdup.m4: New file.
45072
45073         Module strnlen.
45074         * m4/strnlen.m4: New file.
45075
45076         Module strndup.
45077         * m4/strndup.m4: New file.
45078
45079         Module xstrtod.
45080         * m4/xstrtod.m4: New file.
45081
45082         Module xstrtol.
45083         * m4/xstrtol.m4: New file.
45084
45085         Module getdate.
45086         * m4/getdate.m4: New file.
45087
45088         Module unlocked-io.
45089         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
45090         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
45091         * m4/jm-glibc-io.m4n: Remove file.
45092
45093         Module long-options.
45094         * m4/long-options.m4: New file.
45095
45096         Module md5.
45097         * m4/md5.m4: New file.
45098
45099         Module sha.
45100         * m4/sha.m4: New file.
45101
45102         Module getstr.
45103         * m4/getstr.m4: New file.
45104
45105         Module getline.
45106         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
45107         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
45108         <sys/types.h>, for size_t. Use the function name gnu_getline, not
45109         simply getline. Infoke gl_PREREQ_GETLINE.
45110
45111         Module obstack.
45112         * m4/obstack.m4: New file.
45113
45114         Module hash.
45115         * m4/hash.m4: New file.
45116
45117         Module readtokens.
45118         * m4/readtokens.m4: New file.
45119
45120         Module strverscmp.
45121         * m4/strverscmp.m4: New file.
45122
45123         Module stdbool.
45124         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
45125         OSF/1.
45126
45127         Module strtoll.
45128         * m4/strtoll.m4: New file.
45129
45130         Module strtoull.
45131         * m4/strtoull.m4: New file.
45132
45133         Module strtoimax.
45134         * m4/strtoimax.m4: New file.
45135
45136         Module strtoumax.
45137         * m4/strtoumax.m4: New file.
45138
45139         Module xstrtoimax.
45140         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
45141         jm_AC_PREREQ_XSTRTOIMAX.
45142         Moved the strtol prerequisites to strtol.m4.
45143         Moved the strtoll prerequisites to strtoll.m4.
45144         Moved the strtoimax prerequisites to strtoimax.m4.
45145
45146         Module xstrtoumax.
45147         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
45148         jm_AC_PREREQ_XSTRTOUMAX.
45149         Moved the strtoul prerequisites to strtoul.m4.
45150         Moved the strtoull prerequisites to strtoull.m4.
45151         Moved the strtoumax prerequisites to strtoumax.m4.
45152
45153         Module chown.
45154         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
45155         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
45156
45157         Module dup2.
45158         * m4/dup2.m4: New file.
45159
45160         Module ftruncate.
45161         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
45162         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
45163
45164         Module getgroups.
45165         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
45166         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
45167
45168         Module gettimeofday.
45169         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
45170         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
45171         gl_PREREQ_GETTIMEOFDAY.
45172
45173         Module mkdir.
45174         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
45175         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
45176
45177         Module mkstemp.
45178         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
45179         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
45180         jm_AC_TYPE_UINTMAX_T.
45181         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
45182
45183         Module stat.
45184         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
45185         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
45186
45187         Module lstat.
45188         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
45189         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
45190
45191         Module timespec.
45192         * m4/timespec.m4 (gl_TIMESPEC): New macro.
45193         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
45194         * m4/st_mtim.m4: Indentation.
45195
45196         Module nanosleep.
45197         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
45198         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
45199         gl_PREREQ_NANOSLEEP.
45200
45201         Module regex.
45202         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
45203         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
45204         (gl_REGEX): New macro.
45205
45206         Module rename.
45207         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
45208         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
45209
45210         Module rmdir.
45211         * m4/rmdir.m4: New file.
45212
45213         Module utime.
45214         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
45215         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
45216         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
45217
45218         Module dirname.
45219         * m4/dirname.m4: New file.
45220
45221         Module getopt.
45222         * m4/getopt.m4: New file.
45223
45224         Module unistd-safer.
45225         * m4/unistd-safer.m4: New file.
45226
45227         Module fnmatch.
45228         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
45229         declaration.
45230         (gl_PREREQ_FNMATCH_EXTRA): New macro.
45231         (gl_FUNC_FNMATCH_POSIX): New macro.
45232         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
45233         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
45234         simply fnmatch.
45235
45236         Module exclude.
45237         * m4/exclude.m4: New file.
45238
45239         Module human.
45240         * m4/human.m4: New file.
45241
45242         Module acl.
45243         * m4/acl.m4: Nop.
45244
45245         Module backupfile.
45246         * m4/backupfile.m4: New file.
45247         * m4/d-ino.m4: Indentation.
45248
45249         Module fsusage.
45250         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
45251         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
45252         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
45253
45254         Module dirfd.
45255         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
45256         requirements.
45257
45258         Module euidaccess.
45259         * m4/euidaccess.m4: New file.
45260
45261         Module file-type.
45262         * m4/file-type.m4: New file.
45263
45264         Module fileblocks.
45265         * m4/fileblocks.m4: New file.
45266
45267         Module filemode.
45268         * m4/filemode.m4: New file.
45269
45270         Module isdir.
45271         * m4/isdir.m4: New file.
45272
45273         Module lchown.
45274         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
45275         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
45276
45277         Module makepath.
45278         * m4/makepath.m4: New file.
45279
45280         Module modechange.
45281         * m4/modechange.m4: New file.
45282
45283         Module mountlist.
45284         * m4/mountlist.m4: New file.
45285         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
45286         Indentation.
45287
45288         Module path-concat.
45289         * m4/path-concat.m4: New file.
45290
45291         Module pathmax.
45292         * m4/pathmax.m4: New file.
45293
45294         Module same.
45295         * m4/same.m4: New file.
45296
45297         Module save-cwd.
45298         * m4/save-cwd.m4: New file.
45299
45300         Module savedir.
45301         * m4/savedir.m4: New file.
45302
45303         Module xgetcwd.
45304         * m4/xgetcwd.m4: New file.
45305         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
45306
45307         Module xreadlink.
45308         * m4/xreadlink.m4: New file.
45309
45310         Module safe-read.
45311         * m4/safe-read.m4: New file.
45312
45313         Module safe-write.
45314         * m4/safe-write.m4: New file.
45315
45316         Module closeout.
45317         * m4/closeout.m4: New file.
45318
45319         Module stdio-safer.
45320         * m4/stdio-safer.m4: New file.
45321
45322         Module getpass.
45323         * m4/getpass.m4: New file.
45324
45325         Module getugroups.
45326         * m4/getugroups.m4: New file.
45327
45328         Module group-member.
45329         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
45330         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
45331
45332         Module idcache.
45333         * m4/idcache.m4: New file.
45334
45335         Module userspec.
45336         * m4/userspec.m4: New file.
45337
45338         Module gettime.
45339         * m4/clock_time.m4: New file.
45340         * m4/gettime.m4: New file.
45341
45342         Module settime.
45343         * m4/settime.m4: New file.
45344
45345         Module posixtm.
45346         * m4/posixtm.m4: New file.
45347
45348         Module gethostname.
45349         * m4/gethostname.m4: New file.
45350
45351         Module canon-host.
45352         * m4/canon-host.m4: New file.
45353
45354         Module gettext.
45355         * m4/codeset.m4: New file, from gettext-0.11.5.
45356         * m4/gettext.m4: New file, from gettext-0.11.5.
45357         * m4/glibc21.m4: New file, from gettext-0.11.5.
45358         * m4/iconv.m4: New file, from gettext-0.11.5.
45359         * m4/intdiv0.m4: New file, from gettext-0.11.5.
45360         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
45361         * m4/inttypes.m4: New file, from gettext-0.11.5.
45362         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
45363         * m4/isc-posix.m4: New file, from gettext-0.11.5.
45364         * m4/lcmessage.m4: New file, from gettext-0.11.5.
45365         * m4/lib-ld.m4: New file, from gettext-0.11.5.
45366         * m4/lib-link.m4: New file, from gettext-0.11.5.
45367         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
45368         * m4/progtest.m4: New file, from gettext-0.11.5.
45369         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
45370         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
45371         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
45372
45373         Module localcharset.
45374         * m4/localcharset.m4: New file.
45375
45376         Module hard-locale.
45377         * m4/hard-locale.m4: New file.
45378
45379         Module mbswidth.
45380         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
45381         onceonly macros.
45382         * m4/mbrtowc.m4: Add comment.
45383
45384         Module memcasecmp.
45385         * m4/memcasecmp.m4: New file.
45386
45387         Module memcoll.
45388         * m4/memcoll.m4: New file.
45389
45390         Module unicodeio.
45391         * m4/unicodeio.m4: New file.
45392
45393         Module rpmatch.
45394         * m4/rpmatch.m4: New file.
45395
45396         Module yesno.
45397         * m4/yesno.m4: New file.
45398
45399         Module exitfail.
45400         * m4/exitfail.m4: New file.
45401
45402         Module c-stack.
45403         * m4/c-stack.m4 (gl_C_STACK): New macro.
45404         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
45405
45406         Module error.
45407         * m4/error.m4 (gl_ERROR): New macro.
45408         (jm_PREREQ_ERROR): Use onceonly macros.
45409
45410         Module fatal.
45411         * m4/fatal.m4: New file.
45412
45413         Module getloadavg.
45414         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
45415         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
45416
45417         Module getpagesize.
45418         * m4/getpagesize.m4: New file.
45419
45420         Module getusershell.
45421         * m4/getusershell.m4: New file.
45422
45423         Module physmem.
45424         * m4/physmem.m4: New file.
45425
45426         Module posixver.
45427         * m4/posixver.m4: New file.
45428
45429         Module quotearg.
45430         * m4/quotearg.m4: New file.
45431
45432         Module quote.
45433         * m4/quote.m4: New file.
45434
45435         Module readutmp.
45436         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
45437
45438         Module sig2str.
45439         * m4/sig2str.m4: New file.
45440
45441         Other.
45442         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
45443         ulonglong.m4.
45444         * m4/intmax_t.m4: New file.
45445         * m4/d-type.m4: Indentation.
45446         * m4/jm-macros.m4: Update.
45447         * m4/prereq.m4 (jm_PREREQ): Update.
45448         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
45449         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
45450         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
45451         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
45452         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
45453         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
45454         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
45455         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
45456         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
45457         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
45458         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
45459         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
45460         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
45461         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
45462         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
45463         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
45464         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
45465         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
45466         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
45467
45468 2002-12-24  Bruno Haible  <bruno@clisp.org>
45469
45470         * MODULES.txt: Update according to m4/ changes.
45471
45472         Module gettext.
45473         * config.rpath: New file, from gettext-0.11.5.
45474
45475         * modules/*: New module descriptions.
45476         * gnulib-tool: New file.
45477         * MODULES.html.sh: New file.
45478
45479 2002-12-21  Karl Berry  <karl@gnu.org>
45480
45481         * doc/fdl.texi: update to version 1.2.
45482
45483 2002-12-19  Karl Berry  <karl@gnu.org>
45484
45485         * config/config.guess: update from prep.
45486
45487 2002-12-18  Bruno Haible  <bruno@clisp.org>
45488
45489         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
45490         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
45491
45492 2002-12-17  Bruno Haible  <bruno@clisp.org>
45493
45494         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
45495         stdlib.h, string.h.
45496
45497 2002-12-17  Bruno Haible  <bruno@clisp.org>
45498
45499         * lib/canon-host.c (strdup): Remove unused declaration.
45500
45501         * lib/fsusage.c: Include full_read.h.
45502         (get_fs_usage): Use full_read instead of safe_read.
45503
45504         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
45505
45506 2002-12-12  Karl Berry  <karl@gnu.org>
45507
45508         * config/config.guess: update from prep.
45509
45510 2002-12-11  Bruno Haible  <bruno@clisp.org>
45511
45512         * m4/setenv.m4: New file, from gettext-0.11.5.
45513
45514 2002-12-11  Bruno Haible  <bruno@clisp.org>
45515
45516         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
45517         not unsetenv().
45518         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
45519         modifications:
45520
45521         2002-12-11  Bruno Haible  <bruno@clisp.org>
45522
45523                 * setenv.c (alloca): Fall back to malloc.
45524                 (freea): New macro.
45525                 (setenv): Use freea() to free memory allocated with alloca().
45526
45527         2002-11-13  Bruno Haible  <bruno@clisp.org>
45528
45529                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
45530                 function declarations.
45531                 * unsetenv.c (unsetenv): Likewise.
45532
45533         2002-03-04  Bruno Haible  <bruno@clisp.org>
45534
45535                 Portability to AIX 4.3.3.
45536                 * unsetenv.c: New file, extracted from setenv.c.
45537                 * setenv.c: Move the unsetenv() function to unsetenv.c.
45538
45539         2001-12-20  Bruno Haible  <bruno@clisp.org>
45540
45541                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
45542                 use malloc instead. For SunOS 4.
45543
45544         2001-12-11  Bruno Haible  <bruno@clisp.org>
45545
45546                 * setenv.c: Declare alloca.
45547                 (compar_fn_t): New typedef.
45548                 (KNOWN_VALUE, STORE_VALUE): Use it.
45549
45550         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
45551         setenv.h.
45552
45553 2002-12-10  Paul Eggert  <eggert@twinsun.com>
45554
45555         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
45556         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
45557         Choose values that are less likely to collide with system fnmatch
45558         options.
45559         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
45560         defined (e.g., a pure POSIX system).
45561         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
45562         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
45563
45564 2002-12-06  Paul Eggert  <eggert@twinsun.com>
45565
45566         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
45567         a pain in practice to deal with generated m4 files.  This change
45568         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
45569
45570         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
45571         and jm-glibc-io.m4, as they are no longer a special case.
45572         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
45573         kludge and the auto-generation stuff.  Check only whether the
45574         functions are declared, not whether they exist, since older hosts
45575         that don't declare the functions can't use the optimization anyway.
45576
45577 2002-12-06  Jim Meyering  <jim@meyering.net>
45578
45579         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
45580
45581         Merge in changes from libc's misc/error.c, in preparation
45582         for the merge of gnulib's changes back into libc.
45583
45584         * lib/error.c (_): Define only if not already defined.
45585         Move definition to follow all #include directives.
45586         Include unlocked-io.h only if !_LIBC.
45587         [_LIBC]: Include <libio/libioP.h>.
45588         [USE_IN_LIBIO]: Include <libio/iolibio.h>
45589         (fflush): Tweak definition to use INTUSE.
45590         (putc): Define.
45591
45592 2002-12-05  Paul Eggert  <eggert@twinsun.com>
45593
45594         * lib/alloca.c [defined emacs]: Include "lisp.h".
45595         (xalloc_die) [defined emacs]: New macro.
45596         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
45597         [! defined emacs]: Include <xalloc.h>.
45598         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
45599         (pointer): Typedef to POINTER_TYPE *.
45600         (malloc): Remove decl; we now always use xmalloc.
45601         (alloca): Use old-style definition, since Emacs needs this.
45602         Check for arithmetic overflow when computing combined size.
45603
45604 2002-12-04  Paul Eggert  <eggert@twinsun.com>
45605
45606         Do not generate unlocked-io.h automatically, since it's easier to
45607         maintain it by hand.
45608
45609         * lib/unlocked-io.h: New file, from GNU diffutils,
45610         but with proper copyright notice and attribution.
45611         * lib/gen-uio: Remove.
45612         * lib/Makefile.am: Add copyright notice.
45613         (libfetish_a_SOURCES): Add unlocked-io.h.
45614         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
45615         (DISTCLEANFILES, io_functions): Remove macros.
45616         (EXTRA_DIST): Remove gen_uio.
45617         (unlocked-io.h): Remove rule.
45618
45619 2002-12-04  Jim Meyering  <jim@meyering.net>
45620
45621         Reflect the fact that stat.c and lstat.c are no longer generated.
45622         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
45623         (DISTCLEANFILES): Likewise.
45624         (EXTRA_DIST): Likewise.
45625         (all_local): Don't depend on stat.c or lstat.c.
45626         (stat.c, lstat.c): Remove rules.
45627         (EXTRA_DIST): Remove xstat.in.
45628
45629         * lib/xstat.in: Remove file.  Contents moved into stat.c.
45630         * lib/stat.c: New file.  Contents mostly from xstat.in.
45631         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
45632         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
45633
45634         * lib/safe-read.c: Rework so that it may serve to define safe_write,
45635         too.
45636         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
45637
45638 2002-12-03  Jim Meyering  <jim@meyering.net>
45639
45640         * lib/safe-read.c, safe-write.c: Change variable names and comments,
45641         but not semantics, to minimize the differences between these two files.
45642         (safe_read): Change comment to mention SAFE_READ_ERROR.
45643
45644         * lib/safe-read.c (IS_EINTR): Define.
45645         (safe_read): Use IS_EINTR in place of in-function cpp directives.
45646
45647 2002-12-02  Jim Meyering  <jim@meyering.net>
45648
45649         * lib/safe-read.c (EINTR): Define.
45650         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
45651         (INT_MAX): Provide fallback.
45652         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
45653
45654         * lib/safe-read.h (SAFE_READ_ERROR): Define.
45655
45656 2002-12-02  Bruno Haible  <bruno@clisp.org>
45657
45658         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
45659         Define, taken from safe-read.c.
45660         (INT_MAX): Provide fallback.
45661         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
45662         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
45663
45664         * lib/safe-read.c (EINTR): Remove definition.
45665         (safe_read): Don't use EINTR if it is absent.
45666
45667 2002-12-01  Jim Meyering  <jim@meyering.net>
45668
45669         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
45670         zero.
45671         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
45672
45673 2002-11-27  Paul Eggert  <eggert@twinsun.com>
45674
45675         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
45676         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
45677         with `if (! (value < limit)) abort ();', for readability.
45678
45679 2002-11-26  Karl Berry  <karl@gnu.org>
45680
45681         * lib/strdup.c: copy from libc again, with jim's ok.
45682         * lib/.cppi-disable: re-add strdup.c
45683
45684 2002-11-25  Karl Berry  <karl@gnu.org>
45685
45686         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
45687         instead of "strtol.c".
45688
45689 2002-11-25  Karl Berry  <karl@gnu.org>
45690
45691         * config/install-sh: update from automake for variable quoting, $0 in
45692         error msgs, etc.
45693
45694         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
45695         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
45696         entry.
45697
45698 2002-11-25  Jim Meyering  <jim@meyering.net>
45699
45700         * lib/mktime.c: Sync from libc, now that it has the latest fix.
45701
45702 2002-11-24  Karl Berry  <karl@gnu.org>
45703
45704         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
45705         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
45706
45707 2002-11-24  Jim Meyering  <jim@meyering.net>
45708
45709         Update from coreutils:
45710
45711         * lib/mktime.c: Merge in changes from libc.
45712
45713         Avoid a link-time failure on some Linux systems.
45714         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
45715         (otherwise).
45716         (__mon_yday): Declare with the STATIC attribute.
45717         (__mktime_internal): Likewise.
45718         Based on a report from Greg Schafer.
45719
45720 2002-11-23  Jim Meyering  <jim@meyering.net>
45721
45722         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
45723         Use `unsigned', not `int', as type of index.
45724
45725         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
45726
45727         * lib/fsusage.c: Remove unneeded parentheses around operands of
45728         `defined'.
45729
45730 2002-11-22  Paul Eggert  <eggert@twinsun.com>
45731
45732         * lib/quotearg.h: Allow multiple inclusion by surrounding with
45733         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
45734         so that we can be included first.
45735         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
45736         * lib/quotearg.c: Include quotearg.h immediately after config.h.
45737         No need to include stddef.h or sys/types.h any more.
45738         Surround local include files with "", not "<>".
45739         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
45740         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
45741         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
45742         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
45743         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
45744         (ISPRINT): Remove; no longer needed now that we assume C89.
45745
45746         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
45747         Preserve errno.
45748
45749         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
45750         quotearg_char): Use SIZE_MAX rather than
45751         (size_t) -1 when we are talking about "infinity".
45752
45753         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
45754
45755 2002-11-22  Paul Eggert  <eggert@twinsun.com>
45756
45757         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
45758         hint that one should use `if (! x) abort ();' rather than `assert
45759         (x);', and anyway it's one less thing to worry about configuring.
45760         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
45761         hash_rehash, hash_insert): Use abort rather than assert.
45762
45763 2002-11-22  Bruno Haible  <bruno@clisp.org>
45764
45765         * lib/safe-read.h: Assume C89. Add comments.
45766         (safe_read): Change return type to size_t.
45767         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
45768         byte counts > SSIZE_MAX correctly.
45769         * lib/safe-write.h: New file.
45770         * lib/safe-write.c: New file.
45771         * lib/full-read.h: New file.
45772         * lib/full-read.c: New file.
45773         * lib/full-write.h: Assume C89. Add comments.
45774         * lib/full-write.c: Include safe-write.h.
45775         (full_write): Rewritten to use safe_write.
45776         Suggested by Jim Meyering and Paul Eggert.
45777
45778 2002-11-21  Jim Meyering  <jim@meyering.net>
45779
45780         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
45781
45782         Merge in changes from the coreutils.
45783
45784         2002-09-25  Paul Eggert  <eggert@twinsun.com>
45785         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
45786         <stdint.h>.
45787         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
45788         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
45789         int.  Work more efficiently if X is the same width as uintmax_t.
45790         Do not compare X to -1, to avoid bogus compiler warning.
45791         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
45792         Don't assume that f_frsize and f_bsize are the same type.
45793
45794         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
45795         warning on FreeBSD.
45796
45797         * lib/makepath.c (make_path): Restore umask *before* creating the final
45798         component.
45799         (make_path): Minor reformatting.
45800
45801         * lib/xmalloc.c: Adjust to work with new autoconf macros,
45802         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
45803         HAVE_MALLOC/HAVE_REALLOC.
45804
45805         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
45806         dummy ones.  At least on GNU/Linux systems, `auto' means something
45807         else.
45808         From Michael Stone.
45809
45810 2002-11-21  Bruno Haible  <bruno@clisp.org>
45811
45812         Remove case insensitive option matching.
45813         * lib/argmatch.h (argcasematch): Remove declaration.
45814         (ARGCASEMATCH): Remove macro.
45815         (__xargmatch_internal): Remove case_sensitive argument.
45816         (XARGMATCH): Update.
45817         (XARGCASEMATCH): Remove macro.
45818         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
45819         case_sensitive argument.
45820         (argcasematch): Remove function.
45821         (__xargmatch_internal): Remove case_sensitive argument.
45822         (main): Use XARGMATCH instead of XARGCASEMATCH.
45823
45824         * lib/xmalloc.c: Change compile-time error message. Add comment about
45825         required autoconf version.
45826
45827 2002-11-20  Paul Eggert  <eggert@twinsun.com>
45828
45829         Merge argmatch cleanups from Bison.  Assume C89.
45830
45831         * lib/argmatch.c: Include config.h here, not in argmatch.h.
45832         Include stdlib.h, for EXIT_FAILURE.
45833         Always include <string.h>, since we assume C89.
45834         (EXIT_FAILURE): Remove pre-C89 bug workaround.
45835         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
45836         Include <stddef.h> instead, since it's all we need for size_t.
45837         (PARAMS): Remove.  All uses removed.
45838         (ARRAY_CARDINALITY): Do not bother to #undef.
45839         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
45840         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
45841         Remove unnecessary parentheses.
45842         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
45843         Insert necessary parentheses.
45844         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
45845         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
45846
45847 2002-11-19  Bruno Haible  <bruno@clisp.org>
45848
45849         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
45850         * lib/mbswidth.h: Include <stddef.h>, for size_t.
45851
45852         * lib/mbswidth.h (PARAMS): Remove macro.
45853         (mbswidth, mbsnwidth): Use ANSI C function declarations.
45854         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
45855
45856         * lib/gcd.h (PARAMS): Remove macro.
45857         (gcd): Use ANSI C function declarations.
45858         * lib/gcd.c (gcd): Likewise.
45859
45860 2002-11-15  Bruno Haible  <bruno@clisp.org>
45861
45862         * lib/strcspn.c: Include <stddef.h>.
45863         (strcspn): Use ANSI C function declaration. Change return type to
45864         size_t. Use NULL.
45865         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
45866         (strpbrk): Use NULL.
45867         * lib/strpbrk.h (PARAMS): Remove macro.
45868         (strpbrk): Use ANSI C function declaration.
45869         * lib/strstr.c: Don't include <sys/types.h>.
45870         * lib/strstr.h (PARAMS): Remove macro.
45871         (strstr): Use ANSI C function declarations.
45872
45873 2002-11-14  Karl Berry  <karl@gnu.org>
45874
45875         * config/mkinstalldirs: `do' on separate line, instead of
45876         `for var; do'.
45877
45878 2002-11-06  Bruno Haible  <bruno@clisp.org>
45879
45880         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
45881         * lib/gcd.c (gcd): Likewise.
45882
45883 2002-11-05  Bruno Haible  <bruno@clisp.org>
45884
45885         * lib/gcd.h: New file, from gettext-0.11.5.
45886         * lib/gcd.c: New file, from gettext-0.11.5.
45887
45888 2002-11-05  Bruno Haible  <bruno@clisp.org>
45889
45890         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
45891         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
45892         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
45893         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
45894
45895         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
45896         <libintl.h>.
45897         * lib/makepath.c: Include gettext.h instead of <locale.h> and
45898         <libintl.h>.
45899
45900         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
45901         * lib/human.c: Include gettext.h instead of <libintl.h>.
45902         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
45903         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
45904         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
45905         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
45906         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
45907         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
45908         (textdomain): Remove definition.
45909         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
45910
45911         * lib/long-options.c: Remove include of <libintl.h> and definition of
45912         _.
45913         * lib/same.c: Remove include of <libintl.h> and definition of _.
45914
45915 2002-11-04  Owen Taylor  <otaylor@redhat.com>
45916
45917         * lib/config.charset: A few additions for Solaris.
45918
45919 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
45920
45921         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
45922         * lib/localcharset.c (locale_charset): Declare as extern "C".
45923
45924 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
45925
45926         * lib/config.charset: msdos in uk_UA uses CP1125.
45927
45928 2002-11-04  Bruno Haible  <bruno@clisp.org>
45929
45930         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
45931         * lib/strcase.h: New file, from GNU gettext-0.11.5.
45932         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
45933         * lib/strstr.h: New file, from GNU gettext-0.11.5.
45934         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
45935
45936 2002-11-04  Bruno Haible  <bruno@clisp.org>
45937
45938         * lib/localcharset.c (locale_charset): Don't return an empty string.
45939
45940 2002-11-04  Bruno Haible  <bruno@clisp.org>
45941
45942         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
45943         aliases.
45944
45945 2002-11-04  Bruno Haible  <bruno@clisp.org>
45946
45947         * lib/config.charset: Update for newest glibc. Add canonical names
45948         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
45949
45950 2002-11-04  Bruno Haible  <bruno@clisp.org>
45951
45952         * lib/config.charset: Add support for NetBSD.
45953
45954 2002-11-04  Bruno Haible  <bruno@clisp.org>
45955
45956         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
45957
45958 2002-11-01  Bruno Haible  <bruno@clisp.org>
45959
45960         * configure.in: Add AC_CONFIG_AUX_DIR call.
45961         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
45962         test/Makefile.
45963         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
45964
45965 2002-09-28  Karl Berry  <karl@gnu.org>
45966
45967         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
45968         installed automake until the next release, since changes have been
45969         made.
45970
45971 2002-09-25  Karl Berry  <karl@gnu.org>
45972
45973         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
45974         * lib/getopt*: copy from libc/posix.
45975         * lib/gettext.h: copy from gettext.
45976         * lib/.cppi-disable: add strdup.c, gettext.h.
45977
45978 2002-09-25  Karl Berry  <karl@gnu.org>
45979
45980         * config/srclist.txt: enable gettext.h check.
45981         * config/config.{guess,sub}: update from prep.
45982         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
45983                 from automake 1.6.3.
45984         See srclist*.
45985
45986 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
45987
45988         * regex.c (PATFETCH): Remove the translating fetch.
45989         (PATFETCH_RAW): Rename to PATFETCH.
45990         (set_image_of_range): New fun.
45991         (SET_RANGE_TABLE_WORK_AREA): Use it.
45992         (regex_compile): Don't translate the pattern chars so eagerly.
45993         Only do it when inserting an `exactn' bytecode or when handling
45994         a char-range.
45995         (mutually_exclusive_p): Avoid empty statement.
45996
45997 2002-07-06  Jim Meyering  <meyering@lucent.com>
45998
45999         * m4/README: Don't mention Makefile.am.in.
46000         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
46001
46002 2002-07-01  Jim Meyering  <meyering@lucent.com>
46003
46004         * lib/c-stack.c: Include sys/time.h.
46005         From Volker Borchert.
46006
46007 2002-06-26  Paul Eggert  <eggert@twinsun.com>
46008
46009         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
46010
46011 2002-06-26  Paul Eggert  <eggert@twinsun.com>
46012
46013         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
46014         New macro.  Use it uniformly instead of
46015         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
46016         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
46017         reported by Vin Shelton.
46018
46019 2002-06-22  Paul Eggert  <eggert@twinsun.com>
46020
46021         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
46022         Do not assume SA_SIGINFO behavior.
46023         Bug reported by Jim Meyering on NetBSD 1.5.2.
46024
46025 2002-06-22  Jim Meyering  <meyering@lucent.com>
46026
46027         * m4/c-stack.m4: New file, from diffutils-2.8.2.
46028         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
46029
46030         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
46031         now that configure.ac uses AC_GNU_SOURCE.
46032         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
46033         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
46034
46035         Update to latest tools.  Suggestions from Paul Eggert.
46036         * m4/stdbool.m4: New file, from diffutils-2.8.2.
46037         * m4/gnu-source.m4: Update from diffutils-2.8.2.
46038         * m4/fnmatch.m4: Likewise.
46039         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
46040         to AC_HEADER_STDBOOL
46041
46042 2002-06-22  Jim Meyering  <meyering@lucent.com>
46043
46044         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
46045         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
46046
46047 2002-06-22  Jim Meyering  <meyering@lucent.com>
46048
46049         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
46050
46051         * lib/exitfail.c, exitfail.h: Likewise.
46052         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
46053
46054         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
46055         of fnmatch.h.
46056         (EXTRA_DIST): Add fnmatch_loop.c.
46057         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
46058
46059         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
46060         * lib/fnmatch.c: Update from diffutils-2.8.2.
46061         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
46062         * lib/fnmatch.h: Remove file.
46063
46064 2002-06-21  Jim Meyering  <meyering@lucent.com>
46065
46066         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
46067         * m4/mbrtowc.m4: Likewise.
46068
46069         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
46070         * m4/mbswidth.m4: Reflect name change:
46071         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
46072         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
46073
46074         * m4/lib-link.m4: Update from gettext-0.11.2.
46075         * m4/gettext.m4: Likewise.
46076
46077         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
46078         From Alfred M. Szmidt.
46079
46080 2002-06-18  Paul Eggert  <eggert@twinsun.com>
46081
46082         * lib/file-type.h: Report an error if neither S_ISREG nor
46083         S_IFREG is defined, instead of using a test specific to glibc
46084         2.2.  This should be safe, since POSIX requires S_ISREG and
46085         Unix Version 7 had S_IFREG.  We don't need to check for
46086         <sys/types.h> since we don't use any symbols that it defines.
46087
46088 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
46089
46090         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
46091         $@-t, so that each temporary file name is unique and valid in the first
46092         8 characters, for operation under DOS.
46093
46094 2002-06-15  Paul Eggert  <eggert@twinsun.com>
46095
46096         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
46097
46098 2002-06-15  Jim Meyering  <meyering@lucent.com>
46099
46100         Work even with DJGPP 2.03, which lacks support for symlinks.
46101         From Richard Dawe.
46102         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
46103         is defined.
46104         * lib/lchown.c (S_ISLNK): Likewise.
46105
46106 2002-06-15  Jim Meyering  <meyering@lucent.com>
46107
46108         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
46109         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
46110         have been included before this file.
46111
46112 2002-06-14  Jim Meyering  <meyering@lucent.com>
46113
46114         * lib/file-type.h: Use the version from diffutils-2.8.2.
46115         * lib/file-type.c: Likewise.
46116
46117 2002-06-07  Jim Meyering  <meyering@lucent.com>
46118
46119         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
46120         They're needed at least for NetBSD 1.5.2.
46121         ($statxfs_includes): Include those same headers.
46122         ($statxfs_includes): Include sys/vfs.h if available.
46123         ($statxfs_includes): Likewise for sys/statvfs.h.
46124         Check for the following members in both structs statfs and statvfs:
46125         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
46126
46127 2002-06-01  Jim Meyering  <meyering@lucent.com>
46128
46129         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
46130         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
46131
46132 2002-05-28  Jim Meyering  <meyering@lucent.com>
46133
46134         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
46135         Reported by Volker Borchert.
46136
46137 2002-05-27  Jim Meyering  <meyering@lucent.com>
46138
46139         Fix a problem seen only on nonconforming systems whereby ls.c's
46140         use of localtime, and then of gettimeofday would cause trouble:
46141         the localtime call used to initialize rpl_gettimeofday's save
46142         mechanism would clobber ls's current local time information so
46143         that in any long listing the first file would always be listed
46144         with date 1970-01-01.  Analysis by Volker Borchert.
46145
46146         * lib/gettimeofday.c (localtime): Undefine.
46147         (rpl_localtime): New function.
46148
46149 2002-05-27  Jim Meyering  <meyering@lucent.com>
46150
46151         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
46152         localtime.
46153
46154         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
46155         use the replacement function; it wouldn't resolve at link time.
46156         Reported by Volker Borchert.
46157
46158 2002-05-22  Jim Meyering  <meyering@lucent.com>
46159
46160         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
46161         file-type.h.
46162         * lib/file-type.h: New file.
46163         * lib/file-type.c (file_type): New file/function.  Extracted from
46164         diffutils.
46165
46166 2002-04-30  Jim Meyering  <meyering@lucent.com>
46167
46168         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
46169
46170 2002-04-29  Paul Eggert  <eggert@twinsun.com>
46171
46172         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
46173
46174 2002-04-29  Paul Eggert  <eggert@twinsun.com>
46175
46176         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
46177         Do not check for alloca.h (no longer used) or stdbool.h (was never
46178         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
46179
46180 2002-04-29  Paul Eggert  <eggert@twinsun.com>
46181
46182         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
46183
46184 2002-04-29  Jim Meyering  <meyering@lucent.com>
46185
46186         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
46187         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
46188         Use AC_FUNC_STRNLEN here instead.
46189
46190         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
46191         With autoconf-2.53a, it's part of AC_PROG_CC.
46192
46193 2002-04-28  Paul Eggert  <eggert@twinsun.com>
46194
46195         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
46196         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
46197
46198 2002-04-28  Paul Eggert  <eggert@twinsun.com>
46199
46200         * lib/sig2str.h, lib/sig2str.c: New files.
46201         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
46202
46203 2002-04-28  Paul Eggert  <eggert@twinsun.com>
46204
46205         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
46206         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
46207         of 127, since 64 is the largest conceivable number for ancient
46208         nonstandard hosts.
46209         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
46210
46211 2002-04-28  Jim Meyering  <meyering@lucent.com>
46212
46213         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
46214
46215 2002-04-24  Jim Meyering  <meyering@lucent.com>
46216
46217         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
46218         (jm_PREREQ): Use it.
46219
46220         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
46221         mach/mach.h fcntl.h.
46222         Check for this function: setlocale.
46223
46224 2002-04-24  Jim Meyering  <meyering@lucent.com>
46225
46226         * lib/gettext.h: New file, from Gettext.
46227         * lib/Makefile.am (INCLUDES): Remove -I../intl.
46228         (libfetish_a_SOURCES): Add gettext.h.
46229
46230 2002-04-16  Jim Meyering  <meyering@lucent.com>
46231
46232         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
46233         ut_pid, ut_id, ut_exit.
46234
46235 2002-04-16  Jim Meyering  <meyering@lucent.com>
46236
46237         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
46238         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
46239         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
46240
46241 2002-04-12  Jim Meyering  <meyering@lucent.com>
46242
46243         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
46244         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
46245         existence of the getmntinfo function.  Needed for Darwin 5.3.
46246
46247         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
46248         This is necessary at least on Darwin 5.3.
46249
46250         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
46251         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
46252         strnlen.o in the library, and that makes some versions of ranlib
46253         object.
46254
46255 2002-04-12  Jim Meyering  <meyering@lucent.com>
46256
46257         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
46258
46259 2002-04-09  Jim Meyering  <meyering@lucent.com>
46260
46261         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
46262         to be more precise.  Rather than saying we're checking whether the
46263         function `works', say what we're testing.
46264         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
46265         Reported by Bruno Haible.
46266
46267 2002-03-10  Jim Meyering  <meyering@lucent.com>
46268
46269         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
46270         Suggestion from Santiago Vila.
46271
46272 2002-03-08  Jim Meyering  <meyering@lucent.com>
46273
46274         * lib/rename.c: Mention that this wrapper is needed also on
46275         mips-dec-ultrix4.4 systems.
46276
46277 2002-03-02  Jim Meyering  <meyering@lucent.com>
46278
46279         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
46280         not HAVE_CLOCK_SETTIME.
46281
46282 2002-02-27  Paul Eggert  <eggert@twinsun.com>
46283
46284         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
46285         Check for clock_settime.
46286
46287 2002-02-27  Paul Eggert  <eggert@twinsun.com>
46288
46289         * lib/nanosleep.h: Rename to....
46290         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
46291
46292         * lib/gettime.c: New file.
46293         * lib/settime.c: New file.
46294         * lib/stime.c: Remove.
46295
46296         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
46297         timespec.h.  Remove nanosleep.h.
46298
46299 2002-02-25  Paul Eggert  <eggert@twinsun.com>
46300
46301         * m4/acl.m4: New file.
46302         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
46303         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
46304
46305 2002-02-25  Paul Eggert  <eggert@twinsun.com>
46306
46307         * lib/acl.c, lib/acl.h: New files.
46308         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
46309
46310 2002-02-24  Jim Meyering  <meyering@lucent.com>
46311
46312         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
46313         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
46314         cause trouble.  Reported by Nelson Beebe.
46315
46316 2002-02-23  Paul Eggert  <eggert@twinsun.com>
46317
46318         * lib/path-concat.c (xpath_concat): Reorder code to pacify
46319         compilers that don't know that xalloc_die never returns.
46320
46321 2002-02-20  Jim Meyering  <meyering@lucent.com>
46322
46323         * lib/getdate.c: Regenerate using bison-1.33.
46324
46325 2002-02-17  Jim Meyering  <meyering@lucent.com>
46326
46327         * config/config.guess (main): Don't use `head -1'; it's no longer
46328         portable. Use `sed 1q' instead.
46329
46330 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
46331
46332         * m4/codeset.m4: Upgrade to gettext-0.11.
46333         * m4/gettext.m4: Upgrade to gettext-0.11.
46334         * m4/glibc21.m4: Upgrade to gettext-0.11.
46335         * m4/iconv.m4: Upgrade to gettext-0.11.
46336         * m4/isc-posix.m4: Upgrade to gettext-0.11.
46337         * m4/lcmessage.m4: Upgrade to gettext-0.11.
46338         * m4/lib-ld.m4: New file, from gettext-0.11.
46339         * m4/lib-link.m4: New file, from gettext-0.11.
46340         * m4/lib-prefix.m4: New file, from gettext-0.11.
46341         * m4/progtest.m4: Upgrade to gettext-0.11.
46342
46343 2002-02-15  Paul Eggert  <eggert@twinsun.com>
46344
46345         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
46346         (jm_PREREQ): Use it.
46347
46348 2002-02-15  Paul Eggert  <eggert@twinsun.com>
46349
46350         * lib/posixver.c, lib/posixver.h: New files.
46351         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
46352
46353 2002-02-02  Paul Eggert  <eggert@twinsun.com>
46354             Bruno Haible  <bruno@clisp.org>
46355
46356         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
46357         (fwrite_success_callback): New declaration.
46358         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
46359         print_unicode_char. Call failure callback instead of error.
46360         (fwrite_success_callback): New function.
46361         (exit_failure_callback): New function.
46362         (fallback_failure_callback): New function.
46363         (print_unicode_char): Call unicode_to_mb.
46364
46365 2002-01-26  Jim Meyering  <meyering@lucent.com>
46366
46367         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
46368         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
46369
46370 2002-01-26  Jim Meyering  <meyering@lucent.com>
46371
46372         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
46373
46374 2002-01-22  Paul Eggert  <eggert@twinsun.com>
46375
46376         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
46377
46378 2002-01-22  Jim Meyering  <meyering@lucent.com>
46379
46380         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
46381         Otherwise, some versions of automake would omit the rule that makes
46382         Makefile from Makefile.in.
46383
46384 2002-01-21  Paul Eggert  <eggert@twinsun.com>
46385
46386         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
46387         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
46388         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
46389         (memcoll): Set errno to zero if there is no error.
46390
46391         * lib/quotearg.c (quotearg_buffer_restyled):
46392         Fix bug with quoting buffers containing NUL when backslashing escapes.
46393         This bug was exposed by the other changes in this patch.
46394         (quotearg_n_options): New arg ARGSIZE.
46395         All callers changed.
46396         (quoting_options_from_style): New function.
46397         (quotearg_n_style): Use it.
46398         (quotearg_n_style_mem): New function.
46399
46400         * lib/quotearg.h (quotearg_n_style_mem): New function.
46401
46402 2002-01-19  Jim Meyering  <meyering@lucent.com>
46403
46404         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
46405         Remove useless quotes: DF_PROG="df".
46406         * m4/strnlen.m4: New file.
46407
46408 2002-01-16  Paul Eggert  <eggert@twinsun.com>
46409
46410         * lib/backupfile.c (ISDIGIT): Comment fix.
46411         * lib/getdate.y (ISDIGIT): Likewise.
46412         * lib/posixtm.c (ISDIGIT, year): Likewise.
46413         * lib/strverscmp.c (ISDIGIT): Likewise.
46414         * lib/userspec.c (ISDIGIT): Likewise.
46415
46416 2002-01-16  Jim Meyering  <meyering@lucent.com>
46417
46418         * lib/getdate.y: Add three semicolons, each just before a closing
46419         brace. Bison (as of version 1.31) no longer papers over that mistake.
46420
46421 2002-01-05  Jim Meyering  <meyering@lucent.com>
46422
46423         * lib/version-etc.c (version_etc_copyright): Update copyright year.
46424
46425 2001-12-19  Paul Eggert  <eggert@twinsun.com>
46426
46427         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
46428         not silently exit merely because the output buffer happens to
46429         have nothing pending.
46430
46431 2001-12-18  Paul Eggert  <eggert@twinsun.com>
46432
46433         See the big note in ../ChangeLog.
46434         * lib/human.c (suffixes): Prefer K to k for 1024.
46435         (generate_suffix_backwards): New function.
46436         (human_readable_inexact): Use it.
46437         * lib/xstrtol.c (__xstrtol): If there is no number but there
46438         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
46439         Accept 'K' as well as 'k'.
46440
46441 2001-12-15  Jim Meyering  <meyering@lucent.com>
46442
46443         * lib/regex.h (__restrict_arr): Update from libc.
46444
46445         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
46446         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
46447         (STREQ): Define.
46448
46449 2001-12-14  Jim Meyering  <meyering@lucent.com>
46450
46451         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
46452         Suggestion from Bruno Haible.
46453
46454 2001-12-10  Jim Meyering  <meyering@lucent.com>
46455
46456         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
46457         xrealloc, Instead, include "xalloc.h".
46458         (initbuffer): Don't cast xmalloc return value to char*.
46459         (readline): Reword comment.
46460         Don't cast xrealloc return value to char*
46461         Return NULL, not 0.
46462
46463 2001-12-09  Jim Meyering  <meyering@lucent.com>
46464
46465         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
46466         about `signed and unsigned type in conditional expression'.
46467         * lib/posixtm.c (posix_time_parse): Likewise.
46468
46469         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
46470
46471         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
46472         to avoid a pedantic warning.
46473
46474         * lib/getstr.c: Don't include assert.h.
46475         (getstr): Remove warning-evoking assertions.
46476         Return -1 if offset parameter is out of bounds.
46477         Change the type of a local from int to size_t.
46478
46479         * lib/strftime.c (my_strftime_localtime_r): Include this function
46480         definition in the `#if ! HAVE_TM_GMTOFF' block.
46481
46482         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
46483         Include xalloc.h instead.
46484
46485 2001-12-02  Jim Meyering  <meyering@lucent.com>
46486
46487         * lib/tempname.c: Don't declare getenv, thus reverting the change of
46488         2001-11-18.  It's no longer necessary, now that stdlib.h is always
46489         included.
46490
46491         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
46492         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
46493
46494 2001-11-30  Akim Demaille  <akim@epita.fr>
46495
46496         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
46497         before being defined.
46498
46499 2001-11-27  Paul Eggert  <eggert@twinsun.com>
46500
46501         * lib/quotearg.h (quotearg_n, quotearg_n_style):
46502         First arg is int, not unsigned.
46503         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
46504         (SIZE_MAX, UINT_MAX): New macros.
46505         (quotearg_n_options): Abort if N is negative.
46506         Avoid overflow check on hosts where size_t is 64 bits and int
46507         is 32 bits, as overflow is impossible there.
46508         Fix off-by-one typo that caused unnecessary reallocation.
46509
46510 2001-11-27  Jim Meyering  <meyering@lucent.com>
46511
46512         * lib/tempname.c: Merge with version from libc.
46513         * lib/regex.c: Likewise.
46514
46515         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
46516         systems for which STDC_HEADERS is 0, it was not included, resulting in
46517         a warning about an integer-to-pointer conversion problem with getenv.
46518         Reported by Volker Borchert.
46519
46520 2001-11-26  Jim Meyering  <meyering@lucent.com>
46521
46522         * lib/gtod.h: Remove file.
46523         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
46524         * lib/gettimeofday.c: Don't include gtod.h.
46525         (GTOD_init): Remove function.
46526         (rpl_gettimeofday): Do its job here instead, rather than aborting.
46527         Suggestion from Volker Borchert.
46528
46529 2001-11-23  Jim Meyering  <meyering@lucent.com>
46530
46531         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
46532         it.
46533         * lib/hash.c (struct hash_table): Define it here instead.
46534
46535 2001-11-22  Jim Meyering  <meyering@lucent.com>
46536
46537         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
46538
46539 2001-11-20  Jim Meyering  <meyering@lucent.com>
46540
46541         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
46542         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
46543
46544 2001-11-19  Jim Meyering  <meyering@lucent.com>
46545
46546         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
46547         directory.  Use "conftestXXXXXX" as the template.
46548         Suggestion from Paul Eggert.
46549
46550         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
46551         immediately, so the test doesn't mistakenly hit the max-open-files
46552         limit.
46553
46554 2001-11-18  Paul Eggert  <eggert@twinsun.com>
46555
46556         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
46557         (TEMPORARIES): New macro.
46558         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
46559         removes an artificial limitation (e.g. HP-UX 10.20, where
46560         TMP_MAX is 17576).
46561
46562 2001-11-18  Jim Meyering  <meyering@lucent.com>
46563
46564         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
46565
46566 2001-11-18  Jim Meyering  <meyering@lucent.com>
46567
46568         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
46569         on SunOS 4.
46570
46571         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
46572         files will be created before anything else.
46573
46574 2001-11-17  Paul Eggert  <eggert@twinsun.com>
46575
46576         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
46577         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
46578
46579 2001-11-17  Jim Meyering  <meyering@lucent.com>
46580
46581         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
46582         Prompted by a report from Bob Proulx.
46583
46584         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
46585         Instead, require UTILS_FUNC_MKSTEMP.
46586
46587 2001-11-17  Jim Meyering  <meyering@lucent.com>
46588
46589         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
46590         Now, that's done as part of AC_FUNC_STRTOD.
46591
46592 2001-11-17  Jim Meyering  <meyering@lucent.com>
46593
46594         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
46595         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
46596         rather than group writable.  Patch by Juan F. Codagnone.
46597
46598         * lib/readtokens.c: Remove explicit declarations of xmalloc and
46599         xrealloc, Instead, include "xalloc.h".
46600
46601         * lib/mountlist.c: Include unlocked-io.h after all system headers.
46602         Remove explicit declarations of xmalloc, xrealloc,
46603         and xstrdup.  Instead, include "xalloc.h".
46604
46605         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
46606         unlocked-io.h.
46607         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
46608         Likewise.
46609         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
46610
46611         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
46612         Reported by Padraig Brady.
46613
46614         * lib/mkstemp.c: #undef mkstemp.
46615         Include config.h.
46616         (rpl_mkstemp): Rename from mkstemp.
46617         Protoize.
46618
46619 2001-11-16  Jim Meyering  <meyering@lucent.com>
46620
46621         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
46622         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
46623         determine the amount of total physical memory, use pstat_getstatic.
46624         HPUX-11 doesn't define _SC_PHYS_PAGES.
46625         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
46626         If sysconf couldn't be used to determine the amount of available
46627         physical memory, use both pstat_getstatic and pstat_getdynamic.
46628         Based on a patch from Bob Proulx.
46629
46630 2001-11-10  Jim Meyering  <meyering@lucent.com>
46631
46632         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
46633         (jm_PREREQ): Use it.
46634
46635 2001-11-09  Jim Meyering  <meyering@lucent.com>
46636
46637         * m4/jm-macros.m4: Require autoconf-2.52f.
46638         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
46639         Use these AC_-prefixed names, not the AM_-prefixed ones.
46640
46641         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
46642
46643 2001-11-05  Jim Meyering  <meyering@lucent.com>
46644
46645         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
46646
46647 2001-11-04  Jim Meyering  <meyering@lucent.com>
46648
46649         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
46650         $DEFS.
46651
46652 2001-11-03  Jim Meyering  <meyering@lucent.com>
46653
46654         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
46655         of AC_DEFUN.
46656
46657         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
46658         know the name of the variable in the macro definition.
46659
46660 2001-11-03  Jim Meyering  <meyering@lucent.com>
46661
46662         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
46663         in argmatch_to_argument call.
46664
46665         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
46666         argument.
46667
46668         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
46669         e.g., a fault due to an attempt to free a NULL pointer.
46670
46671 2001-11-01  Jim Meyering  <meyering@lucent.com>
46672
46673         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
46674         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
46675
46676 2001-11-01  Jim Meyering  <meyering@lucent.com>
46677
46678         * lib/dirfd.c, lib/dirfd.h: New files.
46679         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
46680
46681         * lib/hash.c (hash_print) [TESTING]: Clean up.
46682
46683 2001-10-22  Paul Eggert  <eggert@twinsun.com>
46684
46685         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
46686         to avoid a warning if -Wall.
46687
46688 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
46689
46690         * README: New file
46691         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
46692         (per RMS's instructions, this is now the canonical source)
46693         * lgpl/, gpl/: New directories.
46694
46695 2001-10-21  Paul Eggert  <eggert@twinsun.com>
46696
46697         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
46698
46699 2001-10-21  Jim Meyering  <meyering@lucent.com>
46700
46701         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
46702         this code would end up calling gettext even in packages built
46703         with --disable-nls.
46704         * lib/getopt.c (_): Likewise.
46705         * lib/regex.c (_): Likewise.
46706
46707 2001-10-20  Paul Eggert  <eggert@twinsun.com>
46708
46709         * m4/error.m4 (jm_PREREQ_ERROR):
46710         Do not invoke AC_CHECK_FUNCS with strerror_r, as
46711         AC_FUNC_STRERROR_R does that.
46712         Check for strerror declaration.
46713
46714         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
46715         are supposed to have them these days.
46716         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
46717         Merge changes from latest Autoconf CVS.
46718         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
46719         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
46720         POSIX decided to standardize on the int flavor of strerror_r.
46721
46722 2001-10-20  Paul Eggert  <eggert@twinsun.com>
46723
46724         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
46725         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
46726         Use strerror_r that is only a macro, even if it is not a function.
46727         (strerror): Check for HAVE_DECL_STRERROR before declaring.
46728         (private_strerror): Use prototypes, not old-style function definition.
46729         (print_errno_message): New function.
46730         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
46731         char*-flavored one.
46732         (error_tail, error, error_at_line): Use it.
46733
46734 2001-10-11  Jim Meyering  <meyering@lucent.com>
46735
46736         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
46737         and quote_n (1, ... to avoid clobbering a buffer.
46738
46739 2001-10-05  Jim Meyering  <meyering@lucent.com>
46740
46741         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
46742         hash-pjw.h.
46743         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
46744         * lib/hash-pjw.h: New file.
46745
46746 2001-09-30  Jim Meyering  <meyering@lucent.com>
46747
46748         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
46749         `struct fsstat' has the `f_fstypename' member.
46750         Use that to define FS_TYPE, which is now used to make
46751         the getfsstat link test tighter.
46752
46753 2001-09-30  Jim Meyering  <meyering@lucent.com>
46754
46755         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
46756         Include <sys/ucred.h>, for Apple Darwin.
46757         Include sys/mount.h and sys/fs_types.h only if available.
46758         (FS_TYPE): Define.
46759         (read_filesystem_list): Use FS_TYPE.
46760
46761 2001-09-29  Paul Eggert  <eggert@twinsun.com>
46762
46763         * lib/exclude.c (excluded_filename): 0 -> false, since it's
46764         a boolean context.
46765
46766 2001-09-29  Jim Meyering  <meyering@lucent.com>
46767
46768         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
46769         [one-argument getmntent function]): Include stdio.h before mntent.h.
46770         SunOS 4.1.x needs it for the declaration of `FILE'.
46771         Patch by Volker Borchert.
46772
46773         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
46774         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
46775         sys/fs_types.h, and make the link-test for getfsstat guard #include
46776         directives with appropriate #if HAVE_*_H tests so that we can
46777         detect getfsstat on Apple Darwin1.3.7 systems.
46778         Reported by Nelson Beebe.
46779         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
46780
46781 2001-09-28  Paul Eggert  <eggert@twinsun.com>
46782
46783         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
46784         #defines strtoimax.  Also treat the other strto* functions
46785         like strtoimax.
46786
46787         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
46788         Check for strtoul and strtoumax,
46789         as those declarations are made even in the signed case.
46790         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
46791         Likewise, for strtol and strtoimax.
46792
46793 2001-09-28  Paul Eggert  <eggert@twinsun.com>
46794
46795         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
46796         #defines strtoimax.  Also treat the other strto* functions
46797         like strtoimax.
46798
46799         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
46800         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
46801         (strtoimax, strtoumax): Do not declare if already defined as a macro.
46802
46803 2001-09-26  Jim Meyering  <meyering@lucent.com>
46804
46805         Most macros in unlocked-io.h had the wrong number of arguments.
46806         * lib/gen-uio: New script.
46807         (USE_UNLOCKED_IO): Define to 1 if not already defined.
46808         * lib/unlocked-io.hin: Remove file.
46809         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
46810         rather than trying to embed it here.
46811         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
46812         Reported by Padraig Brady.
46813
46814 2001-09-25  Volker Borchert  <bt@teknon.de>
46815
46816         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
46817         `result'.
46818
46819 2001-09-24  Jim Meyering  <meyering@lucent.com>
46820
46821         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
46822
46823 2001-09-23  Jim Meyering  <meyering@lucent.com>
46824
46825         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
46826         instead of the mere test for existence of mntent.h.  The latter
46827         would get a false-positive on AIX 3.4 systems.
46828         In the outer getmntent if-block, don't die if neither of the getmntent
46829         tests succeeds.  Instead, just fall through and continue with the
46830         remaining tests.
46831
46832 2001-09-23  Jim Meyering  <meyering@lucent.com>
46833
46834         * lib/mountlist.c: Remove useless parentheses in #if directives.
46835         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
46836         the deprecated MOUNTED symbol is no longer defined in mntent.h.
46837
46838 2001-09-22  Jim Meyering  <meyering@lucent.com>
46839
46840         * m4/gettext.m4: New file.  From gettext.
46841         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
46842         * m4/progtest.m4: Likewise
46843         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
46844         * m4/glibc21.m4: Likewise.
46845
46846         * m4/libintl.m4: Remove.  No longer used.
46847
46848 2001-09-22  Jim Meyering  <meyering@lucent.com>
46849
46850         * lib/localcharset.c: Update from latest gettext.
46851         * lib/config.charset: Likewise.
46852
46853 2001-09-20  Jim Meyering  <meyering@lucent.com>
46854
46855         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
46856         strtoimax.
46857         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
46858         strtoumax.
46859
46860 2001-09-20  Jim Meyering  <meyering@lucent.com>
46861
46862         * lib/xstrtol.c (strtoimax): Guard declaration with
46863         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
46864         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
46865         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
46866         (strtoumax): Likewise, for completeness (it wasn't necessary).
46867
46868 2001-09-17  Paul Eggert  <eggert@twinsun.com>
46869
46870         * lib/strtoimax.c (HAVE_LONG_LONG):
46871         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
46872         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
46873         to work around bug in IBM C compiler.
46874
46875 2001-09-17  Jim Meyering  <meyering@lucent.com>
46876
46877         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
46878         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
46879         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
46880         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
46881         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
46882         whenever the right hand side need not be expanded by the shell.
46883
46884 2001-09-16  Paul Eggert  <eggert@twinsun.com>
46885
46886         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
46887         library.  It's not correct, as some older glibcs are buggy.
46888         fnmatch wasn't fixed until glibc 2.2.
46889
46890         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
46891         special shell magic here.
46892
46893 2001-09-16  Jim Meyering  <meyering@lucent.com>
46894
46895         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
46896         * m4/jm-macros.m4: Require it.
46897
46898 2001-09-16  Jim Meyering  <meyering@lucent.com>
46899
46900         * lib/mkdir.c: New file.
46901
46902 2001-09-15  Jim Meyering  <meyering@lucent.com>
46903
46904         * m4/jm-macros.m4: Check for help2man.
46905
46906 2001-09-11  Jim Meyering  <meyering@lucent.com>
46907
46908         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
46909         The body, by Paul Eggert, was moved here from configure.in.
46910         * m4/jm-macros.m4: Require UTILS_HOST_OS.
46911
46912 2001-09-04  Paul Eggert  <eggert@twinsun.com>
46913
46914         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
46915         (jm_PREREQ): Use it.
46916
46917 2001-09-04  Paul Eggert  <eggert@twinsun.com>
46918
46919         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
46920         Use ssize_t, not int, to store result of readlink.
46921         Check for ssize_t overflow as well as size_t overflow,
46922         as POSIX says the result of readlink is implementation-defined
46923         when ssize_t overflows.
46924         Remove unnecessary cast to char*.
46925         Use free+malloc instead of realloc, as the storage doesn't need
46926         to be preserved and it's clearer and can be more efficient that way.
46927         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
46928         * lib/xreadlink.h (xreadlink): Update prototype.
46929
46930 2001-09-04  Paul Eggert  <eggert@twinsun.com>
46931
46932         * lib/xgetcwd.c: Revert some of the previous change; intead,
46933         fix the HAVE_GETCWD_NULL code to behave more like the
46934         !HAVE_GETCWD_NULL code used to.
46935
46936         Include "xalloc.h".
46937         (xgetcwd): Do not return NULL when memory is exhausted; instead,
46938         invoke xalloc_die.
46939
46940 2001-09-03  Paul Eggert  <eggert@twinsun.com>
46941
46942         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
46943         sys/param.h, as pathmax.h includes them.
46944
46945 2001-09-03  Paul Eggert  <eggert@twinsun.com>
46946
46947         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
46948         (jm_PREREQ_XGETCWD): New macro.
46949
46950         * m4/getcwd.m4: New file.
46951
46952 2001-09-03  Paul Eggert  <eggert@twinsun.com>
46953
46954         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
46955         like the HAVE_GETCWD_NULL code.
46956         Include pathmax.h if not HAVE_GETCWD.
46957         Do not include xalloc.h.
46958         (INITIAL_BUFFER_SIZE): New symbol.
46959         Do not use xmalloc / xrealloc, since the caller is responsible for
46960         handling errors.  Preserve errno around `free' during failure.
46961         Do not overrun buffer when using getwd.
46962
46963 2001-09-03  Paul Eggert  <eggert@twinsun.com>
46964
46965         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
46966         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
46967         getcwd (NULL, 0).
46968
46969 2001-09-03  Paul Eggert  <eggert@twinsun.com>
46970
46971         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
46972         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
46973         spotted by Jim Meyering.
46974
46975 2001-09-03  Jim Meyering  <meyering@lucent.com>
46976
46977         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
46978         failure.
46979
46980 2001-09-02  Jim Meyering  <meyering@lucent.com>
46981
46982         * lib/error.c: Update from GNU libc.
46983
46984 2001-09-01  Jim Meyering  <meyering@lucent.com>
46985
46986         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
46987         Used by df.
46988
46989 2001-09-01  Jim Meyering  <meyering@lucent.com>
46990
46991         * lib/xreadlink.c: New file.
46992         * lib/xreadlink.h: New file.
46993         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
46994         xreadlink.h.
46995
46996         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
46997         doesn't conflict with sparc Solaris 7's definition in
46998         /usr/include/sys/int_types.h.
46999
47000         * lib/exclude.c: Use `""', not `<>' to #include non-system header
47001         files.
47002         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
47003         and strncasecmp as r-values.  Unixware didn't have declarations.
47004
47005 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47006
47007         * lib/xstrtol.h: Add copyright notice.
47008         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
47009         LONGINT_INVALID_SUFFIX_CHAR.
47010
47011 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47012
47013         * lib/xstrtol.c (strtoimax): New decl.
47014
47015 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47016
47017         * lib/xgetcwd.c: Don't include pathmax.h.
47018         Include stdlib.h and unistd.h if available.
47019         Include xalloc.h.
47020         (xmalloc, xstrdup, free): Remove decls.
47021         (xgetcwd): Don't assume sizes fit in unsigned.
47022         Check for overflow when computing sizes.
47023         Simplify reallocation code.
47024
47025 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47026
47027         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
47028         a directory's st_size can have an arbitrary value, so the old
47029         usage could waste an arbitrary amount of memory.  All uses
47030         changed.
47031         * lib/savedir.h: Update prototype.
47032
47033 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47034
47035         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
47036
47037         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
47038         old strtoimax.c.
47039
47040         Also, make the following further changes to make this file's
47041         configuration more similar to that of strtol.c:
47042         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
47043         (strtoumax, uintmax_t, strtoull, strtol): Remove.
47044         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
47045         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
47046         changed to signed values.
47047
47048         And make the following changes as well:
47049         Fix copyright notice, as 1999 was missing.
47050         (verify): New macro.
47051         (strtoimax): Check sizes at compile-time, not run-time.
47052         Prefer strtol to strtoll if both work.
47053         (main): Remove; it was not that useful and was a pain to maintain.
47054
47055         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
47056
47057 2001-08-31  Jim Meyering  <meyering@lucent.com>
47058
47059         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
47060         Use an initial, malloc'd, buffer of length 128 rather than
47061         a statically allocated one of length 1024.
47062
47063 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47064
47065         Simplify code, partly by assuming autoconf 2.52 semantics.
47066
47067         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
47068
47069         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
47070         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
47071         All uses removed.
47072         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
47073         Move AC_REQUIRE to next-to-top level, to avoid confusion.
47074         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
47075         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
47076         jm_AC_HEADER_INTTYPES_H.
47077         * m4/jm-macros.m4 (jm_MACROS): Likewise.
47078
47079         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
47080
47081         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
47082         Quote first arg of AC_DEFUN.
47083         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
47084         since they are needed to parse the include file even if we need
47085         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
47086         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
47087         but with opposite signedness.
47088
47089 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47090
47091         Merge 'exclude' changes from tar 1.13.22.
47092         This fixes one or two unlikely storage allocation overflow bugs,
47093         but doesn't change user-visible behavior otherwise.
47094
47095 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47096
47097         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
47098         (jm_PREREQ_EXCLUDE): New macro.
47099
47100 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47101
47102         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
47103         tm to be declared.
47104
47105 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47106
47107         * lib/hash.c: Remove '2001' from copyright notice.
47108
47109 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47110
47111         * lib/full-write.h: New file.
47112         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
47113         * lib/full-write.c: Correct credits, as cccp.c no longer
47114         exists and anyway it was so heavily changed from the old cccp
47115         code as to be unrecognizable.  Include full-write.h.
47116         (full_write) Return size_t, with short writes meaning failure.
47117         All callers changed.  This fixes a bug with large buffers
47118         on 64-bit hosts.
47119         * lib/utime.c: Include full-write.h.
47120
47121 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47122
47123         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
47124         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
47125         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
47126         Include if available.
47127         (<xalloc.h>): Include
47128         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
47129         (verify): New macro.  Use it to verify that EXCLUDE macros do not
47130         collide with FNM macros.
47131         (struct patopts): New struct.
47132         (struct exclude): Use it, as exclude patterns now come with options.
47133         (new_exclude): Support above changes.
47134         (new_exclude, add_exclude_file):
47135         Initial size must now be a power of two to simplify overflow checking.
47136         (free_exclude, fnmatch_no_wildcards): New function.
47137         (excluded_filename): No longer requires options arg, as the options
47138         are determined by add_exclude.  Now returns bool, not int.
47139         (excluded_filename, add_exclude):
47140         Add support for the fancy new exclusion options.
47141         (add_exclude, add_exclude_file): Now takes int options arg.
47142         Check for arithmetic overflow when computing sizes.
47143         (add_exclude_file): xrealloc might modify errno, so don't
47144         realloc until after errno might be used.
47145
47146         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
47147         New macros.
47148         (free_exclude): New decl.
47149         (add_exclude, add_exclude_file): Now takes int options arg.
47150         (excluded_filename): No longer requires options arg, as the options
47151         are determined by add_exclude.  Now returns bool, not int.
47152
47153 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47154
47155         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
47156
47157 2001-08-27  Jim Meyering  <meyering@lucent.com>
47158
47159         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
47160
47161         * lib/version-etc.c (N_): Remove definition.
47162         Revert most of last change.
47163         Instead, simply don't mark the `Copyright...' string for translation.
47164         Based on advice from Paul Eggert.
47165
47166         * lib/strtoxmax.c: Tweak comment.
47167
47168 2001-08-26  Jim Meyering  <meyering@lucent.com>
47169
47170         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
47171
47172         * m4/xstrtoimax.m4: New file.
47173         * m4/xstrtoumax.m4: Add comments explaining why we
47174         AC_REPLACE_FUNCS(strtol).
47175
47176 2001-08-26  Jim Meyering  <meyering@lucent.com>
47177
47178         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
47179         of copyright with `%s' so translators don't get an untranslated
47180         message in 2002.
47181         (COPYRIGHT_YEAR): Define.
47182         (version_etc): Use fprintf rather than fputs.
47183         Suggestion from Ulrich Drepper.
47184
47185         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
47186
47187         * lib/strtoll.c: New file, from GNU libc.
47188         * lib/xstrtoimax.c: New file.
47189
47190         * lib/xstrtol.h: Add xstrtoimax.
47191         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
47192         * lib/strtoimax.c: New file.  Likewise, but first define
47193         STRTOUXMAX_SIGNED.
47194
47195         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
47196         ...
47197         * lib/strtoxmax.c: ... then renamed to this.
47198
47199 2001-08-18  Paul Eggert  <eggert@twinsun.com>
47200
47201         * m4/inttypes.m4: Add AC_PREREQ(2.13).
47202         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
47203         (jm_AC_TYPE_INTMAX_T): New macro.
47204         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
47205
47206         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
47207
47208         * m4/longlong.m4: Renamed from ulonglong.m4.
47209         * m4/inttypes.m4: Renamed from inttypes_h.m4.
47210         * m4/uintmax_t.m4: Removed.
47211
47212 2001-08-13  Paul Eggert  <eggert@twinsun.com>
47213
47214         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
47215         Port to Solaris 8, where 'sed' requires a space after the 'r'
47216         command, and where sh dislikes "$/".  Clean up the spacing a bit.
47217         Redirect output to $tmp just once.
47218
47219 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
47220
47221         * lib/addext.c (<errno.h>): Include.
47222         (errno): Declare if not defined.
47223         (addext): Work correctly when pathconf returns -1 and leaves
47224         errno alone because there is no limit.  Also, work even if
47225         pathconf returns a value greater than SIZE_MAX.
47226
47227 2001-08-12  Jim Meyering  <meyering@lucent.com>
47228
47229         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
47230         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
47231         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
47232         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
47233         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
47234         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
47235         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
47236         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
47237         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
47238         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
47239         utime.m4, utimes.m4, xstrtoumax.m4:
47240         Quote the first argument in each use of AC_DEFUN.
47241
47242 2001-08-12  Jim Meyering  <meyering@lucent.com>
47243
47244         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
47245         Simply `return getcwd (NULL, 0);'.
47246         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
47247         Use 1300 as initial value for length, not PATH_MAX.
47248
47249         * lib/pathmax.h: Clean up cpp syntax.
47250
47251 2001-08-12  Jim Meyering  <meyering@lucent.com>
47252
47253         * lib/gettimeofday.c: New file.
47254         * lib/gtod.h: New file.
47255         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
47256
47257 2001-08-05  Jim Meyering  <meyering@lucent.com>
47258
47259         * m4/jm-macros.m4: Require autoconf-2.52.
47260
47261 2001-08-04  Jim Meyering  <meyering@lucent.com>
47262
47263         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
47264         stmt, to get in sync with glibc.
47265
47266 2001-08-03  Paul Eggert  <eggert@twinsun.com>
47267
47268         The following changes are from gettext 0.10.39 as maintained by
47269         Bruno Haible.
47270
47271         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
47272         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
47273         with inverted sense.  All uses changed.
47274
47275         * lib/mbswidth.c: Don't include <limits.h>.
47276         Include <stdlib.h> and <string.h> unconditionally.
47277         (iswcntrl, mbsinit, ISCNTRL): New macros.
47278         (mbsnwidth): Use K&R style function declarations.
47279         Don't bother checking for MB_LEN_MAX == 1, since the compiler
47280         can optimize it when MB_CUR_MAX == 1.
47281         The width of control characters is zero, not 1.
47282
47283 2001-08-03  Paul Eggert  <eggert@twinsun.com>
47284
47285         The following changes are from gettext 0.10.39 as maintained by
47286         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
47287
47288         * m4/codeset.m4: Upgrade to serial AM1.
47289         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
47290         all uses changed.  Quote first arg of AC_DEFUN.
47291         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
47292
47293         * m4/iconv.m4: Upgrade to serial AM2.
47294         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
47295         Add --with-libconv-prefix.
47296         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
47297         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
47298         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
47299         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
47300         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
47301
47302         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
47303         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
47304         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
47305         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
47306         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
47307         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
47308         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
47309         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
47310         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
47311
47312         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
47313         string.h any more.
47314
47315         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
47316         not the default value.
47317
47318         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
47319         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
47320         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
47321         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
47322         Also check for iswcntrl, used for wcwidth fallback.
47323         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
47324         to Autoconf 2.13.
47325
47326 2001-08-03  Jim Meyering  <meyering@lucent.com>
47327
47328         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
47329         as it was in the original.  Reported by Paul Eggert.
47330
47331 2001-07-16  Jim Meyering  <meyering@lucent.com>
47332
47333         * m4/gettimeofday.m4: New file.
47334         Prompted by a report from Bernhard Baehr.
47335
47336 2001-07-15  Jim Meyering  <meyering@lucent.com>
47337
47338         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
47339         stuff. Now it's in ../Makefile.cfg.
47340
47341 2001-07-15  Jim Meyering  <meyering@lucent.com>
47342
47343         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
47344         (BUILT_SOURCES): Add unlocked-io.h.
47345         (io_functions): Define.
47346         (unlocked-io.h): New rule.
47347         (DISTCLEANFILES): Add unlocked-io.h.
47348         (all-local): Depend on unlocked-io.h, to ensure it is created.
47349
47350         * lib/unlocked-io.hin: New file
47351
47352         * lib/regex.c: Update from glibc.
47353
47354 2001-07-05  Jim Meyering  <meyering@lucent.com>
47355
47356         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
47357         recommendation.
47358         (libfetish_a_SOURCES): Put all .h files here instead.
47359         Remove a thus-exposed (better checks in automake) duplicate and
47360         two unnecessary .h files.
47361
47362 2001-07-04  Jim Meyering  <meyering@lucent.com>
47363
47364         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
47365         that generates jm-glibc-io.m4 so that it doesn't trigger any make
47366         distcheck failure.
47367
47368 2001-07-02  Jim Meyering  <meyering@lucent.com>
47369
47370         The following changes were prompted by suggestions from Bruno Haible.
47371
47372         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
47373         is now generated.
47374         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
47375         definition of EXTRA_DIST.
47376         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
47377         ensure that the generated file is created/updated whenever the list
47378         of $(unlocked_functions) is changed.
47379         (jm-glibc-io.m4): New rule.
47380         (unlocked-io.h): New rule -- currently unused.
47381
47382 2001-06-24  Jim Meyering  <meyering@lucent.com>
47383
47384         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
47385         unmatched right bracket, rather than kludging it with an extra,
47386         falsely-matching quote in a comment.  Patch by Akim Demaille.
47387
47388 2001-06-11  Jim Meyering  <meyering@lucent.com>
47389
47390         * lib/regex.c: Update from GNU libc.
47391
47392 2001-05-27  Jim Meyering  <meyering@lucent.com>
47393
47394         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
47395         Check for ut_type in struct utmp.
47396
47397 2001-05-27  Jim Meyering  <meyering@lucent.com>
47398
47399         * lib/readutmp.h (UT_TYPE): Define.
47400
47401 2001-05-24  Jim Meyering  <meyering@lucent.com>
47402
47403         * lib/argmatch.c: Include "quote.h".
47404         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
47405         quote function.  Reported by Göran Uddeborg.
47406
47407 2001-05-22  Jim Meyering  <meyering@lucent.com>
47408
47409         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
47410         now that we use the package-supplied version unconditionally.
47411         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
47412
47413 2001-05-21  Jim Meyering  <meyering@lucent.com>
47414
47415         * m4/regex.m4: Change a couple backticks to single quotes to avoid
47416         shell syntax errors.
47417
47418 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
47419
47420         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
47421
47422 2001-05-20  Paul Eggert  <eggert@twinsun.com>
47423
47424         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
47425         Don't bother to check library strftime, since
47426         we'll be using our own my_strftime function anyway.
47427         Define my_strftime instead of strftime.
47428
47429 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
47430
47431         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
47432         which is not yet declared.
47433
47434 2001-05-15  Jim Meyering  <meyering@lucent.com>
47435
47436         * m4/regex.m4: Use proper quoting so brackets appear in the test
47437         program.
47438         Reported by, and with help from, Bruno Haible.
47439
47440 2001-05-13  Jim Meyering  <meyering@lucent.com>
47441
47442         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
47443         undefined.
47444
47445 2001-05-11  Paul Eggert  <eggert@twinsun.com>
47446
47447         dirname code cleanup.  base_name now behaves more compatibly
47448         with POSIX basename when given file names that have trailing
47449         slashes, and similarly for dir_name.  Add new primitives
47450         base_len and dir_len.  Put the directory-name-related decls
47451         into dirname.h.
47452
47453         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
47454         * lib/backupfile.c (base_name): Likewise.
47455         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
47456         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
47457         * lib/makepath.c (strip_trailing_slashes): Likewise.
47458         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
47459         ISSLASH): Likewise.
47460         * lib/rename.c (strip_trailing_slashes): Likewise.
47461         * lib/same.c (base_name): Likewise.
47462         * lib/stripslash.c (ISSLASH): Likewise.
47463
47464         * lib/addext.c: Include <dirname.h> after size_t is defined.
47465         * lib/backupfile.c: Likewise.
47466
47467         * lib/addext.c (addext): Use base_len to trim redundant
47468         trailing slashes instead of doing it ourselves.
47469         But do not trim the last slash if it is not redundant.
47470
47471         * lib/backupfile.c (find_backup_file_name,
47472         max_backup_version): Use base_len instead of rolling it ourselves.
47473         Handle the case of "" and (on DOS) "C:" correctly.
47474
47475         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
47476         needed. Include <string.h>, <dirname.h>.
47477         (base_name): Allow file names ending in slashes, other than names
47478         that are all slashes.  In this case, return the basename followed
47479         by the slashes.  This is more general, and can be used in places
47480         where the original base_name purposely had an assertion failure.
47481         (base_len): New function.
47482
47483         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
47484         Do not include <assert.h>; no longer needed.
47485         Include xalloc.h.
47486         (memrchr): Remove decl.
47487         (dir_name_r): Remove.
47488         (dir_len): Renamed from dirlen.  All callers changed.
47489         Rewrite in terms of base_name, for simplicity and consistency.
47490         (dir_name): Never return NULL.  All callers changed.
47491         Do not include <stdlib.h> in test program; no longer needed.
47492         return 0; is fine for test program.
47493
47494         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
47495         New macros.
47496         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
47497
47498         * lib/path-concat.c (path_concat): Use base_len to compute
47499         base length, not strlen; this means we cannot rely on memcpy
47500         to null-terminate.
47501
47502         * lib/same.c (STREQ): Remove.
47503         (same_name): Handle the case where the basename ends in trailing '/'.
47504
47505         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
47506         a slash was stripped.  Do not strip the last slash after a
47507         file system prefix.
47508
47509 2001-05-11  Paul Eggert  <eggert@twinsun.com>
47510
47511         * lib/Makefile.am (libfetish_a_SOURCES):
47512         Add strftime.c, since we now compile it on all hosts.
47513
47514         * lib/strftime.c (my_strftime):
47515         Define to nstrftime if emacs, but only if my_strftime is not defined.
47516         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
47517         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
47518         Add one more extra argument: a nanoseconds value.
47519         All uses changed.
47520         (ns): New macro.
47521         (my_strftime function): Add %N format.
47522         (emacs_strftimeu): Renamed from emacs_strftime,
47523         with extra ut argument.
47524
47525 2001-05-09  Paul Eggert  <eggert@twinsun.com>
47526
47527         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
47528
47529 2001-04-21  Jim Meyering  <meyering@lucent.com>
47530
47531         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
47532         doesn't interfere.
47533
47534 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
47535
47536         * m4/ftruncate.m4: Check for chsize.
47537         Link with ftruncate.o unconditionally if ftruncate is missing.
47538         This was required when cross-compiling to i586-mingw32msvc.
47539
47540 2001-04-08  Jim Meyering  <meyering@lucent.com>
47541
47542         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
47543         recomputed; that's necessary when the offset spans a DST transition.
47544         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
47545
47546 2001-04-02  Jim Meyering  <meyering@lucent.com>
47547
47548         * lib/regex.h, regex.c: Update from GNU libc.
47549
47550 2001-03-24  Jim Meyering  <meyering@lucent.com>
47551
47552         * m4/jm-macros.m4: Require autoconf-2.49d.
47553
47554 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
47555
47556         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
47557
47558 2001-03-19  Paul Eggert  <eggert@twinsun.com>
47559
47560         * lib/version-etc.c (version_etc_copyright): Update to 2001.
47561
47562 2001-03-17  Jim Meyering  <meyering@lucent.com>
47563
47564         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
47565         now that the version in autoconf is equivalent.
47566         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
47567
47568         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
47569         Suggestion from Akim Demaille.
47570
47571         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
47572         (jm_PREREQ_TEMPNAME): New function.
47573
47574 2001-03-16  Paul Eggert  <eggert@twinsun.com>
47575
47576         * lib/tempname.c (uint64_t): Define to uintmax_t if
47577         not defined, and if UINT64_MAX is not defined.
47578         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
47579         Reported by John David Anglin.
47580
47581 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
47582
47583         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
47584         resolve alias if codeset is empty.
47585         * lib/config.charset (BeOS): Use wildcard syntax.
47586
47587 2001-03-13  Jim Meyering  <meyering@lucent.com>
47588
47589         * lib/path-concat.c (path_concat)
47590         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
47591         concatenating e.g., `C:' and `foo'.
47592         From Bruno Haible.
47593
47594 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
47595
47596         * lib/localcharset.c (locale_charset): Don't use
47597         setlocale(LC_CTYPE,NULL). Don't return NULL.
47598         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
47599
47600 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
47601
47602         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
47603         support for DOS/DJGPP.
47604
47605 2001-03-01  Paul Eggert  <eggert@twinsun.com>
47606
47607         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
47608         lacks mkstemp.  Compile our own tempname.c if we compile our own
47609         mkstemp.c, as mkstemp relies on tempname.
47610
47611 2001-03-01  Jim Meyering  <meyering@lucent.com>
47612
47613         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
47614         AH_VERBATIM really does output its argument verbatim.
47615
47616 2001-02-28  Paul Eggert  <eggert@twinsun.com>
47617
47618         * lib/Makefile.am (libfetish_a_SOURCES):
47619         Add dup-safer.c, fopen-safer.c.
47620         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
47621
47622         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
47623         * lib/unistd-safer.h: New files.
47624
47625 2001-02-25  Paul Eggert  <eggert@twinsun.com>
47626
47627         The mkstemp replacement is taken from glibc 2.2.2, with some
47628         portability fixes for use outside glibc, as follows:
47629
47630         * lib/tempname.c (struct_stat64): New macro.
47631         (direxists, __gen_tempname): Use it.
47632         This avoids a portability problem with Solaris 8.
47633
47634         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
47635         (<stddef.h>, <stdint.h>, <string.h>):
47636         Include only if STDC_HEADERS || _LIBC.
47637         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
47638         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
47639         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
47640         (__set_errno): Define this macro if <errno.h> doesn't.
47641         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
47642         Define these macros if <stdio.h> doesn't.
47643         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
47644         Define these macros if <sys/stat.h>
47645         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
47646         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
47647         __xstat64): Define if not _LIBC.
47648         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
47649         (__gen_tempname): Invoke gettimeofday only if
47650         HAVE_GETTIMEOFDAY || _LIBC;
47651         otherwise, fall back on plain "time".
47652         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
47653
47654         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
47655
47656         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
47657
47658 2001-02-18  Paul Eggert  <eggert@twinsun.com>
47659
47660         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
47661
47662 2001-02-17  Paul Eggert  <eggert@twinsun.com>
47663
47664         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
47665         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
47666         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
47667         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
47668
47669 2001-02-17  Paul Eggert  <eggert@twinsun.com>
47670
47671         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
47672         Remove workaround macros for hosts that have mbrtowc but not
47673         mbstate_t, as we now insist on proper declarations for both
47674         before using mbrtowc.
47675
47676 2001-02-17  Jim Meyering  <meyering@lucent.com>
47677
47678         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
47679         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
47680         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
47681         UnixWare 7.1.1.
47682
47683         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
47684         rather than AC_CACHE_VAL.
47685
47686 2001-02-17  Jim Meyering  <meyering@lucent.com>
47687
47688         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
47689         around included file name.
47690
47691         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
47692
47693         * lib/strftime.c: Update from GNU libc (the only changes were to
47694         comments).
47695
47696 2001-02-17  Jim Meyering  <meyering@lucent.com>
47697
47698         * lib/regex.c: Update from libc.
47699
47700 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
47701
47702         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
47703         clash.
47704
47705 2001-02-16  Paul Eggert  <eggert@twinsun.com>
47706
47707         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
47708         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
47709         Reported by Mark Hounschell via Paul Eggert.
47710
47711 2001-02-07  Jim Meyering  <meyering@lucent.com>
47712
47713         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
47714
47715 2001-02-05  Jim Meyering  <meyering@lucent.com>
47716
47717         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
47718         it includes the patch required for `large file' support with at least
47719         HP-UX's 10.20 /bin/cc.
47720
47721 2001-02-03  Jim Meyering  <meyering@lucent.com>
47722
47723         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
47724         AS_IF, now that it works once again (mysteriously).
47725         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
47726
47727 2001-01-30  Jim Meyering  <meyering@lucent.com>
47728
47729         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
47730         * m4/chown.m4: Rename conftestchown to conftest.chown.
47731         * m4/rename.m4: s/conftestdir/conftest.d1/ and
47732         s/conftestdir2/conftest.d2/.
47733         * m4/utimes.m4: s/conftestdata/conftest.data/
47734         Inspired by Pavel Roskin's change in autoconf.
47735
47736 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
47737
47738         * lib/config.charset: Update for FreeBSD 4.2.
47739
47740 2001-01-27  Jim Meyering  <meyering@lucent.com>
47741
47742         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
47743         a use of AS_IF.
47744         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
47745
47746 2001-01-26  Jim Meyering  <meyering@lucent.com>
47747
47748         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
47749         quotearg.c includes it.
47750
47751 2001-01-26  Jim Meyering  <meyering@lucent.com>
47752
47753         * lib/quotearg.c: Include stddef.h.
47754         * lib/quote.c: Include stddef.h.
47755         Reported by Axel Kittenberger.
47756
47757         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
47758         line in double quotes so that it evokes a better diagnostic.
47759         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
47760         Reported by Axel Kittenberger.
47761
47762 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
47763
47764         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
47765         as if it was a `charset'.
47766
47767 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
47768
47769         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
47770         has const.
47771
47772 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
47773
47774         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
47775         to avoid a warning.  Add back 'const' to inptr.
47776
47777 2001-01-20  Jim Meyering  <meyering@lucent.com>
47778
47779         Be sure that headers are checked before used in code compiled
47780         for the type checks.
47781         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
47782         In place of that, invoke jm_CHECK_ALL_TYPES.
47783         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
47784         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
47785         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
47786         The check for ssize_t was mistakenly run before the test for unistd.h.
47787
47788         The configure-time check for stdbool.h was missing.
47789         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
47790         (jm_PREREQ_HASH): New function.
47791
47792 2001-01-17  Jim Meyering  <meyering@lucent.com>
47793
47794         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
47795         for autoconf-2.49c.
47796         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
47797
47798 2001-01-16  Jim Meyering  <meyering@lucent.com>
47799
47800         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
47801         From Bruno Haible.
47802
47803 2001-01-14  Jim Meyering  <meyering@lucent.com>
47804
47805         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
47806         foo and bar.  Create conftestdir/ in the script, not in the C code.
47807         Remove directories in the script, not in the C code.
47808         Remove conftestdir{,2} before trying to create the directory.
47809         Make the entire configure script fail if the mkdir fails.
47810
47811 2001-01-14  Jim Meyering  <meyering@lucent.com>
47812
47813         * lib/rename.c: New file.  From Volker Borchert.
47814         Include stdlib.h, string.h or strings.h, and xalloc.h.
47815         Use strip_trailing_slashes rather than open-coding it.
47816
47817 2001-01-03  Paul Eggert  <eggert@twinsun.com>
47818
47819         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
47820
47821 2001-01-03  Jim Meyering  <meyering@lucent.com>
47822
47823         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
47824         of local `inptr' to avoid warning with some system declarations of
47825         iconv.
47826
47827 2001-01-02  Volker Borchert  <bt@teknon.de>
47828
47829         * m4/rename.m4: New file.
47830         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
47831
47832 2001-01-01  Jim Meyering  <meyering@lucent.com>
47833
47834         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
47835         even on systems with utmpx.h.  It's necessary for the declaration of
47836         utmp's ut_user member.  Reported by Andreas Jaeger.
47837
47838         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
47839         available. They are required for the declarations of getgrgid and
47840         getpwuid resp.
47841         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
47842         Reported by Andreas Jaeger.
47843
47844 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
47845
47846         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
47847         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
47848         so `make install' also works in VPATH builds.
47849
47850 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
47851
47852         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
47853         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
47854         can be used in subdirectories.
47855
47856 2000-12-29  Paul Eggert  <eggert@twinsun.com>
47857
47858         * lib/modechange.c: Do not assume that mode_t uses the
47859         traditional octal encoding.  E.g. "chmod 1 FOO" should set
47860         the other-execute bit of FOO even if S_IXOTH != 1.
47861
47862         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
47863         WOTH, XOTH, ALLM): New macros.
47864         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
47865          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
47866         Use them.
47867         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
47868         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
47869         (mode_compile):
47870         No need to use uintmax_t; unsigned long is long enough.
47871         Don't bother to get suffix since we don't use it.
47872
47873 2000-12-26  Jim Meyering  <meyering@lucent.com>
47874
47875         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
47876         better with autoheader.
47877
47878 2000-12-24  Jim Meyering  <meyering@lucent.com>
47879
47880         * lib/hash.c (is_prime): Return explicit boolean values.
47881         (hash_get_first): Return NULL to appease Irix5.6's 89.
47882         Reported by Nelson Beebe.
47883
47884 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
47885
47886         * lib/localcharset.c (locale_charset): Add support for Win32.
47887
47888 2000-12-18  Paul Eggert  <eggert@twinsun.com>
47889
47890         * lib/physmem.h, lib/physmem.c: New files.
47891
47892         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
47893         (noinst_HEADERS): Add physmem.h.
47894
47895         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
47896         't' for compatibility with Solaris 8 sort.
47897
47898 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
47899
47900         * lib/config.charset: Add support for BeOS.
47901
47902 2000-12-17  Jim Meyering  <meyering@lucent.com>
47903
47904         * m4/dos.m4 (jm_AC_DOS): New file and macro.
47905         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
47906
47907 2000-12-16  Jim Meyering  <meyering@lucent.com>
47908
47909         This bug had a serious impact on chown: `chown N:M FILE' (for integer
47910         N and M) would have treated it like `chown N:N FILE'.
47911
47912         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
47913
47914 2000-12-16  Jim Meyering  <meyering@lucent.com>
47915
47916         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
47917         SHELLS_FILE to a file name that's useful on djgpp systems.
47918         Include stdlib.h.
47919         (ADDITIONAL_DEFAULT_SHELLS): Define.
47920         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
47921         Based mostly on a patch from Prashant TR.
47922
47923 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
47924
47925         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
47926         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
47927         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
47928
47929 2000-12-08  Andreas Schwab  <schwab@suse.de>
47930
47931         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
47932         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
47933
47934 2000-12-07  Jim Meyering  <meyering@lucent.com>
47935
47936         * lib/stripslash.c (ISSLASH): Define.
47937         (strip_trailing_slashes): Use ISSLASH rather than comparing against
47938         `/'.
47939         From Prashant TR.
47940
47941         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
47942         (dir_name_r): Declare this function as static.
47943         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
47944         manifest itself on a name containing a mix of slashes and
47945         backslashes.
47946         Make this function work with names starting with a DOS-style
47947         drive letter and colon prefix.
47948         (dir_name): Append `.' if necessary.
47949         Based mostly on patches from Prashant TR and Eli Zaretskii.
47950
47951         * lib/dirname.h (dir_name_r): Remove prototype.
47952
47953 2000-12-06  Paul Eggert  <eggert@twinsun.com>
47954
47955         * m4/off_t-format.m4: Remove this file.
47956         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
47957
47958 2000-12-06  Jim Meyering  <meyering@lucent.com>
47959
47960         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
47961         replacement strtoull, we may well need the replacement strtoul, too.
47962         Check for declarations of strtoul and strtoull.
47963         Check for strtol.  Mainly as a cue to cause automake to include
47964         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
47965         Check for limits.h -- strtol.c needs it.
47966
47967 2000-12-05  Jim Meyering  <meyering@lucent.com>
47968
47969         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
47970
47971 2000-12-04  Jim Meyering  <meyering@lucent.com>
47972
47973         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
47974         Also include memory.h, stdlib.h, unistd.h if appropriate.
47975         Reported by Andreas Jaeger (conflicting declaration of malloc).
47976
47977 2000-12-02  Jim Meyering  <meyering@lucent.com>
47978
47979         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
47980         * m4/jm-macros.m4 (jm_MACROS): require it.
47981
47982 2000-12-02  Jim Meyering  <meyering@lucent.com>
47983
47984         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
47985
47986 2000-12-01  Paul Eggert  <eggert@twinsun.com>
47987
47988         * lib/memrchr.c: Include <config.h> before any system include file.
47989
47990 2000-11-30  Jim Meyering  <meyering@lucent.com>
47991
47992         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
47993
47994 2000-11-30  Jim Meyering  <meyering@lucent.com>
47995
47996         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
47997
47998 2000-11-29  Paul Eggert  <eggert@twinsun.com>
47999
48000         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
48001
48002 2000-11-26  Jim Meyering  <meyering@lucent.com>
48003
48004         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
48005
48006 2000-11-22  Paul Eggert  <eggert@twinsun.com>
48007
48008         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
48009         size of (size_t) -1; it's not portable.
48010
48011 2000-11-17  Jim Meyering  <meyering@lucent.com>
48012
48013         * lib/strstr.c: Update from GNU libc.
48014
48015 2000-11-17  Akim Demaille  <akim@epita.fr>
48016
48017         * lib/obstack.h: Formatting changes.
48018         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
48019         prevent type checking.
48020         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
48021         cast the value to (void *): assigning a `foo *' to a `void *'
48022         variable is valid.
48023         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
48024
48025 2000-11-16  Jim Meyering  <meyering@lucent.com>
48026
48027         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
48028
48029 2000-11-11  Jim Meyering  <meyering@lucent.com>
48030
48031         * lib/error.c: Add a couple #includes, merging from GNU libc version.
48032
48033 2000-11-10  Jim Meyering  <meyering@lucent.com>
48034
48035         * lib/obstack.h: Update from GNU libc.
48036         * lib/obstack.c: Likewise.
48037
48038 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
48039
48040         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
48041
48042 2000-11-06  Paul Eggert  <eggert@twinsun.com>
48043
48044         * lib/getusershell.c (setusershell): Use rewind rather than
48045         fseek/fseeko, to avoid configuration hassles with fseeko.
48046         Don't bother opening SHELLS_FILE if shellstream is NULL;
48047         it's not necessary.
48048
48049 2000-11-05  Jim Meyering  <meyering@lucent.com>
48050
48051         * lib/makepath.h (make_dir): Declare.
48052         * lib/makepath.c (make_dir): Remove `static' attribute.
48053         Tweak a comment.
48054
48055 2000-11-04  Jim Meyering  <meyering@lucent.com>
48056
48057         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
48058
48059 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
48060
48061         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
48062         last one in a bucket, advance to the next bucket.
48063
48064 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
48065
48066         * lib/fnmatch.c: Do not comment out all the code if we are using
48067         the GNU C library, because in some cases we are replacing buggy
48068         code in the GNU C library itself.
48069
48070 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
48071
48072         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
48073         (regex_compile): Catch bogus \(\1\).
48074
48075 2000-10-30  Paul Eggert  <eggert@twinsun.com>
48076
48077         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
48078         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
48079         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
48080
48081 2000-10-30  Paul Eggert  <eggert@twinsun.com>
48082
48083         * lib/error.h, getline.h, modechange.h:
48084         Remove "2000" from Copyright line, as the file hasn't been
48085         changed this year other than in the copyright notice.
48086
48087         * lib/xalloc.h: Add "2000" to Copyright line, as this file
48088         was changed this year.
48089
48090 2000-10-29  Jim Meyering  <meyering@lucent.com>
48091
48092         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
48093         renaming.
48094         * m4/ls-mntd-fs.m4: Likewise
48095
48096 2000-10-29  Jim Meyering  <meyering@lucent.com>
48097
48098         * lib/xstat.in: Fix grammar in comment.
48099
48100 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
48101
48102         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
48103         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
48104         doesn't define __restrict_arr.
48105
48106 2000-10-28  Jim Meyering  <meyering@lucent.com>
48107
48108         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
48109         (jm_PREREQ_MEMCHR): New function.
48110
48111 2000-10-28  Jim Meyering  <meyering@lucent.com>
48112
48113         * lib/memchr.c: Update from libc.
48114         Adjust for portability:
48115         [HAVE_STDLIB_H]: Include stdlib.h.
48116         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
48117         Undef __memchr, too.
48118         [!weak_alias]: Define __memchr to memchr.
48119
48120         * lib/regex.c: Update from libc.
48121         * lib/regex.h: Likewise.
48122         * lib/getopt1.c: Likewise.
48123         * lib/memcmp.c: Likewise.
48124
48125         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
48126         Avoid using fseek, when possible -- it's broken by design.
48127         Patch by Ulrich Drepper.
48128
48129 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
48130
48131         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
48132         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
48133         Giving in to popular pressure to shut up the compiler with casts.
48134
48135 2000-10-26  Jim Meyering  <meyering@lucent.com>
48136
48137         * lib/strftime.c: Update from libc.
48138
48139 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
48140
48141         * regex.c: More `unsigned char' -> `re_char' changes.
48142         Also change several `int' into `re_wchar_t'.
48143         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
48144         (PUSH_FAILURE_POINTER): Don't cast any more.
48145         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
48146         We want GCC to complain, since this piece of code makes
48147         re_match non-reentrant, which *should* be fixed.
48148         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
48149         (EXTEND_BUFFER): Use RETALLOC.
48150         (SET_LIST_BIT): Don't cast.
48151         (re_wchar_t): New type.
48152         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
48153         that those two functions will always properly return.
48154         (IMMEDIATE_QUIT_CHECK): Cast to void.
48155         (analyse_first): Use recursion rather than an explicit stack.
48156         (re_compile_fastmap): Can't fail anymore.
48157         (re_search_2): Don't check re_compile_fastmap for failure.
48158         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
48159         Now also sets the new value (passed in a new argument).
48160         (re_match_2_internal): Use it.
48161         Also, use a new var `reg' of type size_t when looping through regs
48162         rather than reuse the inappropriate `mcnt'.
48163
48164 2000-10-25  Jim Meyering  <meyering@lucent.com>
48165
48166         * lib/obstack.c: Update from libc.
48167
48168 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
48169
48170         * regex.c (regex_compile): Change the way of handling a range from
48171         a char less than 256 to a char not less than 256.
48172
48173 2000-10-24  Andrew Innes  <andrewi@gnu.org>
48174
48175         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
48176         NT-Emacs only.
48177         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
48178         so that re_search functions only quit when callers expect them to.
48179
48180 2000-10-23  Jim Meyering  <meyering@lucent.com>
48181
48182         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
48183         wrong.  That set_locale call must not have any side effects.
48184         From Paul Eggert.
48185
48186 2000-10-22  Jim Meyering  <meyering@lucent.com>
48187
48188         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
48189         [CYCLIC]: Remove now-unused definition.
48190
48191         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
48192         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
48193         Suggestion from Ulrich Drepper.
48194
48195 2000-10-21  Jim Meyering  <meyering@lucent.com>
48196
48197         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
48198         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
48199         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
48200
48201 2000-10-21  Jim Meyering  <meyering@lucent.com>
48202
48203         * lib/dirname.c (memrchr): Declare if necessary.
48204         (dir_name): Remove the restriction that there be no
48205         trailing slashes.  Now, this code skips past them, effectively
48206         ignoring them.
48207         [TEST_DIRNAME] (main): New unit tests.
48208
48209         * lib/memrchr.c: New file from GNU libc.
48210         Undef __memrchr, too.
48211         [!weak_alias]: Define __memrchr to memrchr.
48212         Guard weak_alias use with `#ifdef weak_alias'.
48213
48214 2000-10-21  Jim Meyering  <meyering@lucent.com>
48215
48216         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
48217         (dir_name): Use dir_name_r.
48218         * lib/dirname.h (dir_name_r): Declare it.
48219
48220 2000-10-17  Jim Meyering  <meyering@lucent.com>
48221
48222         * lib/quote.h (PARAMS): Define and use.
48223         Reported by Akim Demaille.
48224
48225         * lib/getopt.c: Update from libc.
48226
48227 2000-10-16  Jim Meyering  <meyering@lucent.com>
48228
48229         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
48230         setlocale.
48231         From Jan Fedak.
48232
48233 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
48234
48235         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
48236
48237 2000-09-25  Jim Meyering  <meyering@lucent.com>
48238
48239         * lib/md5.h (rol): Define (from GnuPG).
48240
48241         * lib/sha.c: Give credit (GnuPG) where due.
48242         (M): Use rol rather than open-coding it.
48243         Add a FIXME comment.
48244
48245 2000-09-21  Jim Meyering  <meyering@lucent.com>
48246
48247         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
48248         Reported by Michael Stone.
48249
48250 2000-09-20  Jim Meyering  <meyering@lucent.com>
48251
48252         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
48253         (noinst_HEADERS): Add sha.h.
48254         Based on code from Scott G. Miller and from GnuPG.
48255
48256 2000-09-18  Jim Meyering  <meyering@lucent.com>
48257
48258         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
48259         LIBS. Otherwise, everyone ends up linking with -lelf for some
48260         configurations.
48261         Reported by Mike Stone.
48262
48263 2000-09-15  Jim Meyering  <meyering@lucent.com>
48264
48265         * lib/regex.c: Update from libc.
48266
48267 2000-09-10  Jim Meyering  <meyering@lucent.com>
48268
48269         * lib/getopt.c (_getopt_internal): Update from glibc.
48270
48271 2000-09-09  Jim Meyering  <meyering@lucent.com>
48272
48273         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
48274         think it should be used as a general replacement for isascii.
48275         * lib/fnmatch.c: Likewise.
48276         * lib/mbswidth.c: Likewise
48277         * lib/regex.c: Likewise.
48278
48279         Don't use atoi.
48280         * lib/userspec.c: Include sys/param.h and limits.h.
48281         Include xstrtol.h.
48282         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
48283         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
48284         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
48285         UID, GID.  Check range.
48286
48287 2000-09-06  Jim Meyering  <meyering@lucent.com>
48288
48289         * lib/getopt.c (_getopt_internal): Update from glibc.
48290
48291 2000-08-30  Jim Meyering  <meyering@lucent.com>
48292
48293         * lib/strftime.c: Merge in changes from GNU libc.
48294
48295 2000-08-26  Jim Meyering  <meyering@lucent.com>
48296
48297         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
48298         * m4/fpending.m4: New file.
48299
48300 2000-08-26  Jim Meyering  <meyering@lucent.com>
48301
48302         * lib/closeout.c: Include "__fpending.h".
48303         (close_stdout_status): Return right away if there's nothing to flush.
48304
48305         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
48306         * lib/__fpending.c: New file.
48307         * lib/__fpending.h: New file.
48308
48309 2000-08-20  Jim Meyering  <meyering@lucent.com>
48310
48311         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
48312         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
48313         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
48314
48315 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
48316
48317         Improve fileutils installation on systems where running
48318         programs (like install) can't be unlinked.
48319         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
48320         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
48321
48322 2000-08-07  Paul Eggert  <eggert@twinsun.com>
48323
48324         Standardize on "memory exhausted" instead of "Memory exhausted"
48325         or "virtual memory exhausted".
48326         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
48327         "virtual memory exhausted".
48328         * lib/same.c (same_name): Invoke xalloc_die instead of printing
48329         our own message.
48330         * lib/userspec.c (parse_user_spec): Likewise.
48331         * lib/bumpalloc.h: comment fix
48332         * lib/same.c, userspec.c: Include xalloc.h.
48333
48334         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
48335         not char *const and pointing to a constant array.
48336         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
48337         (xrealloc): Comment fix.
48338
48339         * lib/userspec.c (parse_user_spec):
48340         Don't translate a message until just before returning,
48341         to avoid unnecessary translation.
48342
48343 2000-08-07  Jim Meyering  <meyering@lucent.com>
48344
48345         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
48346         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
48347         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
48348         getgroups.c, gethostname.c, getopt.h, group-member.c,
48349         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
48350         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
48351         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
48352         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
48353         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
48354         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
48355         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
48356         yesno.c: Back out Copyright date changes for each file with no change
48357         this year.  This eases coordination with other programs using the same
48358         source code modules.  From Paul Eggert.
48359
48360 2000-08-06  Paul Eggert  <eggert@twinsun.com>
48361
48362         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
48363         not char, for compatibility with glibc 2.1.3 strftime.c.
48364
48365 2000-08-03  Greg McGary  <greg@mcgary.org>
48366
48367         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
48368         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
48369         (EXTEND_BUFFER): Use them.
48370
48371 2000-08-01  Jim Meyering  <meyering@lucent.com>
48372
48373         * lib/dirname.c (ISSLASH): Define.
48374         (BACKSLASH_IS_PATH_SEPARATOR): Define.
48375         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
48376         both `\' and `/' may be use as path separators.
48377         Based on a patch from Prashant TR.
48378
48379 2000-07-31  Paul Eggert  <eggert@twinsun.com>
48380
48381         * lib/quotearg.c (quotearg_n_options): Don't make the initial
48382         slot vector a constant, since it might get modified.
48383
48384 2000-07-31  Jim Meyering  <meyering@lucent.com>
48385
48386         * lib/xmalloc.c: Use `virtual memory exhausted', not
48387         `Memory exhausted'.
48388         * lib/obstack.c (print_and_abort): Likewise.
48389
48390 2000-07-30  Paul Eggert  <eggert@twinsun.com>
48391
48392         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
48393         buffer, so that the caller can always quote one small
48394         component of a "memory exhausted" message in slot 0.
48395         From a suggestion by Jim Meyering.
48396
48397 2000-07-30  Jim Meyering  <meyering@lucent.com>
48398
48399         * lib/makepath.c (make_path): Quote the other instance, too.
48400
48401         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
48402         (STATIC_BUF_SIZE): Define.
48403         (quotearg_n_options): Use only statically allocated storage when
48404         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
48405         than STATIC_BUF_SIZE.
48406
48407 2000-07-29  Jim Meyering  <meyering@lucent.com>
48408
48409         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
48410         * lib/dirname.c (dir_name): Likewise.
48411
48412         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
48413         `/'.
48414
48415         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
48416         (dir_name): Assert that there are no trailing slashes.
48417
48418 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
48419
48420         * lib/mbswidth.h (mbswidth): Add a flags argument.
48421         (mbswidth): New declaration.
48422         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
48423         * lib/mbswidth.c (mbswidth): Add a flags argument.
48424         (mbsnwidth): New function.
48425
48426 2000-07-24  Jim Meyering  <meyering@lucent.com>
48427
48428         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
48429
48430 2000-07-23  Paul Eggert  <eggert@twinsun.com>
48431
48432         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
48433
48434 2000-07-23  Paul Eggert  <eggert@twinsun.com>
48435
48436         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
48437         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
48438         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
48439         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
48440         invoke multibyte primitives.
48441
48442 2000-07-23  Paul Eggert  <eggert@twinsun.com>
48443
48444         * lib/quotearg.c:
48445         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
48446         so that mbstate_t is always defined.
48447
48448         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
48449         be 1 in at least one GCC installation, and this configuration
48450         error is likely to be common.  Ignoring MB_LEN_MAX hurts
48451         performance on hosts that have mbrtowc but have only unibyte
48452         locales, but I assume these hosts are rare.
48453
48454 2000-07-23  Paul Eggert  <eggert@twinsun.com>
48455
48456         * lib/mbswidth.c (_XOPEN_SOURCE):
48457         Don't define; this causes problems on Solaris 7.
48458         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
48459
48460 2000-07-23  Jim Meyering  <meyering@lucent.com>
48461
48462         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
48463         too: getgrgid, getpwuid, getuid.
48464
48465 2000-07-23  Jim Meyering  <meyering@lucent.com>
48466
48467         * lib/basename.c (base_name): Add an assertion.
48468
48469 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
48470
48471         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
48472         shadow its mbsinit function.
48473
48474 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
48475
48476         * lib/mbswidth.h: New file.
48477         * lib/mbswidth.c: New file.
48478         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
48479         (noinst_HEADERS): Add mbswidth.h.
48480
48481 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
48482
48483         * lib/config.charset: Add support for FreeBSD. Improve support for
48484         HP-UX and IRIX 6.
48485
48486 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
48487
48488         * m4/mbswidth.m4: New file.
48489         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
48490
48491 2000-07-15  Jim Meyering  <meyering@lucent.com>
48492
48493         * lib/makepath.c: Include quote.h.
48494         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
48495         corresponding argument in a `quote (...)' call.
48496         Give better diagnostics.
48497
48498         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
48499         (noinst_HEADERS): Add quote.h.
48500
48501         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
48502         from tar's src/misc.c.
48503         * lib/quote.h: New file.  Prototypes for same.
48504
48505 2000-07-14  Paul Eggert  <eggert@twinsun.com>
48506
48507         From a suggestion by Bruno Haible.
48508         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
48509         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
48510         to decide whether to define the BeOS workaround macro;
48511         this adjusts to the change to AC_MBSTATE_T.
48512
48513 2000-07-14  Jim Meyering  <meyering@lucent.com>
48514
48515         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
48516         jm_AC_TYPE_UINTMAX_T.
48517
48518 2000-07-13  Paul Eggert  <eggert@twinsun.com>
48519
48520         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
48521
48522         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
48523         quotearg_buffer_restyled): Add support for
48524         clocale_quoting_style.  Undo previous change to
48525         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
48526         and "{RIGHT QUOTATION MARK}" msgids.
48527
48528 2000-07-10  Paul Eggert  <eggert@twinsun.com>
48529
48530         From a suggestion by Bruno Haible.
48531         * m4/mbstate_t.m4 (AC_MBSTATE_T):
48532         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
48533         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
48534         and mbstate_t, to a single-part test that simply defines mbstate_t.
48535         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
48536         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
48537
48538 2000-07-10  Jim Meyering  <meyering@lucent.com>
48539
48540         * m4/strerror_r.m4: Mirror the correction made in autoconf.
48541
48542         * m4/gnu-source.m4: Output to confdefs.h directly.
48543         Suggestion from Akim Demaille.
48544
48545 2000-07-09  Paul Eggert  <eggert@twinsun.com>
48546
48547         The old behavior of quoting `like this' doesn't look good with
48548         newer, ISO-style fonts.  See:
48549         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
48550
48551         Instead, quote "like this" by default.  Let the translator
48552         tailor the locale-specific quoting behavior by providing
48553         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
48554
48555         * lib/quotearg.c (N_): New macro.
48556         (gettext_default): New function.
48557         (quotearg_buffer_restyled): Use
48558         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
48559         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
48560
48561 2000-07-09  Jim Meyering  <meyering@lucent.com>
48562
48563         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
48564         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
48565
48566         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
48567         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
48568
48569 2000-07-09  Jim Meyering  <meyering@lucent.com>
48570
48571         * lib/Most files: Update copyright dates to include 2000.
48572
48573 2000-07-08  Jim Meyering  <meyering@lucent.com>
48574
48575         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
48576         if not defined.
48577         (xgethostname): Remove now-unnecessary #ifdef.
48578         Move declaration of `err' into loop where it's used.
48579
48580 2000-07-05  Paul Eggert  <eggert@twinsun.com>
48581         and Bruno Haible  <haible@clisp.cons.org>
48582
48583         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
48584         only if the test for an object-type mbstate_t fails.  This
48585         prevents us from mistakenly reporting that mbstate_t is a
48586         system object type after we "#define mbstate_t int" to work
48587         around its lack.
48588
48589 2000-07-05  Paul Eggert  <eggert@twinsun.com>
48590         and Bruno Haible  <haible@clisp.cons.org>
48591
48592         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
48593
48594 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
48595
48596         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
48597         to strerror_r.
48598         Include <ctype.h> for use of isalpha.
48599
48600 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
48601
48602         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
48603         by allocating a larger buffer. Test the gethostname return value for
48604         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
48605         returns an error and ENAMETOOLONG isn't defined.
48606
48607 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
48608
48609         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
48610         dimension.
48611
48612 2000-07-04  Jim Meyering  <meyering@lucent.com>
48613
48614         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
48615         of the deprecated AC_CHECKING.
48616
48617 2000-07-04  Jim Meyering  <meyering@lucent.com>
48618
48619         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
48620         Reported by Bruno Haible.
48621
48622 2000-07-04  Jim Meyering  <meyering@lucent.com>
48623
48624         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
48625         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
48626         lacks mbrtowc.
48627
48628 2000-07-03  Paul Eggert  <eggert@twinsun.com>
48629
48630         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
48631         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
48632
48633 2000-07-03  Paul Eggert  <eggert@twinsun.com>
48634         and Bruno Haible  <haible@clisp.cons.org>
48635
48636         * lib/quotearg.c (mbrtowc):
48637         Assign to *pwc, and return 1 only if result is nonzero.
48638         (iswprint): Use ISPRINT when substituting our own mbrtowc.
48639
48640 2000-07-03  Jim Meyering  <meyering@lucent.com>
48641
48642         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
48643
48644 2000-07-03  Jim Meyering  <meyering@lucent.com>
48645
48646         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
48647         This is necessary to get a definition of e.g., UTMP_FILE on
48648         HP-UX 10.20.
48649         From Bob Proulx.
48650
48651 2000-07-02  Jim Meyering  <meyering@lucent.com>
48652
48653         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
48654
48655         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
48656         AC_LIBOBJ(function_name).
48657         * m4/chown.m4: Likewise.
48658         * m4/fnmatch.m4: Likewise.
48659         * m4/ftruncate.m4: Likewise.
48660         * m4/getgroups.m4: Likewise.
48661         * m4/getline.m4: Likewise.
48662         * m4/group-member.m4: Likewise.
48663         * m4/jm-macros.m4: Likewise.
48664         * m4/lstat.m4: Likewise.
48665         * m4/malloc.m4: Likewise.
48666         * m4/memcmp.m4: Likewise.
48667         * m4/nanosleep.m4: Likewise.
48668         * m4/putenv.m4: Likewise.
48669         * m4/realloc.m4: Likewise.
48670         * m4/regex.m4: Likewise.
48671         * m4/stat.m4: Likewise.
48672         * m4/strftime.m4: Likewise.
48673
48674 2000-07-02  Jim Meyering  <meyering@lucent.com>
48675
48676         * lib/quotearg.c (mbstate_t): Don't define here.
48677
48678 2000-07-02  Jim Meyering  <meyering@lucent.com>
48679
48680         * lib/nanosleep.c (SIGCONT): Define if not already defined.
48681
48682 2000-07-01  Jim Meyering  <meyering@lucent.com>
48683
48684         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
48685
48686 2000-07-01  Jim Meyering  <meyering@lucent.com>
48687
48688         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
48689         problem.
48690
48691 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
48692
48693         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
48694         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
48695
48696 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
48697
48698         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
48699         per change in ../m4/ls-mntd-fs.m4.
48700         (read_filesystem_list): Ignore symbolic links.
48701
48702 2000-06-29  Jim Meyering  <meyering@lucent.com>
48703
48704         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
48705         for declaration of strcmp.
48706
48707         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
48708
48709         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
48710         Avoid warning by casting result to `char *' to remove `const'.
48711
48712 2000-06-28  Jim Meyering  <meyering@lucent.com>
48713
48714         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
48715         included by quotearg.c, for which we perform this test.  From
48716         Bruno Haible.
48717
48718 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
48719
48720         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
48721         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
48722         <utmpx.h> exists, put readutmp.o into LIBOBJS.
48723
48724 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
48725
48726         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
48727
48728 2000-06-26  Paul Eggert  <eggert@twinsun.com>
48729
48730         savedir now sets errno on failure and invokes xmalloc to get memory.
48731         Fix a couple of other minor bugs while we're at it.
48732
48733         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
48734         (NAMLEN): Remove macro.
48735         (malloc, realloc): Remove decls.
48736         (stpcpy): Likewise.
48737         ("xalloc.h"): Include.
48738         (NAME_SIZE_DEFAULT): New macro.
48739         (savedir): Use xmalloc / xrealloc to allocate memory.
48740         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
48741         Skip "" directory entries.
48742         Use strlen to calculate directory entry length, since the old method
48743         is rarely used these days and isn't worth supporting.
48744         Don't use a pointer after freeing it.
48745         Check for integer overflow when calculating allocation size.
48746         Use memcpy to copy entries, instead of stpcpy.
48747         Set errno properly when returning NULL.
48748         Check for readdir error.
48749
48750 2000-06-26  Jim Meyering  <meyering@lucent.com>
48751
48752         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
48753
48754 2000-06-25  Jim Meyering  <meyering@lucent.com>
48755
48756         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
48757         Linux header bug when _XOPEN_SOURCE is defined to 500.
48758
48759 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
48760
48761         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
48762         deficiency.
48763
48764 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
48765
48766         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
48767         Include xalloc.h.
48768         Don't include <stdlib.h>.  Don't declare malloc, realloc.
48769
48770 2000-06-24  Jim Meyering  <meyering@lucent.com>
48771
48772         * m4/strerror_r.m4: Revive this file -- to try out an experimental
48773         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
48774         for which strerror does return char*, but which lacks a conveniently
48775         accessible declaration of the function.  If the compile-test says
48776         strerror_r doesn't work, then resort to a `run'-test that works on
48777         BeOS and segfaults on DEC Unix.
48778
48779 2000-06-24  Jim Meyering  <meyering@lucent.com>
48780
48781         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
48782
48783 2000-06-23  Paul Eggert  <eggert@twinsun.com>
48784
48785         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
48786         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
48787
48788 2000-06-23  Paul Eggert  <eggert@twinsun.com>
48789
48790         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
48791         (mbrtowc, mbstate_t): Define substitutes if
48792         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
48793         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
48794         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
48795
48796 2000-06-23  Jim Meyering  <meyering@lucent.com>
48797
48798         * m4/afs.m4: Add missing AC_MSG_RESULT.
48799         Reported by Bruno Haible.
48800
48801         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
48802         Suggestion from Bruno Haible.
48803
48804 2000-06-23  Jim Meyering  <meyering@lucent.com>
48805
48806         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
48807
48808 2000-06-21  Jim Meyering  <meyering@lucent.com>
48809
48810         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
48811
48812 2000-06-21  Jim Meyering  <meyering@lucent.com>
48813
48814         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
48815         (noinst_HEADERS): Add getstr.h.
48816
48817         * lib/getline.c (getstr): Move into a separate file.
48818         * lib/getstr.c (getstr): New file, extracted from getline.c, with
48819         the following changes: new parameter, delim2; both delim[12]
48820         parameters have type `int', not `char'.  The latter would lose
48821         with 8-bit delimiters.
48822         * lib/getstr.h: New file.
48823
48824 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
48825
48826         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
48827         than 1024, return a memory chunk of least possible size, instead
48828         of size PATH_MAX + 2. In the loop, increment the size proportionally.
48829         Use free/xmalloc instead of xrealloc to avoid copying for very long
48830         paths.
48831
48832 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
48833
48834         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
48835         the empty string.
48836
48837 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
48838
48839         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
48840         address, not strdup.  Include <stdlib.h> and don't declare free().
48841
48842 2000-06-19  Jim Meyering  <meyering@lucent.com>
48843
48844         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
48845
48846 2000-06-18  Jim Meyering  <meyering@lucent.com>
48847
48848         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
48849
48850         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
48851         `checking whether...' message to be consistent with that of the
48852         lstat test.
48853
48854 2000-06-18  Jim Meyering  <meyering@lucent.com>
48855
48856         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
48857         Besides, these days every porting target provides a mkdir function.
48858
48859         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
48860         needed. (this snippet comes from src/system.h).
48861
48862 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
48863
48864         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
48865
48866 2000-06-15  Paul Eggert  <eggert@twinsun.com>
48867
48868         * lib/human.c (adjust_value): New function.
48869         (human_readable_inexact): Apply rounding style even when
48870         printing approximate values.
48871
48872 2000-06-14  Paul Eggert  <eggert@twinsun.com>
48873
48874         * lib/human.c (human_readable_inexact): Allow an input block
48875         size that is not a multiple of the output block size, and vice versa.
48876         Reported by Piergiorgio Sartor.
48877
48878 2000-06-14  Paul Eggert  <eggert@twinsun.com>
48879
48880         * lib/getdate.y (get_date): Apply relative times after time
48881         zone indicator, not before.  Reported by Todd A. Jacobs.
48882
48883 2000-06-13  Jim Meyering  <meyering@lucent.com>
48884
48885         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
48886
48887         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
48888
48889 2000-06-12  Paul Eggert  <eggert@twinsun.com>
48890
48891         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
48892
48893 2000-06-12  Jim Meyering  <meyering@lucent.com>
48894
48895         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
48896         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
48897         optional argument.
48898         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
48899         the optional argument, `lib'.
48900
48901 2000-06-08  Jim Meyering  <meyering@lucent.com>
48902
48903         * m4/largefile.m4: Remove file (now that it's part of autoconf).
48904
48905 2000-06-04  Paul Eggert  <eggert@twinsun.com>
48906
48907         Rewrite largefile configuration so that we don't need to run
48908         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
48909         AC_CANONICAL_HOST in configure.in -- jmm]
48910
48911         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
48912         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
48913         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
48914         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
48915         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
48916         All uses changed.
48917         Instead of inspecting the output of getconf, try to compile the
48918         test program without and with the macro definition.
48919         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
48920         for getconf.  Instead, check for the needed flags by compiling
48921         test programs.
48922
48923 2000-06-04  Paul Eggert  <eggert@twinsun.com>
48924
48925         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
48926
48927 2000-06-04  Jim Meyering  <meyering@lucent.com>
48928
48929         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
48930         SunOS 4.1.4 for which gid_t is an unsigned type.
48931
48932 2000-06-03  Jim Meyering  <meyering@lucent.com>
48933
48934         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
48935         now that autoconf requires that.
48936
48937         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
48938         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
48939         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
48940
48941 2000-06-03  Jim Meyering  <meyering@lucent.com>
48942
48943         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
48944
48945 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
48946
48947         * m4/glibc21.m4: New file.
48948         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
48949
48950 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
48951
48952         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
48953         newer, don't install charset.alias.
48954         * lib/config.charset: Change the Linux/glibc rules so they become empty
48955         on glibc-2.1 or newer.
48956
48957 2000-06-02  Jim Meyering  <meyering@lucent.com>
48958
48959         * lib/mountlist.c: Back out last change.  Instead, do this...
48960         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
48961         me_dummy member using the same `ignore'-testing code.
48962         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
48963         fs_type strings.
48964         From Mark D. Roth.
48965
48966 2000-05-29  Jim Meyering  <meyering@lucent.com>
48967
48968         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
48969         mounts with the `ignore' attribute.  Based on a patch from
48970         Mark D. Roth.
48971
48972 2000-05-28  Jim Meyering  <meyering@lucent.com>
48973
48974         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
48975         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
48976         * m4/stat.m4: Likewise.
48977         * m4/lstat.m4: Likewise.
48978         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
48979
48980         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
48981         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
48982
48983 2000-05-26  Jim Meyering  <meyering@lucent.com>
48984
48985         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
48986
48987 2000-05-24  Jim Meyering  <meyering@lucent.com>
48988
48989         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
48990         autoconf requires that.
48991         * m4/lib-check.m4: Likewise.
48992         * m4/jm-macros.m4: Likewise.
48993         * m4/strftime.m4: Likewise.
48994
48995         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
48996         AC_CHECK_DECLS, now that autoconf requires that.
48997
48998 2000-05-22  Jim Meyering  <meyering@lucent.com>
48999
49000         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49001         * m4/lstat.m4: Likewise.
49002
49003 2000-05-22  Jim Meyering  <meyering@lucent.com>
49004
49005         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
49006
49007 2000-05-20  Jim Meyering  <meyering@lucent.com>
49008
49009         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
49010         (jm_PREREQ): Use it.
49011
49012 2000-05-18  Jim Meyering  <meyering@lucent.com>
49013
49014         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
49015         back, too, since it may have been modified by allocate_entry.
49016         (hash_delete): Rewrite to use neither the assignment operator
49017         nor the comma operator in an if-expression.
49018
49019 2000-05-15  Paul Eggert  <eggert@twinsun.com>
49020
49021         * lib/closeout.c:
49022         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
49023         Remove; no longer needed.
49024         "quotearg.h": Add include.
49025         (file_name): Do not bother to explicitly initialize to NULL; it's less
49026         efficient on some hosts.
49027         (close_stdout_status): Remove test as to whether stdout was already
49028         closed; it breaks for the case "echo x | sort >&-".
49029         Quote file name colons.
49030         Do not assume that _("write error") lacks format strings.
49031
49032 2000-05-15  Jim Meyering  <meyering@lucent.com>
49033
49034         * lib/version-etc.c (version_etc_copyright): Update the copyright
49035         string used in all --version output.
49036
49037 2000-05-14  Jim Meyering  <meyering@lucent.com>
49038
49039         * lib/closeout.c (close_stdout_set_file_name): New function.
49040         (close_stdout_status): Use new file-scoped global.
49041         Return right away if fstat says the stdout file descriptor is invalid.
49042         * lib/closeout.h (close_stdout_set_file_name): Declare.
49043
49044 2000-05-10  Jim Meyering  <meyering@lucent.com>
49045
49046         * lib/closeout.c [default_exit_status]: New file-scoped variable.
49047         (close_stdout_set_status): New function.
49048         * lib/closeout.h (close_stdout_set_status): Declare.
49049
49050 2000-05-09  Jim Meyering  <meyering@lucent.com>
49051
49052         * m4/gettext.m4: Rename this...
49053         * m4/libintl.m4: ...to this.
49054
49055 2000-05-08  Jim Meyering  <meyering@lucent.com>
49056
49057         * lib/long-options.c: Don't include closeout.h.
49058         (parse_long_options): Don't call close_stdout for --version.
49059
49060 2000-05-06  Paul Eggert  <eggert@twinsun.com>
49061
49062         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
49063         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
49064         2.1.3 bug.  This avoids a clash when files like regex.c define
49065         _GNU_SOURCE.
49066
49067 2000-05-06  Jim Meyering  <meyering@lucent.com>
49068
49069         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
49070         (AC_REPLACE_FUNCS): Add strnlen.
49071
49072         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
49073         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
49074
49075         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
49076         AC_SEARCH_LIBS call for nanosleep.
49077         (LIB_NANOSLEEP): Set and AC_SUBST.
49078
49079 2000-05-06  Jim Meyering  <meyering@lucent.com>
49080
49081         * lib/strnlen.c: Undefine __strnlen and strnlen.
49082         [!weak_alias]: Define __strnlen to strnlen.
49083
49084         * lib/atexit.c: New file, from libiberty.
49085
49086 2000-05-06  Jim Meyering  <meyering@lucent.com>
49087
49088         * lib/closeout.c (close_stdout_status): Also check for errors on the
49089         stderr stream.
49090
49091 2000-05-05  Jim Meyering  <meyering@lucent.com>
49092
49093         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
49094         AC_SEARCH_LIBS call for clock_gettime.
49095         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
49096
49097         * m4/search-libs.m4: Update from autoconf.
49098
49099         su doesn't work on Solaris 2.6.
49100         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
49101         <shadow.h>.  Reported by Dragos Harabor.
49102
49103 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
49104
49105         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
49106         memcpy instead of xmalloc, xrealloc, path_concat.
49107         (locale_charset): Treat empty environment variables as absent.
49108         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
49109
49110 2000-05-04  Jim Meyering  <meyering@lucent.com>
49111
49112         * lib/getopt.c: Update from glibc.
49113         * lib/obstack.c: Likewise.
49114         * lib/obstack.h: Likewise.
49115         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
49116         file
49117
49118         * lib/regex.h: Likewise.
49119         * lib/strndup.c: Likewise.
49120         * lib/strnlen.c: New file, from glibc.
49121
49122 2000-05-03  Jim Meyering  <meyering@lucent.com>
49123
49124         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
49125
49126 2000-05-02  Paul Eggert  <eggert@twinsun.com>
49127
49128         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
49129         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
49130         compile-time test, rather than inspecting host and OS, to
49131         decide whether to define _LARGEFILE_SOURCE.
49132
49133 2000-05-01  Jim Meyering  <meyering@lucent.com>
49134
49135         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
49136
49137         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
49138         Based on a patch from Bruno Haible.
49139
49140 2000-05-01  Jim Meyering  <meyering@lucent.com>
49141
49142         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
49143
49144 2000-04-29  Jim Meyering  <meyering@lucent.com>
49145
49146         * lib/path-concat.c: Declare strdup only if it's not defined.
49147         * lib/canon-host.c: Likewise.
49148
49149 2000-04-28  Jim Meyering  <meyering@lucent.com>
49150
49151         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
49152         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
49153         is included first, then limits.h is included by locale.h by libintl.h.
49154         From John David Anglin.
49155
49156 2000-04-25  Jim Meyering  <meyering@lucent.com>
49157
49158         * lib/makepath.c (S_IRWXUGO): Define.
49159         (make_path): Always perform explicit chmod if MODE specifies any
49160         of the `special' permission bits.  Prompted by a bug report against
49161         install from Mate Wierdl and Joost van Baal.
49162
49163 2000-04-18  Jim Meyering  <meyering@lucent.com>
49164
49165         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
49166         (jm_PREREQ): Use it.
49167
49168 2000-04-18  Jim Meyering  <meyering@lucent.com>
49169
49170         * lib/README: New file.
49171
49172         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
49173         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
49174
49175 2000-04-17  Jim Meyering  <meyering@lucent.com>
49176
49177         Get it right :-)
49178         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
49179         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
49180         Suggestion from Akim Demaille.
49181
49182 2000-04-17  Jim Meyering  <meyering@lucent.com>
49183
49184         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
49185         the definition of it to rpl_strftime also defined-away the system's
49186         declaration.
49187
49188 2000-04-15  Jim Meyering  <meyering@lucent.com>
49189
49190         Use `C' to denote so-called `contiguous' files, the same way
49191         that tar does.
49192         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
49193         (ftypelet): Use S_ISCTG.
49194         From Michael Deutschmann.
49195
49196 2000-04-14  Jim Meyering  <meyering@lucent.com>
49197
49198         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
49199         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
49200         clobbered.
49201
49202 2000-04-14  Jim Meyering  <meyering@lucent.com>
49203
49204         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
49205
49206 2000-04-13  Jim Meyering  <meyering@lucent.com>
49207
49208         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
49209         AH_VERBATIM to insert required #ifndef into config.h.in.
49210         Suggestion from Akim Demaille.
49211
49212 2000-04-12  Jim Meyering  <meyering@lucent.com>
49213
49214         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
49215         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
49216         Christian Krackowizer.
49217
49218         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
49219         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
49220         (AC_SYS_LARGEFILE): Require.
49221         (AM_C_PROTOTYPES): Require.
49222
49223 2000-04-08  Jim Meyering  <meyering@lucent.com>
49224
49225         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
49226         names don't conflict.  Reported by Eli Zaretskii.
49227
49228 2000-04-07  Jim Meyering  <meyering@lucent.com>
49229
49230         * lib/putenv.c: Move inclusion of errno.h so it follows that of
49231         sys/types.h, to work around system header problems on AIX 3.2.5.
49232         From Bruno Haible.
49233
49234 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
49235
49236         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
49237         bug.  Deal with the different error behavior of Irix iconv.
49238
49239 2000-04-05  Paul Eggert  <eggert@twinsun.com>
49240
49241         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
49242         IRIX if the installer said otherwise.
49243
49244 2000-04-05  Jim Meyering  <meyering@lucent.com>
49245
49246         Portability tweaks required for ultrix4.3.
49247         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
49248         (jm_CHECK_DECLS): Add getutent to the list of functions.
49249         (_jm_DECL_HEADERS): Add utmpx.h.
49250         From John David Anglin.
49251
49252         * m4/strftime.m4: Back out the 2000-04-02 change.
49253         Instead of that change, simply undefine putenv in the test program.
49254
49255 2000-04-05  Jim Meyering  <meyering@lucent.com>
49256
49257         Portability tweaks required for ultrix4.3.
49258         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
49259         getutent.
49260         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
49261         * lib/canon-host.c: Declare strdup.
49262         * lib/path-concat.c: Likewise.
49263         From John David Anglin.
49264
49265 2000-04-04  Jim Meyering  <meyering@lucent.com>
49266
49267         Be more DOS 8.3-friendly.
49268         * lib/ref-add.sin: Renamed from ref-add.sed.in.
49269         * lib/ref-del.sin: Renamed from ref-del.sed.in.
49270         * lib/Makefile.am: Reflect renaming.
49271         Reported by Eli Zaretskii.
49272
49273         Use a temporary file name that won't clash with `charset.alias'
49274         in the DOS 8.3 name space.
49275         * lib/Makefile.am (charset_tmp): Define.
49276         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
49277         (uninstall-local): Likewise.
49278         Reported by Eli Zaretskii.
49279
49280 2000-04-03  Jim Meyering  <meyering@lucent.com>
49281
49282         * m4/gettext.m4: Fix typo in comment.
49283
49284         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
49285         textutils/configure.in).  Suggestion from Paul Eggert.
49286         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
49287
49288 2000-04-02  Paul Eggert  <eggert@twinsun.com>
49289
49290         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
49291         variable in the shell rather than using putenv, which isn't
49292         portable.  This avoids the configure-time inter-test dependency
49293         on the potentially-renamed putenv function.
49294
49295 2000-03-30  Paul Eggert  <eggert@twinsun.com>
49296
49297         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
49298         before checking struct stat.st_blksize, so that
49299         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
49300
49301 2000-03-29  Paul Eggert  <eggert@twinsun.com>
49302
49303         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
49304         since strftime.c uses HAVE_STRFTIME to decide whether to use
49305         the underlying strftime.
49306
49307 2000-03-29  Paul Eggert  <eggert@twinsun.com>
49308
49309         * lib/time/strftime.c (my_strftime): Make sure we call the system
49310         strftime, not ourselves, when invoking the underlying strftime.
49311
49312 2000-03-24  Jim Meyering  <meyering@lucent.com>
49313
49314         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
49315         (charset_alias): Define.
49316         (install-exec-local): Factor out common code.
49317         (uninstall-local): Split lines longer than 80.
49318         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
49319         (SUFFIXES): Define.
49320         (.sed.in.sed): New rule.  Don't redirect directly to $@.
49321         (CLEANFILES): Add ref-add.sed and ref-del.sed.
49322
49323 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
49324
49325         * lib/config.charset: Output a line containing "Packages using this
49326         file".
49327         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
49328         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
49329         ref-del.sed): New rules.
49330
49331 2000-03-17  Jim Meyering  <meyering@lucent.com>
49332
49333         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
49334         Otherwise, include <strings.h>
49335
49336 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
49337
49338         * lib/unicodeio.c (utf8_wctomb): New function.
49339         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
49340         format instead of in UCS-4 with platform dependent endianness.
49341
49342 2000-03-10  Jim Meyering  <meyering@lucent.com>
49343
49344         * m4/lib-check.m4: Look for getspnam in -lgen, too.
49345         From Marco Franzen.
49346
49347 2000-03-07  Paul Eggert  <eggert@twinsun.com>
49348
49349         * lib/savedir.c (savedir): Work even if directory size is
49350         negative; this can happen with some screwy NFS configurations.
49351
49352 2000-03-06  Jim Meyering  <meyering@lucent.com>
49353
49354         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
49355         if it's NULL (because we ran out of memory).  From Bruno Haible.
49356
49357 2000-03-05  Jim Meyering  <meyering@lucent.com>
49358
49359         * lib/localcharset.c ("path-concat.h"): Include.
49360         (get_charset_aliases): Use path_concat instead of ANSI string
49361         concatenation.
49362
49363         * lib/unicodeio.h (PARAMS): Define.
49364         Use it to guard prototype.
49365
49366 2000-03-04  Jim Meyering  <meyering@lucent.com>
49367
49368         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
49369         for lib/localcharset.c.
49370
49371 2000-03-04  Jim Meyering  <meyering@lucent.com>
49372
49373         * lib/Makefile.am (install-exec-local): Create $(libdir) before
49374         installing into it.
49375         (uninstall-local): Uncomment this rule so `make distcheck' works
49376         once again.
49377
49378         * lib/unicodeio.c (<errno.h>): Include it.
49379         (errno): Declare if not defined.
49380
49381         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
49382
49383         * lib/config.charset: New version, incorporating remarks from a linux
49384         i18n mailing list.  From Bruno Haible.
49385
49386 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
49387
49388         * m4/codeset.m4: New file.
49389         * m4/iconv.m4: New file.
49390         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
49391
49392 2000-03-03  Jim Meyering  <meyering@lucent.com>
49393
49394         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
49395
49396 2000-03-02  Jim Meyering  <meyering@lucent.com>
49397
49398         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
49399         the messages come out on separate lines.
49400
49401         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
49402         rather than jm_CHECK_DECLARATIONS.
49403         * m4/decl.m4: Remove now-unused file.
49404
49405         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
49406         geteuid.
49407
49408 2000-03-02  Jim Meyering  <meyering@lucent.com>
49409
49410         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
49411
49412 2000-03-01  Jim Meyering  <meyering@lucent.com>
49413
49414         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
49415         * lib/unicodeio.c: Likewise.
49416
49417 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
49418
49419         * lib/config.charset: New file.
49420         * lib/localcharset.c: New file.
49421         * lib/unicodeio.h, lib/unicodeio.c: New files.
49422         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
49423         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
49424         (noinst_HEADERS): Add unicodeio.h.
49425         (all-local, install-exec-local, charset.alias): New targets.
49426
49427 2000-02-28  Paul Eggert  <eggert@twinsun.com>
49428
49429         * lib/quotearg.c (ALERT_CHAR): New macro.
49430         (quotearg_buffer_restyled): Use it.
49431
49432 2000-02-27  Jim Meyering  <meyering@lucent.com>
49433
49434         * m4/check-decl.m4: Add getenv to the list.
49435
49436 2000-02-27  Jim Meyering  <meyering@lucent.com>
49437
49438         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
49439         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
49440
49441         * lib/backupfile.c: Guard inclusion of stdlib.h with
49442         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
49443         Declare malloc if needed.
49444
49445         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
49446         `#ifndef HAVE_DECL..'
49447         now that autoconf always defines the HAVE_DECL_ symbols.
49448         * lib/human.c: Likewise.
49449         * lib/same.c: Likewise.
49450         * lib/strtoumax.c: Likewise.
49451
49452         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
49453         declaration check was not run.
49454         * lib/hash.c: Likewise.
49455         * lib/human.c: Likewise.
49456         * lib/same.c: Likewise.
49457         * lib/strtoumax.c: Likewise.
49458
49459         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
49460         `.', then first look up the entire `.'-containing string as a login
49461         name.
49462
49463 2000-02-23  Jim Meyering  <meyering@lucent.com>
49464
49465         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
49466         in place of my hack.
49467
49468 2000-02-18  Paul Eggert  <eggert@twinsun.com>
49469
49470         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
49471         (textint): New typedef.
49472         (parser_control): Member year changed from int to textint.
49473         All uses changed.
49474         (YYSTYPE): Removed; replaced by %union with int and textint members.
49475         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
49476         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
49477         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
49478         (tSNUMBER, tUNUMBER): Now of type <textintval>.
49479         (date, number, to_year): Use width of number in digits, not its value,
49480         to determine whether it's a 2-digit year, or a 2-digit time.
49481         (yylex): Store number of digits of numeric tokens.
49482         Reported by John Kendall.
49483
49484         (parser_control): Changed from struct parser_control to typedef (for
49485         consistency).  All uses changed.
49486
49487         (tID): Removed; not used.
49488         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
49489
49490 2000-02-14  Paul Eggert  <eggert@twinsun.com>
49491
49492         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
49493         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
49494
49495 2000-02-12  Jim Meyering  <meyering@lucent.com>
49496
49497         * lib/userspec.c (ISDIGIT): Define it.
49498         (isdigit): Remove definition.
49499         (is_number): Use ISDIGIT, not isdigit.
49500         <libintl.h>: Include.
49501         (_ and N_): Define.
49502         (parse_user_spec): Mark translatable strings.
49503
49504 2000-02-10  Jim Meyering  <meyering@lucent.com>
49505
49506         With these changes, nanosleep.[ch] are finally enough like the other
49507         lib/* replacement files to compile on a few more losing systems.
49508
49509         * lib/nanosleep.h: Don't include config.h.
49510         Remove prototype from declaration of nanosleep.
49511         (PARAMS): Remove now-unneeded definition.
49512         * lib/nanosleep.c: #undef nanosleep.
49513         (rpl_nanosleep): Rename from nanosleep.
49514
49515 2000-02-10  Jim Meyering  <meyering@lucent.com>
49516
49517         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
49518         gnu_nanosleep to rpl_nanosleep.
49519
49520 2000-02-09  Jim Meyering  <meyering@lucent.com>
49521
49522         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
49523         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
49524
49525 2000-02-08  Akim Demaille  <akim@epita.fr>
49526
49527         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
49528         `[' and `]' and remove uses of `changequote'.
49529         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
49530         (AC_SYS_LARGEFILE): Likewise.
49531         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
49532         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
49533         of changequote.
49534         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
49535         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
49536         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
49537         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
49538
49539 2000-02-05  Jim Meyering  <meyering@lucent.com>
49540
49541         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
49542         Remove explicit use of AC_HEADER_TIME.  It is required by
49543         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
49544         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
49545         in autoconf whereby the expansion of the latter ended up preceding
49546         the expansion of its prerequisite, AC_HEADER_TIME.
49547         Reported by Volker Borchert.
49548
49549 2000-02-03  Jim Meyering  <meyering@lucent.com>
49550
49551         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
49552
49553 2000-02-03  Jim Meyering  <meyering@lucent.com>
49554
49555         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
49556         rather than with `#if HAVE_UTMPNAME'.
49557
49558 2000-02-02  Jim Meyering  <meyering@lucent.com>
49559
49560         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
49561         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
49562         Reported by Eli Zaretskii.
49563
49564 2000-02-01  Jim Meyering  <meyering@lucent.com>
49565
49566         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
49567
49568 2000-01-31  Jim Meyering  <meyering@lucent.com>
49569
49570         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
49571         functions.  Add the time.h and sys/time.h headers along with the
49572         AC_REQUIRE'ment of AC_HEADER_TIME.
49573
49574 2000-01-31  Jim Meyering  <meyering@lucent.com>
49575
49576         * lib/nanosleep.h (nanosleep): Guard declaration with
49577         `#if ! HAVE_DECL_NANOSLEEP'.
49578         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
49579         the declaration in that vendor's sys/timers.h.
49580         Reported by Christian Krackowizer.
49581
49582         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
49583         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
49584         (ISPRINT): Likewise.
49585         Reported by Tom Tromey.
49586
49587 2000-01-30  Jim Meyering  <meyering@lucent.com>
49588
49589         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
49590
49591         * m4/prereq.m4 (utmp_includes): Define.
49592         Check for ut_user and ut_name members in both struct utmpx
49593         and struct utmp.
49594
49595 2000-01-30  Jim Meyering  <meyering@lucent.com>
49596
49597         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
49598         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
49599         header files where only utmpx.ut_user is declared.
49600
49601         * lib/readutmp.h (UT_USER): Define.
49602
49603 2000-01-29  Jim Meyering  <meyering@lucent.com>
49604
49605         * m4/lib-check.m4: New file containing library-related checks from
49606         fileutils and sh-utils (textutils had none).
49607
49608 2000-01-28  Jim Meyering  <meyering@lucent.com>
49609
49610         * m4/perl.m4: Change format of warning message to look more like that
49611         from the missing script.  Suggestion from François Pinard.
49612
49613 2000-01-25  Jim Meyering  <meyering@lucent.com>
49614
49615         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
49616         well as time.h in the compile check.
49617         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
49618         Fix typo in cross-compiling case: s/yes/no/.
49619
49620 2000-01-23  Jim Meyering  <meyering@lucent.com>
49621
49622         * m4/jm-macros.m4: Move df-related tests here from
49623         fileutils/configure.in
49624
49625         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
49626         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
49627
49628         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
49629         s/space/ac_fsusage_space/.
49630         (jm_FILE_SYSTEM_USAGE): Take two parameters.
49631
49632         * m4/ftruncate.m4: New file (derived from part of
49633         fileutils/configure.in).
49634         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
49635         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
49636
49637         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
49638         AC_SUBST these here, rather than just in sh-util/configure.in, so
49639         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
49640         all the same.
49641         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
49642         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
49643         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
49644         (AC_SUBST(POW_LIBM)): Likewise.
49645         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
49646
49647 2000-01-23  Jim Meyering  <meyering@lucent.com>
49648
49649         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
49650         obstack.c.
49651
49652 2000-01-22  Jim Meyering  <meyering@lucent.com>
49653
49654         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
49655
49656         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
49657
49658         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
49659         configure.in
49660         (AC_CHECK_HEADERS): Likewise for sh-utils.
49661         (AC_CHECK_HEADERS): Likewise for textutils.
49662         Merge the three lists of headers.
49663
49664         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
49665         from fileutils' configure.in.
49666
49667         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
49668         code. Moved tests into their own function (_jm_DECL_HEADERS) in
49669         check-decl.m4.
49670
49671         * m4/check-decl.m4: Use #if rather than #ifdef.
49672         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
49673         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
49674         (_jm_DECL_HEADERS): Define new function.
49675         (jm_CHECK_DECLARATIONS): Require it.
49676
49677 2000-01-22  Jim Meyering  <meyering@lucent.com>
49678
49679         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
49680         [! HAVE_DECL_STRTOULL]: Declare strtoull.
49681         Required for some AIX systems.  Reported by Christian Krackowizer.
49682         [TESTING] (main): New function.
49683
49684         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
49685         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
49686         letters.
49687
49688         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
49689         iswprint.
49690
49691         * lib/strverscmp.c (ISDIGIT): Define.
49692         (strverscmp): Use ISDIGIT, not isdigit.
49693
49694 2000-01-19  Jim Meyering  <meyering@lucent.com>
49695
49696         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
49697         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
49698         defines `struct timespec' in <sys/time.h>
49699
49700         * m4/c-bs-a.m4: Remove uses of changequote altogether.
49701         Thanks to Akim for explaining.
49702
49703 2000-01-17  Paul Eggert  <eggert@twinsun.com>
49704
49705         * lib/nanosleep.c (nanosleep):
49706         Don't use SA_INTERRUPT to decide whether to call sigaction, as
49707         POSIX.1 doesn't require SA_INTERRUPT and some systems
49708         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
49709         it's been part of POSIX.1 since day 1 (in 1988).
49710
49711 2000-01-17  Jim Meyering  <meyering@lucent.com>
49712
49713         * lib/interlock: Remove unused file.  Reported by François Pinard.
49714
49715 2000-01-16  Paul Eggert  <eggert@twinsun.com>
49716
49717         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
49718         alert, backslash, formfeed, and vertical tab unnecessarily in
49719         shell quoting style.
49720
49721 2000-01-16  Jim Meyering  <meyering@lucent.com>
49722
49723         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
49724         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
49725         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
49726         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
49727
49728 2000-01-16  Jim Meyering  <meyering@lucent.com>
49729
49730         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
49731         because the latter didn't work.
49732
49733 2000-01-15  Jim Meyering  <meyering@lucent.com>
49734
49735         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
49736         (AC_REPLACE_FUNCS): Add memcpy and memset.
49737         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
49738         Add strpbrk.
49739         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
49740
49741 2000-01-12  Jim Meyering  <meyering@lucent.com>
49742
49743         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
49744         (jm_PREREQ): Use it.
49745         (jm_PREREQ_READUTMP): New macro.
49746         (jm_PREREQ): Use it.
49747
49748 2000-01-11  Paul Eggert  <eggert@twinsun.com>
49749
49750         Quote multibyte characters correctly.
49751         * m4/c-bs-a.m4: New file.
49752         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
49753         (jm_PREREQ): Use it.
49754
49755 2000-01-11  Paul Eggert  <eggert@twinsun.com>
49756
49757         * m4/uintmax_t.m4: Port to autoconf 2.13.
49758
49759 2000-01-08  Jim Meyering  <meyering@ascend.com>
49760
49761         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
49762         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
49763
49764 2000-01-04  Jim Meyering  <meyering@ascend.com>
49765
49766         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
49767         jm_STRUCT_DIRENT_D_TYPE.
49768         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
49769         jm_STRUCT_DIRENT_D_INO.
49770         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
49771         jm_STRUCT_UTIMBUF.
49772         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
49773         renamings.
49774         * m4/utime.m4: Likewise.
49775
49776         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
49777         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
49778
49779 2000-01-03  Paul Eggert  <eggert@twinsun.com>
49780
49781         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
49782         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
49783
49784 2000-01-02  Jim Meyering  <meyering@ascend.com>
49785
49786         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
49787         remember if this is necessary.
49788
49789 1999-12-26  Jim Meyering  <meyering@ascend.com>
49790
49791         * m4/jm-macros.m4: Use it here.
49792         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
49793
49794 1999-12-23  Jim Meyering  <meyering@ascend.com>
49795
49796         * m4/jm-macros.m4: Check for clock_gettime (moved from
49797         fileutils/configure.in)
49798         Check for gettimeofday.
49799
49800 1999-12-20  Jim Meyering  <meyering@ascend.com>
49801
49802         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
49803         autoconf-2.14a-1999-12-20.
49804
49805 1999-12-19  Jim Meyering  <meyering@ascend.com>
49806
49807         * m4/lstat-slash.m4: New file.
49808         * m4/jm-macros.m4: Use the new macro:
49809         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49810
49811 1999-12-07  Jim Meyering  <meyering@ascend.com>
49812
49813         * m4/perl.m4: Require that File::Compare be available, too.
49814         Too many systems seem to lack it.
49815
49816         * m4/strftime.m4: Add checks for most of the cpp macros tested in
49817         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
49818
49819 1999-11-18  Paul Eggert  <eggert@twinsun.com>
49820
49821         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
49822         problem with the QNX 4.25 shell, which doesn't propagate exit
49823         status of failed commands inside shell assignments.
49824
49825 1999-11-17  Jim Meyering  <meyering@ascend.com>
49826
49827         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
49828
49829 1999-11-07  Jim Meyering  <meyering@ascend.com>
49830
49831         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
49832
49833 1999-11-06  Jim Meyering  <meyering@ascend.com>
49834
49835         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
49836         * m4/jm-macros.m4 (jm_MACROS): Use it here.
49837
49838 1999-11-05  Jim Meyering  <meyering@ascend.com>
49839
49840         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
49841         configure.in of textutils, fileutils, and sh-utils into this one
49842         (shared between those packages) file.
49843         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
49844         AC_STRUCT_ST_BLKSIZE.
49845
49846 1999-11-03  Jim Meyering  <meyering@ascend.com>
49847
49848         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
49849         of AC_CHECK_TYPE checks includes unistd.h.
49850         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
49851         Suggestion from Akim Demaille.
49852
49853 1999-10-30  Jim Meyering  <meyering@ascend.com>
49854
49855         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
49856         m4-quoted string.
49857         * m4/ls-mntd-fs.m4: Likewise.
49858         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
49859         * m4/jm-winsz1.m4: Likewise.
49860
49861         * m4/const.m4: Remove file, since the fix made it into the experimental
49862         version of autoconf.
49863         * m4/mktime.m4: Likewise.
49864
49865         * m4/check-type.m4: Remove file, now that the latest version of
49866         AC_CHECK_TYPE takes a third arg to specify additional #includes.
49867
49868         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
49869         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
49870         AC_CHECK_TYPE.
49871
49872 1999-10-04  Jim Meyering  <meyering@ascend.com>
49873
49874         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
49875
49876 1999-09-22  Paul Eggert  <eggert@twinsun.com>
49877
49878         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
49879         2.95.1 bug with HP-UX 10.20.
49880
49881 1999-09-17  Jim Meyering  <meyering@ascend.com>
49882
49883         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
49884         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
49885         due to missing strdup (against sh-utils-2.0).
49886
49887 1999-08-29  Jim Meyering  <meyering@ascend.com>
49888
49889         * m4/jm-macros.m4: Require jm_BISON.
49890         * m4/bison.m4: New file.
49891
49892 1999-08-17  Paul Eggert  <eggert@twinsun.com>
49893
49894         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
49895         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
49896
49897 1999-08-05  Jim Meyering  <meyering@ascend.com>
49898
49899         * m4/getline.m4: Rename test file from conftestdata to conftest.data
49900         to avoid conflicts with `conftest' on 8+3 filesystems.
49901         Suggestion from Eli Zaretskii.
49902
49903 1999-08-04  Jim Meyering  <meyering@ascend.com>
49904
49905         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
49906         fileutils and sh-utils (textutils's getline test was inadequate).
49907         (AM_FUNC_GETLINE): Run this test.
49908         (AC_CHECK_FUNCS): Check for getdelim.
49909         Reported by Bob Proulx.
49910
49911 1999-08-02  Jim Meyering  <meyering@ascend.com>
49912
49913         * m4/jm-macros.m4: Add a comment.
49914
49915 1999-08-01  Paul Eggert  <eggert@twinsun.com>
49916
49917         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
49918         <inttypes.h> defines strtoumax as a macro (and not as a
49919         function).
49920
49921 1999-08-01  Paul Eggert  <eggert@twinsun.com>
49922
49923         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
49924         that we can shift, multiply and divide unsigned long long
49925         values; Ultrix cc can't do it.
49926
49927 1999-08-01  Paul Eggert  <eggert@twinsun.com>
49928
49929         * m4/mktime.m4: New file, which is a preview of what should appear
49930         in the next public autoconf release.
49931
49932 1999-08-01  Paul Eggert  <eggert@twinsun.com>
49933
49934         * m4/lfs.m4: Remove this file.
49935         * m4/largefile.m4: New file.  It contains the old contents of
49936         lfs.m4, except that all names with prefix AC_LFS have been
49937         changed to use the prefix AC_SYS_LARGEFILE instead, to be
49938         compatible with future autoconf versions.  Also, some minor m4
49939         quoting problems have been fixed.
49940
49941 1999-08-01  Paul Eggert  <eggert@twinsun.com>
49942
49943         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
49944         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
49945         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
49946         and simplify the shell code.
49947
49948 1999-08-01  Jim Meyering  <meyering@ascend.com>
49949
49950         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
49951         m4.
49952
49953 1999-07-20  Jim Meyering  <meyering@ascend.com>
49954
49955         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
49956
49957 1999-07-15  Jim Meyering  <meyering@ascend.com>
49958
49959         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
49960
49961 1999-05-22  Jim Meyering  <meyering@ascend.com>
49962
49963         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
49964
49965 1999-05-20  Jim Meyering  <meyering@ascend.com>
49966
49967         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
49968         Add a colon after each `then' in case $4 is empty.
49969
49970 1999-05-16  Jim Meyering  <meyering@ascend.com>
49971
49972         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
49973
49974 1999-05-10  Jim Meyering  <meyering@ascend.com>
49975
49976         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
49977
49978         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
49979         AC_FUNC_MKTIME.
49980
49981 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
49982
49983         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
49984
49985 1999-05-04  Paul Eggert  <eggert@twinsun.com>
49986
49987         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
49988         not CPPFLAGS, so that linking works correctly in IRIX.
49989
49990 1999-04-30  Paul Eggert  <eggert@twinsun.com>
49991
49992         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
49993
49994 1999-04-20  Paul Eggert  <eggert@twinsun.com>
49995
49996         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
49997         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
49998         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
49999         jm_AC_TYPE_UNSIGNED_LONG_LONG.
50000         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
50001
50002         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
50003
50004 1999-04-20  Jim Meyering  <meyering@ascend.com>
50005
50006         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
50007         AC_REPLACE xstroull if necessary.  From Paul Eggert.
50008         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
50009
50010 1999-04-18  Jim Meyering  <meyering@ascend.com>
50011
50012         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
50013         * m4/jm-macros.m4: Use it.
50014
50015 1999-04-06  Jim Meyering  <meyering@ascend.com>
50016
50017         * m4/strftime.m4: Remove test for %f.
50018
50019 1999-03-29  Jim Meyering  <meyering@ascend.com>
50020
50021         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
50022         superset of the AC_TYPE_* checks in the textutils, fileutils,
50023         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
50024         AC_TYPE_PID_T.
50025
50026 1999-03-28  Jim Meyering  <meyering@ascend.com>
50027
50028         * m4/jm-macros.m4: Define GNU_PACKAGE here.
50029         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
50030         replaced e.g., in the *.sh files of the sh-utils.
50031
50032 1999-03-20  Jim Meyering  <meyering@ascend.com>
50033
50034         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
50035         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
50036         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
50037
50038 1999-03-19  Jim Meyering  <meyering@ascend.com>
50039
50040         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
50041
50042 1999-03-12  Jim Meyering  <meyering@ascend.com>
50043
50044         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
50045
50046 1999-03-07  Jim Meyering  <meyering@ascend.com>
50047
50048         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
50049         declared.
50050
50051 1999-02-17  Jim Meyering  <meyering@ascend.com>
50052
50053         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
50054         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
50055
50056 1999-02-07  Jim Meyering  <meyering@ascend.com>
50057
50058         * m4/group-member.m4: New file -- extracted from sh-utils'
50059         configure.in.
50060
50061         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
50062         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
50063
50064 1999-02-06  Jim Meyering  <meyering@ascend.com>
50065
50066         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
50067         * m4/fnmatch.m4: Likewise.
50068         * m4/getgroups.m4: Likewise.
50069         * m4/lstat.m4: Likewise.
50070         * m4/malloc.m4: Likewise.
50071         * m4/putenv.m4: Likewise.
50072         * m4/realloc.m4: Likewise.
50073         * m4/regex.m4: Likewise.
50074         * m4/stat.m4: Likewise.
50075         * m4/strftime.m4: Likewise.
50076         Suggestion from Alain Magloire.
50077
50078         * m4/chown.m4: Use `.$ac_objext', not `.o'.
50079         * m4/fnmatch.m4: Likewise.
50080         * m4/getgroups.m4: Likewise.
50081         * m4/getline.m4: Likewise.
50082         * m4/lstat.m4: Likewise.
50083         * m4/malloc.m4: Likewise.
50084         * m4/memcmp.m4: Likewise.
50085         * m4/putenv.m4: Likewise.
50086         * m4/realloc.m4: Likewise.
50087         * m4/regex.m4: Likewise.
50088         * m4/stat.m4: Likewise.
50089         * m4/strftime.m4: Likewise.
50090         Suggestion from Alain Magloire.
50091
50092         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
50093         an argument.
50094
50095         * m4/regex.m4: Add a run-time Test for proper operation of
50096         re_compile_pattern.
50097
50098 1999-01-31  Jim Meyering  <meyering@ascend.com>
50099
50100         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
50101
50102 1999-01-30  Jim Meyering  <meyering@ascend.com>
50103
50104         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
50105
50106         * m4/jm-mktime.m4: Make this a wrapper around the official
50107         AM_FUNC_MKTIME rather than my private copy, now that the official one
50108         is up to date.
50109         * m4/mktime.m4: Remove file.
50110
50111         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
50112         * m4/uptime.m4: Likewise.
50113         * m4/uintmax_t.m4: Likewise.
50114
50115 1999-01-28  Jim Meyering  <meyering@ascend.com>
50116
50117         * m4/jm-macros.m4: Use jm_AFS.
50118         * m4/afs.m4: New file (from fileutils' configure.in).
50119
50120         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
50121         * m4/chown.m4: Likewise.
50122         * m4/d-ino.m4: Likewise.
50123         * m4/d-type.m4: Likewise.
50124         * m4/fnmatch.m4: Likewise.
50125         * m4/getgroups.m4: Likewise.
50126         * m4/gettext.m4: Likewise.
50127         * m4/jm-mktime.m4: Likewise.
50128         * m4/jm-winsz2.m4: Likewise.
50129         * m4/lcmessage.m4: Likewise.
50130         * m4/ls-mntd-fs.m4: Likewise.
50131         * m4/malloc.m4: Likewise.
50132         * m4/memcmp.m4: Likewise.
50133         * m4/putenv.m4: Likewise.
50134         * m4/realloc.m4: Likewise.
50135         * m4/st_mtim.m4: Likewise.
50136         * m4/strftime.m4: Likewise.
50137
50138 1999-01-16  Jim Meyering  <meyering@ascend.com>
50139
50140         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
50141         (ARGMATCH_DIE_DECL): Define.
50142
50143 1999-01-12  Jim Meyering  <meyering@ascend.com>
50144
50145         * m4/Makefile.am.in: Rewrite to avoid using fmt.
50146         Reported by Lars Hecking.
50147
50148 1999-01-10  Jim Meyering  <meyering@ascend.com>
50149
50150         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
50151         gross kludge.
50152         * m4/inttypes_h.m4: Likewise.
50153         * m4/lstat.m4: Likewise.
50154         * m4/malloc.m4: Likewise.
50155         * m4/readdir.m4: Likewise.
50156         * m4/realloc.m4: Likewise.
50157         * m4/st_dm_mode.m4: Likewise.
50158         * m4/stat.m4: Likewise.
50159         * m4/utimbuf.m4: Likewise.
50160         * m4/utimes.m4: Likewise.
50161
50162         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
50163         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
50164         comments in config.h.in are meaningful.
50165
50166         * m4/jm-macros.m4: Require autoconf-2.13 here.
50167
50168         * m4/regex.m4: By default, don't use the included regex.c on systems
50169         with glibc 2.  Suggestion from Uli Drepper.
50170
50171 1999-01-02  Jim Meyering  <meyering@ascend.com>
50172
50173         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
50174
50175 1998-12-18  Jim Meyering  <meyering@ascend.com>
50176
50177         * m4/Makefile.am.in (Makefile.am): Simplify rule.
50178         Based on a suggestion from Lars Hecking.
50179
50180 1998-11-16  Paul Eggert  <eggert@twinsun.com>
50181
50182         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
50183
50184 1998-11-16  Jim Meyering  <meyering@ascend.com>
50185
50186         * m4/lfs.m4: Double-quote the `uname...` expression.
50187
50188 1998-11-14  Jim Meyering  <meyering@ascend.com>
50189
50190         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
50191         * m4/stat.m4: Likewise.
50192
50193 1998-11-03  Jim Meyering  <meyering@ascend.com>
50194
50195         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
50196         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
50197
50198 1998-10-18  Jim Meyering  <meyering@ascend.com>
50199
50200         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
50201
50202 1998-10-17  Jim Meyering  <meyering@ascend.com>
50203
50204         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
50205         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
50206         calls for those previously hard-coded headers.  Instead, take a new
50207         parameter.
50208         (jm_CHECK_DECLARATIONS): Reflect interface change.
50209         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
50210         (jm_CHECK_DECL_LOCALTIME_R): New macro.
50211
50212         * m4/mktime.m4: Test for spring-forward gap before long-running test.
50213
50214 1998-10-14  Jim Meyering  <meyering@ascend.com>
50215
50216         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
50217         instead of "TZ=America/Vancouver".  From Paul Eggert.
50218
50219 1998-10-11  Jim Meyering  <meyering@ascend.com>
50220
50221         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
50222         This adds a test for a recently added compatibility fix for mktime.c.
50223         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
50224
50225 1998-09-27  Jim Meyering  <meyering@ascend.com>
50226
50227         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
50228
50229         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
50230         ../configure.in, including a change from Gordon Matzigkeit to allow
50231         cross-compiling for the Hurd.
50232
50233         * m4/glibc.m4: New file/macro to test for the GNU C Library
50234         versions 1 and 2.  From Gordon Matzigkeit.
50235         Indent.
50236
50237 1998-09-21  Jim Meyering  <meyering@ascend.com>
50238
50239         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
50240
50241 1998-08-18  Paul Eggert  <eggert@twinsun.com>
50242
50243         Port nanosecond-resolution times to UnixWare 2.1.2 and
50244         pedantic Solaris 2.6.
50245
50246         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
50247         AC_STRUCT_ST_MTIM.
50248         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
50249         Generate name of ns member, instead of just 1 or undef.
50250         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
50251
50252 1998-08-15  Jim Meyering  <meyering@ascend.com>
50253
50254         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
50255         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
50256         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
50257         instead of jm_TYPE_SSIZE_T.
50258
50259 1998-08-12  Jim Meyering  <meyering@ascend.com>
50260
50261         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
50262
50263 1998-08-02  Jim Meyering  <meyering@ascend.com>
50264
50265         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
50266         in acconfig.h manually.
50267
50268 1998-07-31  Paul Eggert  <eggert@twinsun.com>
50269
50270         * m4/st_mtim.m4: New file.
50271
50272 1998-07-28  Jim Meyering  <meyering@ascend.com>
50273
50274         * m4/utimes.m4: Undef stat.
50275
50276 1998-07-25  Jim Meyering  <meyering@ascend.com>
50277
50278         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
50279         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
50280
50281 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
50282
50283         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
50284         uid and gid actually remain unchanged.
50285
50286 1998-07-07  Jim Meyering  <meyering@ascend.com>
50287
50288         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
50289
50290 1998-07-04  Jim Meyering  <meyering@ascend.com>
50291
50292         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
50293         to prove that this macro can be used in packages without regex.c.
50294
50295 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
50296
50297         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
50298         is to be used.
50299
50300 1998-07-03  Jim Meyering  <meyering@ascend.com>
50301
50302         * m4/gettext.m4: Add -lintl if it's found to be necessary.
50303
50304         * m4/gettext.m4: New file -- from gettext-0.10.35.
50305         * m4/lcmessage.m4: Likewise.
50306         * m4/progtest.m4: Likewise.
50307
50308         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
50309         * m4/jm-macros.m4: Require the new macro.
50310
50311 1998-06-29  Jim Meyering  <meyering@ascend.com>
50312
50313         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
50314         for the definition of NGROUPS (used in a system header included
50315         by sys/mount.h).
50316
50317 1998-06-28  Jim Meyering  <meyering@ascend.com>
50318
50319         * m4/ls-mntd-fs.m4: New file.
50320         * m4/fstypename.m4: New file.
50321
50322         * m4/jm-macros.m4: Require the new macro.
50323         * m4/jm-glibc-io.m4: New file.
50324
50325 1998-05-19  Jim Meyering  <meyering@ascend.com>
50326
50327         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
50328         * m4/lchown.m4: New file.
50329
50330         * m4/Makefile.am.in: New file.
50331         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
50332
50333 1998-05-14  Jim Meyering  <meyering@ascend.com>
50334
50335         * m4/Makefile.am (EXTRA_DIST): Add them.
50336         * m4/jm-macros.m4: New file.
50337         * m4/utimbuf.m4: New file.
50338
50339 1998-05-12  Jim Meyering  <meyering@ascend.com>
50340
50341         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
50342
50343 1998-05-11  Jim Meyering  <meyering@ascend.com>
50344
50345         * m4/isc-posix.m4: New file.
50346
50347 1998-05-10  Jim Meyering  <meyering@ascend.com>
50348
50349         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
50350
50351 1998-05-09  Jim Meyering  <meyering@ascend.com>
50352
50353         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
50354         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
50355         with automake.
50356
50357         * m4/ssize_t.m4: New file.
50358         * m4/mktime.m4: Remove file -- the new automake has this now.
50359
50360 1998-04-26  Jim Meyering  <meyering@ascend.com>
50361
50362         * m4/assert.m4: New file.
50363         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
50364
50365 1998-04-05  Jim Meyering  <meyering@ascend.com>
50366
50367         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
50368         (jm_PREREQ): Use it here.
50369
50370 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
50371
50372         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
50373         in acconfig.h.
50374
50375 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
50376
50377         * m4/prereq.m4: New file.
50378         * m4/error.m4: New file.
50379         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
50380
50381 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
50382
50383         * m4/getline.m4: Don't set am_cv_func_working_getline before the
50384         cache-check for the same variable -- that defeated the purpose of
50385         the test; the test program was never run.  This was a problem only
50386         on systems with losing getline functions -- HP-UX 10.20 is one.
50387         Reported by Bjorn Helgaas.
50388
50389 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
50390
50391         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
50392
50393 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
50394
50395         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
50396
50397         * m4/const.m4: New file.  Use an initializer in this declaration
50398         typedef int charset[2]; const charset x;
50399         Reported by Bob Glickstein.
50400
50401 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
50402
50403         * m4/chown.m4: Fix reversed types on -1 args to chown.
50404         From Kaveh Ghazi.
50405
50406 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
50407
50408         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
50409         Add lseek and memchr.
50410
50411         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
50412         T.E.Dickey <dickey@clark.net> said that some older preprocessors
50413         have a 20-character limit on names.
50414
50415 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
50416
50417         * m4/inttypes_h.m4: New file.
50418         * m4/uintmax_t.m4: New file.
50419         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
50420
50421
50422         -----
50423
50424         Local Variables:
50425         coding: utf-8
50426         End:
50427
50428         Copyright (C) 1997-2009 Free Software Foundation, Inc.
50429
50430         Copying and distribution of this file, with or without
50431         modification, are permitted provided the copyright notice
50432         and this notice are preserved.